@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    color: #fff;
    background: #09001d;
    overflow: hidden;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    background: seagreen;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

}
.logo{
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    filter: drop-shadow(0 0 5px #09001d);

}
.navbar a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 25px;
    transition: .3s;
}
.navbar a:hover{
    color: black;
}
.navbar a.hom{
    color: black;
    transition: .3s;
}
.navbar a.hom:hover{
    color: #fff;
}
.main {
    min-height: 100vh;
    background: url('img/beautiful-puzzle-background.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    transition: .5s;
    pointer-events: auto;

}
.main.active{
    filter:blur(5px);
    pointer-events: none;
}
.home{
    position: relative;
    left: -50%;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 80vh

}
.home-content {
    max-width: 600px;

}

.home-content h1{
    font-size: 60px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 0, 0, .3);
    margin-bottom: 10px;
}
.btnh{
    width: 190px;
    height: 55px;
    background-color: seagreen;
    border: 2px solid #fff;
    outline: none;
    border-radius: 25px;
    box-shadow: 0 0 10px seagreen;
    margin-top: 25px;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 600;
    transition: .5s;
    
}
.btnh:hover{
    background-color:#FB3393;
    cursor: pointer;
    outline: none;
    border: 2px solid black;


}
.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(100%, -75%);
    background: seagreen;
    border-radius: 10px;
    padding: 25px;
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
}
.popup.active {
    transform: translate(0%, -75%);
    opacity: 1;
    pointer-events: auto;
}
.popup h2{
    font-size: 50px;
    color: #fff;
}
.popup .info{
    display: inline-block;
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    margin: 4px 0;

}
.popup .btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #FB3393;
    margin-top: 10px;
    padding: 10px 0 7px;
}
.popup .btn-group .info-btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 45px;
    background-color: #FB3393;
    border: 2px solid #fff;
    outline: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    color:#fff;
    font-weight: 400;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: .5s;

}
.popup .btn-group .info-btn:nth-child(1){
    background: #DEDAEB;
    color: #FB3393;
}
.popup .btn-group .info-btn:nth-child(1):hover{
    background: #FB3393;
    color: #fff;
}
.popup .btn-group .info-btn:nth-child(2):hover{
    background: #a42060;
    color: #fff;
}
.container {
    width:250%;
    display: flex;
    height: 100vh;
}
.quiz-section {
    position: relative;
    left: -50%;
    width: 100%;
    display: flex;
    background: seagreen;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: .8s ease-in-out;
    transition-delay: .25s;

    
}
.quiz-section.active {
    left: 0;

}
.quiz-section .quiz-container{
    position: relative;
    width: 500px;
    background: transparent;
    border: 3px solid #09001d;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    opacity: 0;
    pointer-events: none;
    transform: scale(.6);
    transition: .3s ease;
    transition-delay: 0s;

}
.quiz-section .quiz-container.active{
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    transition: 1s ease;
    transition-delay: 1s;

}

