html {
  scroll-behavior: smooth;
}

main {
  width: 100%;
  height: auto;
}
button {
  display: block;
  width: 130px;
  height: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  background: #8739f9;
  border: none;
  outline: none;
  color: #ffff;
  border-radius: 0.5rem;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  cursor: pointer;
}
.preloader {
  width: 100%;
  height: 100vh;
  top: 0;
  position: absolute;
  background: #fff;
  display: grid;
  place-items: center;
}
.contLogo {
  width: 120px;
  height: 120px;
  z-index: 1;
}
.contLogo > img {
  width: 100%;
  height: 100%;
}

#questionList {
  display: none;
}
.question-box {
  width: 90%;
  height: auto;
  margin: 0 auto;
  margin-top: 1rem;
  background: #8739f9;
  padding: 1rem;
  border-radius: 0.2rem;
  color: #ffffffe6;
}

.question {
  font-size: 0.8rem;
  text-align: left;
}
.options {
  width: 100%;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  padding: 0.3rem;
  padding-top: 1rem;
}
.radio-button {
  width: 20px;
  transform: scale(1);
}

.checkAnswer {
  width: 100%;
  margin-top: 2rem;
  display: grid;
  place-items: center;
}
.showQuizResult {
  width: 95%;
  height: 240px;
  margin: 0 auto;
  display: none;
  grid-template-rows: 50px 1fr;
}

.result {
  text-align: center;
  padding-top: 0.5rem;
}
.resultStats {
  display: grid;
  grid-template-rows: 130px 1fr;
}

.showTotalScore {
  margin-top: 1rem;
  padding: 0.5rem;
  text-align: center;
  border: 2px dashed #8739f9;
}
.showTotalScore > h3 {
  padding: 0.5rem;
}

.stats {
  width: 90%;
  margin: 0 auto;
  padding-left: 0.2rem;
  display: flex;
  gap: 1rem;
}
.Box {
  width: 20px;
  height: 20px;
  background: red;
  margin-top: 1rem;
}
.correctBox {
  background: #51cf66;
}
.IncorrectBox {
  background: red;
}
.UnansweredBox {
  background: #8739f9;
}
.statsBox {
  width: 70%;
  padding-top: 1rem;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
}
.retake {
  width: 100%;
  display: none;
  place-items: center;
  padding-top: 5rem;
}

.quizDetails {
  width: 90%;
  margin: 0 auto;
  color: #8739f9;
  text-align: center;
  font-size: 0.6rem;
}
#btnBox {
  display: none;
}

.quizDetails {
  display: grid;
  grid-template-rows: 50px 1fr;
}
.instructions {
  text-align: left;
  font-size: 1rem;
  color: #535252;
}
.instructions > p {
  color: #8739f9;
}

/* Desktop Resposniveness */
@media only screen and (min-width: 1000px) {
  .quizDetails {
    width: 40%;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    top: 60%;
    left: 0;
    right: 10%;
  }
  #root {
    width: 60%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 5rem;
  }
  .quizDetails {
    font-size: 1rem;
  }
  #preloader {
    width: 100%;
    position: relative;
    background: #fff;
    display: grid;
    place-items: center;
  }

  .showTotalScore {
    width: 50%;
    margin: 0 auto;
    margin-top: 2rem;
  }

  .showStats {
    width: 50%;
    margin: 0 auto;
  }
  .quizDetails {
    display: grid;
    grid-template-rows: 100px 1fr;
  }
  .instructions {
    text-align: left;
    font-size: 1.2rem;
    color: #535252;
  }

  .connect {
    width: 25%;
    margin: 0 auto;
    padding: 0;
  }
}
