Use 'display' instead of 'visibility' to prevent the page from having white space at the bottom