#carousel  {
    touch-action: none;
    display: flex;
    transform-style: preserve-3d;
}
#drag-container,
#spin-container {
    position: relative;
    display: flex;
    margin: auto;
    transform-style: preserve-3d;
    transform: rotateX(-10deg);
}

 #drag-container img {
    transform-style: preserve-3d;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 16px rgba(0,0,0,0.1);
    border: 8px solid #BFE2FF;
} 
#drag-container img:hover img{
    filter: grayscale(0) contrast(1);
}          
#drag-container p {
    line-height: 1;
    font-size: 50px;
    font-weight: bold;
    text-align: center;      
    font-family: Serif;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
    color: #337AB7;
    font-family: Verdana, sans-serif; 
}
#ground {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
}
@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}
@keyframes spinRevert {
    from {
        transform: rotateY(360deg);
    }
    to {
        transform: rotateY(0deg);
    }
} 
@media only screen and (max-width: 1200px) {
#carousel  {
    height: 400px;
    perspective: 1000px;
}
#ground {
    width: 900px;
    height: 900px;
}    
}
@media only screen and (max-width: 900px) {
#carousel  {
    height: 300px;
    perspective: 800px;
}
#ground {
    width: 600px;
    height: 600px;
}    
}
@media only screen and (max-width: 600px) {
#carousel  {
    height: 200px;
    perspective: 500px;
}
#ground {
    width: 400px;
    height: 400px;
}  
}