/*
 * CSS for Mouse Parallax Module
 */

/* The container should have a defined size and position: relative */
.mpm-parallax-container {
    position: relative;
    overflow: hidden; /* Hide elements that move outside the container bounds */
    /* Example size - adjust as needed in your theme or shortcode */
    min-height: 400px;
    width: 100%;
}

/* Parallax elements should be positioned absolutely within the container */
.mpm-parallax-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the element */
    will-change: transform; /* Optimize for CSS transitions */
    transition: transform 0.2s ease-out; /* Smooth transition for the movement */
}

/* Example styling for a visible element */
.mpm-parallax-element.example-layer-1 {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 10;
}

.mpm-parallax-element.example-layer-2 {
    width: 300px;
    height: 300px;
    background-color: rgba(0, 0, 255, 0.5);
    border-radius: 50%;
    z-index: 5;
}
