* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
}

img {
  object-fit: cover;
  display: block;
  max-height: 60vh;
  width: auto;
}

.card {
  min-height: auto;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2), 0px 0px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
  border-radius: 1rem;
  cursor: pointer;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.card:hover {
  transform: scale(1.05);
  transition: all 0.25s ease;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-column-gap: 3rem;
  grid-row-gap: 5rem;
}

.container {
  padding: 1rem;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: row;
}

@media (max-width: 700px) {
  .card {
    transform-style: preserve-3d;
    max-height: 40vh;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2), 0px 0px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-radius: 1rem;
    cursor: pointer;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
}
