.hidden {
    display: none;
}

#flag-container {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#active-flag-container {
    position: fixed;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#flag-img,
#active-flag-img {
    width: 150px;
    height: auto;
}

/* Fade-in and Fade-out Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Pulse Animation for Active Flag */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Apply the pulse effect */
#active-flag-img {
    animation: pulse 2s infinite ease-in-out;
}
