body {
  font-family: "Montserrat", sans-serif;
}
html,
body {
  overflow-x: clip !important;
}

.perspective {
  perspective: 700px;
}

.flip {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  padding: 0 2px;
  line-height: 1.5rem;
}

.flip .front,
.flip .back {
  display: inline-block;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  white-space: nowrap;
}

.flip .front {
  transform-origin: bottom;
  transform: rotateX(0deg);
}

.flip .back {
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: rotateX(90deg);
}

.group:hover .flip .front {
  transform: rotateX(-90deg);
}
.group:hover .flip .back {
  transform: rotateX(0deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

.rot-img {
  animation: slow-pop 9s infinite;
}

.rot-img:nth-child(2) {
  animation-delay: 1s;
}
.rot-img:nth-child(3) {
  animation-delay: 4s;
}
.rot-img:nth-child(1) {
  animation-delay: 6s;
}

@keyframes slow-pop {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  15% {
    transform: scale(1.1) translateY(-6px);
    opacity: 1;
  }
  30% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}
