html {
  scroll-behavior: smooth;
}
.content {
  display: none;
}
.active-content {
  display: block;
}
.pantry-card-grid a {
  text-decoration: none;
  color: inherit;
}
.pantry-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.pantry-card {
  transition: 0.3s;
  background: #f9f9f9;
  box-shadow: 4px 4px 0px 0 rgba(0,0,0,0.2);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  text-align: center;
}

.pantry-card:hover {
  box-shadow: 0 0px 8px 6px rgba(0,0,0,0.2);
  transform: matrix3d(1.06,0,0,0, 0,1.06,0,0, 0,0,1,0, 0,0,0,1);
  transition: 0.3s ease-in-out;
  border-radius: 3px;
}

.pantry-card img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  margin: 24px auto 0;
  display: block;
}

.pantry-container {
  padding: 2px 16px;
}

.pantry-container h2 {
  margin: 12px 0 6px;
  color: black;
}

.pantry-card-grid-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-top: 0px;
  gap: 24px;
}

.pantry-tall-card {
  background: #f9f9f9;
  box-shadow: 4px 4px 0px 0 rgba(0,0,0,0.2);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  text-align: center;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.pantry-header-row img {
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 20px;
}

.pantry-tall-card  h2 {
  text-align: left;
}

.pantry-tall-card .pantry-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.pantry-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.pantry-header-row h2 {
  flex: 1;
  margin-top: 15px;
  text-align: left;
  color: black;
}

.pantry-tall-card p {
  margin: 16px 0;
  font-size: 1.1em;
  color: #444;
  text-align: left;
  line-height: 1.5em;
}

.pantry-tall-card a.button {
  margin-top: auto;
  color: #ffffff;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid #B62025;
  background: #B62025;
  transition: background 0.2s;
  margin-bottom: 16px;
}

.pantry-tall-card a.button:hover {
  background-color: #FFFFFF;
  border: 1px solid #B62025;
  color: #B62025;
  box-shadow: none;
  transition: none;
}

.pantry-tall-card:hover {
  /* Remove hover effect for tall cards */
  box-shadow: 4px 4px 0px 0 rgba(0,0,0,0.2);
  transform: none;
  border-radius: 0;
}

.recipe-callout {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 0.5rem;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem 1rem;
    border-radius: 6px;
    /* The background image will be set dynamically */
  }

.recipe-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.recipe-content {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
  }

.recipe-button {
  margin-top: 1rem;
  color: #ffffff;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid #B62025;
  background: #B62025;
  transition: background 0.2s;
  margin-bottom: 16px;
}

.recipe-button:hover {
  background-color: #FFFFFF;
  border: 1px solid #B62025;
  color: #B62025;
  box-shadow: none;
  transition: none;
}

/* Responsive for wide cards */
@media (max-width: 700px) {
  .pantry-card-grid-wide {
    grid-template-columns: 1fr;
  }
}

/* Responsive for small screens */
@media (max-width: 800px) {
  .pantry-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .pantry-card-grid {
    display: block;
  }
  .pantry-card-grid a {
  text-decoration: none;
  color: inherit;
}
.pantry-card {
  margin-bottom: 5px;
  width: 100%;
  transition: 0.3s;
  background: #f9f9f9;
  box-shadow: none;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.pantry-card:hover {
  box-shadow: none;
  transform: none;
}

.pantry-card img {
  width: 25px;
  height: 25px;
  object-fit: cover;
  margin: 0;
  display: block;
}

.pantry-container {
  padding: 2px 16px;
}

.pantry-container h2 {
  margin: 0;
  color: black;
  display: inline-block;
  color: black;
}
}
