@font-face {
    font-family: 'Roboto-Light';
    src: url('fonts/Roboto-Light.ttf')  format('truetype');
}

@font-face {
    font-family: 'Roboto-Regular';
    src: url('fonts/Roboto-Regular.ttf')  format('truetype');
}

html {
    --toc-transition: .15s;
}

body { 
    font-family: 'Roboto-Light'; 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    justify-content: space-between;
}

.vertical-helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.header {
    background-color: #339966;
    color: white;
    height: 80px;
    line-height: 100%;
    display:flex;
    transition: .2s ease-out;
}

.content {
    display: flex;
    color: #545454;
}

.logo {
    min-height: 40px;
    max-height: 40px;
    vertical-align: middle;
    margin-left: 24px;
}
  
.header-caption {
    font-size: 24px;
    vertical-align: sub;
    display: inline-block;
    height: 100%;
    padding-left: 10px;
}

.document_contents ul {
    list-style-type: disc;
}

* {
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 10px;
}

table {
    border-spacing: 0;
}

table td {
    padding: 2px 4px;
}

a {
    text-decoration: none;
    color: #1180A6;
}

a:hover {
    color: #1180A6;
}

a:visited {
    color: #1180A6;
}

h1 { 
    font-size: 34px; 
}
h2 { 
    font-size: 24px; 
}
.bold { 
    font-weight: bold; 
}
.italic { 
    font-style: italic; 
}

/*a + span {
    margin-left: -4px;
}*/


.toc {
    height: calc(100vh - 80px);
    
    overflow-y: scroll;
    
    min-width: 350px;
    max-width: 350px;
    padding: 0px 14px;
    background-color: #FAFAFA;
}

.toc a, .toc a:visited {
    color: #545454;
}

.right_toc a, .right_toc a:visited {
    color: #545454;
}

.toc ul{
    /*padding-left: 20px;*/
    list-style-type: none;
}

.toc li {
    padding: 4px 0;
}

.toc > ul {
    padding-left: 0px;
    list-style-type: none;
}

.toc > ul > li {
    margin-bottom: 10px;
}

.toc > ul > li ul {
    max-height: 0px;
    overflow: hidden;
}

.toc a.toc-selected-page {
    color: black;
    font-family: 'Roboto-Regular';
}

.toc a.toc-selected-page + ul {
    max-height: fit-content;
}

.toc a:not(.toc-not-null-list) {
    display: block;
    margin-left: 18px;
}

.toc-not-null-list {
    display: flex !important;
}


.toc-not-null-list::before {
    content: ' ';
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    display: block;
    margin-right: 4px;
    background-size: 20px;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJzdmcyNzU5MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjAgMjAiPjxwYXRoIGQ9Ik04LjY0LDE0LjIyYy0uMTEsMC0uMjEtLjAzLS4zMS0uMS0uMjItLjE3LS4yNi0uNDgtLjA5LS43bDIuNjUtMy40MS0yLjY1LTMuNDFjLS4xNy0uMjItLjEzLS41My4wOS0uNy4yMi0uMTcuNTMtLjEzLjcuMDlsMi44OCwzLjcyYy4xNC4xOC4xNC40MywwLC42MWwtMi44OCwzLjcyYy0uMS4xMy0uMjUuMTktLjQuMTlaIi8+PC9zdmc+);
    /*
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEODlBMTYxQjZCQ0UxMUU0QjQ1NkU4QzA0NUM0QTlDQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEODlBMTYxQzZCQ0UxMUU0QjQ1NkU4QzA0NUM0QTlDQiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQ4OUExNjE5NkJDRTExRTRCNDU2RThDMDQ1QzRBOUNCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQ4OUExNjFBNkJDRTExRTRCNDU2RThDMDQ1QzRBOUNCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+6j4PEwAAAH1JREFUeNpi/P//PwMlgImBQkAbA2bNmvUfiO2wiJPkgoPYDCHFAAeoIfbkGnAQasgBfIYQCkRkQ8JINiAtLQ1mSD4QrwRiO3KiEaRpIhCHA/EhdEkWfDqhsQBygSPIG6R6gaBmYmIBrhkaHgykeMEBaghOzSDAOOC5ESDAAKQ8KngTU73+AAAAAElFTkSuQmCC);
    */
}

