Adjusting flash message classes based on message type.