@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&family=Roboto:wght@300;400&display=swap');

html{
  scroll-behavior: smooth;
}

body{
    margin: 0;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome 6.0+, Safari 3.1+, Edge & Opera 15+ */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* IE 10+ and Edge */
     user-select: none;           /* Non-prefixed version,*/ 
}

@media print
{    
    *
    {
        display: none !important;
    }
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

header a,
#mobile-menu a{
    font-family: system-ui, sans-serif;
}

.custom-box{
    max-width: 700px;
    background-color:#ffffff;
    margin: 7px auto;
    padding: 30px;
    border-radius: 10px;
    animation: fadeInRight 1s ease;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
}

@keyframes fadeInRight {
    0%{
        transform: translateX(40px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}

.custom-box::before,
.custom-box::after{
    content: '';
    clear: both;
    display: table;
}

.custom-box.hide{
    display: none;
}

.home-box h3{
    font-size: 18px;
    color: 	rgb(11, 218, 81);
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 25px;
}

.home-box p{
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    color: gray;
    line-height: 22px;
}

.home-box span{
    font-weight: 500;
}

.home-box .btn{
    margin-top: 20px;
    
}

.quiz-box .question-number,
.quiz-box .question-text,
.quiz-box .question-container,
.quiz-box .next-question-btn,
.quiz-box .answer-indicator{
     width: 100%;

}

.quiz-box .question-number{
    font-size: 18px;
    color: rgb(11, 218, 81); 
    font-weight: 500;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 10px;
    line-height: 25px;
}
.quiz-box .question-text{
    font-size: 18px;
    color:#24292D;
    line-height: 28px;
    font-weight: 500;
    padding: 20px 0;
    margin: 0;
}

.question-hindi{
    margin-bottom: 8px;
    color:#fc3a52;
}

.fade-question{
    animation:questionFade 1s ease;
}

@keyframes questionFade{
    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

.quiz-box .option-container .option{
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #374151;
    border:1px solid #e5e7eb;
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    text-transform: capitalize;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.quiz-box .option-container .option:hover{
    background: #f0fdf4;
    border-color: #4ade80;
}

.quiz-box .option-container .option.already-answerd{
    pointer-events: none;
}
@keyframes fadeIn{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

.quiz-box .option-container .option.correct::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: green;
    z-index: -1;
    animation: slideInLeft .5s ease forwards;
}

@keyframes slideInLeft{
    0%{
        transform: translateX(-100%);
    }
    100%{
        transform: translateX(0%);
    }
}

.quiz-box .option-container .option.wrong::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: red;
    z-index: -1;
    animation: slideInLeft .5s ease forwards;
}
.quiz-box .option-container .option.wrong{
    color: #ffffff;
}
.quiz-box .option-container .option.correct{
    color: #ffffff;
}

.quiz-box .btn{
    margin: 15px 0;
}

.quiz-box .answer-indicator{
    border-top: 1px solid #cccccc;
    text-align: center;
}

.quiz-box .answer-indicator div{
     height: 25px;
     width: 25px;
     display: inline-block;
     background-color: #cccccc;
     border-radius: 7%;
     margin-right: 5px;
     margin-top: 15px;
} 

.quiz-box .answer-indicator div.correct{
background-color: green;
background-image: url("../img/correct.png");
background-size: 50%;
background-repeat: no-repeat;
background-position: center;
}

.quiz-box .answer-indicator div.wrong{
    background-color: red;
    background-image: url("../img/wrong.png");
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.result-box{
    text-align: center;
}

.result-box.hide{
    display: none;
}

.result-box h1{
    font-size: 36px;
    line-height: 42px;
    color: rgb(11, 218, 81);
}

.result-box table{
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
.result-box table td{
border: 1px solid #cccccc;
padding: 8px 15px;
font-weight: 500;
color: gray;
width: 50%;
text-align: left;
font-size: 18px;
}

.result-box .btn{
    margin-right: 20px;
}

@media(max-width: 767px){
    .result-box .btn{
        margin-bottom: 15px;
    }
    body{
        padding: 15px;
    }
}