added logic to vertically center logo on main page as well as to better handle resizes