/* General Reset & Body Style */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push footer down */
    align-items: center;
    min-height: 100vh;
    /* Warm, inviting background */
    background: linear-gradient(to bottom, #FFF2E6, #FFE8CC);
    color: #4A4A4A; /* Dark grey for text */
    margin: 0;
    padding: 0; /* Remove body padding */
    box-sizing: border-box;
}

.page-container {
    width: 100%;
    max-width: 700px; /* Slightly wider max width */
    margin: 0 auto; /* Center container */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children */
    flex-grow: 1; /* Allow container to grow */
}


/* Header Styling */
.site-header {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white header */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.site-header .logo {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: #E67E22; /* Orange logo */
    animation: subtle-pulse 2.5s infinite ease-in-out;
}

@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.site-header h1 {
    font-family: 'Playfair Display', serif; /* More elegant heading font */
    color: #D35400; /* Darker orange */
    margin-bottom: 10px;
    font-size: 2.2em;
    font-weight: 700;
}

.site-header p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Main Content Container */
.game-container {
    background-color: #FFFFFF; /* Solid white main area */
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    width: 100%; /* Take full width of parent */
    border: 1px solid #eee;
    margin-bottom: 30px; /* Space before footer */
}

/* Area Styling (Question/Suggestion) */
.area {
    margin-top: 25px;
    padding: 25px;
    border: none;
    border-radius: 10px;
    background-color: #FFFDFB; /* Off-white for contrast */
    display: none;
    animation: fadeIn 0.6s ease;
}

.area.active-area {
    display: block;
}

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

/* Question Styling */
#question-text {
    font-size: 1.4em;
    font-weight: 600;
    color: #B5651D; /* Brownish-orange */
    margin-bottom: 35px;
    min-height: 50px;
    line-height: 1.4;
}

/* Button Styling */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.button-group-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 14px 30px; /* Slightly larger buttons */
    font-size: 1.0em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 130px;
    line-height: 1; /* Ensure consistent height */
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

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

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

.btn-no { background-color: #E74C3C; color: white; }
.btn-no:hover { background-color: #C0392B; }

.btn-maybe { background-color: #F1C40F; color: #333; }
.btn-maybe:hover { background-color: #F39C12; }

.btn-restart { background-color: #3498DB; color: white; }
.btn-restart:hover { background-color: #2980B9; }

.button-group-vertical .btn {
    width: auto; /* Fit content */
    min-width: 180px;
}

/* Counters */
.possibility-counter {
    font-size: 0.9em;
    color: #999;
    margin-top: 20px;
    font-style: italic;
}

/* Suggestion Area Styling */
.suggestion-area {
    background-color: #E8F8F5; /* Light mint green */
    border-left: 6px solid #1ABC9C; /* Teal accent */
}

.suggestion-area h2 {
    color: #16A085; /* Darker teal */
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
}

.suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left; /* Align list items left */
}

.suggestion-list li {
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
}
.suggestion-list li:hover {
    transform: translateX(5px);
}


.suggestion-list strong {
    color: #D35400; /* Orange for dish name */
    font-size: 1.2em;
    display: block; /* Name on its own line */
    margin-bottom: 4px;
}

.suggestion-list span {
    color: #555;
    font-size: 0.95em;
    display: block; /* Category on its own line */
    margin-bottom: 6px;
}
.suggestion-list small {
    color: #777;
    font-size: 0.85em;
    font-style: italic;
    display: block; /* Attributes below category */
}

/* Footer */
footer {
    width: 100%;
    margin-top: auto; /* Push footer down */
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    color: #888;
    background-color: rgba(255, 255, 255, 0.3); /* Subtle background */
}
footer p {
    color: #888;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header h1 { font-size: 1.8em; }
    #question-text { font-size: 1.2em; }
    .btn { padding: 12px 20px; font-size: 0.9em; min-width: 100px;}
    .suggestion-list strong { font-size: 1.1em; }
}

@media (max-width: 480px) {
    .site-header { padding: 20px 15px; }
    .site-header h1 { font-size: 1.5em; }
    .site-header p { font-size: 1em; }
    .game-container { padding: 20px; }
    #question-text { font-size: 1.1em; margin-bottom: 25px; }
    .button-group { gap: 10px; }
    .btn { padding: 10px 15px; letter-spacing: 0.5px; }
}