*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}

body{
    background-color: #f2f2f2;
    font-family: Arial, sans-serif;
}

header{
    background-color: rgb(15, 31, 48);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

main{
    margin: 10px 20px 15px 20px;

}

/* #quiz-container{
    padding: 10px;
    border-radius: 5px;
    height: 78vh;
    margin: 0 auto;
} */

#quiz-container{
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    height: 78vh;
    border-radius: 5px;
}

#number{
    height: 6vh;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#progress-container{
    width: 100%;
    height: 10px;
    background-color: #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0 25px 0;
}

#progress-bar{
    width: 10%;
    height: 100%;
    background-color: #2563EB;
    border-radius: 10px;
    transition: width 0.3s ease;
}

#question{
    height: 14.5vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#question-text{
    font-size: 3rem;
    color: black;
    font-weight: bold;
}

#options-container{
    height: 38vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: 10px;
    margin-top: 10px;
}

.option{
    padding: 10px;
    border-radius: 5px;
    height: 6vh;
    font-size: 25px;
    text-align: left;
    border: none;
}

.option:hover{
    background-color: #e0e0e0;
    cursor: pointer;
}

.buttons{
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap:3rem;
    margin-top: 5px;
}

#prev-button, #next-button, #submit-button, #back-result-button, #restart-button, #review-button{
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 20px;
    background-color: #0f1f30;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

#review-button:hover, #restart-button:hover{
    transform: translateY(-2px);
}

#submit-button:hover{
    transform: scale(1.05);
} 

#submit-button{
    animation: popIn 0.25s ease;
    background-color: #38210a;
    display: none;
}

@keyframes popIn{
    0%{
        transform: scale(0.9);
        opacity: 0;
    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}

 #back-result-button{
    display: none;
}

#prev-button:disabled, #next-button:disabled{
    opacity: 0.8;
    cursor: not-allowed ;
}

#review-button{
    background-color: #311561;
}

#restart-button{
    background-color: #7d0101;
}

.result{
    margin: 40px;
}

#result-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 30px;
}

#text{
    font-size: 5.5rem;
    font-weight: bold;
    color: rgb(37, 151, 73);
}

#result-container p{
    margin-top: 5px;
    font-size: 2.5rem;
}

#score-display{
    height: 6rem;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5.5rem;
    gap: 2rem;
    font-weight: 549;
}

#stats{
    display:flex;
    justify-content:center;
    gap:2.5rem;
    margin: 1rem 0 1rem;
    flex-wrap:wrap;
}

.stat{
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.3rem;
}

.icon{
    display: flex;
    align-items: center;
    line-height: 1;
}

.count{
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.correct{
    color: #16A34A;   
}

.incorrect{
    color: #DC2626;   
}

.unattempted{
    color: #6B7280;  
}

/*mobile responsive*/
@media (max-width: 768px){
    #question-text{
        font-size: clamp(1.9rem, 5vw, 2.5rem);
    }
}