@import '@tailwindcss/postcss/base';
@import '@tailwindcss/postcss/components';
@import '@tailwindcss/postcss/utilities';
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");

* {
  box-sizing: border-box;
  font-family: "Red Hat Display", serif;
  margin: 0;
  padding: 0;
}

body {
  color: #000;
  background: #09001d;
  overflow: hidden;
  overflow-y: scroll;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 10%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  text-decoration: none;
  color: #2ab255;
  font-style: italic;
  font-size: 32px;
  font-weight: 700;
  filter: drop-shadow(0 0 5px #09001d);
}

.navBar a {
  font-size: 18px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  transition: 0.3s;
}

.navBar a:hover,
.navBar a.active {
  color: #2ab255;
}

.main {
  min-height: 100vh;
  background: linear-gradient(rgb(0, 0, 0, 0.4), rgb(0, 0, 0, 0.4)),
    url("../Images/clarity-test.svg");
  background-size: cover;
  background-position: center;
  pointer-events: auto;
  transition: 0.3s ease;
}

.main.active {
  filter: blur(15px);
  pointer-events: none;
}

.container {
  display: flex;
  height: 100vh;
  width: 200%;
}

.home {
  position: relative;
  left: -50%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-content {
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.home-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-shadow: 5px 5px 10px rgb(0, 0, 0, 0.9);
}

.home-content p {
  font-size: 16px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.home-content .start-btn {
  width: 190px;
  height: 55px;
  margin-top: 2rem;
  background: #2ab255;
  border: 2px solid #2ab255;
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 10px #2ab255;
  font-size: 18px;
  color: black;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s;
}

.home-content .start-btn:hover {
  background: white;
  box-shadow: none;
  border-color: white;
}

.popup-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 60%;
  background: #fff;
  border-radius: 6px;
  padding: 10px 25px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  padding: 4rem;
}

.popup-info.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.popup-info h2 {
  font-size: 50px;
  color: #2ab255;
}

.popup-info .info {
  display: inline-block;
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin: 4px 0;
}

.popup-info .btn-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #999;
  margin-top: 10px;
  padding: 15px 0 7px;
}

.popup-info .btn-group .info-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 130px;
  height: 45px;
  background: #2ab255;
  border: 2px solid #2ab255;
  outline: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  color: #09001d;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: 0.5s;
}

.popup-info .btn-group .info-btn:nth-child(1) {
  background: transparent;
  color: #2ab255;
}

.popup-info .btn-group .info-btn:nth-child(1):hover {
  background: #2ab255;
  color: #09001d;
}

.popup-info .btn-group .info-btn:nth-child(2):hover {
  background: #2ab255;
  border-color: #2ab255;
}

.popup-info .info {
  padding: 0.5rem;
  width: 100%;
  background-color: #00a63d;
  color: black;
  border: 2px solid #000;
}

.quiz-section {
  position: relative;
  left: -50%;
  width: 100%;
  background: #edfdf2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: 0.8s ease-in-out;
  transition-delay: 0.25s;
}

.quiz-section.active {
  left: 0;
}

#timer {
  background: #2ab255;
  border: 2px solid #2ab255;
  border-radius: 20px 5px;
  display: flex;
  position: absolute;
  right: 10px;
}

#timer span {
  font-size: 22px;
  display: grid;
  place-items: center;
  margin: 0 10px;
  color: #000;
}

#timer #time_sec {
  height: 44px;
  width: 50px;
  background: #000;
  color: #2ab255;
  border: 2px solid #2ab255;
  border-radius: 15px 7px;
  margin: 2px 0 0 27px;
}

.quiz-section .quiz-box {
  position: relative;
  width: 500px;
  background: transparent;
  border: 2px solid #2ab255;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  padding: 20px 30px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: 0.3s ease;
  transition-delay: 0s;
}

.quiz-section .quiz-box.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: 1s ease;
  transition-delay: 1s;
}

.quiz-box h1 {
  font-size: 32px;
  text-align: center;
  background: linear-gradient(45deg, transparent, #2ab255, transparent);
  border-radius: 6px;
}

.quiz-box .quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid #2ab255;
}

.quiz-header span {
  font-size: 18px;
  font-weight: 500;
}

.quiz-footer .header-score {
  color: rgb(255, 0, 0);
  border-radius: 3px;
  border: 2px solid red;
  width: 55%;
  padding: 3px;
}

.quiz-box .question-text {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
}

.option-list .option {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  font-size: 17px;
  margin: 15px 0;
  cursor: pointer;
  transition: 0.3s;
}

.option-list .option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.option-list .option.correct {
  background: #09001d;
  color: #00a63d;
  border-color: #00a63d;
}

.option-list .option.incorrect {
  background: #09001d;
  color: #a60045;
  border-color: #a60045;
}

.option-list .option.disabled {
  pointer-events: none;
}

.quiz-box .quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #2ab255;
  padding-top: 20px;
  margin-top: 25px;
}

