body {
    margin: 0;
    background: #f2f2f5;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
}

/* Lluvia */
#rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* Sobre */
.envelope {
    width: 220px;
    height: 150px;
    background: #ff6f61; /* color más vivo */
    position: relative;
    border-radius: 6px;
    cursor: pointer;
    transform-origin: center bottom;
    transition: transform 0.6s ease;
    z-index: 5; /* bajamos para que la hoja quede arriba */
}

.envelope .body {
    width: 100%;
    height: 100%;
    background: #ff8a75; /* color más vivo */
    border-radius: 6px;
}

.envelope .flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: #ff4b3a; /* color más vivo */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transition: transform 0.6s ease;
    border-radius: 6px 6px 0 0;
    z-index: 6; /* sigue por encima de la hoja al abrir */
}

/* Hoja */
.paper {
    width: 80%;
    max-width: 350px;
    background: #fff3e6; /* un blanco cálido para contraste */
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.3); /* sombra más marcada */
    position: absolute;
    top: 40%; /* ajustado para quedar centrada */
    z-index: 15; /* siempre arriba del sobre */
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    transition: all 0.9s ease;
}

.paper.show {
    opacity: 1;
    transform: translateY(-20px) scale(1);
}

/* Texto */
.text p {
    font-size: 16px;
    line-height: 1.5;
    color: #222; /* más contraste */
}

.highlight {
    background: #ffd966; /* amarillo vivo */
    padding: 2px 4px;
    border-radius: 4px;
}

.small {
    font-size: 13px;
    color: #555;
}
