Refactor CSS code and add box-shadow to nav