I wasn't sure where to post my other projects so I'm just adding it to this. Hope you see it.
What I struggled with was the X button. Through googling I found you put a  at the end, and that worked, but I'm not sure why.
Also I could not figure out how to close the modal by clicking outside of it. I found and tried this code