These rules should be inside the Mobile Layout media query, to prevent then from being applied to the desktop menu.