*{
    padding: 0;
    margin: 0;
    font-family:Scheherazade New, sans-serif;
}

Body{

    background-color: #f1f1f1;
}
.MyQuizApp{
    width:320px;
    height: 580px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #fff;
    box-shadow: rgb(0 0 0/10%)0px 10px 50px;
    border-radius: 48px;
    transform: translate(-50%,-50%);
}

.img img{
    width: 100%;
    height: 100%;
}

.text{
    width: 90%;
    margin: auto;
}

.MyBtn{
    margin-left: 190px !important;
    margin-top: 51px;
    width: 60%;
}
.MyBtn button{
    font-size: 20px;
    font-weight: 600;
    background-color: tomato;
    border: none;
    outline: none;
    border-radius:57px 0 51px 0 ;
    padding: 6px 25px;
    color: white;
    cursor: pointer;
    transition:0.2s ease-in-out;
}

.MyBtn button:hover{
    background-color: rgb(16, 121, 233) ;
}



.RulesBox{
    width:320px;
    height: 580px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #fff;
    box-shadow: rgb(0 0 0/10%)0px 10px 50px;
    border-radius: 48px;
    transform: translate(-50%,-50%);
    opacity:0;
    pointer-events: none;
}

.RulesBox.activeInfo{
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.RulesList{
    width: 80%;
    margin: auto;
}
.RulesTitle{
   text-align: center;
   font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid lightgray;
    padding: 5px;
}

ol li{
    font-size: 17px;
    font-weight: 500;
    padding:10px 0;
}
.Buttons button{
    font-size: 20px;
    font-weight: 600;
    background-color: tomato;
    border: none;
    outline: none;
    padding: 6px 25px;
    color: white;
    cursor: pointer;
    transition:0.2s ease-in-out;
    margin-top:24px;
}
.Continue:hover{
    background-color: rgb(16, 121, 233) ;
}
.Exit:hover{
    background-color: red ;
}
.Exit{
    border-radius: 0 48px 0 48px ;
}
.Continue{
    border-radius: 48px 0 48px 0 ;
    margin-left: 69px;
}

.Questions.activeQuiz{
    opacity: 1;
    z-index: 5;
    pointer-events: auto;

}
.Questions{
    width:320px;
    height: 580px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #fff;
    box-shadow: rgb(0 0 0/10%)0px 10px 50px;
    border-radius: 48px;
    transform: translate(-50%,-50%);
    opacity: 0;
    pointer-events: none;
}
.QuestionHeader{
    position:relative;
    z-index: 2;
    height: 70px;
    border-radius: 45px;
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
}
.QuestionHeader .title{
    font-size: 15px;
    font-weight: 600;
}
.TimeCount{
    color:#004085;
    background: #cce5ff;
    border: 1px solid #b8daff;
    height: 25px;
    border-radius:5px;
    display:flex;
    align-items: center;
    justify-content: space-between;
    width: 120px;
}

.Seconds{
    font-size: 18px;
    font-weight: 500;
    height:26px;
    width:45px;
    text-align: center;
    line-height: 26px;
    border-radius: 5px;
    color: #fff;
    background: black;
    border: 1px solid black;
    user-select: none;
}

.time_lines{
    position:absolute;
    bottom: 0px;
    left: 0px;
    height:3px;
    background: #007bff;
}

.section{
padding: 25px 30px 20px 30px;
}

.text1{
    font-size: 25px;
    font-weight: 600;
}
.MyOptions{
    padding: 20px 0px;
    display: block;
}

.option{
    background: aliceblue;
    border: 1px solid #84c5fe;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 17px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;

}
.option:hover{
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
}

.option.correct{
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}
.option.incorrect{
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

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

footer{
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid lightgray;
}

.total_que{
    padding: 0 0 10px 30px;
}
.nextBtn{
    font-size: 20px;
    font-weight: 600;
    background-color: tomato;
    border: none;
    outline: none;
    border-radius:57px 0 51px 0 ;
    padding: 6px 25px;
    color: white;
    cursor: pointer;
    transition:0.2s ease-in-out;
    margin-top: 13px;
    display: none;
}
.nextBtn:hover{
    background-color: rgb(16, 121, 233) ;
}

.Questions .QuestionHeader .time_lines{
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 3px;
    width: 50%;
    background: #007bff;
}


.resultBox{
    width:320px;
    height: 580px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #fff;
    box-shadow: rgb(0 0 0/10%)0px 10px 50px;
    border-radius: 48px;
    transform: translate(-50%,-50%)scale(0.9);
    align-items: center;
    display: flex;
    opacity: 0;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}
.resultBox.activeResult{
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
    transform: translate(-50%,-50%)scale(1);
}

.resultBox .ResultImg img{
    width: 100%;
    height: 170px;
    margin-bottom: 100px;
}

.complete_text{
    font-size: 20px;
    font-weight: 500;
}
.score_text span{
    font-size: 18px;
    font-weight: 400;
    margin: 14px 0;
    display: flex;
}
.score_text span p{
    padding:0 4px;
    font-weight: 600;
}
.resultBox .buttons{
    display: flex;
    margin: 20px 0;
}
.resultBox .buttons button{
    font-size: 18px;
    font-weight: 600;
    background-color: tomato;
    border: none;
    outline: none;
    padding: 0 20px;
    color: white;
    transition:0.2s ease-in-out;
    margin: 0 10px;
    border-radius: 48px;
    cursor: pointer;
}
.buttons .restart:hover{
    background-color: rgb(16, 121, 233) ;
}
.buttons .quit:hover{
    background-color: red;
}