body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #222;
    background-image: url("wallpaper.jpg");
    background-size: cover;
    }
        
.scene {
  width: 200px;
  height: 200px;
  perspective: 600px;
    }

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 60s 3s ease-out;
    text-align: center;
    }
    
p {
    font-size: 95%;
    text-align: justify;
    font-family: cursive;
    font-weight: normal;
    margin: 5%;
    line-height: 2.0;
    color: white;
    text-shadow: 1px 1px black;
}
p.autor {
    color: yellow;
    font-family: 'Franklin Gothic Medium'
    , 'Arial Narrow', Arial, sans-serif;
    font-size: xx-small;
    text-align: right;
    text-shadow: 1px 1px forestgreen;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(240, 10, 255, 1.0);
    border: 2px solid rebeccapurple;
        }

.front  { 
    transform: translateZ(100px); 
    background: url("image1.jpg");
    background-size: cover;
}
.back   { 
    transform: rotateY(180deg) 
    translateZ(100px); 
    background-image: url("mom.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.left   { 
    transform: rotateY(-90deg) 
    translateZ(100px);
    background: url("image5.jpg");
    background-size: cover;
}
.right  { 
    transform: rotateY(90deg) 
    translateZ(100px); 
    background: url("image2.jpg");
    background-size: cover;
}
.top    { 
    transform: rotateX(90deg) 
    translateZ(100px); 
    background: url("image4.jpg");
    background-size: cover;
}
.bottom { 
    transform: rotateX(-90deg) 
    translateZ(100px); 
    background: url("image3.jpg");
    background-size: cover;
}

@keyframes rotate {
    0% { transform: rotateY(0deg) }
    20% {transform: rotateY(-90deg)}
    40% {transform: rotateX(90deg)}
    60% {transform: rotateX(-90deg)}
    80% {transform: rotateY(90deg)}
    100% {transform: rotateY(180deg)}
    }