@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap");



.psection {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: #3b3a3b; */
  min-height: 100vh;
  overflow: hidden;

}

.pcontent {
  display: flex;
  justify-content: center;

}

/* .pcontent {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(177, 23, 23, 0) 100%
  );
  backdrop-filter: blur(30px);
  border-radius: 20px;
  width: min(900px, 100%);
  box-shadow: 0 0.5px 0 1px rgba(255, 255, 255, 0.23) inset,
    0 1px 0 0 rgba(255, 255, 255, 0.66) inset, 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 10;
} */

/* .pinfo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 450px;
  padding: 0 35px;
  text-align: justify;
} */

/* .pinfo p {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
} */

/* .movie-night {
  background: linear-gradient(225deg, #ff3cac 0%, #812acc 50%, #7c1c6f 100%);
} */





@keyframes gelatine {

  0%,
  100% {
    transform: scale(1, 1);
  }

  25% {
    transform: scale(0.9, 1.1);
  }

  50% {
    transform: scale(1.1, 0.9);
  }

  75% {
    transform: scale(0.95, 1.05);
  }
}




/* ANIMATED BACKGROUND */
@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ... (keeping existing styles until circles) ... */

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background-size: cover;
  background-position: center;
  animation: animate 25s linear infinite;
  bottom: -150px;
  border-radius: 50%;
  overflow: hidden;
}

/* Modify individual circle styles to accommodate images */
.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 60px;
  height: 60px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 70px;
  height: 70px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 90px;
  height: 90px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 65px;
  height: 65px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 85px;
  height: 85px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 75px;
  height: 75px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

.circles li:nth-child(11) {
  left: 45%;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation-duration: 11s;
}

.circles li:nth-child(12) {
  left: 25%;
  width: 100px;
  height: 100px;
  animation-delay: 0s;
  animation-duration: 11s;
}

.circles li:nth-child(13) {
  left: 1%;
  width: 130px;
  height: 130px;
  animation-delay: 0s;
  animation-duration: 11s;
}

/* Modified animation to maintain image visibility */
@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}
/*
@media (max-width: 750px) {
  .content {
     flex-direction: column-reverse;
  }
  
  .btn {
    margin: 10px auto 40px;
  }
}
*/




.book-cards__stack-wrapper {
  position: relative;
  width: 500px;
  height: 700px;
  perspective: 1000px;
  z-index: 2;
  padding: 20px;
}


@media (max-width: 750px) {
  .book-cards__stack-wrapper {
    margin-top: -18rem;
    width: 250px;
    height: 400px;
  }
}

.book-cards__single-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.8s ease-out;
  transform-style: preserve-3d;
  transform-origin: center right;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease-out;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.book-cards__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.book-cards__single-card--active {
  z-index: 3;
}

.book-cards__single-card:not(.book-cards__single-card--active) {
  transform: translateY(-15px) translateX(-15px) rotate(-9deg);
}

.book-cards__single-card--flipped {
  transform: translateX(-100%) rotateY(-180deg);
}

.book-cards__content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  pointer-events: none;
}

.book-cards__rating-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  pointer-events: none;
}

.book-cards__instruction-text {
  color: white;
  opacity: 0.7;
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
}