@media (max-width: 991px) {
    .container-fluid { 
        padding-right: 12px!important;
        padding-left: 12px !important;
    }
}

a {
    color: #1B6685;
    text-decoration: none;

    &:hover {
        color: #0b9dd9;
    }
}

.scrollable {
    overflow-y: auto;
    padding: 0 !important;
    
    background: #fff;
    scroll-behavior: smooth;
    padding-right: 10px;
    position: relative;
    height: 100vh; 
}

.scrollable-left {
    border-right: 1px solid #ddd;
}

.scrollable-right {
    border-left: 1px solid #ddd;
}

@media (min-width: 992px) {
    .scroll-marker {
        position: absolute;
        height: 100%;
        width: 6px;
        pointer-events: none;
        top: 0;
        right: 0;

        span {
            position: absolute;
            width: 100%;
            background-color: #0b9dd9;
            height: 6px;
        }
    }
}

.nodes, .resources {
    height: calc(100%);
    overflow-y: auto;
    overflow-x: hidden;

    &::-webkit-scrollbar {
        width: 6px;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 5px;
        background-color: #bfbfbf;
        cursor: pointer;
    }

    &::-webkit-scrollbar-thumb:hover {
        background-color: #343a40;
    }
}

#htmlContainer {
    overflow-y: hidden !important;
}

.tab-pane {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 30px;
    padding-bottom: 30px;

    @media (max-width: 991px) {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

.toc {
    & a {
        cursor: pointer;
        color: rgba(0, 0, 0, 0.8);
        font-weight: 600;
        font-size: 20px;
        padding: 4px 10px;
        line-height: 20px;
        margin-right: 10px;
        text-decoration: none;


        &:hover {
            color: #0b9dd9;
        }
    }

    & .level-2 {
        padding-top: 15px;
        padding-bottom: 5px;
    }

    & .level-3 {
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 5px;

        & a {
            font-size: 17px;
        }
    }

    & .level-4 {
        padding-left: 40px;
        padding-top: 4px;
        padding-bottom: 4px;

        & a {
            font-size: 14px;
        }
    }

    & .level-5 {
        padding-left: 60px;
        padding-top: 4px;
        padding-bottom: 4px;

        & a {
            font-size: 14px;
        }
    }

    & .level-6 {
        padding-left: 80px;
        padding-top: 4px;
        padding-bottom: 4px;

        & a {
            font-size: 14px;
        }
    }    
}

.tab-pane#references, .tab-pane#figures {
    padding: 10px 0 30px;

}

.nav-tabs .nav-link {
    color: rgba(0, 0, 0, 0.4);
    border-radius: 0;
    font-weight: 600;

    &:hover {
        color: rgba(0, 0, 0, 0.5);
        background: rgba(0, 0, 0, 0.03);
    }
}

.tab-pane#info, .tab-pane#info-mobile {
    padding-left: 0;
    padding-top: 10px;

    .info-item {
        padding-left: 20px;
        padding-right: 20px;
        border-bottom: 1px solid #ddd;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 20px;
        padding-bottom: 20px;

        .title {
            font-weight: bold;
        }
    }

}

.tab-pane#references, .tab-pane#figures {
    padding: 10px 0 30px;

}

.tab-pane#sub-info, .tab-pane#sub-authors {
    padding-left: 0;
    padding-right: 0;
}

.content-node {
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    padding-top: 20px;

    .focus-container {
        cursor: pointer;
        user-select: none;
    }

    &.focused {
        padding-left: 17px;
        border-left: 3px solid #0b9dd9;

        & .reference-container {
            

            svg {
                fill: #0b9dd9 !important;
            }

            .focus-button {
                color: #0b9dd9;
            }
        }
    }

    span {
        width: 100%;
    }

    .reference-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    > * {
        text-align: justify;
    }

    .title {
        font-weight: bold;
    }

    .reference-text {
        font-size: 12px;
        color: #888;
    }

    .focus-button {
        cursor: pointer;
        font-size: 12px;
        color: #888;
    }

    .focus-container {
        display: flex;
        flex-direction: row;
        gap: 5px;
        justify-content: center;
        align-items: center;
    }
}

#figures-mobile .content-node {
    padding-left: 0;
    padding-right: 0;
}

.nav-tabs .nav-link {
    color: rgba(0, 0, 0, 0.4);
    border-radius: 0;
    font-weight: 600;

    &:hover {
        color: rgba(0, 0, 0, 0.5);
        background: rgba(0, 0, 0, 0.03);
    }
}

@media (max-width: 991px) {
    .nav-tabs #references-tab-mobile {
        display: none;
    }
}


.cover-image {
    img {
        width: 100%;
        max-width: 200px;
        height: auto;
    } 
}

@media (max-width: 991px) { 
    .sidebar {
        display: none;
    }
}

.offcanvas-header {
    #sidebarOffcanvasLabel {
        font-weight: bold;
        font-size: 1.25rem;
    }
}

@media (max-width: 991px) {
    .row {
        padding-left: 0;
        padding-right: 0;
    }

    .offcanvas {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 400px) {
    .offcanvas {
        border: none !important;
    }
}

.offcanvas {
    transition: transform 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.offcanvas.show {
    transition: transform 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.offcanvas.show:not(.hiding), .offcanvas.showing {
    transition: transform 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#sidebarOffcanvasButton {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1040;
    padding: 0.25rem 0.5rem;
    font-size: 1.2rem;
    border: 1px solid #333;
    border-radius: 0.25rem;
    background-color: transparent;
    color: #333;
    width: auto;
}

.container-fluid {
    overflow-x: hidden;
}

figure {
    max-width: 100%;

    img {
        max-width: 100%;
    }
}
