:root {
    --primary: #1a237e;      /* Azul Escuro */
    --secondary: #ffd700;    /* Dourado para detalhes */
    --bg: #e8eaf6;           /* Fundo Azul muito claro */
    --white: #ffffff;
    --accent-light: #c5cae9; /* Azul do envelope */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Frase com animação elástica */
.dica-toque {
    display: block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    /* Animação de zoom e pulo combinados */
    animation: puloComZoom 1.5s infinite ease-in-out;
    transition: opacity 0.4s ease; /* Para o sumiço suave */
}

@keyframes puloComZoom {
    0%, 100% {
        transform: scale(1) translateY(0);
        text-shadow: 0 0 0 rgba(0,0,0,0);
    }
    50% {
        transform: scale(1.2) translateY(-8px); /* Dá o zoom e pula */
        text-shadow: 0 10px 20px rgba(26, 35, 126, 0.2); /* Sombra para efeito 3D */
    }
}

/* --- ANIMAÇÃO DE DESTAQUE --- */
.destaque-aniv {
    display: inline-block;
    color: #3949ab; /* Azul vibrante */
    font-weight: 600;
    animation: brilhoDestaque 2s infinite ease-in-out;
}

@keyframes brilhoDestaque {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 0px rgba(57, 73, 171, 0);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(57, 73, 171, 0.5);
        color: #1a237e;
    }
}

body {
    background-color:#c9ddffb4;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Estilo do fundo animado para a parte do envelope */
.container-full {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}   
    /* Efeito de partículas flutuando no fundo */
.container-full::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(46, 75, 241, 0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(62, 49, 241, 0.644) 2px, transparent 2px);
    background-size: 50px 50px, 100px 100px;
    animation: particlesMove 20s linear infinite;
    z-index: 0;
}

@keyframes particlesMove {
    from { background-position: 0 0; }
    to { background-position: 500px 1000px; }
}

/* Garante que o envelope fique acima das partículas */
.envelope-wrapper {
    position: relative;
    z-index: 10;
}
/* Garante que o container de pétalas ou confetes não quebre o fundo */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* ENVELOPE ESTILO ORIGINAL */

/* Ajuste das cores do Envelope */
.envelope { background: var(--accent-light); }
.envelope-frente { background: var(--primary); }
.btn-celebrar { background: var(--primary); }
.legenda { color: var(--primary); }

/* Glass card com reflexo azulado */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(26, 35, 126, 0.1);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.05);
}

.envelope {
    width: 300px; height: 200px; background: #1a237e; 
    position: relative; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.envelope-frente {
    position: absolute; width: 100%; height: 100%;
    background: var(--primary);
    clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}
.carta-interna {
    position: absolute; width: 90%; height: 80%;
    background: white; top: 10%; left: 5%; padding: 20px;
    text-align: center; z-index: 1; transition: transform 1s;
}

/* ANIMAÇÃO DE ABERTURA */
.aberto .carta-interna { transform: translateY(-100px); }

#pagina-aniversario {
  transform: scale(0.98);
}

#pagina-aniversario.visible {
  transform: scale(1);
  transition: all 0.6s ease;
}

/* PÁGINA DE ANIVERSÁRIO */
.app-aniversario {
    min-height: 100vh; padding: 40px 20px;
    background: linear-gradient(135deg, #d4d9f1e7 0%, #ffffff 100%);
    opacity: 0; transition: opacity 1.5s ease;
}

.app-aniversario.visible { opacity: 1; }

.aniv-header { text-align: center; margin-bottom: 30px; }
.aniv-header h1 { font-family: 'Great Vibes', cursive; font-size: 3.8rem; color: var(--primary); }

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 25px; border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px; text-align: center;
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.05);
}

.mensagem-aniv {
    font-style: italic;
    line-height: 1.6;
    min-height: 80px; /* Evita que o card mude de tamanho enquanto digita */
}

/* Opcional: Efeito de cursor piscando */
.mensagem-aniv::after {
    content: '|';
    margin-left: 5px;
    color: var(--primary);
    animation: pisca 0.7s infinite;
}

@keyframes pisca {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Container do Carrossel estilo "Maço de Cartas" */
/* Container do Carrossel estilo "Maço de Cartas" */
.swiper {
    width: 300px; /* Largura fixa para parecer um bloco de fotos */
    height: 420px;
    padding: 20px;
    overflow: visible !important;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: white;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}

.swiper-slide img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.legenda {
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    text-align: center;
    padding: 0 10px;
}

.btn-celebrar {
    width: 100%; padding: 18px; border-radius: 50px;
    background: var(--primary); color: white; border: none;
    font-weight: 600; cursor: pointer; transition: 0.3s;
    box-shadow: 0 8px 20px rgba(106, 27, 154, 0.3);
}

.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.visible {
  opacity: 1;
  transition: opacity 0.8s ease;
  position: relative;
}