@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&family=Great+Vibes&display=swap');

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at center, #1b0033 0%, #0d001a 100%);
    color: #fceeff;
    font-family: 'Playfair Display', serif;
    overflow: hidden;
    overflow-y: auto;
}

.carta-container {
    max-width: 700px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 204, 255, 0.2);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s ease;
}

.carta-container.show {
    opacity: 1;
    transform: translateY(0);
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: #ffb3f9;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(255, 204, 255, 0.4);
}

p {
    font-size: 20px;
    line-height: 1.8;
    white-space: pre-line;
}

/* Estrellas flotantes */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}
