:root {
    --bg-color: #f0f0f0;
    --text-color: #333;
    --container-bg: white;
    --button-bg: #4CAF50;
    --button-text: white;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body[data-theme="dark"] {
    --bg-color: #222;
    --text-color: #f0f0f0;
    --container-bg: #333;
    --button-bg: #555;
    --button-text: #f0f0f0;
}

/* General Body & Layout */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxkZWZzPiA8cGF0dGVybiBpZD0icCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPiA8dGV4dCB4PSIwIiB5PSIyNSIgZm9udC1zaXplPSIyMCIgZm9udC1mYW1pbHk9ImVtb2ppIj7wn5KYPC90ZXh0PiA8dGV4dCB4PSI1MCIgeT0iMjUiIGZvbnQtc2l6ZT0iMjAiIGZvbnQtZmFtaWx5PSJlbW9qaSI+8J+NnzwvdGV4dD4gPHRleHQgeD0iMCIgeT0iNzUiIGZvbnQtc2l6ZT0iMjAiIGZvbnQtZmFtaWx5PSJlbW9qaSI+8J+NrzwvdGV4dD4gPHRleHQgeD0iNTAiIHk9Ijc1IiBmb250LXNpemU9IjIwIiBmb250LWZhbWlseT0iZW1vamkiPvCfjZU8L3RleHQ+IDwvcGF0dGVybj4gPC9kZWZzPiA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3ApIiBvcGFjaXR5PSIwLjEiLz4gPC9zdmc+');
    justify-content: flex-start; /* Aligns content to the top */
}

/* Header and Navigation */
.site-header {
    width: 100%;
    background-color: #2c3e50;
    padding: 10px 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1abc9c;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}


.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #34495e;
        position: absolute;
        top: 100%; /* Position right below the header */
        left: 0;
        padding: 10px 0;
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 12px 0;
    }

    .hamburger {
        display: block;
    }
}



.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s, color 0.3s;
    width: 90%;
    max-width: 800px;
    margin: 40px auto; /* Adds space from header and footer */
    flex-grow: 1; /* Allows container to grow */
}

/* Content Box for static pages */
.content-box {
    text-align: left;
    margin-top: 30px;
    line-height: 1.8;
}

.content-box h2 {
    color: var(--text-color);
    border-bottom: 2px solid var(--button-bg);
    padding-bottom: 10px;
    margin-top: 30px;
}

.content-box ul {
    padding-left: 20px;
}


.language-switcher-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.language-switcher-container button {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.language-switcher-container button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.5);
}

h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.food-categories-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.food-categories-container button {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.food-categories-container button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.5);
}

.button-text {
    margin-left: 8px;
}


#result {
    margin-top: 20px;
    font-size: 1.5rem;
    color: var(--text-color);
}


.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.theme-switch .slider .light-icon {
    display: inline;
}
.theme-switch .slider .dark-icon {
    display: none;
}

input:checked + .slider .light-icon {
    display: none;
}
input:checked + .slider .dark-icon {
    display: inline;
}

.slider span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.slider .light-icon {
    left: 8px;
}

.slider .dark-icon {
    right: 8px;
}


/* Form styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

form label {
    font-size: 1.1rem;
    color: var(--text-color);
}

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

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

form button[type="submit"] {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 12px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 10px;
}

form button[type="submit"]:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.5);
}

/* Footer */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Pushes footer to the bottom */
    background-color: #2c3e50;
    color: #bdc3c7;
}

.site-footer a {
    color: #1abc9c;
    text-decoration: none;
}

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

