Fix overlay bug in custom CSS for the sidebar element