*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

html,body{
    height: 100%;
    width: 100%;
}

#main{
    height: 100%;
    width: 100%;
    background-color:beige;
}

.card{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%); 
    height: 300px;
    width: 200px;
    border: 1px solid salmon;
    border-radius: 20px;
    overflow: hidden;
}

#card1{
    z-index: 4;
}
#card2{
    z-index: 3;
    transform: translate(-50%,-50%) rotate(-7deg); 
}

#card2:hover{
    z-index: 40;
}

#card3:hover{
    z-index: 40;
}

#card4:hover{
    z-index: 40;
}

#card3{
    z-index: 2;
    transform: translate(-50%,-50%) rotate(-14deg); 
}

#card4{
    z-index: 1;
    transform: translate(-50%,-50%) rotate(-21deg); 
}

img{
    height:100%;
    width: 100%;
    object-fit: cover;
}

