namespace styles and replace IDs with classes

To avoid conflicts with other extensions, ensure that styles are uniquely named. Also replace ids with classes to apply styles to elements that may occur multiple times.