Responsive navigation bar

Rewrote some parts of navigation bar in order to easily maintain or change it in the future. Ensured it properly works on mobile browsers.
Waiting for your feedback, @stachern.