@media screen and (min-width:801px){
    .card{
        width: 300px;
        height: auto;
    
        text-align: center;
        justify-content: center;
        align-items: center;
    
        position: relative;
    
        display: flex;
        flex-direction: column;
    }
    
    .card img{
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .card .backcard{
        z-index: 5;
    
        transition: all 0.5s ease;
    }
    
    .card .frontcard{
        position: absolute;
        z-index: 4;
        rotate: 180deg y;
        transition: all 0.5s ease;
    }
    
    .card:hover .backcard{
        transform: rotateY(-180deg);
        z-index: 4;
    }
    
    .card:hover .frontcard{
        transform: rotateY(-180deg);
        z-index: 5;
    }
}
@media screen and (max-width : 800px) {
    .card{
        width: 300px;
        height: auto;
    
        text-align: center;
        justify-content: center;
        align-items: center;
    
        display: flex;
        flex-direction: column;
    }
    
    .card img{
        width: 300px;
        position: relative;
    }
    
    .card .backcard{
        position: absolute;
        margin-top: 0;
    
        z-index: 5;
    
        transition: all 0.5s ease;
    }
    
    .card .frontcard{
        position: absolute;
        margin-top: 0;
        z-index: 4;
        rotate: 180deg y;
        transition: all 0.5s ease;
    }
    
    .card.flipped .backcard{
        transform: rotateY(-180deg);
        z-index: 4;
    }
    
    .card.flipped .frontcard{
        transform: rotateY(-180deg);
        z-index: 5;
    }
}
