@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --white: #fff;
  --blue: #0e267e;
  --light-blue: #0f94cd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: url("bg.jpg");
  background-position: center;
  background-size: cover;
  height: 100vh;
}

.start__btn,
.info__box,
.quiz__box,
.result_box {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info__box.activeInfo,
.quiz__box.activeQuiz,
.result_box.activeResult {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.start__btn button {
  color: var(--blue);
  background: var(--white);
  font-size: 25px;
  font-weight: 500;
  padding: 15px 30px;
  outline: none;
  border: 2px solid var(--blue);
  border-radius: 7px;
  cursor: pointer;
}

.start__btn button:hover {
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--white);
}

.info__box {
  color: var(--white);
  width: 500px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.info__box .info__title {
  height: 60px;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  padding: 0 30px;
  font-size: 20px;
  font-weight: 600;
}

.info__box .info__list {
  padding: 15px 35px;
}

.info__box .info__list .info {
  margin: 5px 0;
  font-size: 17px;
}

.info__box .info__list .info span {
  font-weight: 600;
  color: #016dcb;
}

.info__box .buttons {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.info__box .buttons button {
  margin: 0 5px;
  height: 40px;
  width: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
  border-radius: 7px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buttons button.restart {
  color: var(--blue);
  background: var(--white);
}

.buttons button.exit {
  color: var(--blue);
  background: var(--white);
}

.buttons button.restart:hover,
.buttons button.exit:hover {
  color: var(--white);
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.quiz__box {
  color: #fff;
  width: 500px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.quiz__box header {
  position: relative;
  z-index: 99;
  height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px 7px 0 0;
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.2);
}

.quiz__box header .title {
  font-size: 20px;
  font-weight: 600;
}

.quiz__box header .timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 140px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 0 8px;
}

.quiz__box header .timer .time__text {
  font-weight: 400;
  font-size: 17px;
  user-select: none;
}

.quiz__box header .timer .timer__sec {
  background: var(--white);
  color: var(--blue);
  height: 30px;
  width: 45px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  user-select: none;
}

.quiz__box header .time__line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--white);
}

.quiz__box section {
  padding: 25px 30px 20px 30px;
}

.quiz__box section .quiz__text {
  font-size: 25px;
  font-weight: 600;
}

.quiz__box section .option__list {
  padding: 20px 0;
  display: block;
}

section .option__list .option {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 8px 15px;
  margin-bottom: 15px;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
}

section .option__list .option:hover {
  background: rgba(255, 255, 255, 0.2);
}

.quiz__box section .option__list .option:last-child {
  margin-bottom: 0;
}

.option__list .option .icon {
  font-size: 22px;
  line-height: 24px;
  pointer-events: none;
}

.option__list .option .icon.tick {
  color: #159947;
}

.option__list .option .icon.cross {
  color: #d62828;
}

.option__list .option.correct {
  color: #155724;
  border: 2px solid #c3e6;
  background: #d4edda;
}

.option__list .option.inCorrect {
  color: #721c24;
  border: 2px solid #f5c6cb;
  background: #f8d7da;
}

.option__list .option.disabled {
  pointer-events: none;
  user-select: none;
}

.quiz__box footer {
  height: 60px;
  width: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz__box footer .total__que span {
  display: flex;
  user-select: none;
}

footer .total__que span p {
  font-weight: 500;
  padding: 0 5px;
}

.total__que span p:first-child {
  padding-left: 0;
}

footer .next__btn {
  display: none;
  height: 40px;
  padding: 0 13px;
  font-size: 18px;
  font-weight: 500;
  border: none;
  outline: none;
  border-radius: 7px;
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue);
  cursor: pointer;
}

footer .next__btn:hover {
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--white);
}

.result_box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  padding: 25px 30px;
  width: 450px;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.result_box .icon {
  font-size: 100px;
  color: rgb(227, 227, 227);
  margin-bottom: 10px;
}

.result_box .complete_text {
  font-size: 20px;
  font-weight: 500;
}

.result_box .score_text span {
  display: flex;
  margin: 10px 0;
  font-size: 18px;
  font-weight: 500;
}

.result_box .score_text span p {
  padding: 0 4px;
  font-weight: 600;
}

.result_box .buttons {
  display: flex;
  margin: 20px 0;
}

.result_box .buttons button {
  margin: 0 10px;
  height: 45px;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 500;
  outline: none;
  border-radius: 5px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

@media only screen and (max-width: 500px) {
  .info__box {
    width: 400px;
  }

  .quiz__box {
    width: 400px;
  }

  .quiz__box header .time__line {
    max-width: 398px;
  }

  .result_box {
    width: 400px;
  }
}
