
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #feca57;
    --background-color: #f0f0f0;
    --text-color: #333;
    --white: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
    --primary-color: #ffb8b8;
    --secondary-color: #ffda79;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --white: #1e1e1e;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--background-color);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    transition: background-color 0.3s ease;
}

.language-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
}

.language-switcher a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link {
    position: absolute;
    top: 20px;
    left: 100px; /* Adjusted position to be next to language switcher */
}

.nav-link a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

#theme-toggle {
    display: none;
}

#theme-toggle + label {
    display: inline-block;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 12.5px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

#theme-toggle:checked + label::after {
    transform: translateX(25px);
}


.container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color), 0 6px 6px var(--shadow-color);
    text-align: center;
    width: 90%;
    max-width: 400px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

#generate-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

#menu-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 10px;
}

.menu {
    width: auto;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: popIn 0.5s ease;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 2rem;
    text-align: left;
}

.contact-form label {
    font-weight: bold;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    align-self: center; /* Center the button */
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    .menu {
        font-size: 1.5rem;
    }
}
