* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background-image: url("../static/assets/claysun.svg");
  background-repeat: no-repeat;
  background-size: cover; */
  /* background-image: linear-gradient(45deg, #fd1d1d 0%, #fcb045 100%); */
  /* background-image: linear-gradient(45deg, #f6d365 0%, #fda085 100%); */
  background-image: linear-gradient(45deg, #fda085 0%, #fee140 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

header {
  display: flex;
  flex-direction: column;
  min-height: 20vh;
  width: 100%;
  align-items: center;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 20vh;
  background-color: rgba(84, 82, 82, 0.562);
  padding: 20px;
}

.footer-image {
  max-width: 100%;
  max-height: 50px;
}

.footer-text {
  text-align: center;
  padding: 30px;
}

.title-text {
  /* padding-left: 2rem; */
  font-size: 5rem;
  color: rgb(21, 74, 219);
}
.sub-title-text {
  /* padding-left: 4rem; */
  font-size: 2rem;
  font-style: italic;
  color: rgb(21, 74, 219);
}

.state-container {
  width: min(80%, 1000px);
  min-height: 75vh;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  background: rgba(246, 246, 246, 0.35);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 5rem;
}

.header {
  background-color: rgb(255, 157, 0);
  border-bottom: 5px solid #a73d00;
  padding: 10px 10px;
}

.header h2 {
  margin: 0;
  font-size: clamp(0.5rem, 0.5rem + 5vw, 2.5rem);
}

.form {
  padding: 30px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-box-control {
  padding-bottom: 10px;
  margin-bottom: 5px;
  position: relative;
}

.text-box-control label {
  font-size: clamp(0.25rem, 1vh + 1rem, 2rem);
  display: inline-block;
  margin-bottom: 2px;
  margin-top: 2px;
  font-weight: bolder;
  color: black;
}

.text-box-control input {
  border: 2px solid rgb(255, 255, 255);
  border-radius: 5px;
  display: block;
  font-family: inherit;
  font-size: clamp(0.25rem, 1vh + 1rem, 2rem);
  padding: 10px;
  width: 100%;
  background-color: rgba(238, 238, 238, 0.5);
}

.text-box-control i {
  visibility: hidden;
  position: absolute;
  font-size: clamp(1rem, 1rem + 1vw, 1.5rem);
  top: 3rem;
  right: 1rem;
}

.text-box-control small {
  visibility: hidden;
}

.text-box-control.success input {
  border-color: #05bd52;
  border-width: 0.3rem;
}

.text-box-control.error input {
  border-color: #e74c3c;
  border-width: 0.3rem;
}

.text-box-control.success i.fa-check-circle {
  visibility: visible;
  color: #2ecc71;
}

.text-box-control.error i.fa-exclamation-circle {
  visibility: visible;
  color: #e74c3c;
}

.text-box-control.error small {
  visibility: visible;
  color: #e74c3c;
  font-weight: bolder;
  font-size: 1em;
}

.submit-button {
  font-family: inherit;
  border-radius: 5px;
  color: white;
  background-color: rgba(66, 104, 255, 1);
  border: 2px solid white;
  display: block;
  font-size: clamp(0.5rem, 1vh + 1rem, 3rem);
  width: 75%;
  padding: 5px;
  cursor: pointer;
  margin-bottom: 1rem;
  margin-inline: auto;
}

.submit-button:hover {
  background-color: rgba(6, 70, 173, 0.8);
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transition: box-shadow 250ms;
}

.submit-button:active {
  background-color: rgba(6, 70, 173, 0.8);
  box-shadow: 0 5px #a9a7a7;
  transform: translateY(3px);
}

@media only screen and (hover: none) and (pointer: coarse) {
  .buttons-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .answer-button {
    min-width: 80%;
    flex-basis: 80%;
    max-height: var(--buttonheight);
    /* max-height: 2rem; */
  }

  .state-container {
    width: 90%;
  }

  .header h2 {
    font-size: clamp(0.1rem, 1rem + 2vw, 2rem);
  }

  .header p {
    font-size: clamp(0.05rem, 0.5rem + 1vw, 1rem);
  }

  .form {
    padding: 30px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .text-box-control label {
    font-size: clamp(1rem, 0.5rem + 1vw, 1rem);
    padding-bottom: 5px;
    margin-bottom: 2px;
  }

  .text-box-control.success i.fa-check-circle {
    visibility: hidden;
    color: #2ecc71;
  }

  .text-box-control.error i.fa-exclamation-circle {
    visibility: hidden;
    color: #e74c3c;
  }

  header {
    min-height: 5vh;
  }

  footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .title-text {
    font-size: 3rem;
    color: rgb(21, 74, 219);
    text-align: center;
    padding-left: 0;
  }
  .sub-title-text {
    visibility: hidden;
  }
}

.buttons-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex: 1;
  justify-content: space-around;
  align-items: center;
}

.answer-button {
  font-family: inherit;
  font-size: clamp(0.5rem, 1vh + 1rem, 3rem);
  white-space: pre-wrap;
  border-radius: 1rem;
  cursor: pointer;
  border: none;
  background-color: rgb(21, 74, 219);
  color: white;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  flex-basis: 50%;
  max-width: 40%;
  height: 10rem;
}

.answer-button:hover {
  transform: scale(1.05);
  border: 2px solid rgb(255, 255, 255);
  transition: transform 250ms;
}

.answer-button:not(:hover) {
  transform: scale(1);
  transition: transform 250ms;
}

.back-button-container {
  display: flex;
  flex-direction: row;
  justify-content: left;
  padding-left: 0.5rem;
  padding-bottom: 0.5rem;
}

.back-btn {
  border-radius: 1rem;
  border: none;
  font-size: x-large;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  background-color: rgb(255, 157, 0);
}

.back-btn:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transition: box-shadow 250ms;
  border: 2px solid rgb(255, 255, 255);
}

::placeholder {
  color: rgb(83, 80, 80);
  font-size: clamp(0.5rem, 0.5rem + 1vw, 1rem);
  font-style: italic;
  font-weight: bolder;
}

.progress {
  background-color: rgba(238, 238, 238, 0.5);
  border-radius: 0.75em;
  height: 1.5em;
  width: 75%;
  margin: auto;
  color: white;
  position: relative;
  margin-bottom: 1rem;
}
.progress::before {
  content: attr(data-label);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0.25em;
  top: 0.25em;
  bottom: 0.25em;
  min-width: 0.75rem;
  max-width: calc(100% - 1.5em);
  background: rgb(0, 212, 255);
  background: linear-gradient(
    90deg,
    rgba(0, 212, 255, 1) 0%,
    rgba(9, 9, 121, 1) 100%,
    rgba(2, 0, 36, 1) 100%
  );
  border-radius: 1em;
  padding: 0.5em;
  width: var(--progwidth);
  transition: width 1s;
}

.question {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.slide-left-enter-active,
.slide-right-enter-active,
.slide-left-leave-active,
.slide-right-leave-active {
  transition: all 0.25s ease-in-out;
}

.slide-left-enter,
.slide-right-leave-to {
  transform: translateX(100%);
}

.slide-right-enter,
.slide-left-leave-to {
  transform: translateX(-100%);
}

.final-page {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.final-page > * {
  margin: 10px;
}