input[type=radio] {
  display: none;
}

.carousel-section{

}

.card-carousel {
  position: absolute;
  width: 60%;
  height: 100%;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform 0.4s ease;
  cursor: pointer;
}
.container-carousel {
  width: 100%;
  height: 500px !important;
  max-width: 800px;
  max-height: 600px;
  height: 100%;
  transform-style: preserve-3d;
  /* display: flex; */
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: auto;
  padding-top: 25px;
}

.cards {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 20px;
}
.card-carousel img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

#item-1:checked ~ .cards #nft-4, #item-2:checked ~ .cards #nft-1, #item-3:checked ~ .cards #nft-2 , #item-4:checked ~ .cards #nft-3{
  transform: translatex(0) scale(0.8);
  opacity: 0.4;
  z-index: 0;
}
#item-1:checked ~ .cards #nft-3, #item-2:checked ~ .cards #nft-4, #item-3:checked ~ .cards #nft-1, #item-4:checked ~ .cards #nft-2 {
  transform: translatex(-40%) scale(0.8);
  opacity: 0.4;
  z-index: 0;
}
#item-1:checked ~ .cards #nft-2, #item-2:checked ~ .cards #nft-3, #item-3:checked ~ .cards #nft-4, #item-4:checked ~ .cards #nft-1 {
  transform: translatex(40%) scale(0.8);
  opacity: 0.4;
  z-index: 0;
}
#item-1:checked ~ .cards #nft-1, #item-2:checked ~ .cards #nft-2, #item-3:checked ~ .cards #nft-3, #item-4:checked ~ .cards #nft-4 {
  transform: translatex(0) scale(1);
  opacity: 1;
  z-index: 1;
}


