@import url('https://fonts.googleapis.com/css2?family=Cookies&family=Poppins&family=Roboto:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: #66c7d0;
    font-family: 'Poppins', sans-serif;
}

.start-quiz-btn{
    all: unset;
    padding: 15px;
    width: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: white;
    color: #66c7d0;
    text-align: center;
    cursor: pointer;
    font-size: 25px;
    white-space: nowrap;
    border-radius: 5px;
}

.container{
    height: 600px;
    width: 400px;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.top-bar{
    height: 60px;
    width: 400px;
    box-shadow: rgba(0,0,0,0.24) 0px 3px 8px;
    position: absolute;
    display: flex;
    align-items: center;
}

.question-counter{
    position: relative;
    left: 30px;
}

.timer{
    height: 35px;
    width: 80px;
    background: rgba(220, 220, 220, 0.7);
    border-radius: 3px;
    position: absolute;
    right: 20px;
}

.timer > span:nth-child(1){
    color: #696969;
    font-size: 23px;
    position: relative;
    top: 1px;
    left: 13px
}

.timer > span:nth-child(2){
    color: black;
    position: relative;
    top: 0px;
    left: 10px;
    padding: 3px 10px 3px 10px;
    border-radius: 3px;
    font-size: 20px;
}

.ques-text{
    height: 100px;
    width: 350px;
    color: #7b8295;
    position: relative;
    top: 120px;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.ques-text > span {
    font-size: 20px;
    color: black;
    margin-left: 5px;
}

.option-div > .option{
    position: relative;
    top: 5px;
    left: 50%;
    transform: translate(-50%,50%);
    height: 65px;
    width: 350px;
    border: 1px solid grey;
    border-radius: 10px;
    margin-top: 23px;
    cursor: pointer;
    color: grey;
    display: flex;
    align-items: center;
}

.option:hover{
    background: rgba(220, 220, 220, 0.2);
    color: #696969;
    border: 1.2px solid #696969;
}

.option > span{
    margin-left: 15px;
}

.option > .icon{
    height: 35px;
    width: 35px;
    color: white;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    right: -5px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.correct-icon{
    background-color: #6fbd67;
}

.wrong-icon{
    background-color: #d73739;
}

.option.correct{
    background-color: #e7f6d5;
    color: #689f38;
    border-color: #689f38;
}

.option.incorrect{
    background-color: #ffdde0;
    color: #d32f2f;
    border-color: #d32f2f;
}

.option.disabled{
    pointer-events: none;
}

.next-ques-btn{
    all: unset;
    padding: 10px;
    width: 330px;
    color: white;
    text-align: center;
    background: #66c7d0;
    border-radius: 5px;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%,-50%);
    cursor: pointer;
    font-size: 18px;
}

.next-ques-btn.click-disable{
    pointer-events: none;
}

.result-div{
    height: 300px;
    width: 400px;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 5px;
    display: none;
}

.result-div .fa-crown{
    color: #66c7d0;
    font-size: 120px;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translate(-50%,-50%);
}

.result-div span{
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 20px;
    white-space: nowrap;
}

.result-div .score{
    position: absolute;
    top: 205px;
    height: 30px;
    width: 100%;
    color: black;
}

.score > span{
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 17px;
}

.replay-quiz-btn{
    all: unset;
    position: absolute;
    bottom: -20px;
    padding: 5px;
    width: 100px;
    background: #66c7d0;
    white-space: nowrap;
    color: white;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translate(-50px, -50px);
    border: 2px solid #66c7d0;
}

.time-line{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #66c7d0;
}

::selection{
    color: white;
    background: #66c7d0;
} 

footer{
    bottom: 0;
    position: fixed;
    width: 100%;
}

.p-tag{
    margin: auto;
    width: 400px;
    text-align:center;
    color: white;
    padding: 2px;
}
