body {
  background-color: #FFAC8E;
  color: #3F4D71;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Custom Alert Styles */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.custom-alert-box {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: fadeInScale 0.3s ease-out;
  border: 3px solid #FD7792;
}

.custom-alert-box p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #3F4D71;
}

.custom-alert-box .btn-custom {
  min-width: 120px;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.story-container {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 60px auto;
  font-size: 1.2rem;
  line-height: 2;
}

.inline-input {
  border: none;
  border-bottom: 2px solid #55AE95;
  background-color: transparent;
  color: #3F4D71;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 2px 6px;
  margin: 0 5px;
  min-width: 100px;
  outline: none;
}

.inline-input::placeholder {
  color: #bbb;
}

.btn-custom {
  background-color: #55AE95;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 25px;
  margin-top: 20px;
}

.btn-custom:hover {
  background-color: #3F4D71;
}

h2 {
  color: #FD7792;
  text-align: center;
  margin-bottom: 30px;
}

/* Flower Animation Container */
.animation-container {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(#0c1445, #000);
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: 999;
}

.flower {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #FD7792;
  border-radius: 50% 50% 0 0;
  transform-origin: bottom center;
  opacity: 0;
  animation: bloom 6s linear infinite;
  z-index: 2;
}

.flower::before,
.flower::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #FD7792;
  border-radius: 50% 50% 0 0;
  top: 0;
  transform-origin: bottom center;
}

.flower::before {
  transform: rotate(45deg);
  left: -6px;
}

.flower::after {
  transform: rotate(-45deg);
  right: -6px;
}

@keyframes bloom {
  0% {
    transform: scale(0.5) translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    transform: scale(1.3) translateY(-30vh);
    opacity: 1;
  }
  100% {
    transform: scale(0.5) translateY(-60vh);
    opacity: 0;
  }
}

/* Letter After Animation */
.letter-container {
  text-align: center;
  color: white;
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  animation: fadeIn 2s ease-in-out forwards;
}

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

/* Remove flower animation styles from main CSS since they'll be in their own files */
.animation-container, .flower {
  display: none !important;
}
