.ads-Loading {
  @apply relative
    w-10
    h-10
    text-gray-800;
}

.ads-Loading > div {
  @apply float-left
    relative;

  width: 50%;
  height: 50%;
}

.ads-Loading > div::before {
  @apply absolute
    top-0
    left-0
    w-full
    h-full;

  animation: fold 2.4s infinite linear both;
  background-color: currentColor;
  content: "";
  transform-origin: 100% 100%;
}

.ads-Loading > div:nth-child(2) {
  transform: rotateZ(90deg);
}

.ads-Loading > div:nth-child(4) {
  transform: rotateZ(180deg);
}

.ads-Loading > div:nth-child(3) {
  transform: rotateZ(270deg);
}

.ads-Loading > div:nth-child(2)::before {
  animation-delay: 0.3s;
}

.ads-Loading > div:nth-child(4)::before {
  animation-delay: 0.6s;
}

.ads-Loading > div:nth-child(3)::before {
  animation-delay: 0.9s;
}

@keyframes fold {
  0%,
  10% {
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
  25%,
  75% {
    transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  }
  90%,
  100% {
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}
