/* ==========================
   GOOGLE FONT
========================== */

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


/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}


/* ==========================
   BODY
========================== */

body{

    background:linear-gradient(135deg,#4facfe,#00f2fe);

    min-height:100vh;

    display:flex;

    flex-direction:column;

}


/* ==========================
   HEADER
========================== */

header{

    background:#ffffff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 40px;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

}

.logo h1{

    color:#0077ff;

    font-size:2rem;

}

nav button{

    padding:10px 15px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    background:#0077ff;

    color:white;

    font-size:18px;

    transition:.3s;

}

nav button:hover{

    background:#005ed6;

}


/* ==========================
   MAIN
========================== */

main{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

}


/* ==========================
   SCREENS
========================== */

section{

    width:100%;

    max-width:900px;

    background:white;

    border-radius:20px;

    padding:40px;

    box-shadow:0 20px 40px rgba(0,0,0,.2);

}


/* ==========================
   HOME SCREEN
========================== */

#homeScreen{

    text-align:center;

}

#homeScreen h2{

    font-size:2.2rem;

    margin-bottom:10px;

}

#homeScreen p{

    color:#555;

    margin-bottom:35px;

}


/* ==========================
   CATEGORY GRID
========================== */

.categoryContainer{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

}


/* ==========================
   CATEGORY BUTTONS
========================== */

.categoryBtn{

    padding:25px;

    font-size:20px;

    border:none;

    border-radius:15px;

    background:#0077ff;

    color:white;

    cursor:pointer;

    transition:.3s;

    box-shadow:0 10px 20px rgba(0,0,0,.15);

}

.categoryBtn:hover{

    transform:translateY(-8px);

    background:#005ed6;

}


/* ==========================
   QUIZ SCREEN
========================== */

.quizHeader{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    margin-bottom:30px;

}

.quizHeader h2{

    color:#0077ff;

}

.progress{

    text-align:center;

}

.score{

    font-weight:bold;

    color:#0077ff;

}


/* ==========================
   PROGRESS BAR
========================== */

progress{

    width:200px;

    height:20px;

}


/* ==========================
   QUESTION
========================== */

.questionContainer{

    text-align:center;

    margin-bottom:40px;

}

.questionContainer h2{

    font-size:28px;

}


/* ==========================
   ANSWERS
========================== */

.answers{

    display:grid;

    grid-template-columns:1fr;

    gap:20px;

}

.answerBtn{

    padding:18px;

    font-size:18px;

    border:none;

    border-radius:12px;

    background:#f1f5ff;

    cursor:pointer;

    transition:.3s;

}

.answerBtn:hover{

    background:#0077ff;

    color:white;

    transform:scale(1.03);

}


/* ==========================
   NEXT BUTTON
========================== */

.navigation{

    text-align:right;

    margin-top:35px;

}

#nextBtn{

    padding:15px 30px;

    border:none;

    border-radius:10px;

    background:#28a745;

    color:white;

    cursor:pointer;

    font-size:18px;

    transition:.3s;

}

#nextBtn:hover{

    background:#1f8a37;

}


/* ==========================
   RESULT SCREEN
========================== */

#resultScreen{

    text-align:center;

}

.resultBox{

    margin-top:30px;

    margin-bottom:30px;

}

.resultBox h1{

    font-size:70px;

    color:#0077ff;

    margin-bottom:20px;

}

.resultBox p{

    margin:10px;

    font-size:20px;

}

#performance{

    margin-top:25px;

    color:#28a745;

    font-size:30px;

}


/* ==========================
   RESULT BUTTONS
========================== */

.resultButtons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.resultButtons button{

    padding:15px 35px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-size:18px;

    background:#0077ff;

    color:white;

    transition:.3s;

}

.resultButtons button:hover{

    background:#005ed6;

}


/* ==========================
   FOOTER
========================== */

footer{

    background:white;

    text-align:center;

    padding:20px;

    box-shadow:0 -5px 15px rgba(0,0,0,.15);

}


/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

header{

    flex-direction:column;

    gap:20px;

}

.quizHeader{

    flex-direction:column;

    gap:20px;

}

.resultButtons{

    flex-direction:column;

}

.categoryContainer{

    grid-template-columns:1fr;

}

.questionContainer h2{

    font-size:22px;

}

.resultBox h1{

    font-size:50px;

}

}