Refactor the CSS styles