* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: linear-gradient(to bottom, #6ab7ff, #c6e6ff);
  height: 100vh;
  font-family: "Arial", sans-serif;
}

.garden {
  position: relative;
  width: 100%;
  height: 100%;
}

.ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to bottom, #5a9e4d, #7cbd6f);
  z-index: 1;
}

.title {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-size: 3.5rem;
  font-family: "Georgia", serif;
  z-index: 100;
}

.sun {
  position: absolute;
  top: 60px;
  right: 100px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #ffff00, #ffeb3b);
  border-radius: 50%;
  box-shadow: 0 0 60px #ffeb3b;
  z-index: 2;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.9;
  z-index: 2;
}

.mountain {
  position: absolute;
  bottom: 35%;
  z-index: 3;
}

.tree {
  position: absolute;
  bottom: 35%;
  z-index: 4;
}

.flower-bed {
  position: absolute;
  bottom: 35%;
  width: 100%;
  height: 20%;
  z-index: 5;
}

.flower {
  position: absolute;
  z-index: 6;
}

.butterfly-container {
  position: absolute;
  width: 80px; /* Larger butterflies */
  height: 70px;
  z-index: 10;
  transform-style: preserve-3d;
}

.butterfly {
  width: 150%;
  height: 180%;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}

/* Wing flapping animation */
@keyframes flapWings {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(70deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.wing-group {
  transform-origin: center;
  animation: flapWings 0.15s infinite ease-in-out;
}

/* Butterfly flight animation */
@keyframes butterflyFlight {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-2deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(5px) rotate(2deg);
  }
}

/* Enhanced flower styles */
.flower-head {
  position: absolute;
  transform-origin: center bottom;
  z-index: 2;
  animation: flowerSway 5s infinite ease-in-out;
}

@keyframes flowerSway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes petalMovement {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}

.flower-petal {
  position: absolute;
  border-radius: 50%;
  animation: petalMovement 3s infinite ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.flower-center {
  position: absolute;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  z-index: 3;
}

/* Sparkle effect for flowers */
@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.sparkle {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 3s infinite;
  z-index: 4;
}

/* Subtle glow effect for butterflies */
@keyframes gentleGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  }
}

/* Wind effect */
@keyframes windEffect {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-2px) rotate(-1deg);
  }
  50% {
    transform: translateX(0) rotate(0deg);
  }
  75% {
    transform: translateX(2px) rotate(1deg);
  }
}

.wind-effect {
  animation: windEffect 8s infinite ease-in-out;
}
