Update main.css.

* switch to class
* change selectors order; put tags on top
Move inline style to main.css and remove inherited property.

Also simplify a couple of shorthands.