*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background: rgb(21,21,50);
    width: 100vw;
    height: 100vh;
}
.container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transform: rotateX(-5deg);
}
.roll{
    position: relative;
    width: 200px;
    height: 60%;
    transform-style: preserve-3d;
    animation: rotatex 25s linear infinite;
}
@keyframes rotatex {
    0%{
        transform: rotate3d(0,1,0,0deg);
    }
    0%{
        transform: rotate3d(0,1,0,-360deg);
    }
}
@keyframes rotatey {
    0%{
        transform: rotate3d(0,1,0,0deg);
    }
    0%{
        transform: rotate3d(0,1,0,360deg);
    }
}
.img{
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i)*32.9deg)) translateZ(380px);
    cursor: grab;
}
img{
    width: 100%;
    height: 100%;

}

.button{
    width: 60px;
    height: 60px;
    position: absolute;
    cursor: pointer;
}
.left{
    left: 10px; 
}
.right{
    right: 10px;
    transform: rotate(180deg);
}
.roll .img::before{
    width: 100%;
    height: 100%;
    background: #000;
}
@media (max-width:800px) {
    .container{
        transform: scale(.7);
    }
}
@media (max-width:500px) {
    .container{
        transform: scale(.5);
    }
}
@media (max-width:350px) {
    .container{
        transform: scale(.4);
    }
}