/*© Zero - Código libre no comercial*/

body {
  font-size: 16px;
}

.tree-container {
  width: 92vw !important;
  height: 62vw !important;
  max-width: 98vw;
  max-height: 80vw;
  min-width: 180px;
  min-height: 180px;
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.tree-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tree-container svg.move-and-scale {
  transition: transform 1.2s cubic-bezier(.77,0,.18,1);
  /* Mueve hacia abajo en caso de los celualares */
  transform: translateY(60px) scale(1.18);
}

.dedication-text {
  position: absolute;
  top: 7vw;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92vw;
  font-size: 1.05rem;
  text-align: center;
  color: #000000;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-line;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.signature {
  position: static;
  display: block;
  margin: 2.2em auto 0 auto;
  left: auto;
  bottom: auto;
  transform: none;
  font-size: 1.25rem;
  color: #e60026;
  opacity: 0;
  z-index: 5;
  white-space: pre;
  pointer-events: none;
  transition: opacity 0.7s;
  text-align: center;
}

@media (max-width: 700px) {
  .signature {
    position: static;
    display: block;
    margin: 2.2em auto 0 auto;
    left: auto;
    bottom: auto;
    transform: none;
    font-size: 1.25rem;
    text-align: center;
  }
}

.countdown {
  position: fixed;
  left: 50%;
  bottom: 10vw;
  transform: translateX(-50%);
  font-size: 0.98rem;
  min-width: 60vw;
  max-width: 92vw;
  text-align: center;
  padding: 0.5em 0.7em;
  border-radius: 1em;
  background: #fff8;
  box-shadow: 0 2px 8px #e6002611;
  z-index: 6;
  pointer-events: none;
  letter-spacing: 0.05em;
  transition: opacity 0.8s cubic-bezier(.77,0,.18,1), transform 0.8s cubic-bezier(.77,0,.18,1);
  opacity: 0;
  transform: translateX(-50%) translateY(30px);
}

.countdown.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ajusta los pétalos flotantes */
.floating-petal {
  width: 13px;
  height: 18px;
}

