@keyframes turn {
  from { transform: rotate3d(0, 0, 0, 0); }
  to { transform: rotate3d(1, 1, 0, 360deg); }
}

.fcz-container {
  width: 50px;
  height: 50px;
  perspective: 500px;
  margin: 50px;
}

.fcz-cube {
  position: relative;
  width: 50px;
  height: 50px;
  transform-style: preserve-3d;
  animation: turn 5s linear infinite;
}

.fcz-face {
  width: 50px;
  height: 50px;
  /* background: skyblue; */
  border: 2px solid black;
  position: absolute;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  transition: transform 500ms;
}

.fcz-front {
  transform: translateZ(25px);
}

.fcz-back {
  transform: translateZ(-25px) rotateY(180deg);
}

.fcz-left {
  transform: translateX(-25px) rotateY(-90deg);
}

.fcz-right {
  transform: translateX(25px) rotateY(90deg);
}

.fcz-top {
  transform: translateY(-25px) rotateX(90deg);
}

.fcz-bottom {
  transform: translateY(25px) rotateX(-90deg);
}

@media (prefers-reduced-motion: reduce) {
  .fcz-cube {
    animation: none;
    transform: rotate3d(1, 1, 0, 45deg);
  }
}

.small-fcz-container {
  width: 10px;
  height: 10px;
  perspective: 500px;
  margin: 10px;
}

.small-fcz-cube {
  position: relative;
  width: 10px;
  height: 10px;
  transform-style: preserve-3d;
  animation: turn 5s linear infinite;
}

.small-fcz-face {
  width: 10px;
  height: 10px;
  /* background: skyblue; */
  border: 2px solid black;
  position: absolute;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  transition: transform 500ms;
}

.small-fcz-front {
  transform: translateZ(10px);
}

.small-fcz-back {
  transform: translateZ(-10px) rotateY(180deg);
}

.small-fcz-left {
  transform: translateX(-10px) rotateY(-90deg);
}

.small-fcz-right {
  transform: translateX(10px) rotateY(90deg);
}

.small-fcz-top {
  transform: translateY(-10px) rotateX(90deg);
}

.small-fcz-bottom {
  transform: translateY(10px) rotateX(-90deg);
}

@media (prefers-reduced-motion: reduce) {
  .small-fcz-cube {
    animation: none;
    transform: rotate3d(1, 1, 0, 45deg);
  }
}

