/* Need to add media queries to be responsive
Each screen size has its own specific CSS media query properties

*/

body {
  background-color: hsl(30, 18%, 87%);
  font-family: "Georgia", serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f2f0;
  color: #333;
}
/* Added img as a property. Img did not fit well. Ended up using background-size no repeat and background size to 100%. */
.image-omelette {
  width: 100%;
  height: 300px;
  background: linear-gradient(100deg, #f4e4a6 0%, #d4b896 100%);
  background-image: url(assets/images/image-omelette.jpeg);
  border-radius: 15px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b6914;
  font-size: 18px;
  font-weight: bold;
  background-repeat: no-repeat;
  background-size: 100%;
}

.recipe-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-size: 100%;
}

h1 {
  font-size: 2.5rem;
  color: #2c2c2c;
  margin-bottom: 20px;
  font-weight: normal;
}

.description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

.recipe-preparation {
  background-color: #fdf5f5;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.recipe-preparation li {
  list-style: none;
  padding: 10px;
  font-family: serif;
  font-weight: 400;
}

.recipe-preparation ul {
  margin-bottom: 8px;
  color: #666;
}

.recipe-preparation strong {
  color: #333;
}

h2 {
  color: #8b4513;
  font-size: 1.8rem;
  margin-bottom: 20px;
  margin-top: 40px;
  /* Border-top and padding top gives you a thin divider between sections. */
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

ul,
ol {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #555;
}

ol li {
  margin-bottom: 15px;
}

.nutrition-note {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.nutrition-table th,
.nutrition-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.nutrition-table th {
  color: #666;
  font-weight: normal;
}

.nutrition-table td {
  color: #8b4513;
  font-weight: bold;
}

.attribution {
  display: flex;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
}

@media screen and (max-width: 375px) {
  body {
    line-height: 1.5;
  }

  /* Stack table content vertically on very small screens */
  .nutrition-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
