Improved compatibility with Safari and Firefox

For some reason, moving CSS to inline style attributes seems to fix
issues with Polymer working on Safari and Firefox. The old CSS is still
commented for clarity