.container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: white;
    /* change background color */
    animation: changeBG 1s linear infinite;
  }
  
  @keyframes changeBG {
    to {
      filter: hue-rotate(360deg);
    }
  }
  
  .loader {
    /* border: 1px solid black; */
    width: 30px;
    height: 30px;
    position: absolute;
    /* ball position */
    top: calc(50% - (15px)); 
    left: calc(50% - (15px));
    border-radius: 50%;
    animation: x-axis 1s ease-in-out alternate infinite;
  }
  
  /* xaxis hovering distance */
  @keyframes x-axis {
    0% {
      transform: translateX(-60px);
    }
    100% {
      transform: translateX(60px);
    }
  }
  
  /* ball */
  .loader::before {
    /* create the ball out of the loader element */
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #dc1ce3, 0 0 25px #dc1ce3, 0 0 50px #dc1ce3,
      0 0 75px #dc1ce3;
    animation: y-axis 0.5s ease-in-out 0.25s alternate infinite;
  }
  
  /* yaxis hovering distance */
  @keyframes y-axis {
    0% {
      transform: translateY(-60px);
    }
    100% {
      transform: translateY(60px);
    }
  }
  
  /* shadow */
  .loader::after {
    /* create the shadow out of the loader element */
    content: "";
    width: 30px;
    height: 7.5px;
    background: #000;
    top: 90px;
    left: 0;
    position: absolute;
    border-radius: 100%;
    animation: shadow 0.5s ease-in 0.15s alternate infinite;
  }
  
  @keyframes shadow {
    0% {
      opacity: 0.2;
      transform: scale(0.7);
    }
    100% {
      opacity: 0.7;
      transform: scale(0.9);
    }
  }
  