/** set background color and text color */
body {
    background: var(--theme-color-background);
    color: var(--theme-text-color);
    font-family: var(--theme-font-family);
    font-size: 14px;
    font-weight: 400;
}

.markdown-section {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.markdown-section a {
    color: var(--theme-color);
    font-weight: 600;
    text-decoration: unset;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

a:hover {
    text-decoration: underline;
}

.anchor span {
    color: var(--theme-text-color);
}

.markdown-section th {
    border: var(--theme-border);
    padding: 1.2rem;
}

.markdown-section td {
    border: var(--theme-border);
    padding: 1rem  1.2rem ;
}

.markdown-section table th {
    font-weight: normal;
    font-size: 10px;
}

.markdown-section thead:has(+ tbody) th {
    font-weight: 600;
    font-size: inherit;
}

.markdown-section th img {
    margin-bottom: 8px;
}

h1, h1 span,
h2, h2 span,
h2, h3 span,
h2, h4 span {
    font-family: var(--theme-font-family-header) !important;
    font-weight: 500;
}

.markdown-section strong {
    color: var(--theme-text-color);
}

/** content > disabling all links within content */
.content h1 a,
.content h2 a,
.content h3 a,
.content h4 a {
    pointer-events: none;
}

.markdown-section code {
    background-color: var(--theme-color-background-code);
    color: unset;
}

.markdown-section blockquote {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background-color: var(--theme-color-background-code);
    border-left: 4px solid var(--theme-color-secondary);
    color: unset;
}

.markdown-section blockquote p {
    font-weight: unset;
}

.markdown-section a[title="external"]::before, .markdown-section a[target="_blank"]::before {
    content: "";
    background-image: url(../_icons/icon_expand_arrow.svg);
    background-size: auto;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.markdown-section a[title="download"]::before{
    content: "";
    background-image: url(../_icons/icon_download.svg);
    background-size: auto;
    background-repeat: no-repeat;
    width: 12px;
    height: 16px;
    margin-right: 4px;
}

/** side menu > update selection indicator for links in side menu */
.sidebar ul li.active > a {
    border-right: 4px solid;
    font-weight: 500
}

/** side menu > disabling hover effect for link inside side menu */
.sidebar ul li a:hover {
    text-decoration: none !important;
    background: var(--theme-color-background);
}

/** side menu > */
.app-sub-sidebar li::before {
    content: '';
}

/** side menu > */
.sidebar-nav ul:not(.app-sub-sidebar)>li:not(.file)::before {
    border-right: unset;
    border-bottom: unset;
    background-image: url(../_icons/icon-arrow-right.line.svg);
    background-size: auto;
    background-repeat: no-repeat;
    width: 12px;
    height: 12px;
    transform: unset;
}

.sidebar-nav ul:not(.app-sub-sidebar)>li.open::before {
    transform: rotate(90deg);
}

.sidebar ul li a, .sidebar ul li:not(:has(> a)) {
    color: var(--theme-text-color);
    padding: 8px;
    white-space: unset;
    line-height: 1.4em;
}

.sidebar > h1 {
    text-align: start;
    padding-left: 2rem;
}

.sidebar-nav > ul:first-child {
    margin: 0;
}

.sidebar .sidebar-nav {
    padding-left: 2rem;
}

/** Pagination */
.pagination-item-subtitle {
    text-transform: none !important;
}

.markdown-section .content-last-element{
    margin-bottom: 5em;
}

.content .docsify-pagination-container {
    border-top: var(--theme-border);
    margin-top: auto; /*auto top margin is needed to make pagination div to stick to page content section bottom*/
    margin-bottom: 0;
    padding-bottom: 4rem;
    flex-shrink: 0;
}

.pagination-item a {
    display: flow;
}

.markdown-section ol {
    list-style-type: decimal; /* First level as numbers */
}

.markdown-section ol ol {
    list-style-type: lower-alpha; /* Second level as lowercase Latin letters */
}

.markdown-section ol ol ol {
    list-style-type: lower-roman; /* Third level as lowercase Roman numerals */
}

/** Footer Styling  */
article .article-footer,
article footer {
    flex-shrink: 0;
}

article .article-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: var(--footer-content-width);
    display: flex;
    justify-content: left;
    align-items: center;
}

.markdown-section .article-footer p {
    line-height: 1rem;
    font-size: 12px;
}
/** Footer Styling end */
/** Nav bar */
.app-nav ul {
    background: #fffa;
    padding-inline-start: 0;
    display: inline-flex;
    width: 100%;
}

.app-nav li{
    margin: 0;
    padding: 6px 15px;
}

.app-nav li:hover ul {
    display: table;
}

.app-nav li ul {
    right: 0;
    padding: 16px 0;

}
.app-nav li ul li {
    margin: unset;
    padding: 6px 10px;
}

/** Nav bar styling end*/
/** coverpage */
/** cover page > docsify adds white mask  for cover page, which is needed in website case*/

section.cover.has-mask .mask {
    display: none;
}

/** cover page > update text color inside cover page to be white*/
.cover-main .anchor span {
    color: white;
}

section.cover h1 a {
    text-align: start;
}

section.cover .cover-main {
    text-align: start;
    position: absolute;
    bottom: 5rem;
}

section.cover p {
    margin: 0;
}

section.cover .cover-main > p:last-child a {
    margin: 0;
}

section.cover .cover-main > p:last-child a:last-child {
    background-color: var(--theme-color-secondary);
    border-color: transparent;
    color: var(--theme-text-color) !important;
}

@media (min-width: 768px) {
    /* CSS styles for devices with a width of 768px or more */
    /* Exclude mobile devices */
    .markdown-section {
        max-width: 70%;
        min-width: 70%;
        margin-left: 70px;
        margin-right: 70px;
    }

    section.cover .cover-main {
        margin-left: 8rem;
    }

    .docsify-pagination-container {
        width: var(--footer-content-width);
    }

    .markdown-section h1, .markdown-section h1 span {
        font-size: 48px;
    }

    .markdown-section h2, .markdown-section h2 span {
        font-size: 32px;
    }

    .markdown-section h3, .markdown-section h3 span {
        font-size: 24px;
    }
    article .article-footer {
        width: var(--footer-content-width);
    }
}

@media (max-width: 767px) {
    /* CSS styles for devices with a width of 767px or less */
    section.cover .cover-main {
        margin-left: 3rem;
    }
    article .article-footer {
        width: 100%;
    }
}


/* Glossary CSS */
hr
{
    background-color: grey;
    border: 0 none;
    color: grey;
    height: 3px;
}

.glossaryterm {
    text-decoration: underline dotted;
    border: none;
    padding: none;
    background: var(--theme-color-background);
    color: var(--theme-text-color);
    font-family: var(--theme-font-family);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

/* Optional hover effect */
.glossaryterm:hover {
    background-color: #e0e0e0;
}