move state rules to the end of main.css