Close the burger menu by clicking background

Hello, I want to make closed animation by clicking on the background. On the burger button, everything works fine but if I trigger a dedicated class for closing (background click) with the same animation, the burger button disappears

Thanks in advance

Here is my public share link: LINK
(how to access public share link)