/* Menggunakan font Inter sebagai default yang bersih */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* Child-friendly background */
body {
    font-family: 'Inter', sans-serif;
    background: url('assets/background.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px;
}

/* Styling spesifik untuk kartu game utama */
.game-container {
    max-width: 95%;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 8px solid #FFC107; /* Border emas/bintang */
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    transition: all 0.3s ease;
}

/* Styling untuk tombol petualangan (opsi) */
.adventure-button {
    transition: all 0.3s ease;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 5px 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.adventure-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.adventure-button:hover::after {
    left: 100%;
}

.adventure-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Styling untuk pertanyaan */
#question-text {
    background: linear-gradient(135deg, #6ecbf5, #c2e9fb);
    border: 3px solid #4A90E2;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Styling untuk header status */
#game-status {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #FF8C00;
}

#score-display, #progress-display {
    font-weight: bold;
    color: #8B4513;
    font-size: 1.2em;
}

/* Styling untuk layar home */
#home-screen h1 {
    font-size: 2.5rem;
    color: #4A90E2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

#home-screen p {
    font-size: 1.3rem;
    color: #8B4513;
}

/* Styling untuk tombol home */
#home-screen .adventure-button {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Utility CSS untuk efek Game Feedback */
.correct-answer {
    background: linear-gradient(135deg, #56ab2f, #a8e063) !important; /* Hijau muda menyenangkan */
    color: white !important;
    box-shadow: 0 6px #388E3C !important;
    transform: scale(1.05) !important;
}

.incorrect-answer {
    background: linear-gradient(135deg, #ff512f, #dd2476) !important; /* Merah oranye menyenangkan */
    color: white !important;
    box-shadow: 0 6px #D32F2F !important;
    transform: scale(1.05) !important;
}

.correct-highlight {
    background: linear-gradient(135deg, #f5d142, #f6c342) !important; /* Kuning menyenangkan untuk highlight */
    color: #333 !important;
    box-shadow: 0 6px #FBC02D !important;
    transform: scale(1.05) !important;
}

/* Styling untuk layar hasil */
#result-screen h2 {
    color: #FF6B6B;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#result-screen .bg-yellow-100 {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    border: 5px solid #FF8C00 !important;
    border-radius: 20px;
    padding: 20px !important;
}

#final-score {
    color: #8B4513 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animasi untuk feedback */
@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.feedback-animation {
    animation: bounceIn 0.5s ease;
}

/* Responsif untuk berbagai ukuran layar */
@media (max-width: 640px) {
    .game-container {
        padding: 15px;
        border-width: 6px;
    }

    #home-screen h1 {
        font-size: 1.8rem;
    }

    #question-text {
        font-size: 1.1rem;
        padding: 12px;
    }

    .adventure-button {
        font-size: 1rem;
        padding: 12px 0;
    }

    #result-screen h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 10px;
        border-width: 4px;
    }

    #home-screen h1 {
        font-size: 1.5rem;
    }

    #home-screen p {
        font-size: 1rem;
    }

    #question-text {
        font-size: 1rem;
        padding: 10px;
    }

    .adventure-button {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    #game-status {
        flex-direction: column;
        gap: 8px;
    }

    #score-display, #progress-display {
        font-size: 1rem;
    }

    #result-screen h2 {
        font-size: 1.8rem;
    }

    #final-score {
        font-size: 3rem;
    }
}

/* Animasi untuk tombol saat dipilih */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 0.5s ease;
}