@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');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --darkBlue: #19313e;
  --cream: #ffe4c4;
  --emerald: #40755e;
  --gold: #956d3c;
  --bronze: #634625;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--darkBlue);
}
.loader {
  position: relative;
  width: 150px;
  height: 150px;
}
.loader span {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
span:nth-child(1)
{
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  z-index: 2;
}
span:nth-child(2)
{
  border-radius: 0;
  background: var(--gold);
  animation: animateShapes 4s ease-in-out 3;
}
span:nth-child(3)
{
  background: var(--cream);
  animation: animateShapes 4s ease-in-out 3;
  animation-delay: -2s;
}
@keyframes animateShapes {
  0% {
    transform: translate(-150px, 50px) scale(0.4)
    rotate(0deg);
    z-index: 1;
  }
  50% {
    transform: translate(150px, -50px) scale(0.4)
    rotate(180deg);
    z-index: 1;
  }
  50.0001% {
    transform: translate(150px, -50px) scale(0.4)
    rotate(180deg);
    z-index: 3;
  }
  100% {
    transform: translate(-150px, 50px) scale(0.4)
    rotate(360deg);
    z-index: 3;
  }
}
