/* --- Global Styles and Dithered Background (UNCHANGED) --- */
html {
    /* Base color: Darker Blue from the logo background */
    background-color: #2D61AD; 
    /* Dithered dot color: Lighter Blue from the logo dots */
    background-image: linear-gradient(45deg, #66A5D7 25%, transparent 25%, transparent 75%, #66A5D7 75%, #66A5D7),
                      linear-gradient(45deg, #66A5D7 25%, transparent 25%, transparent 75%, #66A5D7 75%, #66A5D7);
    background-size: 8px 8px; /* Adjusted size to match density from logo more closely */
    background-attachment: fixed;
    font-family: sans-serif;
    height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    /* Light text color for dark background (already set) */
    color: #FDF5E6; 
    /* FOOTER FIX: Flexbox to push content apart (unchanged) */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header and Navigation Styling (UNCHANGED) --- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Image Placeholder Fallback (UNCHANGED) */
.logo-img[alt]:after {
    content: attr(alt);
    display: block;
    text-align: center;
    line-height: 40px;
    height: 40px;
    width: 120px;
    border: 1px dashed #E74C3C;
    background-color: #ffe0e0;
    color: #E74C3C;
    font-size: 10px;
    font-weight: bold;
}

.logo-img:not([src]):not([srcset]) {
    visibility: hidden;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #E74C3C;
    border-bottom: 2px solid #E74C3C;
}

/* NEW: Navbar Order Button */
.nav-order-button {
    background-color: #4D77FF; /* Blue color */
    color: white !important; /* Force white text */
    text-decoration: none !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
    margin-left: 20px;
}

.nav-order-button:hover {
    background-color: #3862e3;
    border-bottom: none !important;
}

/* --- Main Content and SPA Styles --- */
.content-area {
    flex-grow: 1; 
    max-width: 1000px;
    padding: 20px;
    /* Main content container MUST remain white for readability */
    background-color: white; 
    /* Darker Drop Shadow on main content container */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
    border-radius: 8px;
    color: #333; /* Text color inside the white box is dark */
    margin: 40px auto; /* Margin ensures content stays centered below header */
}

/* Home Page Layout (ORIGINAL WORKING FLEXBOX - UNCHANGED) */
.home-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.home-text {
    flex: 2; /* Text takes 2/3 of space */
    min-width: 300px;
}

.home-image-placeholder {
    flex: 1; /* Image takes 1/3 of space */
    min-width: 250px;
    max-width: 400px;
    text-align: center;
}

/* NEW: Home Page Order Button */
.home-order-button {
    display: inline-block;
    background-color: #E74C3C; /* Red color */
    color: white !important;
    text-decoration: none !important;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.2s;
}

.home-order-button:hover {
    background-color: #d63e2e;
}

/* RESTORED: Truck image styling - NO SIZING LIMITS ADDED HERE */
.truck-image {
    max-width: 100%; 
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border: none; 
    padding: 0;
}

/* Image Placeholder Fallback for Truck Image (UNCHANGED) */
.truck-image[alt]:after {
    content: attr(alt); 
    display: block;
    height: 250px;
    line-height: 250px;
    width: 100%;
    border: 3px dashed #E74C3C;
    background-color: #f5f5f5;
    color: #E74C3C;
    font-weight: bold;
    font-size: 1.2em;
}

.truck-image:not([src]):not([srcset]) {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

/* --- Menu Page Styles (CRITICAL FIXES HERE) --- */
/* Clicking Menu Item Cursors */
.menu-item-wrapper, .full-width-item {
    cursor: pointer;
}

/* Styling for the menu logo - RESTORED SIZE */
.menu-logo {
    display: block;
    max-width: 40%; /* Adjusted for better fit, consistent with prior request */
    height: auto;
    margin: 0 auto 15px auto; /* Center the image and add margin below */
}

/* Placeholder fallback for the menu logo */
.menu-logo[alt]:after {
    content: attr(alt); 
    display: block;
    height: 150px; /* Placeholder height, adjusted for larger visible size */
    line-height: 150px; 
    max-width: 400px; /* Adjusted max width for placeholder */
    margin: 0 auto 15px auto;
    border: 3px dashed #E74C3C;
    background-color: #f5f5f5;
    color: #E74C3C;
    font-weight: bold;
    text-align: center;
}

.menu-logo:not([src]):not([srcset]) {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Sauce Buttons Styling (UNCHANGED) */
.sauce-buttons {
    text-align: center;
    margin: 20px 0;
}

.sauce-buttons button {
    background-color: #E74C3C;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

.sauce-buttons button:hover {
    background-color: #d63e2e;
}

/* MODAL/LIGHTBOX STYLES (UNCHANGED) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.85); /* Darker black w/ opacity for lightbox */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 25px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px; /* Max width for readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    color: #333;
}

/* Styling for the close button is outside here */
/* SLIDESHOW STYLES */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.mySlides img {
    width: 100%;
    height: auto;
    display: block;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.5);
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background with a little opacity */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Close button for all modals */
.close-button {
    color: #fff; /* White close button for the dark image lightbox */
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 30px;
}

.close-button:hover,
.close-button:focus {
    color: #E74C3C; /* Red on hover */
    text-decoration: none;
}

.modal-image {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: 60px auto; /* Margin to clear the close button */
    pointer-events: none; /* Prevents the image from being the element clicked */
    user-select: none;
}

/* Image Scroller Styles (UNCHANGED) */
.scroller-title {
    margin: 40px 0 10px 0;
    border-bottom: 2px solid #eee;
}

.image-scroller {
    overflow: hidden; 
    padding: 10px 0;
}

.scroller-content {
    display: flex;
    white-space: nowrap;
    width: 200%; 
    animation-play-state: running; 
}

.scroll-item {
    height: 150px; 
    width: auto;
    margin-right: 20px; /* Margin needed for width calculation */
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    cursor: pointer; /* Indicate it's clickable */
}

.scroll-item:hover {
    transform: scale(1.1);
    z-index: 10; 
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); 
    }
}

/* --- End Image Scroller Styles --- */

/* --- MENU COLUMN STYLES - CRITICAL FIXES --- */
.menu-columns {
    display: flex; 
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: flex-start; /* Align items to the start */
    gap: 20px 30px; /* Vertical and horizontal gap */
    margin-bottom: 20px;
}

.menu-item-wrapper {
    /* Each item takes roughly half the width, minus gap */
    flex-basis: calc(50% - 15px); /* Half width minus half the gap */
    max-width: calc(50% - 15px); /* Prevent items from growing too large */
    /* Ensure items have consistent height to keep rows aligned */
    display: flex; 
    flex-direction: column;
}

/* For full-width items like "Wings" */
.full-width-item {
    width: 100%;
    margin-top: 5px; 
    margin-bottom: 5px;
    /* Ensure it also respects Flexbox if inside menu-columns (which it isn't here, but good practice) */
    flex-basis: 100%;
    text-align: center; /* Center the text for full-width items */
}

.full-width-item .single-menu-item { 
    margin-top: 10px;
    margin-bottom: 0; 
    line-height: 1.4; 
    /* Remove center alignment for single-menu-item if it causes issues, rely on parent */
    text-align: left; 
}

.full-width-item .single-menu-item strong {
    white-space: nowrap; 
}

.menu-item-wrapper p, .single-menu-item { 
    margin-top: 10px;
    margin-bottom: 0; 
    line-height: 1.4; 
}

#menu h3 {
    clear: both; 
    color: #E74C3C; 
    text-align: center;
    margin-top: 30px; 
}

/* SCHEDULE PAGE STYLES (UNCHANGED) */
.schedule-title {
    color: #E74C3C;
    border-bottom: 2px solid #E74C3C;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 10px;
    /* NEW: Center the title */
    width: 100%; 
    text-align: center;
}

/* Helper class to ensure inline-block with width: 100% centers its content */
.centered-title {
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

.g-calendar-embed {
    /* Darker Drop Shadow on calendar embed */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
    background-color: white;
    border-radius: 8px;
    max-width: 100%; 
    height: auto; 
    min-height: 400px;
    display: block;
    margin: 20px auto 0 auto; 
}

/* BOOK ONLINE PAGE STYLES (UNCHANGED) */
.book-header {
    margin-bottom: 20px;
    text-align: center;
}

.book-header p {
    margin-bottom: 10px;
}

/* New rule for the HR line on the Book Online page */
.book-header-hr {
    border: none;
    border-top: 2px solid #E74C3C; /* Red line */
    width: 100%; /* Full width */
    margin: 0 auto 10px auto; /* Centered with space below */
}

.form-embed-wrapper {
    text-align: center;
}

.g-form-embed {
    max-width: 100%;
    height: 1273px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    background-color: white; 
    display: block;
    margin: 0 auto;
}

/* CSS to hide all sections by default (UNCHANGED) */
.page-content {
    display: none;
    padding: 20px 0;
}

.active-page {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Footer Styling (UNCHANGED) --- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #333;
    color: white;
    width: 100%;
}