@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  /* background-color: var(--darkBlue) */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
:root {
  --darkBlue: #19313e;
  --cream: #ffe4c4;
  --emerald: #40755e;
  --gold: #956d3c;
  --bronze: #634625;
}
.loader {
  position: relative;
  width: 120px;
  height: 120px;
  /* background: red; */
}
h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #101a36;
}
span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: blue; */
  transform: rotate(calc(45deg * var(--i)));
}
span:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #74baff72;
}
span:nth-child(even):before {
  background: #2980b9;
  animation: circle 1s linear 20;
  transform-origin: 60px;
}
/* span:nth-child(odd):before {
  background: #2980b9;
  animation: circle 1s linear 20;
  transform-origin: 60px;
  transition-delay: .4s;
} */
@keyframes circle {
  0%,
  25% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(90deg) scale(1.3);
  }
  75%,
  100% {
    transform: rotate(180deg) scale(1);
  }
}
