Changed the structure of the styles to prevent unwanted inheritances.