applied css styles to layout

Created a lot more CSS styles to the style sheet to change the layout
and to tidy up the code.