:root {
    --background-color: #f0f2f5;
    --container-background: white;
    --text-color: #333;
    --button-background: #008CBA;
    --button-hover-background: #005f7a;
    --menu-text-color: #4CAF50;
    --input-border-color: #ccc;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0; /* Add some padding for scrolling */
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    --background-color: #121212;
    --container-background: #1e1e1e;
    --text-color: #e0e0e0;
    --button-background: #005f7a;
    --button-hover-background: #008CBA;
    --menu-text-color: #81C784;
    --input-border-color: #444;
}

.container {
    position: relative;
    text-align: center;
    background-color: var(--container-background);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    width: 90%;
    max-width: 500px; /* Limit container width */
    margin-bottom: 20px;
}

.theme-switcher-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

#theme-switcher {
    background-color: var(--button-background);
    color: white;
    border: none;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#theme-switcher:hover {
    background-color: var(--button-hover-background);
}

h1 {
    color: var(--text-color);
    margin-bottom: 30px;
}

.menu-display {
    margin-bottom: 30px;
    min-height: 30px; /* Adjusted from 250px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#menu-recommendation {
    font-size: 24px;
    font-weight: bold;
    color: var(--menu-text-color);
    min-height: 30px;
}

#generate {
    background-color: var(--button-background);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate:hover {
    background-color: var(--button-hover-background);
}

.contact-section {
    width: 90%;
    max-width: 500px;
    text-align: center;
    background-color: var(--container-background);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section form {
    display: flex;
    flex-direction: column;
}

.contact-section input,
.contact-section textarea {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-section button {
    background-color: var(--button-background);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-section button:hover {
    background-color: var(--button-hover-background);
}
