/* === BASIC THEME === */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Satisfy", "Dancing Script", cursive;
  background: #000;
  color: #00ffff;
  overflow: hidden;
}

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #0f0f0f, #121212, #1a1a1a, #0c0c0c);
  background-size: 400% 400%;
  animation: animateBG 15s ease infinite;
  z-index: -1;
}

@keyframes animateBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* === CUBE CONTAINER === */
.cube-container {
  perspective: 1000px;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === CUBE === */
.cube {
  width: 250px;
  height: 250px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

/* === CUBE FACE === */
.face {
  position: absolute;
  width: 250px;
  height: 250px;
  background: #0d0d0d;
  border: 2px solid #00ffff;
  box-shadow: inset 0 0 20px #00ffff55;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ffff;
  font-weight: bold;
  font-size: 1.2rem;
  backface-visibility: hidden;
  pointer-events: auto;
  user-select: none;
}

/* No hover transform = solid feel */
.face:hover {
  background: #111;
  box-shadow: inset 0 0 25px #00ffff88;
}

/* === FACE TEXT ROTATION FIX === */
.face-text {
  transform: rotateX(0deg) rotateY(0deg);
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  pointer-events: none;
}

/* === 3D FACE POSITIONS === */
.front {
  transform: translateZ(125px);
}
.back {
  transform: rotateY(180deg) translateZ(125px);
}
.right {
  transform: rotateY(90deg) translateZ(125px);
}
.left {
  transform: rotateY(-90deg) translateZ(125px);
}
.top {
  transform: rotateX(90deg) translateZ(125px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(125px);
}

/* === CUBE ROTATION CONTROLS === */
.controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.controls button {
  padding: 12px 20px;
  background: #0f0f0f;
  border: 2px solid #00ffff;
  color: #00ffff;
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 10px #00ffff55;
}

.controls button:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 15px #00ffff;
}
