@import url(https://fonts.googleapis.com/css?family=Lato:300italic);

html,
body {
  width: 100%;
  height: 100%;
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
}

@keyframes fall {
  to { transform: translateY(110vh); }
}

body {
  background: #40E0D0; /* turquesa principal */
}

#cake {
  display: block;
  position: relative;
  margin: -10em auto 0 auto;
}

.candle {
  background: #ffffff;
  border-radius: 10px;
  position: absolute;
  top: 228px;
  left: 50%;
  margin-left: -5px;
  margin-top: -8.33333333px;
  width: 10px;
  height: 70px;
  transform: translateY(-300px);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-animation: in 500ms 6s ease-out forwards;
          animation: in 500ms 6s ease-out forwards;
}

.candle:after,
.candle:before {
  background: rgba(0, 128, 128, 0.4); /* verde agua translúcido */
  content: "";
  position: absolute;
  width: 100%;
  height: 2.22222222px;
}

.candle:after {
  top: 15%;
  left: 0;
}

.candle:before {
  top: 45%;
  left: 0;
}

.fire {
  border-radius: 100%;
  position: absolute;
  top: -20px;
  left: 50%;
  margin-left: -2.6px;
  width: 6.66666667px;
  height: 18px;
}

.fire:nth-child(1) { animation: fire 2s 6.5s infinite; }
.fire:nth-child(2) { animation: fire 1.5s 6.5s infinite; }
.fire:nth-child(3) { animation: fire 1s 6.5s infinite; }
.fire:nth-child(4) { animation: fire 0.5s 6.5s infinite; }
.fire:nth-child(5) { animation: fire 0.2s 6.5s infinite; }

@keyframes fire {
  0%, 100% {
    background: rgba(173, 216, 230, 0.7); /* azul claro */
    box-shadow: 0 0 40px 10px rgba(224, 255, 255, 0.4); /* aqua glow */
    transform: translateY(0) scale(1);
  }
  50% {
    background: rgba(72, 209, 204, 0.4); /* turquesa medio */
    box-shadow: 0 0 40px 20px rgba(175, 238, 238, 0.3);
    transform: translateY(-20px) scale(0);
  }
}

@keyframes in {
  to { transform: translateY(0); }
}

.text {
  margin-top: 25px;
  text-align: center;
}

.text h1 {
  font-family: 'Brush Script MT', cursive;
  font-size: 3rem;
  color: #008080; /* verde agua oscuro */
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #20B2AA; /* borde turquesa */
  display: inline-block;
}

.typewriter {
  animation:
    typing 2s steps(30, end) forwards,
    blink .7s infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

#scene.paused * {
  animation-play-state: paused !important;
}

#scene.hidden {
  visibility: hidden;
}
#start {
    position:fixed;
    inset:0;
    margin:auto;
    height:60px;
    width:260px;
    z-index:9999;
    background:#20B2AA;
    color:#ffffff;
    border:none;
    border-radius:30px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,128,128,0.3);
    opacity:0.5; /* se ve apagado mientras está bloqueado */
  }