[hidden] {
  display: none !important;
}

/* https://stackoverflow.com/a/64643952 */

/* General styles */
body {
  background-color: #121212;
  color: #FFFFFF;
  font-family: "Roboto", sans-serif;
}

a {
  color: #BB86FC;
}

a:hover {
  color: #3700B3;
}

#noisediv {
  width: 100%;
  height: 100%;
}

.noise {
  width: 100%;
  height: 100%;
}

.center-grid {
  /* for centering on screen, use .center below for this */
  display: grid;
  justify-content: center;
  align-content: center;
  width: 100%;
  height: 95vh;
}

.center {
  grid-column: 1;
}

/* Box styles */
.box {
  background-color: #121212;
  border: 2px solid #03DAC6;
  padding: 10px;
  color: #FFFFFF;
  text-align: left;
  line-height: 2;
}

.grey-box {
  background-color: #444444;
  border-radius: 5px;
  max-width: 600px;
  padding: 10px;
  /* horizontally center inside parent container*/
  margin: auto;
  margin-top: 10px;
  position: relative;
}

.box-title {
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.5);
}

/* Image area styles */
.image-area .survey-area {
  width: 100%;
  margin-bottom: 20px;
}

.image-area {
  text-align: center;
}

.image-area img {
  width: 100%;
  height: auto;
}

/* Survey info styles */
.survey-info {
  text-align: center;
}

/* Image container styles */
.image-container {
  /* This horizontally centers the image inside the .image div container */
  margin: auto;
  position: relative;
  display: inline-block;
}

/* Overlay text styles */
.overlay-text-top-left {
  position: absolute;
  top: 2rem;
  left: 30px;
  color: #FFFFFF;
  text-align: left;
  text-shadow: -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.overlay-text-clinic {
  position: absolute;
  bottom: 2rem;
  left: 30px;
  color: white;
  text-align: left;
  text-shadow: -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

/* For small screens */
@media screen and (max-width: 900px) {
  .overlay-text-top-left {
    top: 1rem;
    left: 1rem;
  }
}

/* Submessage styles */
.submessage {
  font-size: 80%;
  color: #CF6679;
}

/* For wider screens */
@media screen and (min-width: 1024px) {
  .image-area {
    width: calc(70% - 20px);
    float: left;
    margin-right: 20px;
  }

  .image-area img {
    /* This makes sure that the image takes at most the viewport height or the full width of the .image-area container, whatever is bigger */
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    /* set width and height to auto to keep the aspect ratio */
    height: auto;
  }

  .survey-area {
    width: calc(30% - 20px);
    float: right;
    margin-left: 20px;
  }
}

.button {
  background-color: #adefd1;
  /* Green */
  border: 2px;
  color: #000000;
  margin: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  min-width: 45px;
  border-radius: 5px;
}

.button:hover {
  background-color: #c7ecdc;
}

.button:disabled {
  background-color: #9aada4;
  /* Gray-Green */
}

/* Form styles */
.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-grid p {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.form-grid label {
  font-weight: bold;
}

.form-grid input[type="text"],
.form-grid input[type="password"],
.form-grid input[type="email"],
.form-grid select {
  padding: 0.5rem;
  border: 1px solid #03DAC6;
  background: #1E1E1E;
  color: white;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.form-grid .helptext {
  font-size: 0.9em;
  color: #BB86FC;
  margin-top: 0.25rem;
}

.form-grid ul.errorlist {
  color: #CF6679;
  margin: 0;
  padding-left: 1.5rem;
}

.form-grid button[type="submit"] {
  background-color: #03DAC6;
  color: black;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
}

.form-grid button[type="submit"]:hover {
  background-color: #018786;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

.logout-area {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.logout-area a {
  background-color: #d1a7a0;
  max-width: 100px;
  border: 2px;
  color: #000000;
  /* margin: auto; */
  display: block;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: smaller;
  min-width: 45px;
  border-radius: 5px;
}

#showDialogButton {
  cursor: pointer;
}

dialog {
  background-color: #222222;
  color: white;
  border-color: black;
}

::backdrop {
  background-image: linear-gradient(0deg,
      darkgrey,
      #9aada4);
  opacity: 0.75;
}

/* form.horizontal-radio div#id_can_remember div {
  display: inline-block;
} */

/* roboto-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/roboto-v30-latin-regular.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Loading circle thingy */
.loader {
  border: 16px solid #9aada4;
  border-top: 16px solid #adefd1;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}