This is why inline styles aren't a great idea!  You now have duplicate CSS in your project, which is a violation of a principle called "DRY" ("Don't Repeat Yourself").

You probably want to put this css into a file called "flash_prevention.css" or something, and then import that external css on each page where it is relevant.