:root {
  --pyramid-shadow: #d8d5d5;
  --pyramid-color: #F4F4F4;
  --sky-color: #7DDFFC;
  --sand-color: #F0DE75;
  --sun-color: #FFEF00;
  --background-color: #272C34;

}

.frame {
  position: absolute;
  z-index: -10;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin-top: -200px;
  margin-left: -200px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--background-color);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

/* MY CSS */

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: inherit;
  height: inherit;

}

.circle {
  display: flex;
  justify-content: center;
  position: relative;
  width: 10rem;
  height: 10rem;
  clip-path: circle(5rem at 5rem 5rem);
  border-radius: 50%;
  background-color: var(--sky-color);
  animation: circle-opacity 4s;
  animation-iteration-count: infinite;
}

@keyframes circle-opacity {

  0%,
  60% {
    opacity: 1;
  }



  100% {
    opacity: 0;
  }

}

/* .gray-circle {
  position: absolute;
  z-index: 5;
  width: 10rem;
  height: 10rem;
  background-color: var(--background-color);
  transition: all;
  transition-delay: 4s;
} */

.sun {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 35%;
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  background-color: var(--sun-color);
  animation-name: sun;
  animation: sun 4s cubic-bezier(0.4, 0, 0.49, 1) infinite;

}



.sand {
  position: absolute;
  bottom: 0;
  height: 3.5rem;
  width: 10rem;
  background-color: var(--sand-color);
}

.pyramid-left {
  position: absolute;
  bottom: 3.45rem;
  height: 3.5rem;
  width: 7rem;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background-color: var(--pyramid-color);
  animation: pyramid-shadow-left 4s cubic-bezier(0.4, 0, 0.49, 1) infinite;
}


.pyramid-right {
  position: absolute;
  bottom: 3.45rem;
  height: 3.5rem;
  width: 7rem;
  clip-path: polygon(50% 0%, 65% 100%, 100% 100%);
  background-color: var(--pyramid-shadow);
  animation: pyramid-shadow-right 4s cubic-bezier(0.4, 0, 0.49, 1) infinite;
}

.on-sand-shadow {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  height: 3.5rem;
  width: 10rem;
  clip-path: polygon(50% 50%, 15% 0%, 85% 0%);
  background-color: rgba(0, 0, 0, 0.2);
  ;
  transform: translateX(-50%);
  animation: on-sand-shadow 4s cubic-bezier(0.4, 0, 0.49, 1) infinite;
}

@keyframes sun {
  0% {
    transform: translateX(-100%);
  }

  50% {
    top: 3%;
  }

  100% {
    transform: translateX(20%);
    left: 100%;
  }
}

@keyframes on-sand-shadow {
  0% {
    clip-path: polygon(130% 5%, 15% 0%, 85% 0%);
  }

  25% {
    clip-path: polygon(130% 50%, 15% 0%, 85% 0%);
  }

  50% {
    clip-path: polygon(50% 50%, 15% 0%, 85% 0%);
  }

  75% {
    clip-path: polygon(0% 50%, 15% 0%, 85% 0%);
  }

  100% {
    clip-path: polygon(-130% 5%, 0% 0%, 85% 0%);
  }
}

@keyframes pyramid-shadow-right {
  0% {
    background-color: var(--pyramid-shadow);
  }

  100% {
    background-color: var(--pyramid-color);
  }

}

@keyframes pyramid-shadow-left {
  0% {
    background-color: var(--pyramid-color);
  }

  100% {
    background-color: var(--pyramid-shadow);
  }

}