/* General Styles */
body, html {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

/* Main Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100vh;
  max-width: 800px;
  margin: auto;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Button Styling */
button {
  margin-top: 5px;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background-color: #0056b3;
}

/* Main Section with Border */
main {
  width: 80%;
  max-width: 400px;
  border: 2px solid #007bff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  background: white;
  min-height: 300px; /* Adjust as needed */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Meal Name */
.meal-name {
  font-size: 20px;
  margin: 5px 0;
}

/* Image */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 35vh;
}

.image-container img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Details Section */
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  max-height: 30vh;
}

/* Instructions & Ingredients */
.instructions-container,
.ingredients-container {
  padding: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  font-size: 14px;
  overflow-y: auto;
  max-height: 100%;
}

/* Ingredients List */
.ingredients-container ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.ingredients-container li {
  background: #f1f1f1;
  margin: 3px 0;
  padding: 4px;
  border-radius: 5px;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .details {
      grid-template-columns: 1fr;
      max-height: 40vh;
  }

  .instructions-container, .ingredients-container {
      width: 90%;
  }
}