namespace styles and replace IDs with classes