.overall{
    background-color: grey;
    padding-top: 120px;
}

.card{
    background-color: white;
    text-align: center;
    border-style: none;
    border-radius: 10px;
    width: 350px;
    height: 500px;
    animation-name:carditems;
    animation-duration:2s;
    transition: all 2s;
}

@keyframes carditems{
    from{
        transform:translateX(-400px);
        opacity: 0;
    }
    
    to{
        transform:translateX(0px);
        opacity: 1;
    }

}

.card:hover{
    box-shadow:1px 1px 25px 1px black;
}

.image{
    margin-top: 25px;
    margin-left: 25px;
    border-style: none;
    border-radius: 10px;
    width:300px;
    height: 300px;
}

.container{
    text-align: center;
}

p{
    color: darkgray;
    font-size: 15px;
}

@media only screen and (max-width:658px){
    .card{
        width: 250px;
        height: 380px;
        animation-name:carditems;
        animation-duration:2s;
    }

    @keyframes carditems{
    from{
        transform:translateX(-400px);
        opacity: 0;
    }
    
    to{
        transform:translateX(0px);
        opacity: 1;
    }

}

.card:hover{
    box-shadow:1px 1px 25px 1px black;
}

    .image{
        margin-top: 25px;
        margin-left: 25px;
        width:200px;
        height: 200px;
    }

    h4{
        font-size: 20px;
    }

    p{
        font-size: 12px;
    }
}
