body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    align-content: center;
}

.container {
    max-width: 1200px; /* Set a maximum width */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add some padding for better spacing */
}

header.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333; /* Background color for banner */
    padding: 20px;
    box-sizing: border-box;
}

header.banner .banner-logo {
    height: 50px;
    max-height: 50px; /* Ensure the logo does not exceed this height */
    margin-right: 20px;
}

header.banner .banner-title {
    color: white;
    font-size: 24px;
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the navigation items */
    background-color: #333; /* Green color for navigation bar */
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s; /* Smooth transition for color change on hover */
}

nav a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #45a049;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav a:hover {
    color: black; /* Change color on hover */
}

nav a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

h1, h2, p {
    text-align: center;
}

.Generator {
    text-align: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 5px 0;
    }

    header.banner {
        flex-direction: column;
        align-items: center; /* Center align items for smaller screens */
    }

    header.banner .banner-logo {
        max-height: 40px; /* Adjust logo height for smaller screens */
        margin: 0 0 10px 0;
    }

    header.banner .banner-title {
        font-size: 20px;
    }
}

ul {
  list-style: none;
  text-align: center;
}

li {
  list-style: none;
  text-align: center;
}

/* Result display styling */
.result {
    min-height: 30px;
    margin-top: 15px;
    font-size: 18px;
}

.result-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: color 0.3s;
}

.result-link:hover {
    color: #4CAF50;
}

.cuisine-tag {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    margin-left: 10px;
    font-weight: normal;
}

/* Submission form styling */
.submission-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.submission-form h2 {
    margin-top: 0;
    color: #333;
}

.submission-form .form-group {
    margin: 15px 0;
    text-align: left;
}

.submission-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.submission-form input,
.submission-form select,
.submission-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.submission-form textarea {
    resize: vertical;
    min-height: 80px;
}

.submission-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}
