body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #e0f2f1; /* Light teal/greenish white */
    overflow: hidden;
}

.diner-background {
    background-image: url('/8bc608a07ed697e70ef116c99d98043727923d0cr1-1280-720v2_hq (1).jpg'); /* alien_cafe */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start; /* Align content to the top */
    align-items: center; /* Center horizontally */
    text-align: center;
    position: relative; /* Needed for absolute positioning of children like the menu button */
    z-index: 1;
    padding-top: 50px; /* Space from the top of the viewport */
    box-sizing: border-box; /* Include padding in the element's total height and width */
}

#view-menu-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100; /* Ensure it's above other content */
    padding: 10px 20px; /* Smaller padding for a less obtrusive button */
    font-size: 1em; /* Smaller font size */
    background-color: #00695c; /* A slightly different teal */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Subtle shadow */
}
#view-menu-btn:hover {
    background-color: #008080;
    transform: translateY(-1px);
}

.diner-content {
    padding: 30px 50px;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    margin-top: 50px; /* Space between the top content and this main content area */
}

.screen {
    display: none;
    animation: fadeIn 1s ease-in-out;
}

.screen.active {
    display: block;
}

/* Menu Overlay Styles */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker, more opaque background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99; /* Below the view-menu-btn but above other content */
    /* animation handled by .screen.active */
}

#menu-overlay.screen { /* Override default screen display: none */
    display: none;
}
#menu-overlay.screen.active {
    display: flex; /* Use flex to center content */
}

.menu-content {
    background-color: #004d4d; /* Darker teal for the menu box */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 128, 128, 0.7);
    max-width: 600px;
    width: 90%;
    text-align: center;
    color: #e0f2f1;
}

.menu-content h2 {
    font-size: 2.8em;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

#menu-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

#menu-list li {
    font-size: 1.5em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
}

#menu-list li:last-child {
    border-bottom: none;
}

#menu-list li:hover {
    color: #00b3b3; /* Highlight on hover */
}

#close-menu-btn {
    margin-top: 20px;
    padding: 12px 25px; /* Slightly different padding for menu buttons */
    font-size: 1.1em;
    background-color: #800000; /* Reddish for close button */
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.5);
}

#close-menu-btn:hover {
    background-color: #b30000;
}

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

button {
    background-color: #008080; /* Teal */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.5);
}

button:hover {
    background-color: #00b3b3; /* Lighter teal */
    transform: translateY(-2px);
}

/* Style for the new "Serve Food" button */
#serve-food-btn {
    background-color: #28a745; /* Green color for "Serve Food" */
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.5);
    margin-top: 15px; /* Space above the button */
    width: fit-content; /* Make button fit content */
    align-self: center; /* Center the button within its flex container */
}

#serve-food-btn:hover {
    background-color: #218838; /* Darker green on hover */
    transform: translateY(-2px);
}

h2 {
    font-size: 2.5em;
    color: white; /* Changed for better contrast */
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Changed for better readability */
}

#customer-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    min-height: 200px; /* Ensure enough space for character + text */
}

#next-customer-btn {
    margin-top: 20px;
}

#character-display {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
    margin-bottom: 20px; /* Space between character and chat */
}

#character-display img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    margin-bottom: 10px;
}

#character-display p {
    font-size: 1.1em;
    color: #f0f8ff; /* AliceBlue */
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    max-width: 80%;
}

/* Chat Styles */
#chat-container {
    width: 80%;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 128, 128, 0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#chat-messages {
    height: 150px; /* Fixed height for chat history */
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-message {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 90%;
    word-wrap: break-word;
    text-align: left;
}

.customer-message {
    background-color: #004d4d; /* Darker teal */
    align-self: flex-start;
    color: #e0f2f1;
}

.user-message {
    background-color: #00695c; /* Slightly lighter teal */
    align-self: flex-end;
    color: #ffffff;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

#chat-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #008080;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1em;
    outline: none;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#send-chat-btn {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 8px;
    background-color: #008080;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: none; /* Override default button shadow */
}

#send-chat-btn:hover {
    background-color: #00b3b3;
    transform: none; /* Override default button transform */
}