/* Custom styles for the RSVP flip card */

/* REDESIGNED CARD BACK STYLES */
.rsvp-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
}
.rsvp-icon-wrapper {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.rsvp-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.rsvp-value {
  font-size: 1rem;
  color: #1f2937;
  font-weight: 600;
  word-break: break-word;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* FLIP CARD STYLES */
.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  /* ADD THIS LINE to trigger the animation on page load */
  animation: peek-a-boo 1.5s ease-in-out 0.8s 1;
}

.flip-card-scene {
  width: 100%;
  max-width: 24rem;
  height: 32rem;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.is-flipped {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-front {
  background-size: cover;
  background-position: center;
}

.flip-card-back {
  transform: rotateY(180deg);
  justify-content: space-between;
}

@keyframes peek-a-boo {
  /* The card starts in its normal state */
  0% {
    transform: rotateY(0deg);
  }
  /* It rotates part-way to give a "peek" */
  50% {
    transform: rotateY(20deg);
  }
  /* It returns to its normal state and the animation ends */
  100% {
    transform: rotateY(0deg);
  }
}