@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    justify-content: center;
            align-items: center;

}
body{
    height: 100vh;
    width: 100%;
    background: linear-gradient(165deg, #eeb264, #9c5e0e);
    background-repeat: no-repeat;
}
::selection{
    color: #FBFBFF;
    background: #762c0e;
}

.info_box,
.quiz_box,
.result_box{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 
                0 6px 20px 0 rgba(0, 0, 0, 0.19);
}



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

.info_box{
    width: 540px;
    background: #FBFBFF;
    border-radius: 5px;
    transform: translate(-50%, -50%) scale(0.9);
    /* opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease; */
    transition: all 0.3s ease;
}
.info_box .info-title{
    height: 60px;
    width: 100%;
    border-bottom: 1px solid lightgrey;
    display: flex;
    align-items: center;
    color:#762c0e;
    padding: 0 30px;
    border-radius: 5px 5px 0 0;
    font-size: 20px;
    font-weight: 600;
}
.info_box .info-list{
    padding: 15px 30px;
}
.info_box .info-list .info{
    margin: 5px 0;
    font-size: 17px;
    color:#762c0e;
}
.info_box .info-list .info span{
    font-weight: 600;
    color: #0c0505;
}
.info_box .buttons{
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    border-top: 1px solid lightgrey;
}
.info_box .buttons button{
    margin: 0 5px;
    height: 40px;
    width: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 5px;
    border: 1px solid #762c0e;
    transition: all 0.3s ease;
}

.info_box .buttons button:hover{
    background: #762c0e;
    color: #FBFBFF;
}

.quiz_box{
    width: 550px;
    background: #FBFBFF;
    border-radius: 5px;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.quiz_box header{
    position: relative;
    z-index: 2;
    height: 70px;
    padding: 0 30px;
    background: #FBFBFF;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 3px 5px 1px rgba(0,0,0,0.1);
}
.quiz_box header .title{
    font-size: 20px;
    color:#762c0e;
    font-weight: 600;
}
.quiz_box header .timer{
    color: #762c0e;
    background: #f7bba4;
    border: 1px solid #f7bba4;
    height: 45px;
    padding: 0 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 145px;
}
.quiz_box header .timer .time_left_txt{
    font-weight: 400;
    font-size: 17px;
    user-select: none;
}
.quiz_box header .timer .timer_sec{
    font-size: 18px;
    font-weight: 500;
    height: 30px;
    width: 45px;
    color: #FBFBFF;
    border-radius: 5px;
    line-height: 30px;
    text-align: center;
    background: #762c0e;
    border: 1px solid #762c0e;
    user-select: none;
}
.quiz_box header .time_line{
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 3px;
    background: #3772FF;
}
section{
    padding: 25px 30px 20px 30px;
    background: #FBFBFF;
}
section .que_text{
    font-size: 20px;
    font-weight: 600;
    color:#762c0e;
}
section .option_list{
    padding: 20px 0px;
    display: block;   
}
section .option_list .option{
    background: #FBFBFF;
    border: 1px solid #a2b4c3;
    border-radius: 5px;
    color:#762c0e;
    padding: 8px 15px;
    font-size: 17px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
section .option_list .option:last-child{
    margin-bottom: 0px;
}
section .option_list .option:hover{
    color: #762c0e;
    background: #cce5ff;
    border: 1px solid #b8daff;
}
section .option_list .option.correct{
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}
section .option_list .option.incorrect{
    color: #901421;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}
section .option_list .option.disabled{
    pointer-events: none;
}
section .option_list .option .icon{
    height: 26px;
    width: 26px;
    border: 2px solid transparent;
    border-radius: 50%;
    text-align: center;
    font-size: 13px;
    pointer-events: none;
    transition: all 0.3s ease;
    line-height: 24px;
}
.option_list .option .icon.tick{
    color: #23903c;
    border-color: #23903c;
    background: #d4edda;
}
.option_list .option .icon.cross{
    color: #901421;
    background: #f8d7da;
    border-color: #901421;
}


footer{
    height: 60px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid lightgrey;
}
footer .total_que span{
    display: flex;
    user-select: none;
    
}
footer .total_que span p{
    font-weight: 500;
    padding: 0 5px;
    color: #762c0e;
}
footer .total_que span p:first-child{
    padding-left: 0px;
    color: #762c0e;
}
footer button{
    height: 40px;
    padding: 0 13px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    outline: none;
    color: #FBFBFF;
    border-radius: 5px;
    background: #762c0e;
    border: 1px solid #762c0e;
    line-height: 10px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.3s ease;
}
footer button:hover{
    background: #762c0e;
    color: #FBFBFF;
}
footer button.show{
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.result_box{
    background: #FBFBFF;
    border-radius: 5px;
    display: flex;
    padding: 25px 30px;
    width: 450px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.result_box .icon{
    font-size: 100px;
    color: #762c0e;
    margin-bottom: 10px;
}
.result_box .complete_text{
    font-size: 20px;
    font-weight: 500;
    color: #762c0e;
}
.result_box .score_text span{
    display: flex;
    margin: 10px 0;
    font-size: 18px;
    font-weight: 500;
    color: #762c0e;
}
.result_box .score_text span p{
    padding: 0 4px;
    font-weight: 600;
    color: #762c0e;
}
.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;
    cursor: pointer;
    
    outline: none;
    border-radius: 5px;
    border: 1px solid #762c0e;
    transition: all 0.3s ease;
}
.buttons button.restart{
    color: #762c0e;
    background: #FBFBFF;
}
.buttons button.restart:hover{
    background: #762c0e;
}
.buttons button.report{
    color: #762c0e;
    background: #FBFBFF;
}
.buttons button.report:hover{
    background: #762c0e;
}
.buttons button.quit{
    color: #762c0e;
    background: #FBFBFF;
    font-size: 200;
}
.buttons button.quit:hover{
    color: #FBFBFF;
    background: #762c0e;
}

/* Styling for the popup */
.popup {
    display: none;
    position: fixed;
    width: 550px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 0;
    overflow: scroll;

}

.popup h2{
    color: #762c0e;
   padding-left: 100px;
    }

.popup button{
    margin: 0 10px;
    height: 45px;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    border-radius: 5px;
    border: 1px solid #762c0e;
    transition: all 0.3s ease;
    color: #762c0e;
    background: #FBFBFF;
}
.popup button:hover{
    color: #FBFBFF;
    background: #762c0e;
}
