#main > section {
  padding: 8rem;
}

main > section:nth-child(even) {
  background-color: #1e1e1e;
  color: #ededed;
}

.hero,
.hero-content,
.legends {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero {
  min-height: 90vh;
  text-align: center;
  position: relative;
  background-image: url("../assets/images/hero-img.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  color: #ededed;
  z-index: 2;
}

.hero-content > h1 {
  font-family: "monoton", sans-serif;
  font-weight: 500;
}

.hero-overlay {
  position: absolute;
  inset: 0 0 0 0;
  background-color: #1e1e1e22;
  backdrop-filter: blur(4px);
}

.legends > h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.card-collection {
  width: 100%;
  height: 100%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, 16rem);
  grid-auto-rows: 24rem;
  place-content: center;
  gap: 3rem;
}

.card,
.card__img {
  width: 100%;
  height: 100%;
}

.card {
  border: 0.25rem solid #ededed;
  border-radius: 1rem;
  overflow: hidden;
  display: inline-block;
  position: relative;
  transition: transform 250ms;
}

.card:hover {
  transform: translateY(-0.5rem);
}

.card__img {
  object-fit: cover;
  transition: transform 500ms;
}

.card:hover .card__img {
  transform: scale(1.13);
}

.card__info {
  width: 100%;
  height: 50%;
  padding: 1rem;
  background: linear-gradient(to top, #1e1e1e, transparent);
  color: #ededed;
  position: absolute;
  top: 100%;
  opacity: 0;
  z-index: 2;
  transition: top 500ms 100ms, opacity 500ms 100ms;
}

.card:hover .card__info {
  top: 50%;
  opacity: 1;
}

.card__overlay {
  position: absolute;
  inset: 0 0 0 0;
  background: linear-gradient(
    to bottom right,
    transparent 45%,
    #ededed22 50%,
    transparent 55%
  );
  background-size: 500% 500%;
  background-repeat: no-repeat;
  z-index: 4;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: bottom right;
  }

  100% {
    background-position: top left;
  }
}

@media (max-width: 600px) {
  #main > section {
    padding: 4rem;
  }

  .hero {
    text-align: left;
  }
}
