/* General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Arial', sans-serif;
  padding-top: 60px; /* Ensures content stays below the fixed navbar */
}

/* Fixed Navbar Styles */
.home, .food, .foodgallery, .contactus {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensures navbar is always on top */
}

.home ul, .food ul, .foodgallery ul, .contactus ul {
  list-style-type: none;
  background-color: rgb(15, 11, 6);
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.home a, .food a, .foodgallery a, .contactus a {
  color: rgb(234, 227, 227);
  text-decoration: none;
  font-size: large;
  padding: 15px 20px;
  display: block;
  text-align: center;
}
.home a:hover, .food a:hover, .foodgallery a:hover, .contactus a:hover {
  background-color: hsl(0, 7%, 26%);
}

.home li, .food li, .foodgallery li, .contactus li {
  float: left;
}

/* Heading with Image */
.heading-with-img {
  text-align: center;
  background-color: rgb(220, 166, 195);
  background-image: url(download.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  color: whitesmoke;
  padding: 50px 0;
  margin: 0;
  font-size: 4em;
}

/* Main Content Styles */
section {
  padding: 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about {
  overflow: hidden;
  padding: 40px 0;
}
.about-content, .about-image {
  width: 50%;
  padding: 20px;
  float: left;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Food List Styles */
.food-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}
.food-item {
  background-color: rgb(168, 193, 193);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Animation for Food List */
.food-item:nth-child(1) { animation-delay: 0.2s; }
.food-item:nth-child(2) { animation-delay: 0.4s; }
.food-item:nth-child(3) { animation-delay: 0.6s; }
.food-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
table {
  width: 60%;
  margin: 20px auto;
  border-collapse: collapse;
  border: 2px solid #161512;
}

table th, table td {
  padding: 10px;
  border: 1px solid #141310;
  text-align: left;
}

table th {
  background-color: #1f1d19;
  color: #fff;
}

table td {
  background-color: #fff;
}
@keyframes slideIn {
0% {
  transform: translateX(-100%);
  opacity: 0;
}
100%{
  transform:translateX(0);
  opacity: 1;
}
}

table{
animation: slideIn 1s ease;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  color: #15171a;
  margin-bottom: 20px;
}
.street-food {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.food-card {
  flex: 0 1 calc(25% - 2rem);
  background-color:rgba(210, 126, 126, 0.829);
  text-align:center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(46, 45, 45, 0.95);
  transition: transform 0.3s ease;
}

.food-card:hover {
        transform: translateY(-5px);
      }

.food-image {
        height: 200px;
        background-size: cover;
        background-position: center;
      }
 .food-info {
        padding: 1rem;
      }

.food-price {
        font-weight: bold;
        color: #f6ecec;
      }
@keyframes slideIn {
      0% {
          transform: translateX(-100%);
          opacity: 0;
      }
      100%{
          transform:translateX(0);
          opacity: 1;
      }
  }
  
  .food-info, .food-card{
      animation: slideIn 1s ease;
  }
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
  }
  
  textarea {
    resize: vertical;
  }
  
  .submit-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .submit-button:hover {
    background-color: #34495e;
    animation: growAndColorChange 0.3s forwards;
  }
@keyframes growAndColorChange {
0% {
    transform: scale(1);
    background-color: #3498db;
    color: white;
}
100% {
    transform: scale(1.1); 
    background-color: #2ecc71; 
    color: #fff;
}
}
/* Footer Styles */
footer {
  background-color: #325171;
  color: #ecf0f1;
  padding: 2rem 0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-section {
  flex: 1 1 300px;
}
.footer-section h3 {
  margin-bottom: 1rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  color: #c2d8de;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: #3498db;
}

/* Media Query for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .home li, .food li, .foodgallery li, .contactus li {
    float: none;
    width: 100%;
  }

  .food-item, .food-card {
    flex-direction: column;
    flex: 1 1 100%; /* Make food items take full width */
  }

  .about-content, .about-image {
    width: 100%;
    text-align: center;
  }

  img {
    width: 100%;
    height: auto; /* Ensure images scale properly */
  }

  .heading-with-img {
    background-attachment: scroll; /* Fix background image scrolling on mobile */
    background-position: top;
  }

  .social-links a {
    display: inline-block;
    margin: 0 10px;
  }
}
