/* Ingredient Menu Styles */
body {
  background-color: #7ffffff;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}


h1 {
  padding: 16px;
  background-color: transparent;
  color: #7b3f61;
  text-align: center;
  font-family: 'Pacifico', cursive;
  font-size: 2.5rem;
}


/* Top nav bar for categories */
nav.ingredient-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: visible;         /* ✅ was auto — allow dropdowns to escape */
  background-color: #f2f2f2;
  padding: 10px;
  gap: 15px;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}


/* Dropdown wrapper */
.dropdown {
  position: relative;
  z-index: 20;
}

/* Dropdown button style */
.dropbtn {
  background-color: #800000;
  color: white;
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* Dropdown content panel */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 300px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Sub-category behavior */
details.sub-category {
  padding: 4px 0;
}

/* Sub-category summary text */
.sub-category summary {
  font-weight: bold;
  cursor: pointer;
  padding: 6px 0;
}

/* Subcategory list structure */
.sub-category ul {
  list-style: none;
  padding-left: 18px;
  margin: 5px 0;
}

/* Checkbox items */
.sub-category li {
  margin-bottom: 4px;
}

input[type="checkbox"] {
  margin-right: 8px;
}

/* Selected ingredients styling */
#selectedIngredients ul {
  padding-left: 20px;
  margin-top: 8px;
}

#selectedIngredients li {
  margin-bottom: 6px;
}

.hero {
  background-image: url('images/hero-placeholder.jpeg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.4); /* semi-transparent black overlay */
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  color: #fff;
}

.hero-logo {
  header img {
  height: 80px; /* Make it smaller */
  display: block;
  margin: 0 auto; /* Center horizontally */
}

}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  color: #ffffff;
  margin-top: 10px;
  text-align: center;
}

.cta-button {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color: #7b3f61;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(123, 63, 97, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.cta-button::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: rgba(123, 63, 97, 0.2);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: -1;
}
.cta-button:hover {
  transform: scale(1.07);
  background-color: #6a3454;
}
.cta-button:hover::before {
  opacity: 1;
}
/* Subtitle text (like: "We’ll help you find something delicious...") */
.subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  color: #333;
}

/* Call-to-action button */
.cta-button {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  background-color: #7b3f61;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  background-color: #6a3454;
}
.ingredient-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background-color: rgb(247, 247, 247);
  flex-wrap: wrap;
}

.dropdown {
  position: relative;
}

.dropbtn {
  font-family: 'Bebas Neue', cursive;
  font-size: 20px; /* Increased size */
  background-color: #fff;
  border: 1.5px solid #d7b158;
  padding: 10px 18px;
  color: #000;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none; /* Makes only first letter capital */
}
.dropbtn::first-letter {
  text-transform: uppercase;
}


.dropbtn:hover {
  background-color: #f9f3e9;
  transform: scale(1.05);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  background-color: #fff;
  border: 1.5px solid #d7b158;
  border-radius: 10px;
  padding: 13px;
  min-width: 300px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 9999;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.sub-category summary {
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 15px; /* Smaller subtitle */
  padding: 5px 0;
  cursor: pointer;
  color: #333;
}

.sub-category ul {
  list-style: none;
  padding-left: 20px;
  margin: 4px 0;
}

.sub-category li {
  font-family: 'Lato', sans-serif;
  font-weight: normal;
  font-size: 14px;
  margin-bottom: 6px;
  color: #444;
}



/* Drop all triangles */
details.sub-category > summary {
  list-style: none;
}
details.sub-category > summary::-webkit-details-marker {
  display: none;
}
details.sub-category > summary::marker {
  display: none;
}

/* Dropdown menu tweaks */
.dropdown-content {
  background: white;
  border: 1.5px solid #d7b158;
  margin-top: 10px; /* Add spacing under button */
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Summary inside dropdown (sub-category) */
.sub-category > summary {
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 12px;
  margin: 4px 0;

  background: none;
  cursor: pointer;
}

/* Sub-sub items (ul > li) */
.sub-category ul {
  padding-left: 14px;
  margin-top: 4px;
}
.sub-category li {
  font-family: 'Lato', sans-serif;
  font-weight: normal;
  font-size: 13px;
  margin-bottom: 4px;
}
.sub-category summary {
  font-size: 12px;
  margin-bottom: 4px;
    padding: 4px 6px;  /* Less padding */
  margin: 2px 0;     /* Reduce vertical spacing */
}

.sub-category ul {
  padding-left: 12px;
  margin-top: 2px;
}

details > summary::before {
  content: '' !important;
  display: none !important;
}
details.sub-category > summary::before {
  content: '' !important;
  display: none !important;
}




.selected-box {
  border: 1.5px solid #d7b158;
  border-radius: 12px;
  background-color: #ffffff;
  max-width: 600px;
  margin: 40px auto;
  padding: 30px 20px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.selected-icon {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 5px 10px;
  border-radius: 50%;
}

.selected-icon img {
  height: 32px;
  width: 32px;
}

.selected-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #7b3f61;
  margin-bottom: 10px;
  border-bottom: 2px solid #d7b158;
  display: inline-block;
  padding-bottom: 4px;
}

#selectedIngredientsList {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  font-family: 'Lato', sans-serif;
  color: #444;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#selectedIngredientsList li {
  margin-bottom: 6px;
  font-size: 15px;
}
#selectedIngredients {
  border: 1.5px solid #d7b158;
  border-radius: 10px;
  background-color: #fff;
  padding: 30px 20px;
  max-width: 600px;
  margin: 40px auto;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Title */
h2 {
  font-family: 'Pacifico', cursive;
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
}

/* Upload Button */
#uploadBtn {
  background-color: #7b3f61;
  color: white;
  font-family: 'Bebas Neue', cursive;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(123, 63, 97, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px auto;
  display: inline-block;
}

#uploadBtn:hover {
  background-color: #6a3454;
  transform: scale(1.05);
}

/* Center the image icon on top */
#selectedIngredients .icon {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 0 8px;
}

#selectedIngredients .icon img {
  height: 30px;
}
