main.css code refactor