General fixes for different window sizes

Also a problem with the iOS CSS.