body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to right, #2f4254, #102a43);
  /* background: linear-gradient(to right, #fceabb, #f8b500); */
  color: #333;
  overflow-x: hidden;
}
.cover-page {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  /* background: linear-gradient(to right, #f8b500, #f8b500); */
  background: linear-gradient(to right, #102a43, #102a43);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
}

.cover-content {
  text-align: center;
  padding: 2rem;
}

.cover-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cover-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  /* color: #e91e63; */
  color: #ffd700;
}

.cover-content button {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: none;
  background-color: #fff;
  color: #0d47a1;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cover-content button:hover {
  transform: scale(1.1);
  background-color: #fff;
}

/* Hide when removed */
.cover-page.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-text-sequence {
  font-size: 2rem;
  color: #ffd700;

  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  text-align: center;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

#start-final-btn {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border: none;
  background-color: #fff;
  color: #0d47a1;
  border-radius: 30px;
  cursor: pointer;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
#start-final-btn:hover {
  transform: translateX(-50%) scale(1.1);
}

.container {
  text-align: center;
  padding: 3rem 1rem;
}

h1 {
  font-size: 3rem;
  /* color: #e91e63; */
  color: #ffd700;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ffd700;
}

.letter {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.gallery img {
  width: 200px;
  height: auto; /* Atur tinggi agar gambar kotak */
  object-fit: cover; /* Ini yang bikin gambar terpotong rapi */
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button {
  background-color: #e91e63;
  color: #fff;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.1);
  background-color: #d81b60;
}

.next-page {
  background: #fff0f5;
  margin: 4rem auto;
  padding: 4rem 2rem;
  max-width: 900px;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  font-size: 1.4rem;
  line-height: 1.8;
  color: #4a4a4a;
  text-align: center;
}

.next-page h2 {
  color: #c2185b;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.next-page .signature {
  margin-top: 3rem;
  font-style: italic;
  font-size: 1.2rem;
  color: #333;
}

.gallery-page {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 4rem auto;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.gallery-page h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ff4081;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  height: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.next-gallery-btn {
  margin-top: 2rem;
  background-color: #ff4081;
  color: #fff;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.next-gallery-btn:hover {
  transform: scale(1.1);
  background-color: #e91e63;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.caption {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #c2185b;
  font-size: 1rem;
}

.caption-bottom {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  text-align: center;
  max-width: 95%;
}

.final-page {
  position: relative;
  height: 100vh;
  background-color: #fff8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}

.message h1 {
  font-size: 2.8rem;
  color: #e91e63;
  margin-bottom: 1rem;
}

.message p {
  font-size: 1.3rem;
  color: #444;
}

#balloon-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  z-index: 0;
  transition: opacity 500ms;
}

.balloon {
  height: 125px;
  width: 105px;
  border-radius: 75% 75% 70% 70%;
  position: absolute;
  animation: float 10s infinite ease-in;
  z-index: 1;
}

.balloon:before {
  content: "";
  height: 75px;
  width: 1px;
  padding: 1px;
  background-color: #fdfd96;
  display: block;
  position: absolute;
  top: 125px;
  left: 0;
  right: 0;
  margin: auto;
}

.balloon:after {
  content: "▲";
  text-align: center;
  display: block;
  position: absolute;
  color: inherit;
  top: 120px;
  left: 0;
  right: 0;
  margin: auto;
}

@keyframes float {
  from {
    transform: translateY(100vh);
    opacity: 1;
  }
  to {
    transform: translateY(-300vh);
    opacity: 0;
  }
}

.add-balloon-btn {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background-color: #e91e63;
  color: white;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.add-balloon-btn:hover {
  transform: scale(1.1);
  background-color: #ad1457;
}
