:root {
    --bg-color: #0d1b2a;
    /* Deep dark blue */
    --text-color: #ffffff;
    --accent-color: #e63946;
    --gold: #ffd700;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Login Overlay */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1b263b, #0d1b2a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.8s ease-out;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
    font-family: 'Great Vibes', cursive;
    color: var(--gold);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.login-box input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-top: 10px;
    width: 200px;
}

.login-box button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
    transition: background 0.3s;
}

.login-box button:hover {
    background-color: #ff5a5f;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
    /* For layout changes if needed, but opacity handles fade */
}

/* Card Content */
#card-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Snow Canvas */
#snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Family Photo */
.family-photo {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 75vh;
    max-width: 95vw;
    z-index: 10;
    /* People on top of snow */
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.family-photo.visible {
    opacity: 1;
}

/* Message */
.message-container {
    position: absolute;
    top: 8%;
    /* Positioned higher up */
    width: 100%;
    text-align: center;
    z-index: 20;
    /* Text on top of everything */
}

.holiday-text {
    font-family: 'Great Vibes', cursive;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 2s ease-out;
    margin: 0;
}

.title-main {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 25px;
    /* Pull them closer */
    position: relative;
    z-index: 22;
}

.title-sub {
    font-size: 3.5rem;
    position: relative;
    z-index: 21;
}

.holiday-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Text */
@media (max-width: 768px) {
    .title-main {
        font-size: 4rem;
        padding: 0 10px;
    }

    .title-sub {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .family-photo {
        max-height: 60vh;
    }
}