Refactored the CSS so that there is an organised and logical stylesheet rather than messy inline styles