* {
  margin: 0%;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

h1 {
  color: red;
}

#main {
  height: 100%;
  width: 100%;
  /* display: flex;
  align-items: center;
  justify-content: center; */
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 300px;
  width: 230px;
  border: 1px solid salmon;
  border-radius: 20px;
  background-color: salmon;
  overflow: hidden;
}

#card1 {
  transform: translate(-50%, -50%);
  z-index: 4;
  background-color: salmon;
}

#card2 {
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-8deg);
  background-color: blue;
}

#card3 {
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-16deg);

  background-color: green;
}

#card4 {
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-24deg);

  background-color: yellow;
}

#card2:hover {
  z-index: 10;
}

#card3:hover {
  z-index: 15;
}

#card4:hover {
  z-index: 20;
}

img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
