.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 99999999999;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 !important;

  /* background: rgba(255, 255, 255, 0.5); */

  pointer-events: none;
}

.spinner {
  --color-1: #00a7ce;
  --color-2: #72c45a;
  --color-3: #f963a3;
  --color-4: #ffd15b;

  --duration: 1.2s;
}

.spinner {
  position: relative;
  width: 0;
  height: 0;
  margin: 4em auto;
  animation: anim-rotate var(--duration) infinite ease;

  /* animation: anim-rotate var(--duration) infinite linear; */
  /* animation: anim-rotate var(--duration) infinite cubic-bezier(.1,.3,.3,.1); */
  /* animation: anim-rotate var(--duration) linear infinite alternate; */
  /* animation: anim-rotate 0 infinite; */
}

.spinner:before,
.spinner:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 10px;
  opacity: 0.9;
}
.spinner::before {
  background: var(--color-1);
  transform: translate(-0.75em, -0.75em) scale(1);
  box-shadow: 1.5em 1.5em 0 var(--color-2);
  animation: anim-1-2 1.2s infinite ease;
}
.spinner:after {
  background: var(--color-3);
  transform: translate(0.75em, -0.75em) scale(1);
  box-shadow: -1.5em 1.5em 0 var(--color-4);
  animation: anim-3-4 1.2s infinite ease;
}
@-webkit-keyframes anim-1-2 {
  50% {
    transform: scale(1.3) translate(0, 0);
    box-shadow: 0 0 0 var(--color-2);
    opacity: 0.8;
  }
}
@keyframes anim-1-2 {
  50% {
    transform: scale(1.3) translate(0, 0);
    box-shadow: 0 0 0 var(--color-2);
    opacity: 0.8;
  }
}
@-webkit-keyframes anim-3-4 {
  50% {
    transform: scale(1.3) translate(0, 0);
    box-shadow: 0 0 0 var(--color-4);
    opacity: 0.8;
  }
}
@keyframes anim-3-4 {
  50% {
    transform: scale(1.3) translate(0, 0);
    box-shadow: 0 0 0 var(--color-4);
    opacity: 0.8;
  }
}
@-webkit-keyframes anim-rotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(720deg);
  }
}
@keyframes anim-rotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(720deg);
  }
}
