/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}


/* Default styles for all screen sizes */
body {
    background-image: url('backg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.header {
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid white;
    border-width: 4px; 
    position: relative;
    z-index: 1;
    padding: 1%;
    height: 150px; /* Adjust the height value as needed */
}
.footer {
    background-color: #000000;
    color: #FFD700;
    border: 2px solid white;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}
.footer p {
    margin: 0;
}


.slide {
    flex: 1;
    background-size: cover;
    background-position: center;
    animation: fade-in 3s ease-in-out forwards;
    opacity: 0;
}

.image-slideshow img {
    width: 100%;
    height: 90%;
    animation: fade-in 3s ease-in-out forwards;
    position: absolute;
    opacity: 0;
    max-height: 600px; /* Set a maximum height to prevent images from becoming too large */
    max-width: 1600px;
}

.image-slideshow img:nth-child(1) {
    animation-delay: 0s; /* Delay the first image by 0 seconds */
}

.image-slideshow img:nth-child(2) {
    animation-delay: 8s; /* Delay the second image by 6 seconds */
}

.image-slideshow img:nth-child(3) {
    animation-delay: 16s; /* Delay the third image by 12 seconds */
}

.image-slideshow img:nth-child(4) {
    animation-delay: 24s; /* Delay the fourth image by 18 seconds */
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* HEADER */

/* Style for the navigation */
.navbar {
    margin-left: auto;
    padding: 10px; /* Padding inside the box */
}

.navbar .nav-item {
    margin-right: 30px;
}
.logo {
    width: 150px; /* Adjust the width as needed */
    height: 150PX; /* Maintain the aspect ratio of the logo */
    margin-right: 10px;
}

.navbar {
    margin-left: auto;
    padding: 10px; /* Padding inside the box */
    display: flex; /* Add display flex for better alignment */
    flex-wrap: wrap; /* Allow navigation items to wrap on smaller screens */
    justify-content: space-between; /* Spacing between items */
    align-items: center;
}

.logo {
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Maintain the aspect ratio of the logo */
    margin-right: 10px;
}

/* Style for each navigation item (box) */
.nav-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid white;
    transition: 0.3s;
    font-weight: bold;
    margin: 5px; /* Add some spacing between navigation items */
}

.nav-item .nav-link {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.nav-item:hover {
    background-color: #555;
}

/* Make the header and navigation items responsive for smaller screens */
@media screen and (max-width: 768px) {
    .header {
        height: 120px; /* Allow header to adjust its height based on content */
        text-align: center; /* Center-align the items */
    }

    .navbar {
        flex-direction: row; /* Stack items vertically for small screens */
        margin-left: -24px;
        padding: 0px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        width: 80px;
        height: 70px;
    }

    .nav-item {
        margin-right: auto; /* Remove right margin between items */
    }
    .nav-item {
        background-color: rgba(255, 255, 255, 0.1);
        margin-right: 10px;
        padding: 1px;
        border-radius: 5px;
        border: 2px solid white;
        transition: 0.3s;
        font-weight: bold;
        margin: 5px;
        
    }
    .navbar .nav-item {
        margin-right: 0px;
    }
    
    
}

/* Style the content sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Style links */
a {
    color: #f8e005;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* HEADER */
/* ////// MENU PAGE \\\\\\\ */
.menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    margin: 20px 0; /* Add margin for spacing on all sides */
}
.menu-item {
    border: 2px solid #000000;
    padding: 10px;
    box-shadow: #757676;
    height: 300px; /* Specify a fixed height for menu item containers */
    text-align: center;
}

.menu-item img {
    max-width: 100%; /* Make the images responsive by adjusting their width */
    height: auto; /* Allow the height to adjust proportionally */
    max-height: 150px; /* Limit the maximum height for images */
}

.menu-section-label {
    grid-column: span 4; /* Span all 4 columns for the section label */
    text-align: center;
    font-weight: bold;
    font-size: 24px;
}

/* Style for menu item descriptions */
.menu-item p {
    margin: 0;
    color: #fff; /* Change text color to white */
    text-align: center; /* Center-align the text */
}

.menu-buttons {
    text-align: center;
    margin: 20px 0;
}

.menu-buttons button {
    padding: 15px 30px; /* Increase button size */
    font-size: 18px; /* Increase font size */
}

/* Adjust spacing between menu sections */
.menu-list {
    text-align: center; /* Center-align the menu sections */
    margin-top: 20px; /* Add space above the menu sections */
}

.menu-section {
    margin-top: 20px; /* Add space between menu sections */
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

/* MENU POPUP */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Set a high z-index value to ensure it appears above other elements */
}

.popup-content {
    background-color: gold;
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    z-index: 9999; /* Set a high z-index value to ensure it appears above other elements */
}

.popup-close {
    float: right;
    cursor: pointer;
}

.popup.active {
    display: block;
    z-index: 9999; /* Set a high z-index value to ensure it appears above other elements */
}

.popup-item-image {
    max-width: 100%; /* Set maximum width to ensure it fits within the box */
    max-height: 200px; /* Set maximum height as needed */
    display: block; /* To remove any extra spacing */
    margin: 0 auto; /* Center the image horizontally if needed */
}

/* Style other text elements within the popup as needed */
.popup-content h2,
.popup-content p {
    color: #000000; /* Change the text color to your desired color */
}

.popup-close {
    color: black;
}

/* Add styles for the cart item details */
.item-details {
    display: flex;
    justify-content: space-between;
}

/* Add styles to position the quantity buttons */
.quantity-button {
    width: 30px; /* Adjust the width as needed */
    height: 30px; /* Adjust the height as needed */
}

/* Add styles for the total price container */
.total-price {
    flex: 0 0 30%; /* Fixed width for total price */
    text-align: right; /* Align text to the right */
    padding-top: 20px; /* Add some top padding for spacing */
}

.table-number {
    flex: 0 0 30%; /* Fixed width for total price */
    text-align: right; /* Align text to the right */
    padding-top: 20px; /* Add some top padding for spacing */
}

.checkout-button {
    flex: 0 0 30%; /* Fixed width for total price */
    text-align: right; /* Align text to the right */
}

/* Make the menu container responsive for smaller screens */
@media screen and (max-width: 768px) {
    .menu-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: center;
        margin: 20px 0;
    }
    .menu-buttons button {
        padding: 10px 3px;
        font-size: 18px;
        font-weight: normal;
    }
    .menu-section-label {
        grid-column: span 2;
        text-align: center;
        font-weight: bold;
        font-size: 24px;
    }
    .menu-item {
        border: 2px solid #000000;
        padding: 10px;
        box-shadow: #757676;
        height: 250px;
        text-align: center;
    }
}


        /* MENU POPUP */

    /* ////// MENU PAGE \\\\\\\ */
    
    /* CONTACT PAGE */

/* CONTACT PAGE BACKGROUND */
body.contact-page {
    background-image: url('BAKAR_SATEY.jpg'); /* Replace with your desired background image */
    background-repeat: no-repeat;
    background-size: cover; /* Adjust to your preferred size */
    background-color: #f5f5f5; /* Fallback background color */
    width: 100%;
    height: 100%;
}
/* Style the contact container */
.contact-container {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    flex-wrap: wrap; /* Allow boxes to wrap to the next row if needed */
    margin-top: 20px; /* Add some top margin for spacing */
}
/* Style the contact boxes */
.contact-box {
    background-color: #333;
    color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 250px; /* Set a fixed width for uniform size */
    height: 300px; /* Set a fixed height for the boxes */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.contact-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}
.contact-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.contact-box p {
    font-size: 18px;
}
@media screen and (max-width: 768px) {
    .contact-container {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        margin-top: 20px;
        flex-direction: row;
    }
    .contact-box {
        background-color: #333;
        color: #fff;
        padding: 20px;
        margin: 4px;
        border-radius: 10px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
        text-align: center;
        width: 250px;
        height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .contact-box img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    .contact-box h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .contact-box p {
        font-size: 12px;
    }
}
    /* CONTACT PAGE */


    /* CART SECTION  */

.cart-item {
    border: 1px solid #ccc;
    padding: 10px;
}

/* Style for the cart table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.cart-table th {
    background-color: #000000;
}
    /* CART SECTION  */


    /* ABOUT US PAGE */
body.about-page {
    background-image: url('GAMBAR_KEDAI.jpg'); /* Set the background image */
    background-repeat: no-repeat;
    background-size: cover; /* Adjust to your preferred size */
    background-attachment: fixed; /* Fixed background */
    width: 100%;
    filter: blur(-5px);
    color: #fff; /* Set text color to white or a color that contrasts with the background */
}  

*.body.about-page{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%
}
    
.about-us {
    padding: 20px;
}
.about-layer {
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.7); /* Set the opacity to 0.7 for transparency */
    border-radius: 10px;
    padding: 80px;
    margin-bottom: 20px; /* Add space between layers */
}

.about-layer .about-image {
    flex: 0.5; /* Allow image to take up remaining space */
    text-align: center;
}

.about-layer .about-image img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 300px; /* Adjust the maximum height to make the image bigger */
    margin: 0 auto; /* Center the image horizontally within the available space */
}


