Container flashes on top of modal

Hello,
I have a modal that displays when a page first loads, based on a query returning no information. When the modal loads it displays fine, but upon moving the mouse, the container beneath briefly flashes on top of the modal. Moving the mouse more can cause it to go back to normal.

ezgif-4-5ec95e6789

I can't find anything to suggest what is happening, if anyone has a clue please let me know!