.quiz-footer .question-total {
  font-size: 16px;
  font-weight: 600;
}

.quiz-footer .next-btn {
  width: 100px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 6px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  cursor: pointer;
  pointer-events: none;
  transition: 0.5s;
}

.quiz-footer .next-btn.active {
  pointer-events: auto;
  background: #2ab255;
  border-color: #2ab255;
  color: #000;
}

.quiz-footer .next-btn.active:hover {
  background: #2ab255;
  border-color: #2ab255;
}

.quiz-section .result-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 500px;
  background: transparent;
  border: solid 2px #2ab255;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.quiz-section .result-box.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.result-box h2 {
  font-size: 52px;
}

.result-box .percentage-container {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 40px;
}

.percentage-container .circular-progress {
  position: relative;
  width: 250px;
  height: 250px;
  background: conic-gradient(#2ab255 3.6deg, rgba(255, 255, 255, 0.1) 0deg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.percentage-container .circular-progress::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  background: #edfdf2;
  border-radius: 50%;
}

.circular-progress .progress-value {
  position: relative;
  font-size: 45px;
  font-weight: 600;
}

.percentage-container .score-text {
  font-size: 26px;
  font-weight: 600;
  margin-top: 20px;
}

.result-box .buttons {
  display: flex;
}

.buttons button {
  width: 130px;
  height: 47px;
  background: #2ab255;
  border: 2px solid #2ab255;
  outline: none;
  border-radius: 6px;
  font-size: 16px;
  color: #000;
  font-weight: 600;
  margin: 0 20px 20px;
  cursor: pointer;
  transition: 0.5s;
}

.buttons button:nth-child(2):hover {
  background: #2ab255;
  border-color: #2ab255;
}

.buttons button:nth-child(2) {
  background: transparent;
  color: #2ab255;
}

.buttons button:nth-child(2):hover {
  background: #2ab255;
  color: #000;
}

.quiz-section {
  user-select: none;
  /* Disable text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.option-list .option.selected {
  color: #00a63d;
  border-color: #00a63d;
  transition: 0.2s;
  border-radius: 3px;
}

.option-list .option.selected:hover {
  color: #00a63d;
  border-color: #00a63d;
  transition: 0.2s;
  border-radius: 3px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  .header {
    padding: 10px 5%;
  }

  .logo {
    font-size: 28px;
  }

  .navBar a {
    font-size: 16px;
    margin-left: 20px;
  }

  .home-content h1 {
    font-size: 36px;
  }

  .home-content p {
    font-size: 14px;
  }

  .popup-info {
    width: 90%;
    padding: 2rem;
  }

  .popup-info h2 {
    font-size: 36px;
  }

  .popup-info .info {
    font-size: 14px;
  }

  .quiz-box {
    width: 90%;
    padding: 15px;
  }

  .quiz-box h1 {
    font-size: 28px;
  }

  .quiz-box .question-text {
    font-size: 20px;
  }

  .option-list .option {
    font-size: 16px;
  }

  .result-box {
    width: 90%;
  }

  .result-box h2 {
    font-size: 40px;
  }

  .percentage-container .circular-progress {
    width: 200px;
    height: 200px;
  }

  .circular-progress .progress-value {
    font-size: 36px;
  }

  .percentage-container .score-text {
    font-size: 22px;
  }
}

@media screen and (max-width: 480px) {
  .header {
    padding: 10px 3%;
  }

  .logo {
    font-size: 24px;
  }

  .navBar a {
    font-size: 14px;
    margin-left: 15px;
  }

  .home-content h1 {
    font-size: 28px;
  }

  .home-content p {
    font-size: 12px;
  }

  .popup-info {
    width: 95%;
    padding: 1.5rem;
  }

  .popup-info h2 {
    font-size: 28px;
  }

  .popup-info .info {
    font-size: 12px;
  }

  .quiz-box {
    width: 95%;
    padding: 10px;
  }

  .quiz-box h1 {
    font-size: 24px;
  }

  .quiz-box .question-text {
    font-size: 18px;
  }

  .option-list .option {
    font-size: 14px;
  }

  .result-box {
    width: 95%;
  }

  .result-box h2 {
    font-size: 32px;
  }

  .percentage-container .circular-progress {
    width: 150px;
    height: 150px;
  }

  .circular-progress .progress-value {
    font-size: 28px;
  }

  .percentage-container .score-text {
    font-size: 18px;
  }
}



.form-wrapper {

  width: 500px;
  margin-top: 30px
}

.form-wrapper form {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.form-wrapper input {
  width: 100%;
  padding: 10px;
  outline: none;
  border-radius: 5px;
  border: 2px solid #fff
}

.form-wrapper input:focus {
  border: 2px solid #2ab255;
}

.form-wrapper button {
  margin: 20px 0;
  padding: 10px 30px;
  border: 2px solid #2ab255;
  color: #2ab255;
  border-radius: 5px;
  cursor: pointer;
}

.form-wrapper button:hover {
  opacity: 0.8;
}