refactoring css with base styles