@import url('https://fonts.googleapis.com/css2?family=Work+Sans&display=swap');

html, body {
  height: fit-content;
  margin: 0;
}

.flex-parent {
  display: flex;
  flex-flow: row;
  padding: 0 4%;
  height: fit-content;
  margin: 0;
}

#month-selection {
  margin-right: 10px;
}
#event-selection {
  margin-left: 10px;
}
#month-selection, #event-selection {
  width: 50%;
  height: fit-content;
}

/* body { font-family:  "Nunito", sans-serif; font-size: 100%; color: #333; } */

body {
  font-family: 'Work Sans', sans-serif;
  color: #333;
}

.content {
  display: none;
  padding: 5px 10px;
  height: 100%;
}

.inline-block {
  display: inline-block;
}

.bold {
  font-weight: bold;
}

.centre {
  text-align: center;
}

.flex {
  display: flex;
}

.flex .flex-wrap, .flex.flex-wrap {
  flex-flow: wrap;
}

.flex .flex-centre, .flex.flex-centre {
  justify-content: center;
}

.flex.flex-columns {
  flex-direction: column;
}

.flex .basis {
  flex-basis: 100%;
}

.flex .right {
  flex-grow: 1;
  text-align: right;
}

.no-border {
  border: 0;
}

h1, h2, h3, h4, h5 {
  margin: 6px 0;
}

a.button {
  color: inherit;
  text-decoration: none;
  /* no underline */
}

.button {
  background: #787878;
  display: inline-block;
  color: white;
  padding: 2px 4px;
  margin-top: 4px;
  border: 1px solid #000000;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
}

.button.notopmargin {
  margin-top: 0;
}

/* .button:hover { background: #DDD; }
.button.selected, .button.selected:hover { background: #bdf; } */

.button.disabled, .button.disabled:hover {
  background: #222;
  cursor: not-allowed;
  color: #999;
}

.square-button {
  background: white;
  width: 110px;
  height: 110px;
  display: inline-block;
  padding: 5px;
  margin: 5px;
  border: solid 1px;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
}

.square-button:hover {
  background: #DDD;
}

.square-button.selected, .square-button.selected:hover {
  background: #bdf;
}

.square-button.disabled, .square-button.disabled:hover {
  background: #999;
  cursor: not-allowed;
}

.big-button {
  height: 40px;
  line-height: 40px;
  padding: 10px 20px;
}

.nicer-table {
  border: solid 1px gray;
  border-collapse: collapse;
  width: 100%;
  font-size: 9pt;
}

.nicer-table td, .nicer-table th {
  border: solid 1px gray;
  background: #dfe3e5;
  padding: 3px 6px;
}

.nicer-clickable-table tr:hover {
  cursor: pointer;
  opacity: 0.8;
}

.square {
  height: 18px;
  width: 18px;
  display: inline-block;
  vertical-align: top;
  margin: 0 5px;
  border: solid 1px black;
}

.dialogParent {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialogDialog {
  display: inline-block;
  background: white;
  min-width: 300px;
  max-width: 90%;
  padding: 20px;
  border: solid 1px gray;
  border-radius: 5px;
}

.dialogTitle {
  font-size: 20px;
}

.dialogMessage {
  padding: 10px 0;
}

.dialogButtons {
  text-align: right;
}

.dialogButtons>.button {
  margin: 0;
  margin-left: 10px;
}

#popup-iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

#popup-iframe iframe {
  background: white;
  width: calc(100% - 120px);
  height: calc(100% - 120px);
}

select {
  height: 30px;
}

hr {
  width: 100%;
  box-sizing: border-box;
}

.little {
  font-size: 13px;
}

.red-error {
  color: red;
  border: solid 1px red;
  padding: 6px 8px;
  margin: 8px 0;
  /* display: inline-block; */
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.loading>.animation {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #9c9c9c;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: loading_spin 2s linear infinite;
}

@keyframes loading_spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

form.edit-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

form.edit-form b {
  margin-bottom: 6px;
}

form.edit-form select, form.edit-form input {
  height: 30px;
  margin: 6px 0;
  flex-grow: 1;
  box-sizing: border-box;
  width: 100%;
}

pre {
  white-space: pre-wrap;
}