:root {
    --scrollBarFonColor: #bebac0;
    --scrollBarDragFonColor: #b10000;
    --textColor: #000000;
    --borderColor: #000000;
}
.swiper {
    padding: 10px !important;
}

.toc .swiper-slide {
    width: fit-content;
}
.toc h2 {
    text-align: center;
}

.toc .heading h2 {
    white-space: nowrap;
}

.toc {
    background-color: transparent;
}

.toc a {
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--textColor);
    transition: color 0.3s ease-in-out;
    -webkit-transition: color 0.3s ease-in-out;
    -moz-transition: color 0.3s ease-in-out;
    -ms-transition: color 0.3s ease-in-out;
    -o-transition: color 0.3s ease-in-out;
    border: 1px solid var(--borderColor);
    padding: 10px 20px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    background-color: transparent;
}

.toc a:active,
.toc a:hover,
.toc a:focus {
    color: #fff;
    background-color: rgba(207, 0, 0, 0.884);
    transition: 5ms;
}

.toc .swiper-wrapper {
    padding-bottom: 24px;
    display: flex;
    justify-content: center;
}

.toc-swiper .swiper-scrollbar {
    background: var(--scrollBarFonColor);
    height: 4px;
    border-radius: 2px;
}

.toc-swiper .swiper-scrollbar-drag {
    background: var(--scrollBarDragFonColor);
    border-radius: 2px;
    width: 20%;
}

.toc.wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.swiper-horizontal > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

@media screen and (max-width: 750px) {
    .toc.wrapper {
        margin-left: auto;
    }
    .swiper-horizontal > .swiper-scrollbar,
    .swiper-scrollbar.swiper-scrollbar-horizontal {
        width: 90% !important;
        margin: 0 auto;
    }

    .toc .swiper-wrapper {
        padding-bottom: 24px;
        display: flex;
        justify-content: left;
    }
}
