code refactor main.css