.about-layer .about-text {
    flex: 0.5; /* Allow text to take up remaining space */
    padding: 10px; /* Add padding to create space between image and text */
    text-align: justify; /* Justify the text for better alignment */
}

.about-layer .about-text h2 {
    font-size: 30px;
    color: #fff;
    margin: 0; /* Remove default margin to prevent spacing */
}

.about-layer .about-text p {
    font-size: 19px;
    color: #fff;
    margin: 0; /* Remove default margin to prevent spacing */
}
/* Additional CSS for reversed layer */
.about-layer.reversed {
    flex-direction: row; /* Keep the flex direction as row */
    justify-content: space-between; /* Distribute items evenly along the row */
}

.about-layer.reversed .left-text {
    flex: 0.5; /* Allow text to take up half of the space */
    padding: 20px 40px 20px 180px; /* Adjust padding values to move text to the right */
    text-align: justify;
}

.about-layer.reversed .about-image {
    flex: 0.5; /* Allow image to take up half of the space */
    padding: 20px; /* Adjust padding as needed */
    text-align: center;
}

.about-layer.reversed .about-image img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    margin: 0 auto;
}
@media screen and (max-width: 768px) {
    .about-layer {
        display: flex;
        align-items: center;
        text-align: center;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 10px;
        padding: 0px;
        margin-bottom: 20px;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .about-layer.reversed .left-texts {
        flex: 0.5;
        padding: 25px 145px 20px 20px;
        text-align: justify;
    }
    .about-layer.reversed .left-text {
        flex: 0.5;
        padding: 22px 51px 20px 120px;
        text-align: justify;
    }
}
    /* ABOUT US PAGE */


    

 



