:root {
  --darkBlue: #19313e;
  --cream: #ffe4c4;
  --emerald: #40755e;
  --gold: #956d3c;
  --bronze: #634625;
}
body {
  margin:0;
  padding:0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--emerald);
}
.loader {
  width: 150px;
  height: 150px;
  position: relative;;
}
span{
  position: absolute;
  /* top: 0;
  left: 0; */
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 4px;
  animation: chase 2s linear 4
}
span:nth-child(2) {
  animation-delay: .6s;
}
span:nth-child(3) {
  animation-delay: 1.2s;
}
@keyframes chase {
  0% {top: 0;
    left: 0;}
  12.5%{top: 0;
    left: 50%;}
  25%{top: 0;
      left: 50%;}
  37.5%{top: 50%;
    left: 50%;}
  50%{top: 50%;
      left: 50%;}
  62.5%{top: 50%;
    left: 0;}
  75%{top: 50%;
      left: 0;}
  87.5%{top: 0;
    left: 0;}
  100%{top: 0;
      left: 0;}

}