@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Lato:wght@300;400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    /* Gradiente Romântico Suave (Rosa, Pêssego, Lilás) */
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    min-height: 100vh;
    color: #5a3e3e;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Heart Animation */
.hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    color: #e91e63;
    font-size: 1.5em;
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: hearts-fall, hearts-sway;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
    opacity: 0.7;
}

@keyframes hearts-fall {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

@keyframes hearts-sway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(50px) rotate(20deg); }
}

.heart:nth-of-type(1) { left: 5%; animation-delay: 0s, 0s; font-size: 1.2rem; }
.heart:nth-of-type(2) { left: 15%; animation-delay: 2s, 1s; font-size: 1.8rem; }
.heart:nth-of-type(3) { left: 25%; animation-delay: 4s, 0.5s; font-size: 1rem; }
.heart:nth-of-type(4) { left: 35%; animation-delay: 1s, 2s; font-size: 1.5rem; }
.heart:nth-of-type(5) { left: 45%; animation-delay: 5s, 1.5s; font-size: 1.2rem; }
.heart:nth-of-type(6) { left: 55%; animation-delay: 3s, 3s; font-size: 1.6rem; }
.heart:nth-of-type(7) { left: 65%; animation-delay: 7s, 2s; font-size: 1.1rem; }
.heart:nth-of-type(8) { left: 75%; animation-delay: 1.5s, 1s; font-size: 1.4rem; }
.heart:nth-of-type(9) { left: 85%; animation-delay: 6s, 0s; font-size: 1.3rem; }
.heart:nth-of-type(10) { left: 95%; animation-delay: 2.5s, 1.5s; font-size: 1.7rem; }


header {
    margin-top: 40px;
    text-align: center;
    z-index: 2;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #c2185b;
    margin: 0;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

h2 {
    font-family: 'Great Vibes', cursive;
    color: #d81b60;
    font-size: 3rem;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
}

.scene {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.6s ease;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(194, 24, 91, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

#scene-letter {
    background: transparent;
    box-shadow: none;
    border: none;
}

.hidden {
    display: none !important;
}

/* CENA 1: A Carta */
.letter-container {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
    position: relative;
}

.letter-container:hover {
    transform: scale(1.05) rotate(2deg);
}

.letter-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(194, 24, 91, 0.2));
}

.instruction {
    color: #c2185b;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-family: 'Great Vibes', cursive;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 25px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(194, 24, 91, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(194, 24, 91, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(194, 24, 91, 0); }
}

/* Animação de Saída da Carta */
.letter-exit {
    animation: flyOutHeart 1.5s forwards cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes flyOutHeart {
    0% { transform: scale(1) translateY(0); opacity: 1; }
    30% { transform: scale(0.9) translateY(20px); }
    100% { transform: scale(1.5) translateY(-800px) rotate(10deg); opacity: 0; filter: blur(10px); }
}

/* CENA 2: A Brincadeira */
.photo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

/* Estilo Polaroid para as fotos */
.photo-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 12px solid #fff;
    border-bottom: 40px solid #fff; /* Polaroid style */
    transform: rotate(-2deg);
    transition: transform 0.3s;
    animation: fadeInPhoto 0.8s ease-out;
}

.photo-container img:hover {
    transform: rotate(0deg) scale(1.02);
}

@keyframes fadeInPhoto {
    0% { opacity: 0; transform: translateY(20px) rotate(-5deg); }
    100% { opacity: 1; transform: translateY(0) rotate(-2deg); }
}

.message-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: #5a3e3e;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(194, 24, 91, 0.1);
    animation: slideUp 0.6s ease;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(233, 30, 99, 0.2);
}

.message-box p {
    font-size: 1.2rem;
    margin: 15px 0;
    line-height: 1.6;
}

@keyframes slideUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.btn {
    background: linear-gradient(45deg, #ec407a, #d81b60);
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
    background: linear-gradient(45deg, #d81b60, #c2185b);
}

.btn:active {
    transform: translateY(1px);
}

/* CENA 3: O Presente */
#scene-gift {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #f8bbd0;
}

#scene-gift p {
    font-size: 1.3rem;
    color: #880e4f;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Great Vibes', cursive;
}

.video-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-container video {
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.2);
    transition: transform 0.3s ease;
}

.video-container video:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(194, 24, 91, 0.3);
}
