/* =====================================================
   GLOBAL
===================================================== */

* {
    font-family: 'Baloo 2', cursive;
}

body {

    margin: 0;

    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #fff9e6 0%,
            #eef7ff 45%,
            #fff0f7 100%
        );

    overflow-x: hidden;

}


/* =====================================================
   GAME WRAPPER
===================================================== */

.game-wrapper {

    min-height: 100vh;

    padding: 30px 15px;

    position: relative;

    overflow: hidden;

}





/* =====================================================
   HEADER
===================================================== */

.game-header {

    position: relative;

    z-index: 2;

}


.brand {

    font-size: 25px;

    font-weight: 800;

    color: #3b5bdb;

}


.score-box {

    background: white;

    border-radius: 50px;

    padding: 8px 18px;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, .08);

    font-size: 18px;

    font-weight: 700;

}


/* =====================================================
   PROGRESS
===================================================== */

.progress-container {

    position: relative;

    z-index: 2;

    max-width: 850px;

    margin: 25px auto 0;

}


.progress-info {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;

    font-size: 18px;

    font-weight: 700;

}


.progress {

    height: 18px;

    border-radius: 50px;

    background: rgba(255,255,255,.8);

    padding: 3px;

    box-shadow:
        inset 0 2px 5px
        rgba(0,0,0,.08);

    backdrop-filter: blur(5px);

}


.progress-bar {

    border-radius: 50px;

    background:
        linear-gradient(
            90deg,
            #ffd43b,
            #ff922b
        );

    transition:
        width .5s ease;

}


/* =====================================================
   GAME CARD
===================================================== */

.game-card {

    position: relative;

    z-index: 2;

    max-width: 850px;

    margin: 25px auto;

    background:
        rgba(255,255,255,.94);

    border-radius: 35px;

    padding: 35px;

    box-shadow:
        0 20px 50px
        rgba(63, 81, 181, .12);

    border:
        5px solid white;

    backdrop-filter:
        blur(10px);

}


/* =====================================================
   CATEGORY
===================================================== */

.category-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 18px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #e7f5ff
        );

    color: #3b5bdb;

    font-weight: 700;

    font-size: 17px;

    box-shadow:
        0 5px 15px
        rgba(76,110,245,.10);

}

/* =====================================================
   QUESTION IMAGE
===================================================== */

.question-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
}

.question-image {
    width: auto;
    min-width: 220px;
    max-width: 90%;
    min-height: 150px;

    padding: 25px 35px;

    border-radius: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Membuat emoji tetap menyamping */
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;

    background: #fff4c2;

    font-size: 65px;
    line-height: 1.2;

    letter-spacing: 8px;

    box-shadow:
        0 15px 30px rgba(255, 193, 7, .2);

    animation:
        floating 3s ease-in-out infinite;
}

/* =====================================================
   IMAGE FLOATING
===================================================== */

@keyframes floating {

    0%, 100% {

        transform:
            translateY(0)
            rotate(0deg);

    }

    50% {

        transform:
            translateY(-8px)
            rotate(2deg);

    }

}


/* =====================================================
   QUESTION
===================================================== */

.question-title {

    font-size: 32px;

    font-weight: 800;

    color: #293056;

    line-height: 1.3;

    margin-bottom: 30px;

}


/* =====================================================
   ANSWER BUTTON
===================================================== */

.answer-button {

    width: 100%;

    min-height: 90px;

    border:
        4px solid #edf0f7;

    border-radius: 25px;

    background: white;

    padding: 12px 18px;

    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 21px;

    font-weight: 700;

    color: #343a40;

    transition:
        all .2s ease;

    cursor: pointer;

    position: relative;

    overflow: hidden;

}


.answer-button:hover {

    transform:
        translateY(-5px)
        scale(1.01);

    border-color:
        #b8c5ff;

    box-shadow:
        0 12px 25px
        rgba(63, 81, 181, .12);

}


/* =====================================================
   ANSWER LETTER
===================================================== */

.answer-letter {

    width: 52px;

    height: 52px;

    min-width: 52px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f1f3f5;

    font-size: 23px;

    font-weight: 800;

}


/* =====================================================
   SELECTED
===================================================== */

.answer-button.selected {

    border-color: #4c6ef5;

    background: #eef2ff;

    transform: scale(1.02);

    box-shadow:
        0 10px 25px
        rgba(76,110,245,.2);

}


.answer-button.selected
.answer-letter {

    background: #4c6ef5;

    color: white;

}


/* =====================================================
   CORRECT
===================================================== */

.answer-button.correct {

    border-color: #40c057;

    background: #ebfbee;

    color: #2b8a3e;

}


.answer-button.correct
.answer-letter {

    background: #40c057;

    color: white;

}


/* =====================================================
   WRONG
===================================================== */

.answer-button.wrong {

    border-color: #fa5252;

    background: #fff5f5;

    color: #c92a2a;

    animation:
        shake .3s;

}


.answer-button.wrong
.answer-letter {

    background: #fa5252;

    color: white;

}


@keyframes shake {

    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-6px);
    }

    100% {
        transform: translateX(0);
    }

}


/* =====================================================
   FEEDBACK
===================================================== */

.feedback {

    display: none;

    border-radius: 20px;

    padding: 15px 20px;

    margin-top: 25px;

    font-size: 20px;

    font-weight: 700;

    text-align: center;

}


.correct-feedback {

    background: #ebfbee;

    color: #2b8a3e;

}


.wrong-feedback {

    background: #fff5f5;

    color: #c92a2a;

}


/* =====================================================
   NEXT BUTTON
===================================================== */

.next-button {

    margin-top: 25px;

    min-width: 180px;

    padding: 13px 30px;

    border: none;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #4c6ef5,
            #7950f2
        );

    color: white;

    font-size: 20px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(76,110,245,.25);

    transition:
        all .2s ease;

}


.next-button:hover {

    transform:
        translateY(-3px)
        scale(1.03);

    box-shadow:
        0 12px 25px
        rgba(76,110,245,.35);

}


.next-button:disabled {

    opacity: .5;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {

    .game-wrapper {

        padding: 20px 10px;

    }


    .game-card {

        padding: 20px 15px;

        border-radius: 25px;

    }


    .question-image {

        width: 150px;

        height: 150px;

        font-size: 80px;

    }


    .question-title {

        font-size: 25px;

    }


    .answer-button {

        min-height: 75px;

        font-size: 18px;

    }


    .answer-letter {

        width: 45px;

        height: 45px;

        min-width: 45px;

    }


    .bubble-3 {

        width: 80px;

        height: 80px;

        right: -20px;

    }

}