body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #111;
  color: #0ff;
  font-family: Arial, sans-serif;
  margin: 0;
}

.scene {
  width: 200px;
  height: 200px;
  perspective: 600px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 6s infinite linear;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #0ff;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #0ff;
  box-sizing: border-box;
}

.front  { transform: rotateY(  0deg) translateZ(100px); background: rgba(255,0,0,0.2); }
.back   { transform: rotateY(180deg) translateZ(100px); background: rgba(0,255,0,0.2); }
.right  { transform: rotateY( 90deg) translateZ(100px); background: rgba(0,0,255,0.2); }
.left   { transform: rotateY(-90deg) translateZ(100px); background: rgba(255,255,0,0.2); }
.top    { transform: rotateX( 90deg) translateZ(100px); background: rgba(255,0,255,0.2); }
.bottom { transform: rotateX(-90deg) translateZ(100px); background: rgba(0,255,255,0.2); }

@keyframes rotate {
  from { transform: rotateX(0) rotateY(0); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}
