* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



   .dot {
        position: absolute;
        will-change: transform, top, left;
    }


html, body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #4b0082, #008080, #800000); /* Purple, Teal, Maroon Gradient */
    color: white;    
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
      position: relative;
      z-index: -2; /* Ensure background is behind dots */
}

.header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: solid 2px #800000;
    flex-shrink: 0;
}

.header_menu {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;          /* desktop: center the whole group */
  padding: 0px;
  border-bottom: solid 2px #800000;
  width: 100%;
  background-color: rgba(0, 128, 128, 0.25);
}

.menu_group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  max-width: 100%;
}

.menu_label {
  white-space: nowrap;
  flex: 0 0 auto;
  font-weight: 600;                /* subtle emphasis */
}

.menu_scroller {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.menu_scroller .links {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;        /* snap target */
}

/* =========================================
   Mobile polish: scroll, fade hint, snap
   ========================================= */
@media (max-width: 768px) {

  .header_menu {
    justify-content: flex-start;
    padding: 0 0 0 10px;
  }

  .menu_group {
    width: 100%;
    position: relative;            /* allows fade overlay */
  }

  .menu_scroller {
    flex: 1 1 auto;
    min-width: 0;                  /* REQUIRED for scrolling in flex */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    justify-content: flex-start;   /* prevents left cut-off */
    padding: 0 26px 0 6px;         /* right padding makes space for fade */
    scroll-padding-left: 6px;

    scroll-behavior: smooth;       /* nice polish */
    scroll-snap-type: x proximity; /* smooth snapping */
  }

  /* Hide scrollbar but keep scrolling */
  .menu_scroller::-webkit-scrollbar {
    height: 0px;
  }
  .menu_scroller {
    scrollbar-width: none;         /* Firefox */
  }

  /* Right fade to hint there’s more to scroll */
  .menu_group::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
  }
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 70px;
  width: auto;
  transition: transform 0.2s ease-in-out;
  border-radius: 25px;
}
.logo-img:hover {
  transform: scale(1.05);
}

/* New class for center positioning */
.center-order {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main_content {
    flex: 1;
            display: flex;
            justify-content: center;
            align-items: flex-start;    
    overflow-y: auto; /* Scrolling happens here */
    padding: 10px;
    max-width: 100%; /* Avoids overflow */
}

.grid_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Max 2 columns */
    gap: 10px;
    width: 100%;
}

        .grid_container:has(.content_box:only-child) {
            display: flex;
            justify-content: center;
        }

        .grid_container:has(.content_box:only-child) .content_box {
            width: 100%;
        }

        @media (max-width: 525px) {
            .grid_container {
                grid-template-columns: 1fr;
            }
        }

/* Individual content boxes */
.content_box {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2); /* 0.8 for 80% opacity */
}

.footer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    border-top: solid 2px #4b0082;
}

a {
  text-decoration: none;
  color: #FFFFFF; /* White text */
  transition: background-color 1.5s ease, border-color 1.5s ease, color 1.5s ease;
}
nav a {
  text-decoration: none;
  color: #FFFFFF; /* White text */
  background-color: rgba(139, 0, 0, 0.9); /* indigo 0.8 for 80% opacity */ 
  transition: background-color 1.5s ease, border-color 1.5s ease, color 1.5s ease;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 15px;
  border: solid 2px purple;
}
nav a:hover {
  text-decoration: none;
  color: #FFFFFF; /* White text */
  background-color: rgba(76, 0, 105, 0.9); /* maroon 0.8 for 80% opacity */ 
  border: solid 2px maroon;
}

.links {
  text-decoration: none;
  color: yellow;
  background-color: rgba(139, 0, 0, 0.9);
  transition: background-color 1.5s ease, border-color 1.5s ease, color 1.5s ease;
  padding: 8px;
  border-radius: 15px;
  border: solid 2px rgb(0,128,128);
  display: inline-block; /* helps padding/hover behave nicely */
}

