/* ========== GENERAL STYLES ========= */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #fbecec, #ffe4f0, #fdf6ff);
  color: #6b3653;
  margin: 0;
  padding: 0;
  text-align: center;
}

h1, h2 {
  font-weight: 700;
  color: #d66fa6;
  margin-bottom: 10px;
}

/* ========== HEADER ========== */
header {
  padding: 20px;
  background-color: rgba(255, 182, 193, 0.3);
}

/* ========== GALLERY SECTION ========== */
#gallery {
  padding: 30px;
}

.gallery-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-grid img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(214, 111, 166, 0.7);
}

.divider {
  height: 3px;
  width: 80%;
  background: linear-gradient(to right, #ffebf6, #d6609f);
  margin: 10px auto;
  border-radius: 5px;
}


/* ========== YAP / LETTER SECTION ========== */
#yap {
  padding: 20px;
  background-color: rgba(255, 192, 203, 0.2);
  border-top: 2px solid #d66fa6;
  border-bottom: 2px solid #d66fa6;
}

#message-box {
  padding: 15px;
  background-color: #ffe4f0;
  border-radius: 10px;
  margin-bottom: 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#next-message {
  padding: 10px 20px;
  background-color: #d66fa6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

#next-message:hover {
  background-color: #e28bc4;
  transform: scale(1.05);
}

/* ========== FINAL LETTER SECTION ========== */
#final {
  padding: 20px;
}

#letter {
  padding: 20px;
  margin-top: 10px;
  background-color: #ffe4f0;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(214, 111, 166, 0.5);
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  display: none; /* hidden until button click */
  animation: fadeIn 1s ease forwards;
}

/* Button styling for final letter */
#open-letter {
  padding: 10px 25px;
  background-color: #d66fa6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

#open-letter:hover {
  background-color: #e28bc4;
  transform: scale(1.05);
}

/* ========== ANIMATION ========= */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}