Restructured main.css

Used Jens Meiert's CSS Selection Ordering (http://meiert.com/en/blog/20130130/how-to-order-css-selectors/)