/* ContactCards — was ContactCards.module.css. The bundler's hashed class names are
   replaced by a plain c-ContactCards_ prefix so the stylesheet stands alone. */

.c-ContactCards_container {
  width: 100%;
}

.c-ContactCards_cards {
  position: relative;
  width: 100%;
  height: 100svh;
  background-color: var(--base-400);
  overflow: hidden;
  color: var(--base-100);
}

.c-ContactCards_sectionNav,
.c-ContactCards_sectionFooter {
  position: absolute;
  left: 0;
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.c-ContactCards_sectionNav {
  top: 0;
}

.c-ContactCards_sectionFooter {
  bottom: 0;
}

.c-ContactCards_card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 360px;
  perspective: 1000px;
}

.c-ContactCards_cardWrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  animation: floating 3s infinite ease-in-out;
}

.c-ContactCards_card:nth-child(2) .c-ContactCards_cardWrapper {
  animation-delay: 0s;
}

.c-ContactCards_card:nth-child(3) .c-ContactCards_cardWrapper {
  animation-delay: 0.2s;
}

.c-ContactCards_card:nth-child(4) .c-ContactCards_cardWrapper {
  animation-delay: 0.4s;
}

.c-ContactCards_card:nth-child(5) .c-ContactCards_cardWrapper {
  animation-delay: 0.6s;
}

.c-ContactCards_inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.c-ContactCards_front,
.c-ContactCards_back {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.4rem;
  backface-visibility: hidden;
}

.c-ContactCards_back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  background-color: var(--base-100);
  color: var(--base-1000);
  transform: rotateY(180deg);
}

.c-ContactCards_index {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
}

.c-ContactCards_backInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.c-ContactCards_backBlock {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.c-ContactCards_back .c-ContactCards_mono {
  opacity: 0.5;
}

.c-ContactCards_backInfo > .c-ContactCards_sm {
  max-width: 12rem;
  opacity: 0.7;
  line-height: 1.35;
}

@keyframes floating {
  0% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, -60%);
  }

  100% {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1000px) {
  .c-ContactCards_cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: auto;
    padding: 8rem 1.5rem;
    overflow: visible;
  }

  .c-ContactCards_card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 2 / 3;
    perspective: none;
  }

  .c-ContactCards_cardWrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    animation: none;
  }

  .c-ContactCards_inner {
    transform-style: flat;
  }

  .c-ContactCards_front {
    display: none;
  }

  .c-ContactCards_back {
    position: relative;
    transform: none;
  }
}
