moving styles to the css and preserving hover state color