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

.container {
  width: 100%;
  min-height: 100vh;
  background: #1d0035;
  overflow: hidden;
}

.main {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transform: perspective(700px);
}

.box {
  position: absolute;
  transform-style: preserve-3d;
  top: 150px;
}

.box .cube {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: animateCube 20s linear infinite;
}

@keyframes animateCube {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.box .cube .side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}


.box .cube .side span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(#fb6200, #fb6200, #c3300f);
  transform: rotateY(calc(90deg * var(--i))) translateZ(100px);
}

.box .cube .top {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #b22708;
  transform: rotateX(90deg) translateZ(100px);
  transform-style: preserve-3d;
}

.box .cube .top::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: #fb6200;
  transform: translateZ(-300px);
  filter: blur(50px);
  box-shadow: 0 0 120px rgba(251, 98, 0, 0.2),
    0 0 200px rgba(251, 98, 0, 0.4),
    0 0 300px rgba(251, 98, 0, 0.6),
    0 0 400px rgba(251, 98, 0, 0.8),
    0 0 500px rgba(251, 98, 0, 1);
}