/* Define color variables for themeing in the future */
:root {
  --primary: #8ECAE6;
  --secondary: #219EBC;
  --tertiary: #023047;
  --alternate: #FFB703;
  --alternate2: #FB8500;
  --font: #023047;
}

body {
  margin: 0;
  height: auto;
  color: var(--font, black);
  font-family: Dosis, sans-serif;
  font-size: 21px;
}

/*** HEADER PROPERTIES ***/
#header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1;
}

#header h1 {
  font-size: 36px;
}

#header-bar {
  height: 80px;
  background-color: #8ECAE6;
  border: 1px solid #219EBC;
  font-size: 24px;
  text-align: center;
  vertical-align: middle;
  line-height: 0px;
}

#header-links {
  padding: 10px;
}

#header-links a {
  color: var(--font);
  font-size: 18px;
  padding: 10px;
}

#return-bar {
  position: relative;
  top: -4px;
  vertical-align: middle;
  line-height: 40px;
  margin: 0 auto;
  height: 40px;
  width: 200px;
  text-align: center;
  border-radius: 5px;
  background-color: #219EBC;
  border: 1px solid #023047;
  z-index: -1;
}

#return-bar a {
  color: var(--font);
  text-decoration: none;
}

#links-bar i {
  color: var(--font);
  margin: 15px;
}

#links-bar a {
  margin: auto;
  text-decoration: none;
  color: var(--font);
}

.loading-img {
  vertical-align: middle;
}

/*** BUTTONS ***/
.standard-button {
  color: var(--font);
  font-family: Arial;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  min-width: 100px;
  margin: 0 0.5em;
  padding: 0.5em 1em;
  background-color: var(--alternate);
  border: 1px solid var(--alternate2);
  border-radius: 5px;
  box-shadow: 1px 2px var(--alternate2);
}
.standard-button:hover {
  cursor: pointer;
  box-shadow: 2px 3.5px var(--alternate2);
  transform: translate(-1px, -1.5px);
}
.standard-button:active {
  box-shadow: 0px 0px;
  transform: translate(0px, 0px);
}
.standard-button:disabled {
  background-color: lightgrey;
  border: 1px solid darkgray;
  box-shadow: none;
}
.standard-button:disabled:hover {
  transform: none;
  cursor: auto;
}

.secondary-button {
  margin: 0 0.5em;
  padding: 0.5em 1em;
  background-color: var(--primary);
  border: 1px solid var(--secondary);
  border-radius: 5px;
  /* box-shadow: 1px 2px var(--secondary); */
}
.secondary-button:hover {
  cursor: pointer;
}

.plain-button {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}
.plain-button:hover {
  cursor: pointer;
}

/*** INPUT ***/
input[type="text"], input[type="search"], textarea {
  font-family: Dosis;
  font-size: 16px;
  height: 28px;
  width: 200px;
  margin-bottom: 1em;
  border: 1px solid var(--alternate2);
  border-radius: 8px;
}
input[type="text"]:focus, input[type="search"]:focus {
  outline: none;
  transform: translate(1.1px, 1px);
  box-shadow: inset 1.1px 1px var(--alternate2);
}
.input-wide {
  width: 400px;
}
.input-medium {
  height: 30px;
}
.input-tall {
  height: 100px;
}

input[type="checkbox"] {
  /* Reset default values */
  appearance: none;
  background-color: #fff;
  margin: 0;
  /* Custom values */
  font: inherit;
  color: var(--font);
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid var(--alternate2);
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}
input[type="checkbox"]:hover {
  cursor: pointer;
}
input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--font);
  /* Windows High Contrast Mode */
  background-color: CanvasText;
  /* Check style */
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="checkbox"]:checked::before {
  transform: scale(1);
}
input[type="checkbox"]:focus {
  outline: max(2px, 0.15em) solid var(--alternate);
  outline-offset: max(2px, 0.15em);
}

.fast-spin {
  transform-origin: center;
  -webkit-animation: fa-spin 1s infinite linear;
  animation: fa-spin 1s infinite linear;
}

.load-primary {
  color: var(--alternate);
}

.load-secondary {
  color: var(--font);
}

/*** MODALS ***/
.full-modal {
  position: fixed;
  top: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(200, 200, 200, 0.9);
  z-index: 100;
  height: 100vh;
  width: 100%;
}

.small-modal {
  position: fixed;
  display: none;
  top: 0;
  justify-content: center;
  align-items: center;
  z-index: 100;
  height: 100vh;
  width: 100%;
  background-color: rgba(200, 200, 200, 0.9);
}
#filter-modal-main {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  min-height: 300px;
  min-width: 500px;
  overflow-y: scroll;
  height: 45%;
  width: 70%;
  text-align: center;
  background-color: var(--primary);
}
.filter-table td:nth-child(2) {
  padding-left: 15px;
}
#filter-buttons-container {
  margin-top: 10px;
}

.message-modal-container {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  z-index: 100;
}

.message-modal {
  display: flex;
  padding: 0.5em 1em;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  max-width: 300px;
  min-height: 50px;
  border-radius: 10px;
}

.message-modal div {
  text-align: center;
}

.error-modal {
  border: 1px solid red;
  background-color: #FB8B8B;
  color: #893F3F;
}

.success-modal {
  border: 1px solid darkgreen;
  background-color: #92F97B;
  color: #459932;
}

/*** OTHER ***/
.error-icon {
  color: red;
}