/* card */

.cardlist {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}

.card {
  background-color: #FCF9F2;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  width: fit-content;
  max-width: 50rem;
}

.card.medium {
  min-height: 15rem;

}

.card p {
  display: flex;
  align-items: center;
  text-align: center;
  padding: 1rem 2rem;
}

.card img {
  object-fit: cover;
  width: 100%;
  order: -1;
}

@media (min-width: 900px) {
  .card {
    flex-direction: row;
  }

  .card img {
    object-fit: cover;
    width: 20rem;
    max-width: 50%;
  }

  .cardlist .card:nth-child(even) {
    align-self: flex-end;
  }

  .cardlist .card:nth-child(even) p {
    order: -1;
  }

}

/* button */

.button {
  text-emphasis: none;
  color: #fff;
  background-color: #674904;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-weight: bold;
  padding: 0.25rem 0.5rem;
}

.button:hover {
  color: #674904;
  background-color: #FCF9F2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
