function closeMenu() {
$('.mr_menu').hide();
// or
$('.mr_menu').removeClass('show');
}
// Close modal when clicking outside
modal.addEventListener('click', function(event) {
// Check if the click was on the overlay and not the modal content
if (event.target === modal) {
closeModal();
}
});