.links:hover {
  text-decoration: none;
  color: white;
  background-color: rgba(76, 0, 105, 0.9);
  border: solid 2px rgb(128,0,0);
}

        h1, h2 {
            text-align: center;
            color: #20A4A4;
            margin-bottom: 5px;
        }
        h1 {
            font-size: 2em;
            text-transform: uppercase;
            border-bottom: 2px solid #20A4A4;
        }
        h2 {
            font-size: 1.5em;
            margin-top: 2px;
            border-bottom: 2px solid #20A4A4;
            padding-bottom: 2px;
        }
        h3 {
            text-align: center;
            color: maroon;
            font-size: 1em;
            margin-top: 2px;
            border-bottom: 2px solid #20A4A4;
            padding-bottom: 2px;
        }
        p {
            font-size: 1.2em;
        }
        ul {
            text-align: left;
            list-style-type: none;
            padding: 0;
        }
        li {
            background: #333;
            margin: 5px 0;
            padding: 10px;
            border-radius: 5px;
        }
        .highlight {
            color: #ffcc00;
            font-weight: bold;
        }
        .contact-form {
            margin-top: 10px;
        }
        .contact-form label {
            display: block;
            margin: 5px 0;
        }
        .contact-form input, .contact-form select, .contact-form textarea {
            width: 100%;
            padding: 8px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .contact-form button {
            background: #d35400;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
        }
       
.slideout-menu {
    display: none;
    position: fixed;
    top: 82px;
    right: 0px;
    width: 250px;
    padding-top: 5px;
    z-index: 1005;
    max-height: calc(100% - 92px);
    overflow-x: hidden;
    overflow-y: auto;
}
#menu_closer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(118, 108, 132, 0.5); /* Transparent purple grey */
  backdrop-filter: blur(2px);
  display: none;
  z-index: 1004;
}

.slideout-menu a {
  display: block;
  text-decoration: none;
  color: #FFFFFF; /* White text */
  background-color: rgba(139, 0, 0, 0.9); /* 0.8 for 80% opacity */ 
  transition: background-color 1.5s ease, border-color 1.5s ease, color 1.5s ease;
  margin-bottom: 5px;
  padding: 8px;
  border-radius: 15px 0px 0px 15px;
  border: solid 2px rgb(0,128,128);
}
.slideout-menu a:hover {
  color: #FFFFFF; /* White text */
  background-color: rgba(76, 0, 105, 0.9); /* 0.8 for 80% opacity */ 
  border: solid 2px rgb(128,0,0);
}
.menu-open .slideout-menu {
    right: 0;
}

        #menu-button {
            padding: 5px;  /* This extends the background color */
            transition: background-color 1.5s ease, border-color 1.5s ease, color 1.5s ease;
            background-color: rgba(139, 0, 0, 0.9); /* 0.8 for 80% opacity */  
            border-radius: 20px; 
            border: solid 2px rgb(0,128,128);
            height: 40px;
            cursor: pointer;
        }

        #menu-button:hover {
            background-color: rgba(76, 0, 105, 0.9); /* 0.8 for 80% opacity */
            padding: 5px;  /* This extends the background color */
            transition: background-color 1.5s ease, border-color 1.5s ease, color 1.5s ease; /* Optional: for smooth color transition */
            border-radius: 20px;
            border: solid 2px rgb(128,0,0);
            height: 40px;
            cursor: pointer;
        }  
/* Category links inside the slideout menu */
.slideout-menu a.food_links {
  text-decoration: none;
  color: yellow;
  background-color: rgba(139, 0, 0, 0.9);
  transition: background-color 1.5s ease, border-color 1.5s ease, color 1.5s ease;
  margin-bottom: 5px;
  padding: 8px;
  border-radius: 15px 0px 0px 15px;
  border: solid 2px rgb(0,128,128);
  display: block; /* matches slideout layout */
}

.slideout-menu a.food_links:hover {
  color: white;
  background-color: rgba(76, 0, 105, 0.9);
  border-color: rgb(128,0,0);
}
  
