@charset "utf-8";

img, object {
    max-height: 100%;
    max-width: 95%;
}

body {
    background-image: url("usaflagbg.png");
    background-size: 100% 100%;        
    background-position: center center; 
    background-repeat: no-repeat;     
    background-attachment: fixed;     
    margin: 0;                        
    min-height: 100vh;                
}

body.dark-bg {
    background-image: url("usaflagbgdark.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px; 
}

/* Consolidated Hover Logic */
.hover-container {
    position: relative;
    display: inline-block;
    width: max-content;  
    height: max-content;
    text-decoration: none;
}

.hover-container img {
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.hover-container .img-back {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
}

.hover-container .img-front {
    position: relative;
    z-index: 2;
    opacity: 1;
}

.hover-container:hover .img-front {
    opacity: 0;
}

.hover-container:hover .img-back {
    opacity: 1;
}