
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: Arial, sans-serif;
    background-color: #fcfafa;
    /* min-height: 100vh; */
    line-height: 2rem;
    display: flex;
    flex-direction: column;
    
}

/* Light Mode (7 AM - 7 PM) */
.light-mode {
    background-color: white;
    color: black;
    filter: brightness(100%)
}

.light-mode .content,
.light-mode .header {
    background-color: white;
    color: black;
}


.light-mode .dish {
    background-color: #f9f9f9;
    border-color: #ccc;
}

.light-mode .dish-description {
    color: #333;
}

/* Dark Mode (7 PM - 7 AM) */
.dark-mode {
    background-color: black;
    color: white;
    filter: grayscale(20%);
}

.dark-mode .container {
    background-color: #181818;
}

.dark-mode .content,
.dark-mode .header {
    background-color: #111;
    color: white;
}

.dark-mode .vegetarian,
.dark-mode .non-vegetarian {
    color: #ffffff;
    background-color: black;
}

.dark-mode .footer,
.dark-mode .restaurant-info {
    background-color: darkblue;
    filter: brightness(70%);
    filter: grayscale(20%);
}

.dark-mode .dish {
    background-color: black;
    border-color: #ff4d4d;
}

.dark-mode .dish-description {
    color: rgb(250, 242, 227);
}

.dark-mode .category-nav {
    background-color: #0a0a0a;
}

.dark-mode .read-more {
    color: whitesmoke;
}

.container {
    flex: 1;
    width: auto;
    max-width: 600px;
    margin: 0 auto;
    padding: 0px;
    line-height: 2rem;
    background-color: #e5f0f9;
    border: 2px solid #d1d1d1;
    /* text-align: center; */
    position: relative;
    /* Ensures positioning context for sticky */
}
/* .lazy-img {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.lazy-img.loaded {
    opacity: 1;
    transform: scale(1);
}


.lazy-img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-img.fade-in {
    opacity: 1;
} */
 @font-face {
    font-family: 'MyIcons';
    src: url('/fonts/MyIcons.woff2') format('woff2'),
         url('/fonts/MyIcons.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.full-star::before {
    font-family: 'MyIcons';
    content: "\e901"; 
    color: gold;
    font-size: 24px;
}

.half-star::before {
    font-family: 'MyIcons';
    content: "\e900"; 
    color: gold;
    font-size: 24px;
}

.veg-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between the circle and text */
}

