* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #434750;
  overflow: hidden;
}

.steps {
  position: relative;
  transform: skewY(-15deg) translateX(50px) translateY(50px);
  animation: animateColor 2.5s linear infinite;
}

@keyframes animateColor {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.steps::before {
  content: '';
  position: absolute;
  top: 300px;
  width: 300px;
  height: 200px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 100;
  transform: skewX(45deg);
  transform-origin: bottom;
  filter: blur(20px);
}

.steps span {
  position: relative;
  width: 200px;
  height: 40px;
  display: block;
  background: #3e3f46;
  transition: 0.5s;
  z-index: var(--i);
  animation: animateSteps 5s ease-in-out infinite;
  animation-delay: calc(-1s * var(--i));
}

@keyframes animateSteps {
  0%,100% {
    transform: translateX(-70px);
  }
  50% {
    transform: translateX(70px);
  }
}

.steps span:hover {
  background: #33a3ee;
  transition: 0.5s;
}

.steps span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: #2e3133;
  transform: skewY(45deg);
  transform-origin: right;
  transition: 0.5s;
}

.steps span:hover::before {
  background: #1f5378;
  transition: 0.5s;  
}

.steps span::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 0;
  width: 100%;
  height: 150px;
  background: #f00;
  transform: skewX(45deg);
  transform-origin: bottom;
  background: #35383e;
  transition: 0.5s;
}

.steps span:hover::after {
  background: #2982b9;
}