Rearrange styles to move some generic class styles to the top and the footer style to the bottom