   navbar.style.transition = "";
            main.style.transition = "";
            chevrons.forEach(chevron => {
                chevron.style.transition = "";
            });
        }, 100);
    }
}

function saveSidenavScrollPosition() {
    const navbar = document.getElementById("theSideNav");
    const scrollPosition = navbar.scrollTop;
    localStorage.setItem("navbarScrollPosition", scrollPosition);
}

function restoreSidenavScrollPosition() {
    const navbar = document.getElementById("theSideNav"