.chapter-title{
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: min(45px, calc(32px + 0.9vw));
    margin-left: 0px;
    padding-top: 10px;
}

.chapter-subtitle{
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 18px;
    margin-left: 0px;
    padding-top: 10px;
}

.chapter-subtitle-span{
    white-space: pre-wrap;
}

.chapter-title-icon-container{
    width: 70px;
}

.chapter-title-col, .chapter-subtitle-col{
    padding-left: 20px;
}

.chapter-header{
    max-width: 780px;
    margin-top: 40px;
    padding-left: clamp(10px, 4vw, 40px);
    margin-bottom: 35px;
    padding-right: 0px;
}

.chapter-header-contents{
    border-left: 5px solid black;
    background-color: aliceblue;
    padding-bottom: 20px;
    padding-top: 10px;
}

.chapter-title-in-sidebar{
    padding-bottom: 5px;
    padding-top: 5px;
}

.chapter-img-in-overview{
    height: 90px;
    float: right;
    margin-top: 5px;
}

.chapter-date{
    margin-left: 0px;
    margin-top: 15px;
}

.chapter-date-icon-container{
    width: 30px;
    padding-left: 22px;
}

.chapter-authors{
    margin-left: 0px;
    margin-top: 10px;
}

.chapter-authors-icon-container{
    width: 30px;
    padding-left: 22px;
}


.chapter-module-tag{
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 26px !important;
    margin-left: 0px;
}

.chapter-module-tag-col{
    padding-left: 20px; 
    padding-top: 10px;
}

.chapter-tag{
    font-weight: 800;
}

.chapter-tag-in-overview{
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px !important;
    float: right;
}

.chapter-tag-in-overview-sm{
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px !important;
}

.chapter-tag-in-sidebar{
    font-weight: 800;
}

.book-icon-chapter-ref{
    margin-right: 5px;
    font-size: 15px;
}

.chapter-ref{
    padding-left: 5px;
    padding-right: 5px;
}

.module-title-in-sidebar, .book-title-in-sidebar{
    font-weight: 500;
}

.module-tag-in-sidebar{
    font-weight: 1000;
}

.chapter-img-container{
    margin-bottom: 30px;
}

.chapter-img{
    max-height: 400px;
}

.chapter-sidebar{
    position: fixed;
    padding-left: 20px;
    background-color: whitesmoke;
    overflow-y: scroll;
    padding-bottom: 70px;
    border-right: 1px solid #eee;
    height: 100%;
    width: 300px;
}

@media (max-width: 1270px){
    .chapter-sidebar{
        width: 280px;
    }  
}

.chapter-overview-sidebar{
    padding: 0px 20px;
}

#chapter-main-content{
    padding-bottom: 200px;
    padding-right: clamp(10px, 4vw, 40px);
}

.chapter-overview-main-content{
    padding-left: 30px; 
    padding-top: 0px;
    padding-bottom: 10px;
    border-left: 1px solid gray;
    max-width: 850px;
    /*border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    background-color: whitesmoke;*/
}

.module-tag{
    font-weight: 800;
}

.module-title{
    font-weight: 500;
}

.modal .chapter-overview-main-content{
    padding-left: 0px;
    margin-left: 180px; 
    padding-top: 0px;
    padding-bottom: 10px;
    max-width: 850px;
    border-left: 0px;
}

.section-link-in-sidebar{
    font-size: 14px;
    margin-left: -7px;
}

.chapter-link-in-sidebar{
    font-size: 15px; 
    /* margin-top: 5px;  */
    /* padding-left: 5px; */
    margin-left: -7px;
}

.section-link, .chapter-link{
    text-decoration: none;
}

.section-link-text{
    
}

.section-link-text:hover, .chapter-link-text:hover{
    text-decoration: none;
}

.sidebar-section-num{
    padding-left:5px; 
    padding-right:5px; 
    width: 30px;
}


@media (min-width: 976px){
    .chapter-actions{
        position: fixed; 
        right: 0px;
        margin-top: 300px;
        padding-top: 10px;
        padding-bottom: 15px;
        border: 1px solid #eee;
        background-color: whitesmoke;
        border-radius: 10px 0px 0px 10px;
        min-width: 130px; 
        max-width: 130px;
        padding-right: 5px;
    }
}


@media (min-width: 890px) and (max-width: 975px){
    .chapter-actions{
        position: fixed; 
        right: 0px;
        margin-top: 300px;
        padding-top: 10px;
        padding-bottom: 15px;
        border: 1px solid #eee;
        background-color: whitesmoke;
        border-radius: 10px 0px 0px 10px;
        min-width: 50px; 
        max-width: 50px;
        padding-right: 5px;
    }
}

