body {
  font-family: sans-serif;
  max-width: 700px;
  margin: auto;
  background: #fafafa;
  color: #333;
  padding: 0 1rem; /* prevent text from touching screen edges */
}

header, footer {
  text-align: center;
  margin: 2rem 0;
}

h2, h3 {
  color: #cc3300;
}

ul, ol {
  padding-left: 1.5rem;
}

a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

#recipe-metadata {
  display: flex;
  justify-content: space-around;
  background: #f6f6f6;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap; /* allow wrapping on small screens */
}

.recipe-metadata-item {
  flex: 1 1 100px; /* flex-basis ensures they shrink/grow nicely */
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0 1rem;
}

.recipe-metadata-item span:first-child {
  color: #cc3300;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    font-size: 0.95rem; /* slightly smaller text on narrow screens */
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }

  #recipe-metadata {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .recipe-metadata-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
  }

  .recipe-metadata-item:last-child {
    border-bottom: none;
  }
}

.filter-buttons button {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-buttons button img:hover {
  /* apply color effect on image */
  /* red tint on hover of a white element */
  filter: sepia(100%) hue-rotate(-50deg) saturate(500%) brightness(90%);
}

.filter-buttons button img {
  object-fit: cover;
  border-radius: 4px;
}

