Fixed the html markup. Closing p element was missing.
Fixed the .hidden CSS class to work for Firefox browser too.