body {
  font-family: Arial, sans-serif;
  padding: 20px;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #e0f0ff, #007BFF);
  color: #000;
}

h1 {
  text-align: center;
  color: #003366;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 30px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
}

.item {
  display: flex; /* Align the image and text side by side */
  align-items: center; /* Center the content vertically */
  position: relative; /* This is important to position the fasting label */
  margin-bottom: 10px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.item:hover {
  transform: scale(1.02);
}

.food-image {
  width: 50px;
  height: 50px;
  margin-right: 15px; /* Space between the image and text */
  overflow: hidden;
  border-radius: 50%; /* Make the image circular */
}

.food-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.ingredient-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.search-container {
  text-align: center;
  margin-bottom: 30px;
}

.search-container input {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 25px;
  border: 1px solid #ccc;
  width: 100%; /* Make input take up full width */
  max-width: 500px; /* Limit max width */
  outline: none;
  box-sizing: border-box; /* Include padding and border in width calculation */
}

/* Media Query to make search bar fully responsive */
@media (max-width: 600px) {
  .search-container input {
    width: 90%; /* Take up more width on smaller screens */
    max-width: 90%; /* Limit max width on mobile */
    font-size: 14px; /* Slightly reduce font size for smaller screens */
    padding: 8px 16px; /* Adjust padding for smaller screens */
  }
}

.fasting-label {
  position: absolute; /* Positioning the label absolutely within the parent item */
  right: 10px; /* Distance from the right side */
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Correct for exact centering */
  background-color: #050505;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
}
