#animation-container {
  perspective: 800px;
  margin: 100px auto;
  position: relative;
  user-select: none;
}

#cube {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
  transition: transform 2s ease;
}

.face {
  position: absolute;
  line-height: 1;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  opacity: 0.95;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

#cube-tooltip {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

#cube-tooltip.show {
  opacity: 0.85;
}
