body {
  font-family: Arial, sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;

  /* Lighter blue night sky */
  background: radial-gradient(circle at bottom, #0d1b2a, #1b263b, #415a77);
}


body::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: transparent url("https://www.transparenttextures.com/patterns/stardust.png") repeat;
  animation: starMove 100s linear infinite;
  z-index: -1;
}

@keyframes starMove {
  from { transform: translateY(0); }
  to { transform: translateY(-500px); }
}


h1 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: lightblue;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* 3D Container */
.scene {
  perspective: 1000px;
}

/* Cube Container */
.cube {
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 10s infinite linear;
}

/* Cube Faces */
.cube-face {
  position: absolute;
  width: 300px;
  height: 300px;
  background: white;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #333;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Cube Faces (Front, Back, etc.) */
.cube-face.front {
  transform: translateZ(150px);
}
.cube-face.back {
  transform: rotateY(180deg) translateZ(150px);
}
.cube-face.left {
  transform: rotateY(-90deg) translateZ(150px);
}
.cube-face.right {
  transform: rotateY(90deg) translateZ(150px);
}
.cube-face.top {
  transform: rotateX(90deg) translateZ(150px);
}
.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(150px);
}

/* Image and Video Inside Cube */
.cube-face img,
.cube-face video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}



/* Cube Rotation Animation */
@keyframes rotateCube {
  0% {
    transform: rotateX(0) rotateY(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}