body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia, serif';
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
}

.container {
  background: white;
  padding: 2rem;
  margin: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  animation: fadeIn 2s ease;
  box-sizing: border-box;
}

h1 {
  color: #ff6f61;
  font-size: 2rem;
  margin-bottom: 1rem;
}
h2 {
  color: #ff6f61;
}

p {
  color: #ff6f61;
}
.message {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  min-height: 50px;
}

.balloons {
  padding-top: 1rem;
  padding-bottom: 3rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.balloon {
  width: 40px;
  height: 60px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  animation: float 4s ease-in-out infinite;
  cursor: pointer;
}

.balloon::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 2px;
  height: 30px;
  background: #333;
  transform: translateX(-50%);
}

.pink { background: #ff4cd5; }


#party-btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  border: none;
  background: linear-gradient(135deg, #ff6f61, #ffcc70);
  color: white;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

#party-btn:hover {
  transform: scale(1.05);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .message { font-size: 1rem; }
  .balloon { width: 30px; height: 45px; }
  .balloon::after { height: 20px; }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #fff5e1;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: popIn 0.4s ease;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Pop Animation */
@keyframes pop {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.balloon.popped {
  animation: pop 0.4s ease forwards;
}

/* Emoji Rain */
#emoji-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 10;
}
.emoji {
  position: absolute;
  font-size: 2rem;
  animation: fall 5s linear forwards;
}
@keyframes fall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

#reset-btn {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  background: linear-gradient(135deg, #6dd5ed, #2193b0);
  color: white;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

#reset-btn:hover {
  transform: scale(1.05);
}

#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to top right, #ffe5ec, #ffd6e0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.loader-content {
  text-align: center;
  animation: pulse 1.5s infinite ease-in-out;
}

.hearts {
  font-size: 2.5rem;
  animation: floatHearts 2s infinite ease-in-out;
}

.loading-text {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #cc3366;
  font-weight: bold;
  font-family: 'Georgia, serif';
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes floatHearts {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