.circle {
    width: 18px; /* Adjust size */
    height: 18px;
    border: 2px solid; /* Square border */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle::before {
    content: "";
    width: 10px; /* Circle size */
    height: 10px;
    border-radius: 50%;
    position: absolute;
}

.veg {
    border-color: green;
}

.veg::before {
    background-color: green;
}

.non-veg {
    border-color: red;
}

.non-veg::before {
    background-color: red;
}

.food-label {
    font-size: 14px;
    font-weight: bold;
}
.main h2{
    align-items: center;
    text-align: center;
    /* background-color: #007bff; */
    color: #007bff;
    text-decoration: underline;
}
/* Fallback in case WOFF2 fails */
.full-star::before { content: "★"; color: gold; font-size: 24px; }
.half-star::before { content: "⯪"; color: gold; font-size: 24px; }
.radio-circle.veg::before { content: "●"; color: green; font-size: 14px; }
.radio-circle.non-veg::before { content: "●"; color: red; font-size: 14px; } 

.dish {
    min-height: 200px; /* Ensure height doesn't collapse before content loads */
}
.lazy-img {
    display: block;
    width: 150px;
    height: 150px;
    background-color: #f0f0f0; /* Placeholder to prevent layout shift */
}

/* .dish img.lazy-img {
    opacity: 0;
}
.dish img.lazy-img.loaded {
    opacity: 1;
} */

.menu-section {
    margin-bottom: 20px;
    padding: 10px;
}

.menu-section h2 {
    font-size: 22px;
    /* font-weight: bold; */
    margin-bottom: 10px;
    font-family: "Londrina Outline", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h1{
    text-align: center;
}
.menu-subsection {
    margin-bottom: 20px;
}

.menu-subsection h3 {
    font-size: 20px;
    /* font-weight: bold; */
    margin-bottom: 10px;
    font-family: "Londrina Outline", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.dish {
    /* border: 1px solid #ddd; */
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.dish-header {
    font-family: "Londrina Outline", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-header img {
    border-radius: 10px;
    width: 100px;
    height: 120px;
    object-fit: cover;
}

.dish-info {
    flex-grow: 1;
    margin-left: 10px;
    /* background-color: #555; */
}

.dish-name {
    font-family: "Londrina Outline", sans-serif;
    /* font-weight: 400; */
    font-style: normal;
    font-size: 1.2rem;
    /* padding: 6px 0px; */
    padding-top: 6px;
    font-weight: bold;
}

.dish-price {
    font-family: "Londrina Outline", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    padding-right: 5px;
    /* font-weight: bold; */

}

.dish-pricing {
    display: flex;
}

.dish-content {
    display: flex;
    justify-content: space-between;
    line-height: 2.0rem;
    /* background-color: #ccc; */
    /* align-items: center; */
}

.dish-details {
    font-family: "Londrina Outline", sans-serif;
    font-weight: 400;
    font-style: normal;
    flex-grow: 1;
    margin-right: 10px;

}
/* .container-menu{
    background-color: whitesmoke;
} */
.dish-description {
    font-size: 0.9rem;
    line-height: 1.5rem;
}

.footer {
    position: sticky;
    bottom: 0rem;
    text-align: center;
    padding-top: 10px;
    background-color: #a5c7ff;
}

/* Footer container (aligned in a row) */
.footer-container {
    display: flex;
    max-height: 50px;
    justify-content: space-around;
    align-items: center;
    /* padding-top: 10px; */
    /* gap: 20px; */
    flex-wrap: wrap;
}

.link,
.footer-text {
    color: #555;
    padding: 0px;
    text-decoration: none;
}

/* Button styling */
#toggle-nav,
.back-btn
 {
    padding: 6px 12px;
    font-size: 1.0rem;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
}


#hide-nav {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px dotted #333;
    margin: 5px 0px;
}



/* Menu styling (hidden initially) */
#menu-container {
    display: none;
    /* margin-top: 15px; */
    text-align: center;

}

#menu-nav a {
    display: block;
    text-decoration-line: none;
    color: black;
    padding: 5px 0;
    font-size: 1rem;
    background-color:#90CAF9;
    text-transform: uppercase;
    border-bottom: 1px dashed #333;border-width: thin; 
}
#menu-nav a:nth-child(even){
    background-color: #64B5F6;
}
/* Adjust WhatsApp and Call Us when menu is open */
.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

/* Separate Show/Hide Button */
.menu-toggle-container {

    text-align: center;
    margin-bottom: 10px;
}

.menu-item .price {
    font-size: 18px;
    color: #e63946;
    /* font-weight: bold; */
    display: inline;
    margin-right: 10px;
}

.menu-item .original-price {
    text-decoration: line-through;
    /* color: #deeb2f; */
    font-size: 14px;
    display: inline;
}

.original-price {
    text-decoration: line-through;
    font-style: italic;
    margin-right: 10px;
    /* font-weight: bold; */
}

.menu-item .offer {
    background: #ffcc00;
    color: #222;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    display: block;
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
}

.dish-pricing {
    line-height: 24px;
    font-weight: 400;
}

.dish .tag:hover {
    /* background-color: #ddd; */
    font-size: 14px;
}

.selected {
    background-color: rgb(13, 106, 34);

}

/* .dish img {
    max-width: 120px;
    border-radius: 10px;
    display: block;
    height: 140px;
    margin: 10px auto;
} */
.dish img {
    width: 120px;
    height: 140px;
    aspect-ratio: 3 / 4; /* Maintains 3:4 aspect ratio */
    display: block;
    margin: 10px auto;
    object-fit: cover; /* Ensures proper image cropping */
    border-radius: 10px; /* Adds rounded corners */
    border: 2px solid #ccc; /* Adds a subtle border */
}
.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star {
    width: 24px;
    height: 24px;
    display: inline-block;
    background: url("/fonts/empty-star.svg") no-repeat center;
    background-size: contain;
}

.star.full {
    background: url("fonts/full-star.svg") no-repeat center;
    background-size: contain;
}

.star.half {
    background: url("fonts/half-star.svg") no-repeat center;
    background-size: contain;
}

.tag {
    /* background: #3498db; */
    background-color: #ff9800;
    color: #ffffff;
    padding: 0px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.vegetarian {
    font-family: "Londrina Outline", sans-serif;
    font-family: 'Roboto';
    /* font-weight: bold; */
    font-weight: 500;
    font-style: normal;
    font-size: 1.2rem;
    color: #000;
    background-color: #fff;
}

.non-vegetarian {
    font-family: "Londrina Outline", sans-serif;
    font-family: 'Roboto';
    /* font-weight: bold; */
    font-style: normal;
    font-size: 1.2rem;
    color: #000;
    font-weight: 400;
    background-color: #fff;
}

.btn,
.dish-counter {
    background-color: yellow;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: black;
    border: 2px solid gold;
    padding: 6px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;

}

/* Dish Counter Wrapper */
.dish-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 15px;
}

.minus,
.plus,
.count {
    margin: 0px;
    padding: 0px 6px;
    font-weight: bold;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.restaurant-info {
    position: sticky;
    top: 0;
    max-height: 4.5em;
    background-color: #a5c7ff;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 15px;
    z-index: 1000;
    /* Keeps it above other content */
}

.restaurant-name {
    font-size: 1.6rem;
    font-weight: bold;
    /* max-height: 20px; */
}

.restaurant-details {
    font-size: 14px;
    /* color: #555; */
}

.category-nav {
    position: sticky;
    top: 4.5rem;
    background-color: #fff;
    padding: 3px 0px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 999;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.category-nav button {
    padding: 5px 10px;
    border: none;
    background-color: #ff9d00;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.category-nav button:hover {
    background-color: #007bff;
    font-size: 1.0rem;
}

@media screen and (max-width: 480px) {
    body {
        line-height: 2rem;
        font-size: 14px;
        /* padding: 5px; */
    }

    .dish-description {
        font-size: 0.9rem;
        line-height: 1.5rem;
    }


    .restaurant-info {
        /* padding: 12px 0px; */
        max-height: 4.5rem;
        font-size: 14px;
    }

    .restaurant-name {
        font-size: 1.5rem;
        min-height: 20px;
    }

    .category-nav {
        padding: 5px 0;
    }

    .category-nav button {
        font-size: 14px;
        padding: 4px 10px;
        margin:3px 1px;
    }

    .dish img {
        aspect-ratio: 3/4;
        width: 120px;
        height: 140px;
    }    

    .category-nav {
        position: sticky;
        top: 4.5rem;
        /* Adjust to match .restaurant-info height */

        padding: 4px 0px;
        /* display: flex; */
    }

    .category-nav button {
        padding: 4px 2px;
        border: none;
    }
}

.dish-raiting {
    color: #007bff;
}

/* Styles for unavailable dishes */
.dish .order-btn:disabled {
    background-color: #f1cb10;
    color: black;
    cursor: not-allowed;
}