:root {
  --background-color-light: #ffffff;
  --text-color-light: #000000;
  --background-color-dark: #121212;
  --text-color-dark: #ffffff;
}

body {
  background-color: var(--background-color-light);
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: sans-serif;
  padding: 20px; /* Add some padding for better spacing */
  box-sizing: border-box; /* Include padding in element's total width and height */
}

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

h1 {
  margin-bottom: 2rem;
}

#menu-image {
    margin-top: 2rem;
    max-width: 400px;
    width: 80%;
    border-radius: 10px;
}

#menu-display {
    margin-top: 2rem;
    font-size: 1.5rem;
    min-height: 2rem;
}

button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    background-color: #f0f0f0;
    color: #333;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e0e0e0;
}

body.dark-mode button {
    background-color: #333;
    color: #eee;
    border-color: #555;
}

body.dark-mode button:hover {
    background-color: #555;
}

#recommend-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Contact Form Styling */
.contact-form-section {
    margin-top: 4rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.contact-form-section h2 {
    margin-bottom: 1.5rem;
}

.contact-form-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--background-color-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body.dark-mode .contact-form-section form {
    background-color: #222;
    border-color: #444;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.contact-form-section label {
    align-self: flex-start;
    font-weight: bold;
    margin-bottom: -10px; /* Adjust spacing between label and input */
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--background-color-light);
    color: var(--text-color-light);
    box-sizing: border-box; /* Include padding in element's total width */
}

body.dark-mode .contact-form-section input[type="text"],
body.dark-mode .contact-form-section input[type="email"],
body.dark-mode .contact-form-section textarea {
    background-color: #333;
    border-color: #555;
    color: #eee;
}

.contact-form-section textarea {
    resize: vertical;
}

.contact-form-section button[type="submit"] {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.contact-form-section button[type="submit"]:hover {
    background-color: #0056b3;
}

body.dark-mode .contact-form-section button[type="submit"] {
    background-color: #6a0dad; /* Darker purple for dark mode submit */
}

body.dark-mode .contact-form-section button[type="submit"]:hover {
    background-color: #8a2be2; /* Lighter purple on hover for dark mode */
}