main.css and group.css refactor