* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

}
.container {
    width: 300px;
    height: 300px;
    perspective: 500px;
}
.cube {
    width: inherit;
    height: inherit;
    transform: rotateY(400deg) rotateX(0deg);
    transform-style: preserve-3d;


}
.side {
    width: inherit;
    height: inherit;
    border: 5px solid white;
    color: #fff;
    font-size: 30px;
    text-align: center;
    line-height: 300px;
    position: absolute;
}
.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);
}