.toc-selected-page.toc-not-null-list::before {
    background-size: 20px;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJzdmcyNzU5MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjAgMjAiPjxwYXRoIGQ9Ik0xMC4wOCwxMS45NGMtLjExLDAtLjIyLS4wNC0uMzEtLjFsLTMuNzItMi44OGMtLjIyLS4xNy0uMjYtLjQ4LS4wOS0uNy4xNy0uMjIuNDktLjI2LjctLjA5bDMuNDEsMi42NSwzLjQxLTIuNjVjLjIyLS4xNy41My0uMTMuNy4wOS4xNy4yMi4xMy41My0uMDkuN2wtMy43MiwyLjg4Yy0uMDkuMDctLjIuMS0uMzEuMVoiLz48L3N2Zz4=);
    /*
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4zjOaXUAAAAGpJREFUOE/Fj0EKgDAMBPtAT159TJ8eu8taFVNtrODCQAnMQJOZDeEeI7jHCPUxzUsXx/0SyHK5aCAXirEvEqAM5HK9gSoDuVxP4CQDudxT4CIDudxdwJWBXK4VaMpALsfAyL4JbF94h6UV1yigEHhH4QoAAAAASUVORK5CYII=);
    */
}

.toc-not-null-list + ul {
    padding-left: 16px;
}




.right_toc > ul {
    list-style-type: none;
    /*padding-left: 10px;*/
}

.right_toc > ul ul {
    list-style-type: disc;
}

.right_toc li {
    padding: 4px 0;
}

.right_toc {
    max-width: 300px;
    min-width: 200px;
    overflow-y: scroll;
    height: calc(100vh - 80px);
    padding: 0 20px;
    background-color: #FAFAFA;
}

.right_toc ul {
    padding-left: 20px;
}

.right_toc > ul {
    padding-left: 0px;
}



/* section */

body > .content > section {
    
    overflow-y: scroll;
    height: calc(100vh - 80px);
    padding: 0px 20px;
    width: 100%;
    position: relative;
    transition: .2s ease;
}

.next_button, .back_button {
    max-width: 220px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    display: inline;
    padding-top: 5px;
    user-select: none;
    cursor: pointer;
    transition: .15s ease;
    margin: 40px 0;
    position: relative;
}

.next_button:hover, .back_button:hover {
    color: #7aa1da;
}

.back_button {
    float: left;
    padding-left: 20px;
}

.back_button::before {
    content: '←';
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 18px;
}

.next_button::after {
    position: absolute;
    right: 0;
    bottom: 0;
    content: '→';
    font-size: 18px;
}

.next_button {
    float: right;
    padding-right: 20px;
}

body > section ul {
    padding-left: 30px;
}

/* File Path */

.file-path {
    margin: 10px 0px 0px;
    padding: 15px 2px 0px;
    user-select: none;
}

.file-path span, .file-path a {
    font-size: 15px;
    display: inline;
    padding: 0px 4px 0px 0px;
}

.file-path span:first-of-type {
    display: none;
}

.file-path span {
    padding-left: 4px;
}

.file-path .current-path {
    padding-left: 0px !important;
}

/* Section elements */

span.image_hint { 
    display: block; 
}
p:has(img.block) { 
    text-align: center; 
}
.container_image > .block { 
    display: block; 
    margin: 0 auto; 
}

