body, html {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #9e9a75;
}

.center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

h2, h3 {
    position: relative;
    font-family: Verdana, sans-serif;
    font-weight: normal;
    z-index: 1;
}

h2 { 
    margin-top: 5rem;
}

h3 {
    margin-bottom: 5rem;
}

.scene {
    width: 200px;
    height: 200px;
    perspective: 600px;
    perspective-origin: 50% 50%;
    position: relative;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center;
    transform: rotateX(-20deg) rotateY(28deg);
    transition: .5s all ease-in-out;
    animation: rotateCube 5s linear infinite;
    will-change: transform;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #333;
    background-image: url('keith.jpg');
}

.cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(100px); }
.cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(100px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(100px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(100px); }
.cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(100px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    from { transform: rotateX(0) rotateY(0); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
}