#banner {
    /* Original Styles */
    position: fixed;
    left: 0;
    width: 100%;
    background-color: #f4f4f4;
    padding: 20px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1050;

    /* Animation Styles */
    bottom: -100%; 
    transition: bottom 1s ease-in-out;
    
    /* --- FIX FOR THE "WINKING" EFFECT --- */
    -webkit-backface-visibility: hidden; /* For Safari and Chrome */
    backface-visibility: hidden;         /* Prevents flickering on 3D transforms */
    transform: translateZ(0);            /* Forces GPU acceleration (hardware layer) */
    /* --- END OF FIX --- */
}

/* This class triggers the slide-up animation */
#banner.slide-in {
    bottom: 0;
}

#banner .content {
    flex: 1;
    padding-right: 20px;
    color: darkblue;
}

#banner .close {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
}

#banner svg {
    width: 50px;
    height: 50px;
    fill: #e74c3c;
}

#main-content {
    margin-top: 90px;
}


/* Firework Sparkles Styles */
.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: gold;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: firework 2s ease-out forwards;
}

/* Firework Animation Keyframes */
@keyframes firework {
    0% {
        opacity: 1;
        transform: scale(0.3);
    }
    100% {
        opacity: 0;
        transform: scale(1.5) translate(var(--translateX), var(--translateY));
    }
}


/* Responsive styles */
@media (max-width: 768px) {
    #banner {
        flex-direction: column;
        text-align: center;
    }
    #banner .content {
        padding-right: 0;
        padding-bottom: 20px;
    }
    #main-content {
        margin-top: 160px;
    }
}