*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
:root{
    --primary-color:#164863 ;
    --background-color:#9BBEC8 ;
    --secondary-color: #427D9D;
    --tertiary-color:#9BBEC8 ;
    --quaternary-color:#DDF2FD ;
}
body{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-color);
}

.container{
    background-color: var(--primary-color);
    width: 500px;
    height: 500px;
    justify-content: center;
    /* align-items: center; */
    text-align: center;
    padding-block: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    color: var(--quaternary-color);
    padding-inline:1rem;
}

.start-quiz{
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
}
.start-quiz.active{
    display: flex;
}

.fill-quiz-info{
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.fill-quiz-info label{
    font-weight: 500;
    text-align: start;
}

.fill-quiz-info select{
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.fill-quiz-info.active{
    display: flex;
}

.btn{
   padding: 0.5rem 1rem;
   font-size: 1.2rem;
   font-weight: 500;
    border-radius: 5px;
    border: none;
    background-color: var(--secondary-color);
    color: var(--quaternary-color);
    cursor: pointer;
    width: 100%; 
    transition: all 0.3s ease-in-out;
    
}

.btn:hover{
    background-color: #2d5a72;
}

.quiz-questions{
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    
}
.quiz-questions.active{
    display: flex;
}

.timer {
    width: 100%;
    height: 40px;
    border: 3px solid #3f4868;
    border-radius: 30px;
    padding-left: 10px;
    overflow: hidden;
  }

.progress-bar{
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    margin-bottom: 10px;
}

.progress-bar .progress{
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #164863, #427D9D);
    border-radius: 10px;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
}

.progress-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.current-question{
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 15px;
}

.current-question-number{
    font-size: 2rem;
    font-weight: 500;
    color: var(--background-color);
}

.answer-wrapper{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 2rem;
}

.answer{
    width: 100%;
    border: 3px solid var(--tertiary-color);
    border-radius: 10px;
    text-align: start;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: space-between;
}

.answer .checkbox{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--tertiary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.answer .checkbox i{
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.answer.selected .checkbox i{
    opacity: 1;
}


.submitBtn{
    display: none;
}
.nextBtn{
    display: none;
} 

.submitBtn.active{
    display: flex;
    align-items: center;
    justify-content: center;
}
.nextBtn.active{
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer.correct{
    border-color: #0cef2a;
}

.answer.incorrect{
    border-color: #fc3939;
}
.btn:disabled {
    background: #737373;
    opacity: 0.5;
    cursor: not-allowed;
  }

.end-quiz{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    gap: 10px;
}

.end-quiz.active{
    display: flex;
}

.end-screen .score {
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 80px;
    text-align: center;
  }
  .score .score-text {
    color: var(--tertiary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 120px;
  }
  .final-score{
    font-size: 2rem;
  }
  .total-score{
    font-size: 1.5rem;
  }
  @media (max-width: 468px) {
    .container {
      min-height: 100vh;
      max-width: 100%;
      border-radius: 0;
    }
  }

