@import url('https://fonts.googleapis.com/css2?family=Phudu:wght@300..900&display=swap');

/* =====================
   GLOBAL
===================== */
body {
    margin: 0;
    /* padding: 30px; */
    min-height: 100vh;
    background: linear-gradient(rgb(152, 94, 152), rgb(125, 152, 179));
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    /* overflow: hidden; */
}

/* =====================
   CONTAINER
===================== */
/* #quiz-container {
    max-width: 900px;
    margin: 0 auto 10px; 
    padding: 20px;
} */
 #quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 90vh; 
    box-sizing: border-box;
}


/* =====================
   BACK LINK
===================== */
.back {
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    display: inline-block;
}

.back:hover {
    background-color: rgb(143, 50, 131);
    color: rgb(220, 227, 235);
}

/* =====================
   TIMER
===================== */
#timer {
    /* display: flex;
    align-items: center;
    justify-content: center; */
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    padding: 10px;
    border: 4px solid rgb(57, 25, 57);
    border-radius: 50%;
    font-size: 1.2em;
    font-weight: 600;
    font-family: 'Phudu';
    color: rgb(57, 25, 57);
    line-height: 1;

}

.timer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px auto 5px;
}


/* =====================
   PROGRESS BAR
===================== */
#progressBar {
    width: 100%;
    max-width: 400px;
    height: 20px;
    margin: 20px auto;
}

/* =====================
   QUESTION
===================== */
.question {
    font-size: 1em;
    font-family: 'Phudu';
    font-weight: 600;
    margin-bottom: 10px;
}

/* =====================
   OPTIONS (boutons réponses)
===================== */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.options button {
    border-radius: 16px;
    border: 2px solid rgb(193, 187, 100);
    padding: 14px;
    background-color: rgb(1, 1, 54);
    color: rgb(220, 227, 235);
    font-size: 1em;
    font-family: 'Phudu';
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.options button:hover {
    background-color: rgb(73, 54, 91);
}

/* =====================
   BUTTONS NAVIGATION
===================== */
.button-container {
    margin-top: 10px;
    /* display: flex; */
    /* justify-content: center; */
    /* gap: 10px; */
    /* flex-wrap: wrap; */
}

.button-container button {
    min-width: 160px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid rgb(150, 100, 193);
    background-color: rgb(1, 1, 54);
    color: rgb(220, 227, 235);
    font-size: 1em;
    font-family: 'Phudu';
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-container button:not(.disabled):hover {
    background-color: rgb(73, 54, 91);
    transform: scale(1.05);
}

.button-container button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =====================
   IMAGE ANSWER
===================== */
.answer-img {
    display: block;
    margin: 10px auto;
    /* width: 100%; */
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border: 2px solid rgb(57, 25, 57);
    border-radius: 10px;
}

.footer{
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgb(57, 25, 57);
    color: white;
    text-align: center;
    font-weight: 100;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    body {
        /* padding: 15px; */
    }

    .question {
        font-size: 1.2em;
    }

    .options button {
        font-size: 0.95em;
    }

    .button-container button {
        min-width: 140px;
        height: 55px;
        font-size: 0.95em;
    }

    #timer {
        width: 50px;
        height: 50px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .question {
        font-size: 0.8em;
    }

    .options button,
    .button-container button {
        font-size: 0.7em;
    }

    p{
        font-size: 0.8em;
    }

    footer{
        font-size: 0.9em;
    }
}
