/*Importing google fonts*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700$display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: 0;
    box-sizing: border-box;

}
body{
    background-image: url('images/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    overflow-y: hidden;
}
.start_btn,
.info_Box,
.quiz_box,
.result_box{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 4px 8px 0 rgba(0,0,0,0.2)
                0px 6px 20px 0 rgba(0,0,0,0.19);
                transition: all ease 0.3s;

}
.info_Box.activeinfo,
.quiz_box.activeQuiz,
.result_box.activeresult{
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);

}
 
.start_btn button{
    font-size: 25px;
    outline: none;
    background-color: #fff;
    color: #0e0404;
    font-weight: 700;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
.start_text{
    color: darkgrey;
}
.start_text p{
    color: lawngreen;
    text-align: center;
}
.info_Box{
    background: #fff;
    width: 480px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}
.info_Box .info_title{
    width: 100%;
    height: 60px;
    font-size: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid lightgrey;
    font-weight: 500;
    padding:0 35px;
}
.info_Box .info_list{
    padding:15px 35px;

}
.info_Box .info_list .info{
    font-size: 17px;
    margin: 5px 0;
}
.info_Box .info_list .info span{
    color: #000000;
    font-weight: 900;
}
.info_Box .buttons{
    display: flex;
    height: 60px;
    align-items: center;
    border-top: 1px solid lightgrey;
    padding: 0 35px;
    justify-content: flex-end;

}
.info_Box .buttons button{
    margin: 0 5px;
    width: 100px;
    height: 40px;
    font-size: 16px;
    border: 1px solid #0e0404;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all ease 0.3s;
}
.buttons button.quit{
    color: #0e0404;

}
.buttons button.quit:hover{
    background: #0e0404;
    color: #fff;
}
.buttons button.restart{
    color: #fff;
    background-color: #0e0404;
}
.buttons button.restart:hover{
    background-color: #584b4b;
}
.quiz_box{
    background: #fff;
    width: 550px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}
.quiz_box header{
    position: relative;
    z-index: 99;
    height: 70px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    background-color: #fff;
    justify-content: space-between;
    box-shadow: 0 3px 5px 1px rgba(0,0,0,0.1);
    border-radius: 5px 5px 0 0;
}
.quiz_box header .title{
    font-weight: 700;
    font-size: 20px;
}
.quiz_box header .timer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 145px;
    height: 45px;
    background: #cce5ff;
    border: 1px solid #b8daff;
    border-radius: 5px;
    padding: 0 8px;
}
.quiz_box header .timer .time_text{
    font-size: 18x;
    font-weight: 400;
    user-select: none;
}
.quiz_box header .timer .time_sec{
    background: #343a40;
    color: #fff;
    width: 45px;
    height: 30px;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    line-height: 30px;
    border-radius: 5px;
    user-select: none;
    border: 1px solid #343a40;
}
.quiz_box header .time_line{
    bottom: 0px;
    position: absolute;
    width: 50%;
    left: 0px;
    background: #0e0404;
    height: 3px;
    width: 100%;
}
.quiz_box section{
    padding: 25px 30px 20px 30px;
    background: #fff;
}
.quiz_box section .que_text{
    font-size: 25px;
    font-weight: 600;
}
.quiz_box section .option_list{
    display: block;
    padding: 20px 0;
}
section .option_list .option{
    border: 1px solid #84c5fe;
    background: aliceblue;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    margin-bottom: 15px;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    transition: all ease 0.3s;
}
section .option_list .option:hover{
    color: #004085;
    border-color: #badaff;
    background: #cce5ff;

}
.option_list .option:last-child{
    margin-bottom: 0px;
}
.option_list .option .icon{
    border-radius: 50%;
    height: 26px;
    width: 26px;
    border: 2px solid transparent;
    line-height: 25px;
    text-align: center;
    pointer-events: none;

}
.option_list .option .icon.tick{
    border-color: #23903c;
    color: #23903c;
    background: #d4edda;
}
.option_list .option .icon.cross{
    background: #f8d7da;
    border-color: #a42834;
    color: #a4283a;
}
.option_list .option.correct{
    border-color: #23903c;
    color: #23903c;
    background: #d4edda;
}
.option_list .option.incorrect{
    background: #f8d7da;
    border-color: #a42834;
    color: #a4283a;
}
.option_list .option.disabled{
    pointer-events: none;
}
.quiz_box footer{
    display: flex;
    height: 60px;
    width: 100%;
    justify-content: space-between;
    padding: 0 30px;
    align-items: center;
}
.quiz_box footer .total_que span{
    display: flex;
    user-select: none;

}
footer .total_que span p{
    padding: 0 5px;
    font-weight: 600;
}
.total_que span p:first-child{
    padding-left: 0px;
}
footer .next_btn{
    font-size: 18px;
    font-weight: 500;
    height: 40px;
    padding: 0 13px;
    outline: none;
    color: #fff;
    background: #0e0404;
    display: none;
    border-radius: 5px;
    border: 1px solid #0e0404;
    cursor: pointer;
    transition: all ease 0.3s;
}
footer .next_btn:hover{
    background: #3a3636;
}
.result_box{
    background: #fff;
    padding: 25px 30px;
    width: 450px;
    display: flex;
    border-radius: 5px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}
.result_box .icon{
    font-size: 100px;
    color: #3f3535b4;
    margin-bottom: 10px;
}
.result_box .complete_text{
    font-size: 20px;
    font-weight: 600;
}
.result_box .score_text span{
    font-size: 18px;
    display: flex;
    margin: 10px 0;
    font-weight: 500;

}
.score_text span p{
    font-weight: 600;
    padding: 0 4px;
}
.result_box .buttons{
    display: flex;
    margin: 20px 0;
}
.result_box .buttons button{
    margin: 0 10px;
    padding: 0 20px;
    outline: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    height: 45px;
    border: 1px solid #0e0404;
    cursor: pointer;
    transition: all ease 0.3s;
}

@media (min-width:320px)  { 
  /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ 
  .info_Box,
  .quiz_box,
  .result_box {
    max-width: 100%;
    overflow: scroll;
    

  }
}
