Moving css media queries into more readable formatting

Not currently finished. Caused a couple minor bugs in the process.