Some bug fixing and preparation for new elements

I finally fixed that nav size bug! weew, turns out you can do logic in
css with the calc() function.