* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
/* Spinner Loader */
.spinner {
  width: 80px;
  height: 80px;
  position: relative;
}
.spinner span {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 6px solid transparent;
  border-radius: 50%;
}
.spinner span:nth-child(1) {
  border-top-color: #ca0e50;
  animation: spinnerOne 1.2s linear infinite;
}
.spinner span:nth-child(2) {
  border-bottom-color: #ca0e50;
  animation: spinnerTwo 1.2s linear infinite;
}
@keyframes spinnerOne {
  0% {
    transform: rotate(0deg);
    border-width: 6px;
  }
  50% {
    transform: rotate(180deg);
    border-width: 1px;
  }
  100% {
    transform: rotate(360deg);
    border-width: 6px;
  }
}
@keyframes spinnerTwo {
  0% {
    transform: rotate(0deg);
    border-width: 1px;
  }
  50% {
    transform: rotate(180deg);
    border-width: 6px;
  }
  100% {
    transform: rotate(360deg);
    border-width: 1px;
  }
}
/* Bouncer Loader */
.bouncer {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  width: 100px;
  height: 100px;
}
.bouncer span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #0066ff;
  animation: bouncer 0.5s cubic-bezier(0.19, 0.57, 0.3, 0.98) infinite alternate;
}
.bouncer span:nth-child(2) {
  animation-delay: 0.1s;
  opacity: 0.8;
}
.bouncer span:nth-child(3) {
  animation-delay: 0.2s;
  opacity: 0.6;
}
.bouncer span:nth-child(4) {
  animation-delay: 0.3s;
  opacity: 0.4;
}
@keyframes bouncer {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100px);
  }
}
/* Boxes Loader */
.boxes {
  width: 80px;
  height: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.boxes span {
  background-color: #ff7b00;
  animation: boxes 0.4s linear infinite alternate;
}
.boxes span:nth-child(1) {
  animation-delay: 0.1s;
}
.boxes span:nth-child(2) {
  animation-delay: 0.2s;
}
.boxes span:nth-child(3) {
  animation-delay: 0.4s;
}
.boxes span:nth-child(4) {
  animation-delay: 0.3s;
}
@keyframes boxes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* Flipper */
.flipper {
  position: relative;
  width: 80px;
  height: 80px;
  perspective: 200px;
}
.flipper span {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: coral;
  transform-origin: bottom right;
  animation: flip 2s infinite linear;
}
.flipper span:nth-child(2) {
  animation-delay: 1s;
  opacity: 0.5;
}
@keyframes flip {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(0deg) rotateY(180deg);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
  }
  75% {
    transform: rotateX(180deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
}
