body {
  font-family: sans-serif;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.container {
  perspective: 1000px;
  width: 200px;
  height: 200px;
  margin: 50px auto;
}

.heading,
.para {
  color: white;
}

.message {
  margin-bottom: 20px;
}

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

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  line-height: 200px;
  text-align: center;
  font-size: 20px;
}

.front {
  background-color: #c26679;
  transform: translateZ(100px);
  font-weight: lighter;
}

.back {
  background-color: #0d7ad9;
  transform: rotateY(180deg) translateZ(100px);
  font-weight: lighter;
}

.right {
  background-color: #2ab81d;
  transform: rotateY(90deg) translateZ(100px);
  font-weight: lighter;
}

.left {
  background-color: #f2cb05;
  transform: rotateY(-90deg) translateZ(100px);
  font-weight: lighter;
}

.top {
  background-color: #e81e17;
  transform: rotateX(90deg) translateZ(100px);
  font-weight: lighter;
}

.bottom {
  background-color: #30183a;
  transform: rotateX(-90deg) translateZ(100px);
  font-weight: lighter;
}

@keyframes rotateCube {
  0 % {
    transform: rotateY(0deg) rotateX(0deg);
  }

  100% {
    transform: rotateY(360deg) rotateX(360deg);
  }
}
