*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#box{
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(500deg);
    animation: anim 10s linear infinite;

}
#box div{
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}


@keyframes anim {


    0%{
        transform: rotateX(-30deg) rotateY(360deg);
    }
    100%{
        transform: rotateX(-30deg) rotateY(0deg);

    }


}




#box:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    width: 300px;
    height: 300px;
    transform: rotateX(90deg) translateZ(-220px);
    filter: blur(20px);

}



#box div span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#box div .s_1{
background-color: #d8aa77;
transform: rotateY(0deg) translate3d(0,0,150px);
}
#box div .s_1:before{

content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: url("1.png");
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: center;


}
#box div .s_2{
    background-color: #b38859;
    transform: rotateY(90deg) translate3d(0,0,150px);
}
#box div .s_3{
    background-color: #d8aa77;
    transform: rotateY(180deg) translate3d(0,0,150px);
}
#box div .s_3:before{

    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: url("2.png");
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: center;


}
#box div .s_4{
     background-color: #b38859;
     transform: rotateY(270deg) translate3d(0,0,150px);
 }

#box .top{
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: #c19668;
    transform: rotateX(90deg) translate3d(0,0,150px);
    display: flex;
    justify-content: center;
    align-items: center;

}

#box .top:before{
    content: '';
    position: absolute;
    width: 100%;
    height: 80px;
    background: url("3.png");
    background-size: 40px;

}
.mark{
    position: absolute;
    top:20px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 120px;
    height: 80px;
    background: url("3.png");
    background-size: 40px;
}