Fixed up navbar

Set the navbar to be dynamically adjustable with the window width. Also
centered the text and fixed the falling off the page bug.