See this link: https://css-tricks.com/some-hands-on-with-the-html-dialog-element/