body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    max-height: 100vh;
    background-image: url('christmas_wallpaper.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.container {
    padding: 20px;
    border-radius: 10px;
    max-width: 95%;
    width: 1400px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 auto;
}

h1 {
    font-size: 6rem;
    margin-bottom: 30px;
    color: white;
    text-shadow: 6px 6px 8px rgba(0, 0, 0, 0.7);
    word-break: keep-all;
    white-space: nowrap;
    line-height: 1.1;
    padding: 0 10px;
    paint-order: stroke fill;
    -webkit-text-stroke: 12px #8B0000;
}

.image-container {
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 10px 15px;
    font-size: 1em;
    box-sizing: border-box;
    flex-shrink: 0;
}

footer p {
    margin: 5px 0;
    color: grey;
    font-size: 0.9em;
    word-wrap: break-word;
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        /* Remove stroke on mobile to avoid glitching */
        -webkit-text-stroke: 0;
        text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.7);
    }
    
    .container {
        padding: 15px;
    }
    
    footer {
        padding: 8px 10px;
    }
    
    footer p {
        color: grey;
        font-size: 0.75em;
        line-height: 1.4;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        -webkit-text-stroke: 0;
        text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
    }
    
    footer p {
        color: grey;
        font-size: 0.7em;
    }
}