/* Festive Styling */
body {
    background-color: #000;
    color: white;
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    perspective: 1000px; /* Required for 3D flip */
    overflow-x: hidden;
}

.info-tag {
    /* ... other styles ... */
    white-space: pre-wrap; /* ⬅️ REQUIRED for \n to display as a line break */
}
/* Bokeh Background (Blurred Christmas Lights) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.3) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(0, 255, 0, 0.3) 0%, transparent 50%),
                      radial-gradient(circle at 50% 50%, rgba(0, 0, 255, 0.3) 0%, transparent 50%);
    z-index: -1;
    filter: blur(100px);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- Gift Box / Flip Card Styles --- */

.flip-container {
    width: 300px;
    height: 400px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

.flip-container.flipped {
    transform: rotateY(180deg);
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 15px;
    padding: 20px;
}

/* Front Side (The Gift) */
.front {
    background-color: #ff3b3b; /* Red Gift Box */
    color: white;
    border: 5px solid gold;
    z-index: 2;
}

.gift-icon {
    font-size: 5rem;
    margin: 20px 0;
    animation: bounce 1.5s infinite;
}

/* Back Side (The Reveal) */
.back {
    background-color: #004d40; /* Dark Teal Reveal */
    color: #ffeb3b; /* Gold Text */
    transform: rotateY(180deg);
}

.reveal-header {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#recipient-name {
    font-size: 3rem;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.info-tag {
    font-size: 0.9rem;
    padding: 10px;
    margin-top: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.5);
}

/* --- Snowfall Effect --- */

.snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 1px #000;
    position: fixed;
    top: -10%;
    z-index: 99;
    user-select: none;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Base properties for multiple snowflakes */
/* You would need a generator script to create many of these in CSS */
.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; opacity: 0.8; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 8s; opacity: 0.6; }
/* ... (Add more snowflakes with varying left positions and durations) ... */

@keyframes fall {
    0% { transform: translateY(0) }
    100% { transform: translateY(100vh) }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}

}
