body {
    background-color: #fffafa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Georgia', serif;
    color: #444;
    overflow: hidden;
}

.envelope {
    background: white;
    padding: 50px;
    max-width: 450px;
    width: 85%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(214, 51, 132, 0.1);
    text-align: center;
    line-height: 1.8;
    border: 1px solid #fce4e4;
    z-index: 10;
}

.heart {
    font-size: 2.5rem;
    margin-bottom: 15px;
    cursor: pointer;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

h1 {
    font-weight: normal;
    color: #d63384;
    margin-bottom: 25px;
}

#surprise-text {
    transition: opacity 0.3s ease, color 0.3s ease;
    margin-top: 20px;
    min-height: 50px;
    font-style: italic;
}

#surpriseBtn {
    background-color: #d63384;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Georgia', serif;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s ease, background 0.3s ease;
}

#surpriseBtn:hover {
    background-color: #b02a6a;
    transform: scale(1.05);
}

.signature {
    margin-top: 40px;
    font-size: 1.1rem;
}

.floating-heart {
    position: fixed;
    bottom: -10vh;
    color: #d63384;
    opacity: 0.8;
    pointer-events: none;
    animation: floatUp linear forwards;
    z-index: 1;
}

@keyframes floatUp {
    to {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}
