:root {
  --mainHeader-fontSize: 2.8em;
  --question-fontSize: 1.9em;
  --option-fontSize: 1.7em;
  --nextBtn-fontSize: 1.7em;
  --recordContainer-height: 400px;
}
.__quiz-wrapper {
  width: 100%;
  height: max-content;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.__quiz-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.__quiz-mainHeader {
  margin-top: 20px;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: var(--mainHeader-fontSize);
  font-weight: 700;
  color: rgb(43, 84, 187);
  font-family: Roboto;
  margin-bottom: 30px;
}

.__quiz-question {
  padding: 10px;
  font-size: var(--question-fontSize);
  font-weight: 600;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  color: rgb(71, 71, 71);
  border-left: 5px solid rgb(75, 150, 200);
  border-radius: 5px;
  background: rgba(250, 249, 249, 0.855);
  background: linear-gradient(
    90deg,
    rgba(250, 249, 249, 0.855) 60%,
    rgb(255, 255, 255) 90%
  );
}
.__quiz-option {
  padding: 20px;
  width: 99%;
  background: #f9f9f9;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: var(--option-fontSize);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: transform 300ms ease;
  user-select: none;
}
.__quiz-option:last-child {
  margin-bottom: 0px !important;
}
.__quiz-option:hover {
}
.__quiz-option-back {
  transform: rotateX(180deg);
}
.__quiz-face {
  backface-visibility: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 250ms ease;
}
.__quiz-options-slideDown {
  animation: slideOptionsDown 10s forwards;
  overflow: hidden;
  transform-origin: bottom top;
}

.__quiz-recordContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: overlay;
  /* height: var(--recordContainer-height); */
  width: 100%;
}

.__quiz-record-optionCorrect,
.__quiz-record-optionIncorrect {
  margin: 5px 0px 5px 0px;
  width: 98%;
  padding: 10px;
  border-bottom: 3px solid #ffffff;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.__quiz-record-optionCorrect:before,
.__quiz-record-optionIncorrect:before {
  text-align: center;
  padding: 5px;
  content: attr(data-score);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.349) 21%,
    rgba(204, 204, 204, 0.252) 84%
  );
  border: 0.5px solid rgba(255, 255, 255, 0.574);
  display: inline-block;
  vertical-align: middle;
  line-height: 15px;
  margin-right: 10px;
}

.__quiz-record-optionCorrect {
  background: rgb(234, 255, 230);
  box-shadow: 0px 0px 2px hsla(120, 100%, 25%, 0.28);
  border: 1px solid rgb(62, 128, 0);
}
.__quiz-record-optionIncorrect {
  background: rgb(255, 223, 223);
  box-shadow: 0px 0px 10px hsla(0, 100%, 50%, 0.28);
  border: 1px solid rgb(128, 32, 0);
}
@keyframes slideOptionsDown {
  10% {
    height: 70%;
    bottom: 0%;
    transform: translateY(-100%);
  }
  25% {
    height: 0;
  }
  100% {
    bottom: 0%;
    transform: translateY(-100%);
    height: 0;
  }
}
.__quiz-optionContainer.flip .__quiz-optionInner {
  transform: rotateX(180deg);
}
.__quiz-optionWrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: 1px 1px 10px rgba(51, 51, 51, 0.221);
  background: #ffffff;
  overflow: hidden;
}
.__quiz-optionWrapper:not([data-state="preload"]) {
  transition: height 500ms;
}
.__quiz-optionContainer {
  position: absolute;
  top: 0;
  left: 0;
  perspective: 1000px;
  display: flex;
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}
.__quiz-optionInner {
  transition-duration: 250ms;
  transition-timing-function: ease-in-out;
  transition-property: transform;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: max-content;
  border-radius: 10px;
  position: relative;
}

/* .__quiz-nextButton:before {
  content: "";
  background: url("../assets/svg/next.svg") no-repeat;
  width: 40px;
  height: 40px;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */
