* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth; /* enables smooth scrolling */
  }

  body {
    font-family: Arial, sans-serif;
    background-color: #d9d9d9;
    margin: 0;
    padding: 0;
    height: 200vh; /* make page scrollable */
    position: fixed; /* Initially fixed to prevent scrolling */
    width: 100%; /* Full width */
  }

  .allow-scroll {
    position: relative; /* Allow normal positioning (can scroll) */
  }

  .background {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .content {
    text-align: center;
    color: #fff;
  }

  h1 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }

  p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #eee;
  }

  a.button {
    text-decoration: none;
    background-color: #ffb703;
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  a.button:hover {
    background-color: #fb8500;
    transform: scale(1.05);
  }

  /* States Section */
  .states-section {
    position: relative;
    top: 0;
    width: 100%; 
    padding: 8px 0;
    background-color: #201f1f;
    display: flex;
    justify-content: center; 
    align-items: center;
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
    text-align: center;
    z-index: 3;
  }

  .fixed {
    position: fixed; /* Will become fixed after the button is clicked */
    top: 0;
    left: 0;
    right: 0; /* Ensure it spans the width */
  }

  .states-section a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    white-space: nowrap;
  }

  .homepage-button {
    position: relative;
    z-index: 2;
    margin-right: 7px; 
  }

  .homepage-button img {
    background-color: #f7ce00;
    width: 50px; 
    height: auto; 
    border-radius: 6px;
    transition: transform 0.3s ease;
  }

  .states-section div {
    background-color: #201f1f;
    padding: 10px 15px; 
    border-radius: 6px;
    cursor: pointer;
    font-size: 17.5px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .states-section div:hover {
    background-color: #f7ce00;
    color: #000;
    transform: scale(1.3);
  }

  .states-section img:hover {
    transform: scale(1.1); /* Slight enlargement on hover */
  }

  .hidden {
    display: none; /* Class to hide elements */
  } 

  /* image slide */
  .slider-wrapper {
    position: relative;
    width: 102%; 
    height: 550px;
    margin: 0 -20px;
    overflow: hidden; 
    margin-top: 80px; 
  }

  .slider {
    position: relative;
    display: flex;
    width: 100%;
    height: auto; 
    aspect-ratio: 16 / 9; 
    overflow-x: auto;  
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0,0%, 0%, 0.25);
    border-radius: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .slider img {
    flex: 1 0 100%;
    width: fit-content;
    height: fit-content; 
    min-height: 200px; 
    scroll-snap-align: start;
    object-fit: cover;
    display: block; /* Prevents spaces below the image */
}

  .slider::-webkit-scrollbar {
    display: none;
  }

  .slider {
    scrollbar-width: none;
  }

  .slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.75;
    transition: opacity ease -1000ms;
  }

  .slider-nav a:hover {
    opacity: 1;
  }

  .container1 {
    display:flex; /* Use flexbox for layout */
    align-items: center; /* Center the items vertically */
    padding-top: 60px;
    padding-left: 200px;
    padding-right: 200px; 
  }

  .box {
    margin-left: -25px; /* Space between image and text */
    margin-right: -25px; 
    ; 
  }

  .box h1 {
    font-family: 'Cinzel', serif; /* Decorative font */
    font-size: 48px;
    color: #ffffff; 
    text-align: center; 
    text-shadow: 3px 2px 3px #000; /* Text shadow for depth */
    background: linear-gradient(360deg, #00094e,  #5068edb1); /* Gradient background */ 
    padding: 4px;
    border-radius: 20px;
    box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-top: -40px; 
  }

  .box h3 {
    font-family: 'Roboto', sans-serif; /* Readable font */
    text-align: justify; 
    text-justify: inter-word;
    font-size: 1 em;
    color: #333; /* Darker color for readability */
    padding: 20px;
    background: #ffffff; /* Slightly transparent background */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    margin-bottom: 10px;
  }

  .container2 h1 {
    font-family: 'Dancing Script', cursive; 
    font-size: 4.5em; 
    text-align: center;
    color: #000000; /* Customize color */
    padding-top: 50px;
    padding-bottom: 30px;
    transition: color 0.3s ease; /* Add a transition for hover effect */
}

  /* Traditional Dishes in Malaysia */
  .container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .dish-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 1 1 calc(33.333% - 20px); /* Three cards per row */
    min-width: 250px; 
  }

  .dish-card img {
    width: 100%;
    height: 40%;
  }

  .dish-content {
    padding: 15px;
  }

  .dish-name {
    font-size: 1.5em;
    margin: 0;
    color: #333;
  }

  .dish-description {
    font-size: 1em;
    color: #666;
    text-align: justify; 
    text-justify: inter-word;
  }

  /* Responsive adjustments */ 
  @media (max-width: 768px) {
    .dish-card {
      flex: 1 1 calc(50% - 20px); /* Two cards per row */ 
    }
  }

  @media (max-width: 480px) {
    .dish-card {
      flex: 1 1 100%; /* One card per row */ 
    }
  } 


 /* Feedback Section */
input[type='text'], input[type='email'], input[type='tel'], textarea {
    width: 100%;
    padding: 10px 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 10px;
    margin-bottom: 20px;
    transition: border 0.3s, box-shadow 0.3s;
}

input[type='text']:focus, input[type='email']:focus, input[type='tel']:focus, textarea:focus {
    border: 1px solid #5db6db;
    box-shadow: 0 0 10px #b9eaff;
    outline: none;
}

input[type='submit'] {
    background: rgb(39, 160, 210);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

input[type='submit']:hover {
    background: rgb(25, 130, 170);
}

.feedback-form {
    max-width: 1155px; 
    margin: 0 auto;
    margin-bottom: 50px;
    background: #fffefed0;
    padding: 40px 100px 40px 100px;
    border-radius: 10px;
    box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, 0.1);
}

.leave-feedback  {
    text-align: center; /* Justifies only the About Me section */
    margin-bottom: 20px; /* Space below the section */
}

.feedback-display {
    margin-top: 30px;
    padding: 20px;
    background: #f3f9ff;
    border-left: 5px solid #27a0d2;
    border-radius: 5px;
}
.feedback-display h3 {
    margin-bottom: 20px;
}

.feedback-display p {
    color: black;
    padding: 1px;
    margin: 3px 0;        /* reduce gap atas & bawah */
    line-height: 1.2;     /* tighten text spacing */
}

  /* Footer Part */ 
footer {
    background-color: #201f1f;
    color: rgb(154, 190, 255);
    margin-top: 10px;
    padding-top: 30px;
    padding-bottom: 10px;
    padding-left: 80px;
    padding-right: 80px;
    text-align: left;
    font-family: Arial, sans-serif;
}

.about-me  {
    padding-right: 50px;
    text-align: justify; /* Justifies only the About Me section */
    margin-bottom: 20px; /* Space below the section */
}

.container3 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Ensure elements wrap on smaller screens */
}

.footer-section {
    width: 48%; /* Adjust width to fit better beside each other */
    margin-bottom: 20px; /* Space below each section */
}

.footer-section h1 {
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.5em;
    color: #ffcc00; /* Change heading color for contrast */
}

.quick-links li {
    width: 20%; /* Adjusted width for three columns */
    margin-bottom: 8px; /* Space between links */
}

.quick-links {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping of list items */
    justify-content: flex-start; /* Align links to the left */
    padding: 0; /* Removes default padding */
    list-style: none; /* Removes bullet points */
}

.quick-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #ffcc00; /* Change color on hover for better visibility */
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 20px; /* Increased margin for separation */
    font-size: 0.9em;
    color: #ffc800;
}