.error {
    margin-top: 5px;
    margin-bottom: 10px;
    margin-left: 5px;
    margin-right: 5px;
    padding: 5px;
    background-color: #E5D3F5;
    color: red;
    font-size: 0.9em;
    border-radius: 5px; 
    display: none;
    margin-top: 5px;
}

#notifications {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    display: none;
    min-width: 300px;
    max-width: 80%;
    font-size: 18px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

/* Ensure text inside is centered */
#notifications p {
    margin: 0;
    text-align: center;
    display: block;
}
.form-success {
   color: green; 
   padding: 10px; 
}

.form-error {
   color: red; 
   padding: 10px;
}

.home_content {

    margin-top: 10px;
}

.admin_menu {

    padding: 10px;
}

.widgets {
    text-align: left;
    margin-top: 10px;
    padding: 10px;
}

/* Menu categories and items */
.menu-category {
    margin-bottom: 30px;
    box-sizing: border-box;
}

.menu-category-description {
    font-style: italic;
    margin-bottom: 15px;
    color: white;
    box-sizing: border-box;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.menu-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.menu-item.featured {
    border-color: #e67e22;
    background-color: rgba(255,215,0,0.3);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.menu-item-name {
    color: indigo;
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.menu-item-price {
    color: #e67e22;
    font-weight: bold;
}

.menu-item-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.menu-item-image {
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 10px;
    box-sizing: border-box;
}

.featured-badge {
    background-color: #e67e22;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 10px;
}

/* Enhanced responsive filters */
.menu-filter-viewport {
    width: 100%;
    overflow: hidden;
}

.menu-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 5px 5px 0px 5px;
    border-bottom: solid 2px maroon;
    background-color: rgba(0, 128, 128, 0.25);
}

/* Scrollable marquee style on smaller screens */
@media (max-width: 768px) {
    .menu-filter-viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-filter-container {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 5px 5px 0px 5px;
        min-width: max-content;
    }

    .filter-button {
        flex: 0 0 auto; /* Prevent buttons from shrinking */
    }
}

@media (max-width: 768px) {
    .menu-filter-container.wiggle {
        animation: wiggle-horizontal 1s ease-in-out;
    }

    @keyframes wiggle-horizontal {
        0% { transform: translateX(0); }
        20% { transform: translateX(-5px); }
        40% { transform: translateX(5px); }
        60% { transform: translateX(-3px); }
        80% { transform: translateX(3px); }
        100% { transform: translateX(0); }
    }
}

.filter-button {
    background-color: rgba(139, 0, 0, 0.9);
    border: solid 2px rgb(0,128,128);
    padding: 8px 15px;
    margin: 0 5px 5px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 1.5s ease;
    flex-shrink: 0;
}

.filter-button:hover, .filter-button.active {
    background-color: rgba(76, 0, 105, 0.9);
    color: white;
    border-color: #e67e22;
}

/* Responsive breakpoints */
@media screen and (max-width: 768px) {
    .menu-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .menu-item-image {
        
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 5px;
    }
    
    .filter-button {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

/* Fix for Firefox specifics */
@-moz-document url-prefix() {
    .menu-items {
        width: 100%;
    }
    
    .menu-item {
        width: 100%;
    }
    
    @media screen and (max-width: 480px) {
        .grid_container {
            width: 100%;
            padding-left: 10px;
            padding-right: 10px;
            box-sizing: border-box;
        }
    }
}



/* 1) Regular site links inside slideout (default look) */
.slideout-menu a {
  display: block;
  color: #fff;
  background-color: rgba(139, 0, 0, 0.9);
  border: solid 2px rgb(0,128,128);
  padding: 8px;
  border-radius: 15px 0 0 15px;
  margin-bottom: 5px;
}

/* 2) Food categories (regular category links) */
.slideout-menu a.food_links {
  color: yellow;
  background-color: rgba(139, 0, 0, 0.9); /* your original food color */
  border: solid 2px rgb(0,128,128);
  padding: 10px;
}


/* 3) Active category / active page inside slideout */
.slideout-menu a.filter-button {
  color: #fff;
  background-color: rgba(76, 0, 105, 0.95);
  border-color: #e67e22;
} 