Quiz screen flashes when in preview or LMS

I was asked to modify the quiz template to make it look more branded. I added a custom background, changed the font style and color, and now have only the submit button on the page. But now, the screen flickers when it is in preview mode or posted to the LMS. Any ideas on how to fix this would be much appreciated.