body {
  background-image: url("images/bg.jpg");
  background-size: 100% 100%;
  height: 100vh;
  text-align: center;
  color: #fff;
}

.container {
  height: 100%;
  margin-top: 100px;
}

.dice {
  positon: relative;
  margin: 0 auto;
  height: 200px;
  width: 200px;
  transform-style: preserve-3d;
  animation: spin 9.5s infinite alternate;
}

img {
  width: 90%;
  height: 90%;
  margin: 1%
}

@keyframes spin {
  0% {
    transform: rotateX(360deg) rotateY(360deg) translateZ(0px);
  }
}

.side {
  position: absolute;
  height: 200px;
  width: 200px;
  opacity: .9;
  background: white;
  transition: .9s;
}

.container:hover .dice {
  animation: none;
  width: auto;
}

.dice > div {
  position: absolute;
  height: 200px;
  width: 200px;
  transition: all .8s;
}

.container:hover .dice > .side {
  position: relative;
  transform: none;
  display: inline-block;
  margin: auto;
}

.container .dice > .side:hover {
  width: 210px;
  height: 210px;
  padding: 2%;
  box-shadow: 2px 2px 2px #ef7801, 2px 3px 4px #fff, 4px 4px 1px #fff;
  color: #fe9125;
  font-size: 1.4em;
}

.one {
  transform: rotateX(90deg) translateZ(100px);
  background: #000;
}

.two {
  transform: translateZ(100px);
  background: #000;
}

.three {
  transform: rotateY(90deg) translateZ(100px);
  background: #000;
}

.four {
  transform: rotateY(180deg) translateZ(100px);
  background: #000;
}

.five {
  transform: rotateY(-90deg) translateZ(100px);
  background: #000;
}

.six {
  transform: rotateX(-90deg) translateZ(100px);
  background: #000;
}