:root {
  --primary-color: #FF4081;
  --secondary-color: #3F51B5;
  --stage-bg: #E8F5E9;
  --balloon-red: #F44336;
  --balloon-blue: #2196F3;
  --balloon-green: #4CAF50;
  --balloon-yellow: #FFEB3B;
  --balloon-purple: #9C27B0;
  --balloon-orange: #FF9800;
}

body {
  font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
  background-color: #FFF8E1;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,64,129,0.1)"/></svg>');
  background-size: 30px 30px;
}

.game-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #F3E5F5;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.score, .timer, .level-info {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  background-color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.level-info {
  color: var(--secondary-color);
}

.game-stage {
  background-color: var(--stage-bg);
  background-image: 
    linear-gradient(90deg, rgba(255,255,255,.4) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,.4) 50%, transparent 50%);
  background-size: 30px 30px;
  height: 400px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #DCEDC8;
}

.balloon {
  position: absolute;
  width: 60px;
  height: 70px;
  background-size: cover;
  cursor: pointer;
  transform-origin: bottom center;
  animation: float 8s linear forwards;
  z-index: 2;
  bottom: 0;
}

.balloon::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
}

.balloon.red {
  background-color: var(--balloon-red);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.balloon.blue {
  background-color: var(--balloon-blue);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.balloon.green {
  background-color: var(--balloon-green);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.balloon.yellow {
  background-color: var(--balloon-yellow);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.balloon.purple {
  background-color: var(--balloon-purple);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.balloon.orange {
  background-color: var(--balloon-orange);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.balloon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  top: 15px;
  left: 15px;
  transform: rotate(-20deg);
}

.balloon.popping {
  animation: pop 0.3s ease-out forwards;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  10% {
    transform: translateY(-40px) rotate(5deg);
  }
  20% {
    transform: translateY(-80px) rotate(-5deg);
  }
  30% {
    transform: translateY(-120px) rotate(5deg);
  }
  40% {
    transform: translateY(-160px) rotate(-5deg);
  }
  50% {
    transform: translateY(-200px) rotate(5deg);
  }
  60% {
    transform: translateY(-240px) rotate(-5deg);
  }
  70% {
    transform: translateY(-280px) rotate(5deg);
  }
  80% {
    transform: translateY(-320px) rotate(-5deg);
  }
  90% {
    transform: translateY(-360px) rotate(5deg);
  }
  100% {
    transform: translateY(-400px) rotate(0deg);
    opacity: 0.8;
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.pop-score {
  position: absolute;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  animation: float-up 1.5s ease-out forwards;
  z-index: 10;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(1.2);
    opacity: 0;
  }
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

#start-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#start-button:hover {
  background-color: #ff5a92;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.sound-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sound-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.instructions {
  background-color: #F3E5F5;
  padding: 15px;
  border-radius: 15px;
  margin-top: 20px;
}

.instructions h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.instructions p {
  margin: 5px 0;
}

.level-complete, .game-over {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 100;
}

.level-complete.show, .game-over.show {
  opacity: 1;
  pointer-events: all;
}

.level-complete-text, .game-over-text {
  color: white;
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.final-score {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 30px;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 768px) {
  .game-info {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .game-stage {
    height: 350px;
  }
  
  .balloon {
    width: 50px;
    height: 60px;
  }
} 