* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgba(0, 0, 0, 0.9);
}
.container {
  position: relative;
  margin: 200px auto;
  width: 300px;
  height: 300px;
  perspective: 500px;
}
.cube {
  width: inherit;
  height: inherit;
  transform-style: preserve-3d;
  transform: rotate3d(1, 1, 1, 45deg);
}
.side {
  position: absolute;
  width: inherit;
  height: inherit;
  border: 5px solid #fff;
  font: normal 70px Arial;
  text-align: center;
  line-height: 300px;
  color: #fff;
  text-transform: lowercase;

}

.front {
  transform: translateZ(150px);
}
.back {
  transform: rotateY(180deg) translateZ(150px);
}
.right {
  transform: rotateY(90deg) translateZ(150px);
}
.left {
  transform: rotateY(-90deg) translateZ(150px);
}
.top {
  transform: rotateX(90deg) translateZ(150px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(150px);
}
