/* -------------------- Google Font -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* -------------------- Reset & Base -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
    padding: 20px;
}

/* -------------------- Logo Design -------------------- */
.logo {
    font-weight: 800;
    white-space: nowrap;
    font-size: 60px;
    margin: 0px 0;
}

.logo span:first-child {
    color: #00c48c;
}

.logo span:last-child {
    color: #ff6b6b;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo {
        font-size: 50px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 40px;
        margin-bottom: 6px;
    }
}

/* -------------------- Header & Progress Bar -------------------- */
header {
    width: 100%;
    max-width: 850px;
    margin: 10px auto;
    padding: 5px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.progress-text {
    display: none;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(0, 196, 140, 0.1);
    border-radius: 10px;
    margin-left: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #00c48c;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* -------------------- Quiz Layout -------------------- */
.quiz-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* -------------------- Question Section -------------------- */
.question-section {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* -------------------- Question GIF -------------------- */
#question-gif {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

#question-gif img {
    width: 100%;
    max-width: 450px;
    height: 300px; /* fixed consistent height */
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

/* -------------------- Question Text -------------------- */
#question-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0px;
    width: 100%;
    max-width: 450px; /* matches GIF width */
    word-wrap: break-word;
    text-align: center;
}

/* -------------------- Answer Options -------------------- */
.answers-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#answer-options {
    width: 100%;
    max-width: 450px; /* matches GIF width */
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
}

/* Hide native radio buttons */
#answer-options input[type="radio"] {
    display: none;
}

/* Button-style labels */
#answer-options label {
    flex: 1 1 calc(50% - 12px);
    min-height: 60px;
    background-color: #fff;
    color: #111;
    padding: 14px 16px;
    border: 1px solid rgba(17, 17, 17, 0.4);
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover state */
#answer-options label:hover {
    border-color: #00c48c;
    color: #00c48c;
}

/* Selected state */
#answer-options input[type="radio"]:checked + label {
    background-color: #fff;
    color: #00c48c;
    border-color: #00c48c;
}

/* -------------------- Navigation Buttons -------------------- */
.quiz-navigation {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quiz-navigation button {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid white;
    border-radius: 35px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.quiz-navigation button:hover {
    background: black;
    color: #fff;
}
/* -------------------- Next Button -------------------- */

#next-btn {
    background-color:white;
    color: black;
    border: none;
    border-radius: 35px;
    padding: 12px 28px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover Effect */
#next-btn:hover {
    background-color: #00c48c;
    color: #fff; 
}


/* -------------------- Mobile Responsive -------------------- */
@media (max-width: 768px) {
    #question-gif img {
        max-width: 380px;
        height: 250px; /* consistent scaling */
    }

    #question-text,
    #answer-options {
        max-width: 380px; /* keep equal to gif */
    }

    #answer-options label {
        flex: 1 1 100%;
        min-height: 55px;
    }
}

@media (max-width: 520px) {
    #question-text {
        font-size: 20px;
        max-width: 320px;
    }

    #answer-options {
        max-width: 320px;
    }

    #answer-options label {
        font-size: 16px;
        padding: 10px;
        min-height: 50px;
    }

    .quiz-navigation button {
        font-size: 14px;
        padding: 10px 18px;
    }

    #question-gif img {
        max-width: 320px;
        height: 220px;
    }
}
