/* --- General Styling (SAME AS BEFORE) --- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@400;600&display=swap');

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

#background-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle, #ffdde1, #ee9ca7);
}

.heart {
  position: absolute;
  color: #ff4b6e;
  opacity: 0.6;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}

.container {
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.page {
  background: rgba(255, 255, 255, 0.95);
  /* Slightly less transparent for photos */
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  animation: slideIn 0.8s ease;
  border: 3px solid #fff;
}

.page.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-family: 'Dancing Script', cursive;
  color: #d63384;
  font-size: 2.2rem;
  margin-bottom: 10px;
  margin-top: 0;
}

p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.teddy-img {
  font-size: 5rem;
  display: block;
  margin: 15px auto;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.btn {
  background: linear-gradient(45deg, #ff9a9e, #fecfef);
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 105, 135, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 105, 135, 0.5);
}

.gift-box {
  font-size: 6rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.gift-box:hover {
  transform: rotate(10deg) scale(1.1);
}

/* --- NEW STYLES FOR PHOTO FRAMES --- */
.photo-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* Space between photos */
  margin-bottom: 25px;
  padding: 10px 0;
}

.photo-frame {
  background: #fff;
  padding: 6px;
  /* White border thickness */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px #ffc1e3;
  /* Soft shadow + pink outline */
  border-radius: 4px;
  transform: rotate(-3deg);
  /* Default tilt */
  transition: all 0.3s ease;
  position: relative;
}

/* Make the middle photo tilt the other way and pop out */
.photo-frame:nth-child(2) {
  transform: rotate(3deg) translateY(-5px);
  z-index: 2;
}

/* Make the last photo tilt slightly differently */
.photo-frame:nth-child(3) {
  transform: rotate(-1deg) translateY(2px);
}

/* Hover effect on frames */
.photo-frame:hover {
  transform: scale(1.1) rotate(0deg) !important;
  /* Straighten and zoom */
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 0 0 2px #d63384;
}

/* Styling the images inside the frames */
.photo-frame img {
  width: 85px;
  /* Adjust size if needed */
  height: 85px;
  /* Keep it square */
  object-fit: cover;
  /* Ensures photo doesn't stretch weirdly */
  border-radius: 2px;
  display: block;
  background-color: #eee;
  /* Loading placeholder color */
}