

.container {
  display: flex;
  flex-wrap: wrap;
}

.box {
  flex: 1 0 20%;
  margin: 1%;
}

@media (max-width: 768px) {
  .box {
      flex: 1 0 45%;
  }
}

.loader {
  position: absolute;
  top: 10%;
  left: 10%;
  z-index: 10;
  width: 160px;
  height: 100px;
  margin-left: -80px;
  margin-top: -50px;
  border-radius: 5px;
  background: #1e3f57;
  animation: dot1_ 3s cubic-bezier(0.55,0.3,0.24,0.99) infinite;
}

.loader:nth-child(2) {
  z-index: 11;
  width: 150px;
  height: 90px;
  margin-top: -45px;
  margin-left: -75px;
  border-radius: 3px;
  background: #3c517d;
  animation-name: dot2_;
}

.loader:nth-child(3) {
  z-index: 12;
  width: 40px;
  height: 20px;
  margin-top: 50px;
  margin-left: -20px;
  border-radius: 0 0 5px 5px;
  background: #6bb2cd;
  animation-name: dot3_;
}

@keyframes dot1_ {
  3%,97% {
    width: 160px;
    height: 100px;
    margin-top: -50px;
    margin-left: -80px;
  }

  30%,36% {
    width: 80px;
    height: 120px;
    margin-top: -60px;
    margin-left: -40px;
  }

  63%,69% {
    width: 40px;
    height: 80px;
    margin-top: -40px;
    margin-left: -20px;
  }
}

@keyframes dot2_ {
  3%,97% {
    height: 90px;
    width: 150px;
    margin-left: -75px;
    margin-top: -45px;
  }

  30%,36% {
    width: 70px;
    height: 96px;
    margin-left: -35px;
    margin-top: -48px;
  }

  63%,69% {
    width: 32px;
    height: 60px;
    margin-left: -16px;
    margin-top: -30px;
  }
}

@keyframes dot3_ {
  3%,97% {
    height: 20px;
    width: 40px;
    margin-left: -20px;
    margin-top: 50px;
  }

  30%,36% {
    width: 8px;
    height: 8px;
    margin-left: -5px;
    margin-top: 49px;
    border-radius: 8px;
  }

  63%,69% {
    width: 16px;
    height: 4px;
    margin-left: -8px;
    margin-top: -37px;
    border-radius: 10px;
  }
}

/*  */

body {
  font-size: 16px;
  cursor: cell;
  background: linear-gradient(to right, #b82de2, #4a11bd, #2d57e2);
  background-size: 600% 600%;
  animation: gradient 30s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h1 {
    text-shadow:3px 3px thistle;
    padding: 1%;
    font-size: 60px;
    color: #fff;
    text-align: center;
    animation: glow 1s ease-in-out infinite alternate;
  }

  .rainbow-btn {
    margin-left: 30%;
    padding: 9px 18px;
    text-align: center;
    width: 40%;
    height: 50px;
    background: linear-gradient(to right, #06e023, #be0b6d, #399b51, #971d4c, #35df13, #24778b, #00ff62);
    background-size: 1000% 100%;
    border: none;
    color: #fff;
    cursor: cell;
    font-size: 20px;
    padding: 15px 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
  }
  
  .rainbow-btn:hover {
    transform: translateY(-5px);
  }
  
  @keyframes rainbow {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 100% 50%;
    }
  }
  
  .rainbow-btn {
    animation: rainbow 5s linear infinite;
  }
  