New CSS and layout

Squashed commit of the following:

commit 9bafd9b0a64621ad3a3565395359c2cd0884d59d
commit eda5cefbfcd292a4c8d8417d532ca6ad0c3faffd
commit fdc5e875148cc6b73aad695eca9fd446e2901627
commit d1122c8cbc6495cd6fca29379d39554048ffaa09
commit 8f22144b4d7cb8886fadc92858b7cf72999c8253
commit 4a88b6f6d02433fac34e2ffeb3777d53ac99b4d2
commit 460c54dc0b469a2ba4f19c524ea2317b8c484c23
commit d14d530bed20cc13f7cc76c42b15950674698ace