I made a simple website where i wanted to hide and show div using jseverything works fine on desktop, even when the window is reducedBut when i try it on mobile the navigation bar start to work in really strange way and sometimes it even make another part of the website disappear
i really don't know where i am doing wrong
here is the complete code https://codepen.io/Giacomo-Petralia/pen/wBwVVOr
i should have a functioning menu but it is not really usable in mobile because everything lose the place i wantedi think there is some problem with the css, maybe with
display: flex;
and also with
position: sticky;
please help me understand what is wrong here