
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #5d5d5d;
  text-align: center;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffdbe2, #fff0f3);
  max-width: 100vw;
}

#bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

/* --- SEÇÃO DO ENVELOPE (Mantida conforme sua preferência) --- */
.container-carta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    perspective: 1000px;
}

.envelope {
    width: 280px;
    height: 180px;
    background: #ff8fa3;
    position: relative;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 35px rgba(255, 143, 163, 0.3);
    cursor: pointer;
}

.envelope::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-top: 110px solid #ff758f;
    z-index: 4;
    transition: transform 0.6s ease;
    transform-origin: top;
}

.envelope-frente {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 0;
    border-left: 140px solid #ff8fa3;
    border-right: 140px solid #ff8fa3;
    border-bottom: 110px solid #ff99ab;
    z-index: 3;
    border-radius: 0 0 10px 10px;
}

.carta {
    width: 250px;
    height: 160px;
    background: #ffffff;
    position: absolute;
    bottom: 5px; left: 15px;
    transition: transform 0.8s ease, opacity 0.4s;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    opacity: 0;
    border-radius: 8px;
}

.envelope.aberto::before { transform: rotateX(180deg); z-index: 1; }
.envelope.aberto .carta { opacity: 1; transform: translateY(-130px); }

/* --- NOVOS BLOCOS E FONTES --- */
.app {
  padding: 25px 20px;
  max-width: 450px;
  margin: 0 auto;
}

.contador-box {
  margin: 25px 0;
  font-size: 22px;
  color: #ff4d6d;
  font-weight: 600;
}

#contador {
  color: #ff4d6d;
  font-size: 32px;
  font-weight: bold;

  animation: aparecerContador 0.8s ease;
}

.subtitulo-bloco {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: rgba(255, 77, 109, 0.7);

  margin-bottom: 8px;

  position: relative;
  display: inline-block;
}

@keyframes aparecerContador {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bloco {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  margin: 25px 0;
  padding: 30px 22px;
  border-radius: 22px;

  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow:
    0 8px 30px rgba(255, 120, 150, 0.15);

  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.bloco:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 15px 40px rgba(255, 120, 150, 0.25);
}

.bloco.show {
  opacity: 1;
  transform: translateY(0);
}

.bloco:nth-child(2) {
  background: linear-gradient(145deg, rgba(255, 200, 210, 0.4), rgba(255,255,255,0.4));
  border: 1px solid rgba(255, 150, 170, 0.3);

  box-shadow:
    0 10px 35px rgba(255, 100, 140, 0.25);
}

.bloco:nth-child(2):hover {
  transform: scale(1.05);
}

.titulo {
  font-family: 'Great Vibes', cursive;
  font-size: 48px;
  color: #ff4d6d;
  margin-bottom: 0;

  text-shadow: 0 0 10px rgba(255, 100, 130, 0.3);
}

#texto {
  font-size: 18px;
  line-height: 1.7;
  color: #777;
}

#contador {
  font-size: 30px;
  letter-spacing: 1px;

  text-shadow:
    0 0 8px rgba(255, 120, 150, 0.4);
}

/* Timeline estilo Polaroid */
.item {
    margin-bottom: 35px;
    background: white;
    padding: 15px 15px 30px 15px; /* Espaço maior embaixo para parecer Polaroid */
    border-radius: 2px;
    box-shadow: 0 10px 25px rgba(255, 143, 164, 0.671), 
                0 0 15px rgba(255, 143, 163, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s;
}

.item.show { opacity: 1; transform: translateY(0); }

.item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 15px;
}

.item h3 { font-family: 'Playfair Display', serif; color: #ff4d6d; margin: 5px 0; }

.musica-bloco {
  text-align: center;
}

.player-hidden {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.6s;
  pointer-events: none;
}

.player-hidden.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.heart-explosion {
  position: fixed;
  pointer-events: none;
  font-size: 18px;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  opacity: 1;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

button {
  background: linear-gradient(45deg, #ff8fa3, #ff4d6d);
  border-radius: 40px;
  padding: 14px 26px;
  color: white;
  font-weight: 600;
  border: none;

  box-shadow:
    0 10px 25px rgba(255, 80, 120, 0.5);

  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
}

button:active {
  transform: scale(0.95);
}

.hidden { display: none !important; }