body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #87CEEB, #A7D9F0);
    /* Warna biru langit */
    margin: 0;
    overflow: hidden;
}

.game-container {
    background-color: #FFF8DC;
    /* Warna krem */
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

h1 {
    color: #FF6347;
    /* Warna oranye kemerahan */
    margin-bottom: 25px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    background-color: #FFFFFF;
    /* Putih bersih */
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
    /* Tinggi minimum untuk kartu */
}

#letter-display {
    font-size: 8em;
    /* Huruf sangat besar */
    color: #4682B4;
    /* Warna biru baja */
    margin: 0;
    line-height: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
}

#letter-image {
    max-width: 80%;
    height: auto;
    max-height: 150px;
    margin: 15px 0;
    border-radius: 10px;
    object-fit: contain;
    /* Memastikan gambar pas tanpa terdistorsi */
}

#word-display {
    font-size: 2em;
    color: #32CD32;
    /* Warna hijau limau */
    margin-top: 10px;
    font-weight: bold;
}

.controls {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
    /* Tombol bisa turun baris jika layar kecil */
}

.nav-button,
.action-button {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-button {
    background-color: #FFD700;
    /* Warna emas */
    color: #8B4513;
    /* Coklat sadel */
}

.nav-button:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
}

.action-button {
    background-color: #ADFF2F;
    /* Warna hijau pucat */
    color: #2F4F4F;
    /* Abu-abu batu tulis gelap */
    min-width: 120px;
    /* Lebar minimum agar tombol "Dengar" tidak terlalu kecil */
}

.action-button:hover {
    background-color: #9ACD32;
    transform: translateY(-2px);
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    #letter-display {
        font-size: 6em;
    }

    #letter-image {
        max-height: 120px;
    }

    #word-display {
        font-size: 1.5em;
    }

    .nav-button,
    .action-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}