* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    margin-top: 40px;
}

.card {
    transition: all .5s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: aliceblue;
    z-index: 3;
    position: relative;
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: all .5s ease-in-out;
    opacity: 0;
}

.card:hover {
    transform: scale(1.2) rotate(3deg);
    background-color: bisque;
}


.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}