Animation not working when pressing outside of element and trying to reopen it (lottieflow)

Hey guys,

I can not seem to make my hamburger animation proplerly. It works fine when I just click it to open and close the navbar, but whenever i click on the page to close the open navbar, it bugs when I try to reopen it. Any help appreciated since I have been sitting on this for more than two hours and still could not make it work.

Thanks a bunch.

Here is my public share link: