:root {
    --scrollBarFonColor: #ff757c;
    --textColor: #3f2e1d;
    --borderColor: #3f2e1d;
    --accent: #ff757c;

    --maxWidthSwiper: 1120px;
}
#toc .swiper {
    padding: 20px !important;
    padding-top: 0 !important;
}

.toc .swiper-slide {
    width: fit-content;
}

.toc h2 {
    white-space: nowrap;
    text-align: center;
}

.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: linear-gradient(90deg, var(--accent-rasp), var(--accent-sun));
    border-color: var(--scrollBarFonColor);
}

.toc .swiper-wrapper {
    padding-top: 20px;
    padding-bottom: 24px;
    justify-content: left;
}

.toc-swiper .swiper-scrollbar {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
}

.toc-swiper .swiper-scrollbar-drag {
    background: var(--scrollBarFonColor);
    border-radius: 2px;
    width: 20%;
}

.toc.wrapper {
    margin: 0 auto;
   padding:10px;
    padding-right: 0 !important;
}

.swiper-horizontal > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}
.toc-swiper {
    max-width: var(--maxWidthSwiper);
    padding-left: 20px;
}
@media screen and (max-width: 750px) {
   
    .swiper-horizontal > .swiper-scrollbar,
    .swiper-scrollbar.swiper-scrollbar-horizontal {
        width: 90% !important;
        margin: 0 auto;
    }

    .toc .swiper-wrapper {
        padding-top: 10px;
        padding-bottom: 24px;
        justify-content: left;
    }
    .toc h2 {
    white-space: nowrap;
    text-align: left;
}
}
