/* Christmas Theme Styles */

/* Christmas Message at Center - Fades in 3 seconds */
.christmas-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #1a5490;
    z-index: 100000;
    animation: messageAppear 0.5s ease-out forwards, fadeOutMessage 1s ease-in-out 2s forwards;
    opacity: 0;
    pointer-events: none;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutMessage {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.christmas-message h1 {
    font-size: 5.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Mountains of Christmas', cursive, serif;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ff0000, #ffd700, #00ff00, #ffd700, #ff0000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)) 
            drop-shadow(0 0 25px rgba(255, 0, 0, 0.6));
}

.christmas-message p {
    font-size: 2.2rem;
    margin-top: 20px;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 15px rgba(255, 215, 0, 1),
                 0 0 25px rgba(255, 215, 0, 0.7);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Santa Animation - Below Text, Full Left to Right */
.santa-sleigh {
    position: fixed;
    left: -300px;
    top: 60%;
    z-index: 100001;
    animation: santaFlyFullWidth 4s ease-in-out forwards;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.santa-sleigh img {
    width: 250px;
    height: auto;
}

@keyframes santaFlyFullWidth {
    0% {
        left: -300px;
        transform: translateY(0) scale(0.8);
    }
    20% {
        transform: translateY(-15px) scale(0.9);
    }
    50% {
        left: 50%;
        transform: translateY(-20px) scale(1);
    }
    80% {
        transform: translateY(-15px) scale(0.9);
    }
    100% {
        left: calc(100% + 300px);
        transform: translateY(0) scale(0.8);
    }
}

/* Christmas Tree in Bottom Right - Using Image */ 
.christmas-tree {
    position: fixed;
    bottom: 20px;
    right: 60px;
    z-index: 999;
    cursor: pointer;
    animation: treeAppear 1s ease-out 3s forwards;
    opacity: 0;
    transform: scale(0);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes treeAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-10deg);
    }
    60% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.tree-container {
    position: relative;
    width: auto;
    height: auto;
}

.tree-container img {
    width: 150px;
    height: auto;
    display: block;
    animation: treeGlow 2s ease-in-out infinite;
}

@keyframes treeGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
}

.tree-star {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    animation: starTwinkle 1s ease-in-out infinite;
    z-index: 1;
}

/* Fix scroll-top button to be above Christmas elements */
.scroll-top {
    z-index: 10000 !important;
    pointer-events: auto !important;
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.7; 
        transform: translateX(-50%) scale(1.3) rotate(180deg);
    }
}

/* Falling Snowflakes */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    pointer-events: none !important;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .christmas-message h1 {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    
    .christmas-message p {
        font-size: 1.3rem;
    }
    
    .santa-sleigh img {
        width: 180px;
    }
    
    .santa-sleigh {
        top: 65%;
        left: -250px;
    }
    
    .tree-container img {
        width: 100px;
    }
    
    .christmas-tree {
        bottom: 10px;
        right: 10px;
    }
    
    .tree-star {
        font-size: 20px;
        top: -5px;
    }
}

/* Hide after first visit (optional) */
body.christmas-visited .christmas-tree {
    animation: none;
    opacity: 1;
    transform: scale(1);
}