:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --background-color: #f0f2f5;
    --text-color: #333;
    --white: #fff;
    --dark-background-color: #1a1a1a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%239C92AC" fill-opacity="0.04"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

body.dark-mode {
    --background-color: var(--dark-background-color);
    --text-color: var(--white);
}

.theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.theme-switcher label {
    margin-left: 10px;
    font-size: 1rem;
}

#theme-toggle {
    appearance: none;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

#theme-toggle::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

#theme-toggle:checked {
    background-color: var(--primary-color);
}

#theme-toggle:checked::before {
    transform: translateX(25px);
}

.container {
    text-align: center;
    background: var(--white);
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 500px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.dark-mode .container {
    background-color: #2c2c2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.menu-item {
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    text-align: left;
    max-width: 350px; /* Limit the width of the card */
}

body.dark-mode .menu-item {
    background-color: #333;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.menu-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.menu-item h3 {
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.menu-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}


#generate-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.4);
}

#generate-btn:hover {
    background-color: #357ABD;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.6);
}

.contact-button {
    display: inline-block; /* Treat anchor like a block element for padding/margin */
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(245, 166, 35, 0.4);
    text-decoration: none; /* Remove underline from link */
    margin-top: 1rem; /* Add some space above the button */
}

.contact-button:hover {
    background-color: #e09b1f;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.6);
}

/* Responsive Styles */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }

    #generate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

.site-footer {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}
