body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column; /* Allow footer */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFDA79, #FFAB76); /* Warm gradient */
    color: #4E4E4E; /* Dark grey for text */
    margin: 0;
    padding: 20px; /* Add padding for smaller screens */
    box-sizing: border-box;
}

.game-container {
    background-color: rgba(255, 255, 255, 0.97); /* Slightly more opaque white */
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 600px; /* Slightly wider */
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.game-container:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
}

.logo {
    font-size: 3em;
    margin-bottom: 10px;
    animation: bounce 2s infinite; /* Fun bounce animation */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-8px);}
}


h1 {
    color: #E67E22; /* Energetic orange */
    margin-bottom: 10px;
    font-weight: 700;
}

h2 { /* For Final Guess Title */
    color: #c0392b; /* Use accent red */
    margin-bottom: 15px;
}


p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.area {
    margin-top: 25px;
    padding: 20px;
    border: none; /* Remove border, use background */
    border-radius: 10px;
    background-color: #FFFDFB; /* Very light background */
    display: none; /* Hide inactive areas */
    border: 1px solid #eee;
}

.area.active-area {
    display: block; /* Show active area */
    animation: fadeIn 0.5s ease; /* Fade in effect */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


#question-text {
    font-size: 1.3em;
    font-weight: 600;
    color: #D35400; /* Darker orange for question */
    margin-bottom: 30px;
    min-height: 45px; /* Prevent layout shifts */
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px; /* Slightly closer buttons */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.button-group-vertical { /* For guess/final screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}


.btn {
    padding: 12px 25px; /* Adjusted padding */
    font-size: 1.0em; /* Slightly smaller base font */
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 25px; /* Rounded buttons */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px; /* Ensure buttons have min width */
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1); /* Brighten on hover */
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-yes {
    background-color: #2ECC71; /* Energetic green */
    color: white;
}
.btn-yes:hover { background-color: #27AE60; }

.btn-no {
    background-color: #E74C3C; /* Energetic red */
    color: white;
}
.btn-no:hover { background-color: #C0392B; }

.btn-maybe { /* Style for Maybe button */
    background-color: #F1C40F; /* Yellow */
    color: #333; /* Darker text for yellow */
}
.btn-maybe:hover { background-color: #F39C12; } /* Darker Yellow */


.btn-continue, .btn-restart {
    background-color: #3498DB; /* Friendly blue */
    color: white;
    margin-top: 10px; /* Only vertical group adds top margin */
    width: auto; /* Allow natural width in vertical group */
    padding: 12px 30px;
}
.button-group-vertical .btn {
     margin-top: 0; /* Remove top margin within vertical group */
}

.btn-continue:hover, .btn-restart:hover { background-color: #2980B9; }


#question-counter, .remaining-count {
    font-size: 0.9em;
    color: #888; /* Lighter grey */
    margin-top: 15px;
}
.remaining-count {
    font-style: italic;
}


.result-area {
    background-color: #E8F6F3; /* Light teal for results */
    border-left: 5px solid #1ABC9C; /* Teal accent border */
}

.result-area p#guess-text,
.result-area p#final-result-text {
    font-size: 1.15em;
    color: #16A085; /* Darker teal */
    font-weight: 600;
}

.final-result {
    background-color: #FEF9E7; /* Light yellow for final */
    border-left: 5px solid #F1C40F; /* Yellow accent */
}
.final-result p#final-result-text {
    color: #B7950B; /* Darker Yellow/Gold */
    font-size: 1.2em;
}
.final-result p strong {
    color: #D35400; /* Highlight final guess with orange */
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.85em;
    color: rgba(0, 0, 0, 0.6); /* Darker text on light background */
}
footer p {
    color: rgba(0, 0, 0, 0.6);
    margin: 5px 0;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .game-container {
        padding: 20px;
    }
    h1 {
        font-size: 1.6em;
    }
     h2 {
        font-size: 1.4em;
    }
    #question-text {
        font-size: 1.1em;
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.9em;
        min-width: 90px;
    }
    .button-group {
        gap: 10px;
    }
    .button-group-vertical {
        gap: 12px;
    }
}