Adds style for cancel dialog and game over dialog.