Modified code to allow scrolling and the modal closes when clicking on the overlay
Added demo.css