/* The side navigation menu */

.sidebar {
    margin: 0;
    padding: 0;
    min-width: 210px;
}
.sidebar .menu {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
    height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar links */
.sidebar a {
    display: inline-flex;
    color: rgba(0, 0, 0, .65);
    padding: 0.5rem;
    margin-top: 0.125rem;
    text-decoration: none;
    background-color: transparent;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Active/current link */
.sidebar a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Links on mouse-over */
.sidebar a:hover:not(.active) {
    color: white;
}

/* Page content. The value of the margin-left property should match the value of the sidebar's width property */
div.content {
    background: #f5f5f5;
    padding: 1px 30px;
}

/* On screens that are less than 768px wide, make the sidebar into a topbar */
@media screen and (max-width: 768px) {
    .sidebar .menu{
        height: unset;
    }

    .sidebar a {
        float: left;
    }

    div.content {
        margin-left: 0;
    }
}

/* On screens that are less than 400px, display the bar vertically, instead of horizontally */
@media screen and (max-width: 400px) {
    .sidebar a {
        text-align: center;
        float: none;
    }
}

.dropdown-toggle {
    outline: 0;
}

.nav-flush .nav-link {
    border-radius: 0;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.6rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .65);
    background-color: transparent;
    border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(0, 0, 0, .85);
    background-color: var(--white);
    box-shadow: none;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    color: var(--primary-color);
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1rem;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: var(--white);
}

.scrollarea {
    overflow-y: auto;
}

.fw-semibold {
    font-weight: 600;
}

.collapse:not(.show) {
    display: none;
}

.doc-sidebar button {
    display: inline-flex;
    padding: .5rem;
    margin-top: .125rem;

    text-decoration: none;
    background-color: transparent;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.doc-sidebar button:hover {
    cursor: pointer;
    color: var(--primary-color);
    background-color: var(--white);
}

.doc-sidebar > li > a {

}

.doc-row {
    padding: 40px 0;
    border-bottom: 1px solid rgb(211, 220, 228);
    row-gap: 5px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    flex-direction: column;
}

.doc-row h1 {
    font-weight: 700;
    line-height: 1em;
    font-size: 48px;
    padding-bottom: 10px;
}

.doc-row h2 {
    font-weight: 600;
    line-height: 1em;
    font-size: 32px;
    padding-bottom: 20px;
}

.doc-row h3 {
    line-height: 1em;
    font-weight: 600;
    padding-bottom: 10px;
}

.doc-row p {
    font-size: 21px;
    margin-bottom: 0;
}

.doc-row a {
    color: var(--primary-color);
}

.doc-row a.anchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

.doc-row div.col-12, .doc-row div.col-sm-12, .doc-row div.col-md-10 {
    padding: 0;
}

.doc-row .col-sm-12 .col-md-2 {
    padding: 0 15px;
}

.doc-row img {
    padding: 10px 0;
}

.doc-row .card {
    width: 100%;
}

.doc-row .card-header {
    padding: .75rem 10px;
}

.doc-row .card-body {
    padding: 0.8rem 10px;

}

.doc-row ul > li {
    list-style: square inside;
    padding-left: 3rem;
    text-indent: -1.6rem;
    font-size: 18px;
}

.btn.btn-link {
    width: 100%;
    text-align: left;
    padding: 0.375rem 0;
}

.btn-link:hover, .btn-link:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.fas.fa-chevron-up {
    position: absolute;
    right: 10px;
    top: 10px;
}

.collapsed .fa-chevron-up:before {
    content: "\f078";
}

.fa-chevron-up:before {
    content: "\f077";
}

.images img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.images img:hover {opacity: 0.7;}

#image-viewer {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 200px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.image-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
}
.image-modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}
@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}
#image-viewer .close {
    position: absolute;
    top: 100px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
#image-viewer .close:hover,
#image-viewer .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .image-modal-content {
        width: 100%;
    }
}