@media (max-width: 767px) {
    #tableOfContents ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #tableOfContents ul::-webkit-scrollbar {
        display: none;
    }

    #tableOfContents li {
        flex-shrink: 0;
        scroll-snap-align: start;
        color: white;
    }

    #tableOfContents li a {
        color: white;
    }
}
