CSS rules reordering, to match each line of the demo