/* Box-sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {    
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    margin-left: 10px;
    min-height: 100vh;
    font-family: "Cabin", sans-serif;
    background-color: #e8d596;
    background-image: url("chef huangs kitchen_hero shot _HD.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

header {
    background-color: #e3dbdb; /* Grey top menu */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    opacity: 0.85;
    height: 80%;
}

.image-gallery {
    display: flex;
    overflow-x: scroll;
    white-space: nowrap;
}

.image-gallery img {
    flex: 0 0 auto; /* Prevent images from stretching */
}

.table-container {
    display: grid;
    grid-template-rows: auto 1fr; /* Adjust row heights as needed */
}

.table {
    grid-template-columns: 200px auto;
    width: 100vw;
    background-color: #ca5218;
    padding: 10px;
    width: 97%;
    border-spacing: 20px;
}

.table_caption {
    background-color: #ca5218;
    color: white;
    font-size: 36pt;
    font-weight: bold;
    text-align: center;
    font-family: Georgia, serif;
    position: relative;
    padding-bottom: 15px;
    grid-row: 1;
}

.table_caption-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: white;
    width: 70%; /* Adjust width as needed */
    grid-row: 2;
}

.menu-item {
    background-color: #ca5218;
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item .item-text {
    font-size: 15pt;
    flex: 1 0 auto; /* Allow text to expand and shrink */
    width: 40%;
}

.menu-item .item-image {
    max-width: 40%;
    height: auto;
    object-fit: cover;
    margin-left: 10px;
}

.slide_container {
    display: flex;
    align-items: center;
    justify-content: center;
}


.slider {
    display: block;
    position: relative;
    height: auto ; 
    width: 100%;
    margin: 10px;
    background-color: white;
    overflow: hidden;
}

.slider__slides {
    width: 100%;
    padding-top: 100%;
    aspect-ratio: 1 / 1 ;
    position: relative ;
    height: 100% ;
}

.slider__slide {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    top: 0;
    left: 0;
    width: 100% ;
    height: 100% ;
    background-color: lemonchiffon;
    transition: 1s;
    opacity: 0;
}


.slider__slide.active {
    opacity: 1;
}

.slider__slide img {
    width: 100%;
    object-fit: cover;
    height: auto ;
    max-height: 100% ;
}

.slider__nav-button {
    position: absolute;
    height: 70px;
    width: 70px;
    background-color: #333;
    opacity: 0.6;
    cursor: pointer;
}

#nav-button--prev {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

#nav-button--next {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

#nav-button--prev::after,
#nav-button--next::after {
    content: "";
    position: absolute;
    border: solid white;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 3px;
    width: 40%;
    height: 40%;
}

#nav-button--next::after {
    top: 50%;
    right: 50%;
    transform: translate(25%, -50%) rotate(-45deg);
}

#nav-button--prev::after {
    top: 50%;
    right: 50%;
    transform: translate(75%, -50%) rotate(135deg);
}

.slider__nav {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.slider__navlink {
    display: inline-block;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 1px #fff solid;
    background-color: #333;
    opacity: 0.6;
    margin: 0 10px 0 10px;
    cursor: pointer;
}

.slider__navlink.active {
    background-color: #fff;
    border: 1px #333 solid;
}

@media screen and (max-width: 768px) {
    .slider__nav-button {
        height: 40px;
        width: 40px;
    }
    .slider__navlink {
        height: 12px;
        width: 12px;
    }
}

.logo {
    text-align: center;
}

.logo img,
.logo a {
    display: inline-block;
    vertical-align: middle;
}

main {
    background-color: #e8d596;
    opacity: 0.8;
}

.fa-solid.fa-house {
    font-size: 30px; /* Adjust icon size */
    color: #333; /* Change icon color */
    padding-right: 0px;
    padding-left: 10px;
}

main-nav {
    display: flex;
    gap: 30px;
    padding: 30px 30px;
}
 

.hamburger {
    display: none;
    /* Hamburger button styles */
}

.hamburger {
    display: none; /* Hide on larger screens */
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 25px;
    background: #333;
    margin: 4px 0;
    transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #333;
    padding: 0px 0px;
    transition: all 0.3s ease-in-out;    
}

.mobile-nav.active {
    left: 0;    
}

.mobile-nav ul {    
    list-style: none;    
    padding: 10px;
}

.mobile-nav li {
    margin-bottom: 7px;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;    
}

main {
    /* Grid layout for main content */
}

footer {
    /* Footer styles */
}

.main-nav {
    display: flex;
    gap: 0px;
}

.main-nav a {
    text-decoration: none;        
    color: inherit;    
}

/* Media query for small screens */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

.image-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    justify-content: space-around;
    flex-wrap: nowrap; /* Prevent images from wrapping */
    width: 800px; /* Adjust the width as needed */
}

.image-container::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

img {
    flex: 0 0 15%;
    object-fit: cover;
    height: auto;
}

.scroll-left,
.scroll-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 1fr 2fr; /* Adjust column widths as needed */
    gap: 10px;
}

h2 {
    text-align: center;
}

form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    row-gap: 20px;
}

.form-row {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    width: 20%;
    gap: 10px;
}

label {
    text-align: right;
    width: 150px;
}

formbutton {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

textarea {
    width: 400px; /* Make the textarea fill the available width */
    height: 150px; /* Adjust the height as needed */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical; /* Allow resizing only vertically */
}


#alertMessage {
    background-color: #f0ad4e;
    color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

.fullscreen-image {
    width: 100%;
    /* Makes the image span the full width of its parent */
    height: auto;
    /* Maintains the aspect ratio */
    display: block;
    /* Removes any extra space below the image */
    max-width: 100vw;
    /* Ensures it doesn't overflow the viewport width */
    max-height: 100vh;
    /* Ensures it fits within the viewport height, if needed, maintaining aspect ratio */
    object-fit: contain;
    /* Or 'cover' if you want it to fill the screen and crop if necessary */
}

/* Optional: Adjust main content padding if needed for tighter fit */
main {
    padding: 0;
    /* Remove default padding if you want image right to edges */
    margin: 0;
}

center {
    margin: 0;
    padding: 0;
}