* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: white;
}

/* Background Hearts Animation */
.background-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.background-hearts::before,
.background-hearts::after {
  content: '❤️ 💕 💖 💗 💝 ❤️ 💕 💖 💗 💝';
  position: absolute;
  font-size: 30px;
  opacity: 0.1;
  animation: floatingHearts 20s linear infinite;
}

.background-hearts::before {
  top: -100px;
  animation-delay: 0s;
}

.background-hearts::after {
  top: -100px;
  animation-delay: 10s;
}

@keyframes floatingHearts {
  0% {
    transform: translateY(-100px);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* Scene Management */
.scene {
  display: none;
  min-height: 100vh;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.scene.active {
  display: flex;
  animation: fadeIn 0.8s ease;
}

.container {
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.6s ease;
}

/* Emojis */
.sad-emoji,
.crying-emoji,
.happy-emoji {
  font-size: 120px;
  margin-bottom: 20px;
  display: inline-block;
}

/* Typography */
h1 {
  font-size: 3em;
  margin: 20px 0;
  font-weight: bold;
}

p {
  font-size: 1.3em;
  margin: 15px 0;
  line-height: 1.6;
}

.text-gradient {
  background: linear-gradient(45deg, #fff, #ffd700, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  padding: 15px 40px;
  font-size: 1.2em;
  margin: 20px 10px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  font-weight: bold;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-yes {
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-yes:hover {
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.btn-no {
  background: linear-gradient(45deg, #f093fb, #f5576c);
  position: relative;
  transition: all 0.3s ease;
}

.rainbow-btn {
  background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-size: 200% 200%;
  animation: rainbowMove 3s ease infinite;
}

@keyframes rainbowMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Button Container */
.button-container {
  position: relative;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hint {
  font-size: 0.9em;
  opacity: 0.7;
  font-style: italic;
  margin-top: 10px;
}

/* Apology Reasons */
.apology-reasons {
  margin: 30px 0;
}

.reason {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 25px;
  margin: 15px 0;
  border-radius: 20px;
  font-size: 1.1em;
  backdrop-filter: blur(5px);
}

/* Heart Burst */
.heart-burst {
  position: relative;
  height: 150px;
  margin-bottom: 20px;
}

.heart-burst .heart {
  position: absolute;
  font-size: 40px;
  animation: heartBurst 2s ease infinite;
}

.heart-burst .heart:nth-child(1) {
  animation-delay: 0s;
  left: 50%;
}
.heart-burst .heart:nth-child(2) {
  animation-delay: 0.2s;
  left: 30%;
}
.heart-burst .heart:nth-child(3) {
  animation-delay: 0.4s;
  left: 70%;
}
.heart-burst .heart:nth-child(4) {
  animation-delay: 0.6s;
  left: 20%;
}
.heart-burst .heart:nth-child(5) {
  animation-delay: 0.8s;
  left: 80%;
}

@keyframes heartBurst {
  0% {
    transform: translateY(0) scale(0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1.5);
    opacity: 0;
  }
}

/* Celebration Elements */
.celebration {
  position: relative;
  height: 200px;
  margin-bottom: 20px;
}

.confetti {
  position: absolute;
  width: 100%;
  height: 100%;
}

.confetti::before,
.confetti::after {
  content: '🎉 ✨ 🎊 ⭐ 💫 🌟 🎉 ✨ 🎊 ⭐ 💫 🌟';
  position: absolute;
  font-size: 30px;
  animation: confettiFall 3s linear infinite;
  width: 100%;
}

.confetti::after {
  animation-delay: 1.5s;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(200px) rotate(360deg);
    opacity: 0;
  }
}

.balloons {
  position: absolute;
  width: 100%;
  bottom: 0;
  display: flex;
  justify-content: space-around;
}

.balloon {
  font-size: 50px;
  animation: balloonFloat 3s ease-in-out infinite;
  display: inline-block;
}

.balloon:nth-child(1) {
  animation-delay: 0s;
}
.balloon:nth-child(2) {
  animation-delay: 0.3s;
}
.balloon:nth-child(3) {
  animation-delay: 0.6s;
}
.balloon:nth-child(4) {
  animation-delay: 0.9s;
}
.balloon:nth-child(5) {
  animation-delay: 1.2s;
}

@keyframes balloonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* Love Letter */
.love-letter {
  background: rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 15px;
  margin-top: 30px;
  border-left: 5px solid #ff69b4;
  text-align: left;
}

.love-letter p:first-child {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* Running Text */
.running-text {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.2em;
  color: #e75480;
  text-shadow: 1px 1px 2px #fff;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

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

@keyframes rotateIn {
  from {
    transform: rotate(-360deg) scale(0);
    opacity: 0;
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation Classes */
.bounce {
  animation: bounce 2s infinite;
}

.pulse {
  animation: pulse 1.5s infinite;
}

.shake {
  animation: shake 0.5s infinite;
}

.wiggle {
  animation: wiggle 1s infinite;
}

.fade-in {
  animation: fadeIn 1s ease;
}

.fade-in-up {
  animation: slideUp 0.8s ease;
}

.fade-in-up.delay-1 {
  animation-delay: 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.fade-in-up.delay-2 {
  animation-delay: 0.6s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.bounce-in {
  animation: bounce 1s ease;
}

.zoom-in {
  animation: zoomIn 0.6s ease;
}

.rotate-in {
  animation: rotateIn 0.8s ease;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease;
}

.slide-in-right {
  animation: slideInRight 0.6s ease;
}

.slide-in-left:nth-child(1) {
  animation-delay: 0.1s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.slide-in-right:nth-child(2) {
  animation-delay: 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.slide-in-left:nth-child(3) {
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.slide-in-right:nth-child(4) {
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  p {
    font-size: 1.1em;
  }

  .btn {
    padding: 12px 30px;
    font-size: 1em;
  }

  .sad-emoji,
  .crying-emoji,
  .happy-emoji {
    font-size: 80px;
  }

  .container {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
  }

  p {
    font-size: 1em;
  }

  .btn {
    padding: 10px 25px;
    font-size: 0.9em;
    margin: 10px 5px;
  }

  .sad-emoji,
  .crying-emoji,
  .happy-emoji {
    font-size: 60px;
  }
}
