.loading {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .loader {
    animation: rotate 1s infinite;
    height: 75px;
    width: 75px;
  }

  .loader:before,
  .loader:after {
    border-radius: 50%;
    content: "";
    display: block;
    height: 30px;
    width: 30px;
  }
  .loader:before {
    animation: ball1 1s infinite;
    background-color: #007BFF;
    box-shadow: 45px 0 0 #FFC107;
    margin-bottom: 10px;
  }
  .loader:after {
    animation: ball2 1s infinite;
    background-color: #FFC107;
    box-shadow: 45px 0 0 #007BFF;
  }

  @keyframes rotate {
    0% { transform: rotate(0deg) scale(0.8) }
    50% { transform: rotate(360deg) scale(1.2) }
    100% { transform: rotate(720deg) scale(0.8) }
  }

  @keyframes ball1 {
    0% {
      box-shadow: 45px 0 0 #FFC107;
    }
    50% {
      box-shadow: 0 0 0 #FFC107;
      margin-bottom: 0;
      transform: translate(22px, 22px);
    }
    100% {
      box-shadow: 45px 0 0 #FFC107;
      margin-bottom: 10px;
    }
  }

  @keyframes ball2 {
    0% {
      box-shadow: 45px 0 0 #007BFF;
    }
    50% {
      box-shadow: 0 0 0 #007BFF;
      margin-top: -30px;
      transform: translate(22px, 22px);
    }
    100% {
      box-shadow: 45px 0 0 #007BFF;
      margin-top: 0;
    }
  }
  