add an event listener on the element instead only on the close button and check if the close button or the overlay is clicked and close the overlay if so
add an event listener on the element instead only on the close button and check if the close button or the overlay is clicked and close the overlay if so

maoberlehner/perfundo,maoberlehner/perfundo