.rotating-cube-1 {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle, #444 0%, #000 100%);
  background-size: cover;
  background-position: center;  
}
.rotating-box {
  width: 300px;
  height: 300px;
  margin: 10px auto;
  perspective: 600px;
  transform-style: preserve-3d;
}
.single-rb {
  width: 300px;
  transform: rotateX(-20deg);
  animation: rotateit 15s linear infinite;
  transform-style: preserve-3d;
  margin-top: 110px;
}
.single-rb img {
  height: 300px;
  width: 300px;
} 
.single-rb div {
  position: absolute;
  width: 300px;
  height: 300px;
}
.front-side {
  transform: translateZ(150px);
}
.back-side {
  transform: rotateY(180deg) translateZ(150px)
}
.left-side {
  transform: rotateY(-90deg) translateX(-150px);
  transform-origin: left;
}
.right-side {
  transform: rotateY(90deg) translateX(150px);
  transform-origin: right;
}
.top-side {
  transform: rotateX(-90deg) translateY(-150px);
  transform-origin: top;
}
.bottom-side{
  transform: rotateX(90deg) translateY(150px);
  transform-origin: bottom;
}

@keyframes rotateit {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
/* SLIDESHOW
.slideshow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: aliceblue;
}

.slideshow {
  position: relative;
  display: block;
  width: 750px;
  height: 450px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slideshow > * {
  position: absolute;
  display: block;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: 0;
  background-color: #000;
  transform: translateX(100%);
  animation: anim 20s linear infinite;
}

@keyframes anim {
  10%, 20% { transform: translateX(0); }
  30% { transform: translateX(-100%); }
  31%, 100% { transform: translateX(100%); z-index: -1 }
}

.slideshow > :nth-child(2) {
  animation-delay: 4s;
}
.slideshow > :nth-child(3) {
  animation-delay: 8s;
}
.slideshow > :nth-child(4) {
  animation-delay: 12s;
}
.slideshow > :nth-child(5) {
  animation-delay: 16s;
}
*/
slide-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: aliceblue;
}

.slideshow {
  position: relative;
  display: block;
  width: 500px;
  height: 300px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slideshow > * {
  position: absolute;
  display: block;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: 0;
  background-color: #000;
  transform: translateX(100%);
  animation: anim 20s linear infinite;
}

@keyframes anim {
  10%, 20% { transform: translateX(0); }
  30% { transform: translateX(-100%); }
  31%, 100% { transform: translateX(100%); z-index: -1 }
}

.slideshow > :nth-child(2) {
  animation-delay: 4s;
}
.slideshow > :nth-child(3) {
  animation-delay: 6s;
}
.slideshow > :nth-child(4) {
  animation-delay: 12s;
}
.slideshow > :nth-child(5) {
  animation-delay: 16s;
}

