:root {
    --bg-color: #f0f0f0;
    --container-bg: white;
    --text-color: #000;
    --button-bg: #ff6b6b;
    --button-text: white;
    --accent-color: #ff6b6b;
}

body.dark-mode {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --button-bg: #bb86fc;
    --button-text: #000;
    --accent-color: #bb86fc;
}

body {
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 60px 0 20px 0; /* Adjusted padding to accommodate fixed nav */
    flex-direction: column; /* Ensure nav sits on top if not absolute */
}

/* Navigation Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--container-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    margin: 0 1.5rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

#app-container {
    background-color: var(--container-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: background-color 0.3s;
    max-width: 600px; /* Increased width for better reading */
    width: 90%;
}

/* Theme Toggle Switch */
.switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

input:checked + .slider {
    background-color: var(--button-bg);
}

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

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

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

h1 {
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.8;
}

#recommend-button {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#recommend-button:active {
    transform: scale(0.95);
}

#result {
    margin-top: 2rem;
    min-height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.menu-card img {
    width: 100%;
    max-width: 400px; /* Larger images */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.menu-card p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
}

/* Contact Section */
#contact-section {
    margin-top: 3rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    padding-top: 1.5rem;
    width: 100%;
}

#toggle-contact {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

#toggle-contact:hover {
    background-color: var(--text-color);
    color: var(--container-bg);
}

#contact-form {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
}

#contact-form.show {
    display: flex;
}

#contact-form h3 {
    margin: 0 0 0.5rem 0;
    text-align: center;
    font-size: 1.2rem;
}

#contact-form input,
#contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

#contact-form button[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: opacity 0.3s;
}

#contact-form button[type="submit"]:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New styles for content box and footer */
.content-box {
    margin-top: 3rem;
    text-align: left;
    padding-top: 2rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.content-box h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.content-box h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-box ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.content-box li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}

footer a {
    color: var(--text-color);
    text-decoration: underline;
}

.desc-text {
    font-size: 1rem !important; /* Override the large font */
    font-weight: normal !important;
    color: var(--text-color) !important;
    margin-top: 0.5rem !important;
    opacity: 0.9;
}