       scrollToTopBtn.style.opacity = "1";
            } else {
                scrollToTopBtn.style.visibility = "hidden";
                scrollToTopBtn.style.opacity = "0";
            }
        }

        scrollToTopBtn.addEventListener("click", function () {
            // Smooth scroll back to top
            window.scrollTo({ top: 0, behavior: "smooth" });
        });
    </script>

    <script>
        window.onload = function () {
            document.getElementById("search-bar").focus();
        }