refactoring css and fixing mobile styling