*{
    box-sizing: border-box;
    margin: 0;
    --viewing-angle:1000
}
body{
    background-color: black;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.outer-div{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: none;
    min-height: 70vh;
}

.box{
    width: 200px;
    height: 120px;
    /* border: 1px solid red; */
    position: relative;
    transform-style: preserve-3d ;
    /* transform: rotateY(35deg); */
    animation: animate 20s linear infinite;
}

.box span img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;

}

.box span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateX(calc(var(--i) * 45deg)) translatez(160px);

}

.box span:hover img{
    /* scale: 1.05; */
    border-radius: 20px;
    border: 2px solid white;
}
h2{
    text-align: center;
    color: white;
    font-size: px;
    padding-top: 20px;
}
#item-box{
    color:white; 
    width: 200px;
    /* background-color: yellow; */
    height: 120px;
    background-image: url('/img/Restaurant.png') ;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
}
#logo{
    color:white;
    width: 200px;
    height: 120px;
    scale: 1.5;
    background-image: url('/img/Restaurant.png') ;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
}
@keyframes animate{
    0%{
        transform: perspective(calc(var(--viewing-angle)*1px)) rotateX(0deg) rotateY(30deg);
    }
    100%{
        transform: perspective(calc(var(--viewing-angle)*1px)) rotateX(360deg) rotateY(30deg);
    }
}