.container_image {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.container_image > img {
    margin: 0 auto;
    cursor: zoom-in;
    max-width: 100%;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4), 0 0px 10px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

/* Section container code */

.container_code {
    background-color: rgb(242, 242, 242);
    border-left: 5px solid #52ADCC;
    margin-top: 0;
    margin-bottom: 0;
    padding: 2px 8px;
    position: relative;
    font-family: monospace;
}

.container_code.first {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-top: 16px;
    padding-top: 8px;
}

.container_code.last {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.copy-button {
    z-index: 1;
    right: 10px;
    top: -16px;
    background-color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 1px 1px 7px #e7e7e7;
    position: absolute;
    width: 30px;
    height: 30px;
    display: flex;
    padding: 0 !important;
    transition: .25s ease-out;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.copy-button.copied {
    width: 105px;
    background-color: rgb(23, 178, 23);
    color: white;
}

.copy-button.errored {
    width: 69px;
    background-color: rgb(206, 55, 55);
    color: white;
}

.copy-button.copied > .copy-button-logo, .copy-button.errored > .copy-button-logo {
    opacity: 0;
    width: 0;
}

.copy-button:not(.copied):not(.errored):hover {
    box-shadow: 1px 1px 7px #bebebe;
    background-color: rgb(253, 253, 253);
}

.copy-button > .copy-button-logo {
    background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_97_113)"><path d="M5 15H4C3.46957 15 2.96086 14.7893 2.58579 14.4142C2.21071 14.0391 2 13.5304 2 13V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2H13C13.5304 2 14.0391 2.21071 14.4142 2.58579C14.7893 2.96086 15 3.46957 15 4V5M11 9H20C21.1046 9 22 9.89543 22 11V20C22 21.1046 21.1046 22 20 22H11C9.89543 22 9 21.1046 9 20V11C9 9.89543 9.89543 9 11 9Z" stroke="%231E1E1E" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></g><defs><clipPath id="clip0_97_113"><rect width="24" height="24" fill="white"/></clipPath></defs></svg>');
    background-repeat: no-repeat;
    background-size: 100%;
    width: 18px;
    height: 18px;
    margin: auto;
    transition: .25s ease-out;
    color: white;
}

.copy-button > .copy-button-text {
    width: 0px;
    overflow: hidden;
    font-weight: bold;
}

.copy-button.copied > .copy-button-text, .copy-button.errored > .copy-button-text {
    width: auto;
    margin: auto;
    padding-left: 4px;
}

/* Contents */

.document_contents {
    list-style-type: none;
    padding-left: 0;
}

.document_contents ul {
    padding-top: 3px;
    padding-bottom: 5px;
}

.document_contents li {
    padding-bottom: 1px;
}

/* media */
/* @media (max-width: 1468px) {
    .right_toc {
        display: none;
    }
}

@media (max-width: 1147px) {
    .toc {
        display: none;
    }
} */

#fullpage {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: contain;
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-color: rgba(0,0,0,0.5);
    background-size: auto;
    overflow: auto;
}

.toc-list-hamburger-button {
    background-color: white;
    padding: 3px;
    border-radius: 8px;
    border: none;
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 40px;
    height: 40px;
    box-shadow: 1px 1px 7px #9c9c9c;
    cursor: pointer;
    display: none;
    transition: var(--toc-transition) ease;
    z-index: 100;
}

.toc-list-hamburger-button:hover {
    background-color: #dedede;
}

.toc-list-hamburger-icon {
    background-image: url('data:image/svg+xml,<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.25 31.5V28H36.75V31.5H5.25ZM5.25 22.75V19.25H36.75V22.75H5.25ZM5.25 14V10.5H36.75V14H5.25Z" fill="%231D1B20"/></svg>');
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.toc-list-hamburger-icon-close {
    background-image: url('data:image/svg+xml,<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2 33.25L8.75 30.8L18.55 21L8.75 11.2L11.2 8.75L21 18.55L30.8 8.75L33.25 11.2L23.45 21L33.25 30.8L30.8 33.25L21 23.45L11.2 33.25Z" fill="%231D1B20"/></svg>');
}

.toc-opened {
    left: 0px !important;
}

.search-block {
    margin: auto;
    margin-right: 12px;
    background-color: white;
    border-radius: 4px;
    width: 35px;
    height: 35px;
    display: flex;
    position: relative;
}

.search-button {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M35 35L27.75 27.75M31.6667 18.3333C31.6667 25.6971 25.6971 31.6667 18.3333 31.6667C10.9695 31.6667 5 25.6971 5 18.3333C5 10.9695 10.9695 5 18.3333 5C25.6971 5 31.6667 10.9695 31.6667 18.3333Z" stroke="%231E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    width: 25px;
    height: 25px;
    background-color: inherit;
    border: none;
    margin: auto 0;
    margin-right: 4px;
    cursor: pointer;
}

.search-block > .search-button {
    margin: auto;
}

@media (max-width: 1200px) {
    .right_toc {
        display: none;
    }
}

@media (max-width: 918px) {
    .toc {
        position: absolute;
        left: -400px;
        transition: var(--toc-transition) ease-out;
        z-index: 99;
    }
    .header {
        height: 60px;
    }
    .toc-list-hamburger-button {
        display: block;
    }
    .section-toc-opened {
        cursor: default !important;
        background-color: #dedede;
        filter: brightness(80%);
        user-select: none;
    }
    .section-toc-opened img {
        pointer-events: none;
    }
}

@media (max-width: 732px) {
    .search-block {
        position: absolute;
        bottom: 8px;
        right: 8px;
        z-index: 100;
        box-shadow: 1px 1px 7px #9c9c9c;
        width: 40px;
        height: 40px;
    }

    .search-block input {
        width: 0px;
        padding: inherit;
    }

    .search-button {
        margin: auto;
    }
}


.highlight {
    animation: highlightAnimation 2s;
}

@keyframes highlightAnimation {
    0% {
        background-color: inherit;
    }
    50% {
        background-color: #abcaf8;
        border-radius: 4px;
    }
    100% {
        background-color: inherit;
    }
}

#searchWrapper {
    border: none;
    width: 55%;
    height: 80%;
    border-radius: 8px;
    box-shadow: 1px 1px 7px #9c9c9c;
    z-index: 99;
    flex-direction: column;
}

#searchWrapper.open {
    display: flex;
    animation: opened .2s ease-in-out forwards;
}