@media (max-width: 889px){
    .chapter-actions{
        padding-top: 10px;
        padding-bottom: 15px;
        border: 1px solid #eee;
        background-color: whitesmoke;
        border-radius: 10px 10px 10px 10px;
        min-width: 130px; 
        max-width: 130px;
        padding-right: 5px;
        margin-top: 20px;
        margin-left: 40px;
    }
}

@media (min-width: 890px) and (max-width: 975px){
    .chapter-actions-btn-label{
        display: none;
    }

    .chapter-actions-admin-label{
        display: none;
    }

    .chapter-actions-hr{
        margin-left: -10px;
    }

    .chapter-actions-icon-no-tooltip{
        display: none;
    }
}

@media (max-width: 889px) or (min-width: 976px){
    .chapter-actions-icon-with-tooltip{
        display: none;
    }
}



.chapter-admin{ /* currently not in use */
    position: fixed; 
    right: 0px;
    margin-top: 350px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #eee;
    background-color: whitesmoke;
    border-radius: 10px 0px 0px 10px;
    min-width: 130px; 
    max-width: 130px;
    padding-right: 5px;
}

.chapter-actions-btn-container, .chapter-admin-btn-container{
    margin-top: 2px;
}

.chapter-actions-btn-text, .chapter-admin-btn-text{
    font-size:14px;
}

.chapter-actions-btn:hover, .chapter-admin-btn:hover{
    text-decoration: underline;
}


.module-img-in-sidebar{
    height: 26px;
    padding: 0px;
    margin-right: 3px;
    vertical-align: bottom;
    border: 1px solid gray;
}

.module-img-in-chapter{
    height: 45px;
    padding: 0px;
    margin-right: 15px;
    vertical-align: bottom;
    border: 0px;
}

.module-title-in-sidebar{
    
}

.modal-header-chapter{
    padding-left: 30px; 
    padding-right: 30px;
}

.modal-body-chapter{
    padding-left: 30px; 
    padding-right: 30px;
}

.modal-chapter-icon{
    margin-right: 10px;
}

.modal-body-row{
    margin-bottom: 40px;
}

.chapter-discussion{
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 12px;
    padding-bottom: 250px;
}

#block-filters{
    position: fixed; 
    right: 0px;
    margin-top: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #eee;
    background-color: whitesmoke;
    border-radius: 10px 0px 0px 10px;
    min-width: 130px;
    max-width: 130px;
}

.filters-btn-container{
    margin-top: 2px;
}

.filters-btn{
    text-decoration: none;
    /*color: gray;*/
}

.filters-btn-icon{
    font-size: 15px;
    color: gray;
}

.filters-btn-text{
    font-size:14px; 
    /*font-weight: bold;*/
    margin-left: 6px;
}

.filters-btn-text:hover{
    text-decoration: underline;
}


@media (min-width: 1170px) {
    .offset-chapter-main {
        margin-left: 23%;
    }
}

@media (min-width: 1400px) {
    .offset-chapter-main {
        margin-left: 16.66666667%;
    }
}

@media (min-width: 1170px) {
    .col-chapter-main {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
}

@media (min-width: 1400px) {
    .col-chapter-main {
        flex: 0 0 auto;
        width: 75%;
    }
}


@media (min-width: 820px){
    .col-chapter-main-offcanvas {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 1200px){
    .col-chapter-main-offcanvas {
        flex: 0 0 auto;
        width: 57%;
    }
}


@media (min-width: 1400px) {
    .offset-chapter-main-offcanvas {
        margin-left: 0%;
    }
}


@media (min-width: 1460px){
    .offcanvas-chapter{
        padding-top: 50px; 
        width: 650px !important;
    }
}

@media (max-width: 1459px){
    .offcanvas-chapter{
        padding-top: 50px; 
        width: 600px !important;
    }
}

@media (max-width: 1359px) {
    .offcanvas-chapter{
        padding-top: 50px; 
        width: 43% !important;
    }
}

@media (max-width: 1200px) {
    .offcanvas-chapter{
        padding-top: 50px; 
        width: 50% !important;
    }
}

@media (max-width: 820px) {
    .offcanvas-chapter{
        padding-top: 50px; 
        width: 100% !important;
    }
}

.offcanvas-chapter .katex{
    font: normal 1.17em KaTeX_Main,Times New Roman,serif;
    line-height: 1.2;
    text-indent: 0;
    text-rendering: auto;
    border-color: currentColor;
}

#chapter-main-content pre code {
    font-size: 0.94em;
    color: inherit;
    word-break: normal;
}

@media (max-width: 982px) {
    #offcanvas-discussions-title{
        font-size: 1.1rem;
    }
}

@media (min-width: 983px) {
    #offcanvas-discussions-title{
        font-size: 1.4rem;
    }
}