/* Ensure the body and html take up the full viewport */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex; /* Add flexbox to center content */
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* Default value, will be overridden by JavaScript */
}

/* Style the overlay container */
#overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensures the image doesn't block canvas interactions */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style the image */
#centered-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

canvas {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 0px solid #000000; /* Default black border */
}

#texture-image {
    display: none; /* Hide the texture image */
}

#lineup-image {
    position: absolute; /* Position it absolutely within the overlay container */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for centering */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none; /* Ensure it doesn't block canvas interactions */
    z-index: 2; /* Ensure it appears above the canvas */

    /* Add gentle displacement animation */
    animation: gentleDisplacement 3s infinite alternate;
    filter: url('#displacement-filter'); /* Optional: Use an SVG filter for more control */
}

/* Keyframes for gentle displacement */
@keyframes gentleDisplacement {
    0% {
        filter: blur(0px) brightness(100%) contrast(100%);
        transform: translate(-50.1%, -50%) scale(1);
    
    }
    100% {
        filter: blur(0.2px) brightness(100%) contrast(100%);
        transform: translate(-50%, -50.1%) scale(1);
    }
}