Tweak main.css

Make positioning more robust.