
html, body {
  height: 100%;
  margin: 0;
}

* 
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fefefe;
}
.logo img {
  width: 150px;
  height: 80px;
  object-fit: cover;
  border-radius: 15px;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #d2691e;
}
.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}


.navbar .logo:hover img {
  transform: scale(1.05);
}

/* Hamburger Icon */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  background: rgb(10, 10, 10);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger into "X" */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.nav-buttons {
  position: absolute;
  top: 60px;
  right: 20px;
  background: #f5f4f65b;
  border-radius: 10px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: slideDown 0.3s ease forwards;
}

.nav-buttons.active {
  display: flex;
}

.nav-buttons a {
  color: rgb(12, 12, 12);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-buttons a:hover {
  background: rgba(255, 255, 255, 0.2);
}
.nav-buttons.active {
  display: flex;
}
.dropdown {
  position: relative;
  width: 100%;
}

.dropdown > a {
  display: block;
  width: 100%;
  padding: 10px;
  color: rgb(13, 13, 13);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.dropdown-content {
  display: none;
  flex-direction: column;
  background-color: #6a1bbf;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: -170px; /* Adjust this width depending on nav-buttons width */
  width: 160px;
  padding: 10px;
  z-index: 999;
}

.dropdown-content a {
  padding: 8px 12px;
  color: white;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* Show dropdown when parent is active */
.dropdown.active .dropdown-content {
  display: flex;
}



/* Slide-down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome {
  padding: 50px 20px;
  text-align: center;
  background: #fffaf0;
}

.featured {
  padding: 30px;
  background-color: #f8f8f8;
}

.featured h2 {
  text-align: center;
  color: #d2691e;
  margin-bottom: 20px;
}

.dish-scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.dishes-wrapper {
  display: flex;
  width: max-content;
  animation: scrollX 40s linear infinite;
  animation-play-state: running;
}

.dishes,
.dishes-clone {
  display: flex;
  gap: 20px;
  margin-left: 20px;
}

/* Smooth scrolling effect */
@keyframes scrollX {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}



.dish {
  flex: 0 0 auto;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dish img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.dish img {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
}

.dish img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.dish-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.order-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #d2691e;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s ease;
  pointer-events: none; /* Prevent click until visible */
}

.dish-wrapper:hover .order-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-5px);
}

.order-btn:hover {
  background-color: #c1581a;
}


/* Optional: scrollbar styling */
.dish-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.dish-scroll-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}
/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-window {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 1rem;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-window h2 {
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
}

.popup-window textarea.description {
  height: 60px;
  resize: none;
  padding: 0.5rem;
  font-size: 1rem;
}

.popup-window textarea.comments {
  height: 120px;
  resize: none;
  padding: 0.5rem;
  font-size: 1rem;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.popup-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.popup-btn:hover {
  background: #e55b00;
}
.quantity-control {
  display: flex;
  align-items: center;
  background-color: #f3f3f3;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  gap: 0.5rem;
  justify-content: center;
  flex: 1;
}

.qty-btn {
  background-color: #ff6600;
  border: none;
  color: white;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.qty-btn:hover {
  background-color: #e55b00;
}

#quantity {
  width: 20px;
  text-align: center;
}

.order-final-btn {
  flex: 1;
}
.close-popup {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
}

.close-popup:hover {
  color: #ff3300;
}

.dish-wrapper {
  position: relative;
  /*width: 100%;
  height: 100%;*/
  overflow: hidden;
}


.dish-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 2;
 
}

/* Hide name when hovering (showing order button) */
.dish-wrapper:hover .dish-name-overlay {
  opacity: 0;
}

.dish-wrapper:hover .order-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-5px);
}

.floating-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: white;
  padding: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  max-width: 240px;
  max-height: 250px;
  overflow: hidden;
  animation: fadeInUp 0.5s ease;
}

.floating-ad img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.close-ad {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}
/* Make ad bigger */
.floating-ad {
  max-width: 300px;
  max-height: 350px;
  padding: 12px;
}

/* Fix close button */
.close-ad {
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 24px;
}

/* Header text for sticky ad */
.ad-header {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 400%;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  animation: rainbowGlow 4s linear infinite;
}

/* Disco light animation */
@keyframes rainbowGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px red;
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 20px blue;
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px red;
  }
}
#confirmation-popup .popup-window {
  text-align: center;
  padding: 20px;
}

#confirmation-popup .popup-btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}
.dish-label {
  margin-top: 5px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 15px;
  }

  .nav-buttons {
    position: static;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .nav-buttons a {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
  }

  .dropdown-content {
    position: static;
    background-color: #6a1bbf;
    padding-left: 1rem;
    box-shadow: none;
    width: 100%;
    border-radius: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .featured {
    padding: 20px 10px;
  }

  .dish {
    width: 80vw;
    max-width: 300px;
  }

  .dish img {
    height: auto;
  }

  .dish-scroll-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .dishes,
  .dishes-clone {
    gap: 10px;
    margin-left: 10px;
  }

  .popup-window {
    width: 95%;
    padding: 1rem;
  }

  .popup-actions {
    flex-direction: column;
    gap: 10px;
  }

  .popup-btn,
  .quantity-control {
    width: 100%;
  }

  .dish-label {
    font-size: 12px;
  }

  .floating-ad {
    bottom: 10px;
    right: 10px;
    max-width: 90%;
    max-height: 240px;
    padding: 8px;
  }

  .ad-header {
    font-size: 14px;
    padding: 6px;
  }

  .order-btn {
    font-size: 14px;
    padding: 6px 12px;
  }
}
/* Watermark background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/lepakshi_logo_final.png") center center no-repeat;
  background-size: 1000px auto; /* You can tweak this */
  opacity: 0.3;               /* Make it subtle */
  z-index: 0;
  pointer-events: none;
}

body {
  position: relative;
  z-index: 1;
}


