Why does not remove styles when you click?

The aim is this:

By clicking on the button opens some sort of form and appears in the background ,clicking on which gradually disappears and forms and background.

Please tell me what I do wrong ?
CODE
June 14th 19 at 19:09
1 answer
June 14th 19 at 19:11
Solution
Do so.

Find more questions by tags CSSHTMLjQuery