body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(to top, #ffe6f0, #fff);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cake {
  position: relative;
  width: 220px;
  height: 220px;
}

.bottom-layer, .middle-layer, .top-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-300px);
  opacity: 0;
  border-radius: 12px;
  animation: drop 0.8s ease-out forwards;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bottom-layer {
  bottom: 0;
  width: 220px;
  height: 60px;
  background: #ffb6c1;
  animation-delay: 0.2s;
}

.middle-layer {
  bottom: 60px;
  width: 160px;
  height: 50px;
  background: #ffe4ec;
  animation-delay: 0.6s;
}

.top-layer {
  bottom: 110px;
  width: 120px;
  height: 40px;
  background: #fff0f5;
  animation-delay: 1s;
}

@keyframes drop {
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.candle {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 30px;
  background: white;
  border-radius: 3px;
  box-shadow: 0 -5px 15px rgba(255, 190, 0, 0.7);
}

.flame {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 15px;
  background: radial-gradient(ellipse at center, #ffff66 0%, #ff6600 80%);
  border-radius: 50%;
  animation: flicker 0.2s infinite alternate;
  opacity: 0.8;
  box-shadow: 0 0 10px 2px rgba(255, 165, 0, 0.6);
}

@keyframes flicker {
  0% {
    transform: translateX(-50%) scale(1) rotate(-2deg);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-50%) scale(1.1) rotate(2deg);
    opacity: 1;
  }
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.birthday-title {
  font-size: 36px;
  color: #ff66b2;
  text-shadow: 1px 1px 2px #fff;
  margin-bottom: 20px;
  animation: popIn 1s ease-in-out forwards;
  opacity: 0;
}

@keyframes popIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.copyright {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #999;
}
#music-container {
  position: fixed;
  bottom: 40px;
  width: 100%;
  text-align: center;
}

#playButton {
  background-color: #ff99cc;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  color: white;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  animation: popIn 1s ease-out;
}

#playButton:hover {
  background-color: #ff66b2;
}

