refactored CSS to be more modular