.__quiz-nextButton.__quiz-nextButton-hide {
  opacity: 0;
}
.__quiz-nextButton svg {
  width: 100%;
  height: 100%;
}
.__quiz-nextButton {
  opacity: 1;
  transition: opacity 200ms ease-in;
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  font-size: var(--nextBtn-fontSize);
  background: linear-gradient(
    180deg,
    rgb(83, 140, 206) 0%,
    rgb(37, 98, 174) 50%
  );
  padding: 5px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.__quiz-nextButton:active {
  opacity: 0.9;
}

.__quiz-nextBtn:disabled:active {
  opacity: 1;
}

.__quiz-optionCorrect:after {
  content: "";
  width: 35px;
  height: 35px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  background-image: url("/assets/svg/checkmark.svg");
}
.__quiz-optionCorrect {
  background-color: rgb(204, 252, 183);
}
.__quiz-optionCorrect.__quiz-optionCorrectFadeIn {
  transition-duration: 500ms;
  transition-timing-function: ease-in;
  transition-property: background-color;
}
.__quiz-optionIncorrect:after {
  content: "";
  width: 35px;
  height: 35px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("/assets/svg/wrong.svg");
}
.__quiz-optionIncorrect {
  background-color: rgb(255, 221, 221);
}
.__quiz-optionText {
  pointer-events: none;
  width: 90% !important;
  word-wrap: break-word;
  position: relative;
}
.__quiz-explanation-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.__quiz-explanation {
  width: 100%;
  font-size: 1.4em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  height: 0;
  font-weight: 600;
  interpolate-size: allow-keywords;
  transition-property: opacity height;
  transition-duration: 250ms;
  transition-timing-function: ease;
  opacity: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.__quiz-explanation svg {
  width: 35px;
  margin-right: 10px;
}
.__quiz-explanation-show {
  opacity: 1;
  height: auto !important;
  word-wrap: break-word;
  overflow: hidden;
}
.__quiz-explanation-show .__quiz-explanation-text {
  height: auto;
}
.__quiz-explanation-text {
  interpolate-size: allow-keywords;
  transition-property: opacity height;
  transition-duration: 250ms;
  transition-timing-function: ease;
  font-size: 0.9em;
  max-width: 90%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 0;
}
/* .__quiz-explanation:before {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  content: "";
  background: url(../assets/svg/info.svg) no-repeat;
  font-size: 1.4em;
  width: 35px;
  height: max-content;
  display: inline-block;
} */

.__quiz-recordButton {
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 1px 1px 10px
    var(--darkreader-text-ffffff, hsla(0, 0%, 20%, 0.562));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

.__quiz-recordButton:active {
  opacity: 0.8;
}
.__quiz-recordButton svg {
  width: 25px;
  height: 25px;
  z-index: 2;
  position: relative;
}

.__quiz-recordWrapper {
  height: 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
  interpolate-size: allow-keywords;
  transition-property: opacity height;
  transition-duration: 250ms;
  transition-timing-function: ease;
  z-index: 10;
  background-color: #ffffff;
  box-shadow: 1px 1px 10px rgb(88, 88, 88);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(150, 150, 150) transparent;
  max-height: 100px;
}

/* .__quiz-recordWrapper::-webkit-scrollbar-track {
  width: 2px;
  border-radius: 20px;
  padding: 0;
  margin: 0;
}
.__quiz-recordWrapper::-webkit-scrollbar-thumb {
  width: 2px;
  border-radius: 20px;
  padding: 0;
  margin: 0;
} */
.__quiz-recordOverlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(0, 0%, 0%, 0.319);
  cursor: pointer;
}
.__quiz-recordSVG svg {
  width: 45px;
  height: 45px;
}
.__quiz-recordWrapper-show {
  opacity: 1;
  height: auto;
  max-height: var(--recordContainer-height);
  min-height: 100px;
}
@media screen and (max-width: 767px) {
  .__quiz-wrapper {
    padding: 0px 10px 50px 10px;
    margin-bottom: 50px;
  }

  .__quiz-explanation {
    font-size: 1em;
  }

  .__quiz-explanation-text {
    padding: 0;
  }

  .__quiz-option {
    font-size: 1.3em;
    padding: 20px;
  }

  .__quiz-optionCorrect:after {
    width: 25px;
    height: 25px;
  }

  .__quiz-optionIncorrect:after {
    width: 25px;
    height: 25px;
  }
  .__quiz-mainHeader {
    font-size: 1.4rem !important;
    width: 100%;
  }

  .__quiz-question {
    font-size: 1.4em !important;
    margin-top: 10px !important;
  }

  .__quiz-nextButton {
    height: 45px;
    width: 45px;
  }
  .__quiz-nextButton:before {
    width: 30px;
    height: 30px;
  }
}
.__quiz-buttonOptionContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  padding: 0px 20px 0px 20px;
  width: 100%;
}
.__quiz-progressWrapper {
  width: 100%;
  height: 200px;
  border: 1px solid #000000;
  border-radius: 10px;
  display: flex;
  margin-bottom: 20px;
  justify-content: center;
  background-color: #ffffff;
  align-items: center;
}

.__quiz-progressSVG {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.__quiz-progressSVG svg {
  overflow: visible;
}

.__quiz-progress-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 20;
}

.__quiz-progress-fill {
  fill: none;
  stroke: #22c55e;
  stroke-width: 20;
  stroke-linecap: round;

  transform: rotate(-90deg);
  transform-origin: center;

  transition: stroke-dashoffset 0.4s ease;
}

.__quiz-progress-text {
  font-size: 35px;
  font-weight: 700;
  fill: #000;
}