#searchWrapper.closing {
    animation: close .2s ease-in-out forwards;
}

@keyframes opened {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes close {
    from {
        opacity: 1;
        transform: translateY(0px);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.search-results-section > a {
    display: flex;
    flex-direction: column;
    padding: 5px 3px;
    cursor: pointer;
    transition: .2s ease;
    border-radius: 4px;
    color: black;
    animation: opened .2s ease-in-out forwards;
}

.search-results-section > a:hover {
    background-color: #ebebeb;
}

#close-dialog {
    width: 30px;
    height: 30px;
    min-height: 30px;
    background-image: url('data:image/svg+xml,<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2 33.25L8.75 30.8L18.55 21L8.75 11.2L11.2 8.75L21 18.55L30.8 8.75L33.25 11.2L23.45 21L33.25 30.8L30.8 33.25L21 23.45L11.2 33.25Z" fill="%231D1B20"/></svg>');
    margin: 0 0 5px auto;
    background-color: inherit;
    border: none;
    background-repeat: no-repeat;
    background-size: 100%;
    cursor: pointer;
    transition: .2s ease;
    border-radius: 4px;
}

#close-dialog:hover {
    background-color: #dedede;
}

.loading-element {
    margin: auto;
    font-size: 18px;
}

.search-header {
    display: flex;
    margin-bottom: 5px;
}

.finded-text-in-doc-headers {
    margin-bottom: 2px;
    color: #3c3c3c;
    font-size: 12px;
}
.finded-text-in-doc-headers > span {
    padding-right: 3px;
}

.finded-doc-name {
    color: black;
    font-size: 17px;
    font-weight: bold;
    transition: .1s ease;
    margin-bottom: 2px;
}
.paragraph-text-container {
    font-size: 15px;
    max-height: 54px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

#searchResultCount {
    font-size: 17px;
    margin: auto 0;
}

.search-results-section {
    padding: 20px 10px;
}

.search-results-section-count {
    padding-top: 20px;
    padding-left: 13px;
}

.search-section {
    margin: auto;
    margin-right: 12px;
    background-color: white;
    border-radius: 4px;
    height: 35px;
    display: flex;
    position: relative;
    border: 1px solid black;
    margin: 10px 10px 5px;
}

.search-section input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 2px 2px 2px 8px;
    border-radius: 4px;
    outline: none;
}

span {
    white-space: pre-wrap;
}

.link_button {
    width: 14px;
    height: 14px;
    margin: auto 0 auto 10px;
    cursor: pointer;
    position: relative;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M11 5V1H1v10h4v4h10V5zM2.4 9.6V2.4h7.2v7.2zm11.2 4H6.4V11H11V6.4h2.6z"></path></svg>');
    background-color: inherit;
    border: none;
}

.link_button.success::after {
    content: 'Copied!';
    font-size: 13px;
    font-weight: normal;
    margin-left: 15px;
    position: absolute;
    top: 0px;
    color: rgb(23, 178, 23);
    opacity: 0;
    animation: showCopyLinkText .15s ease forwards;
    pointer-events: none;
}

.link_button.error::after {
    content: 'Error';
    font-size: 13px;
    font-weight: normal;
    margin-left: 15px;
    position: absolute;
    top: 0px;
    color: rgb(206, 55, 55);
    opacity: 0;
    animation: showCopyLinkText .15s ease forwards;
    pointer-events: none;
}

@keyframes showCopyLinkText {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.modal-block {
    position: fixed;
    bottom: -40px;
    left: 50%;
    background-color: rgb(23, 178, 23);
    color: white;
    box-shadow: 1px 1px 7px #585858;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.1px;
    transition: .25s ease;
}

.modal-block.error {
    background-color: rgb(206, 55, 55);
}

.modal-block.open {
    bottom: 10px;
}

.highlight-matches {
    background-color: rgb(248, 216, 157);
    border-radius: 4px;
}