.quiz-container .quiz-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #020035;
    margin-bottom: 30px;
}
.quiz-header span {
    font-size: 18px;
    font-weight: 500;
}
.quiz-header .header-score {
    background: linear-gradient(45deg, transparent,#020035,transparent);
    border-radius: 25px;
    padding: 15px;
}
.quiz-container .question-text {
    font-size: 24px;
    font-weight: 400px;
}
.options .option{
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    font-size: 17px;
    margin: 15px 0;
    cursor: pointer;
    transition: .3s;

}
.options .option:hover{
    background: rgba(255, 255, 255, .2);
    background-color: rgba(255, 255, 255, .2);
}
.options .option.correct{
    background: #5c59b4;
    color: #020035;
    border-color: #020035;
}
.options .option.incorrect{
    background: #b44747;
    color: #640202;
    border-color: #640202;
}.options .option.disabled{
    pointer-events: none;
}

.quiz-container .quiz-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: solid #020035;
    padding-top: 20px;
    margin-top: 20px;
}
.quiz-footer .question-total{
    font-size: 16px;
    font-weight: 600;

}
.quiz-footer .next-btn{
    width:100px;
    height: 45px;
    background: rgba(255, 255, 255, .2);
    border: 2px solid rgba(255, 255, 255, .2);
    outline: none;
    border-radius: 10px;
    font-size: 16px;
    color:rgba(255, 255, 255, .5);
    font-weight: 600;
    pointer-events: none;

}
.quiz-footer .next-btn.active{
    pointer-events: auto;
    background: #020035;
    border-color: #020035;
    color: #fff;
    transition: .5s;
   
}
.quiz-footer .next-btn.active:hover{
    pointer-events: auto;
    background-color: #5c59b4;
    border-color: #5c59b4;
    color: #fff;
}
.quiz-container .next-btn:hover{
    background: #020035;
    border-color: #020035;
}
.quiz-section .result-box{
    position: absolute;
    top: 50%;
    transform: translate(100%,-50%) scale(.6);
    width: 500px;
    background: transparent;
    border: 2px solid #020035;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;

}
.quiz-section .result-box.active{
    opacity: 1;
    pointer-events: auto;
    transform: translate(0%,-50%) scale(1);
}
.result-box h2{
    font-size: 52px;

}
.result-box .percentage-container{
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 40px;


}
.percentage-container .circular-progress{
    position: relative;
    width: 250px;
    height: 250px;
    background: conic-gradient(#020035 3.6deg, rgba(255,255,255,.1) 0deg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;


}
.percentage-container .circular-progress::before{
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    background: seagreen;
    border-radius: 50%;

}

.percentage-container .progress-value{
    position: relative;
    font-size: 45px;
    font-weight: 600;
}
.percentage-container .score-text{
    font-size: 26px;
    font-weight: 600;
    margin-top: 20px;

}
.result-box .buttons{
    display: flex;
}
.buttons button{
    width: 130px;
    height: 47px;
    background: #020035;
    border: 2px solid #020035;
    outline: none;
    border-radius: 10px;
    font-size: 16px;
    color: #fff;
    margin: 0 20px 20px;
    cursor: pointer;
    transition: .5s;
}

.buttons button:nth-child(2){
    background: transparent;
    color: #020035;
}
.buttons button:nth-child(2):hover{
    background: #020035;
    color: #fff;
}
.buttons button:nth-child(1):hover{
    background: transparent;
    color: #020035;
}
@media screen and (max-width: 768px) {
    /* General settings */
    body {
        padding: 0;
        margin: 0;
        font-family: 'Arial', sans-serif;
    }

    /* Header */
    .header {
        padding: 15px 5%;
        text-align: center;
    }

    .logo {
        font-size: 22px;
        max-width: 100%;
        text-align: center;
    }

    /* Navbar */
    .navbar {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .navbar a {
        font-size: 16px;
        margin: 0;
    }

    /* Home Section */
    .home {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }

    .home-content h1 {
        font-size: 32px;
        text-align: center;
    }

    /* Buttons */
    .btnh {
        width: 90%;
        max-width: 200px;
        height: 45px;
        font-size: 14px;
        margin: 15px auto;
        display: block;
    }

    /* Popup */
    .popup {
        padding-top: 15px;
        width: 90%;
        left: 5%;
        transform: translate(0%, -50%);
    }

    /* Quiz Section */
    .quiz-section .quiz-container {
        width: 60%;
        padding: 15px;
        margin-right:  100px;
    }

    .quiz-container .question-text {
        font-size: 16px;
    }

    .options .option {
        font-size: 14px;
        padding: 7px;
    }

    .quiz-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .quiz-footer .next-btn {
        width: 90%;
        max-width: 250px;
        padding: 10px;
    }

    .quiz-section .result-box {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }

    .result-box h2 {
        font-size: 30px;
        text-align: center;
    }

    /* Circular progress */
    .percentage-container .circular-progress {
        width: 160px;
        height: 160px;
    }

    .percentage-container .circular-progress::before {
        width: 130px;
        height: 130px;
    }
    
    .quiz-container, .result-box, .popup {
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}
