/* Custom primary and accent colors */
:root>* {
    --md-primary-fg-color: #4b4b4b;
    /* Primary color (e.g., for headers, links) */
    --md-primary-fg-color--light: #861f4194;
    --md-primary-fg-color--dark: #ac325a;
    --md-accent-fg-color: #00aaff;
    /* Accent color (e.g., hover, buttons) */
    --md-accent-fg-color--transparent: hsla(189, 100%, 37%, 0.1);
}


/* Custom code block syntax highlighting */
:root>* {
    --md-code-fg-color: #24292e;
    --md-code-bg-color: #f6f8fa;
    --md-code-hl-color: #d2e3fc;
    --md-code-hl-number-color: #005cc5;
    --md-code-hl-string-color: #032f62;
    --md-code-hl-keyword-color: #d73a49;
    --md-code-hl-function-color: #2286c3;
    --md-code-hl-constant-color: #6f42c1;
    --md-code-hl-comment-color: #13a14a;
}


/* Optional: Customize background and text for better contrast */
:root>* {

    /* the integ light blue background */
    /* --md-default-bg-color: #ebf4fb; */
    --md-default-fg-color: #212121;
    --md-code-bg-color: #f5f5f5;
}


.md-typeset {
    font-size: .7rem;
}


@media screen and (min-width: 76.25em) {
    .md-nav__item--section {
        display: block;
        margin: 2.25em 0 1.25em;
    }
}


@media screen and (min-width: 76.25em) {
    [dir=ltr] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner {
        margin-left: 2.5rem;
    }

    [dir=ltr] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner,[dir=rtl] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner {
        margin-right: 2.5rem
    }

    [dir=rtl] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner {
        margin-left: 1.2rem
    }
}


.md-typeset h2 {
    font-weight: 400;
}


/* Add a bottom border and margin to simulate a divider line */
/* .md-nav--primary > ul > li {
    margin-bottom: 1rem;
    padding-top: .625rem !important;
} */


/* Add a bottom border and margin to simulate a divider line */
/* .md-nav--primary > ul > li:not(:first-child) {
    border-top: 1px solid #ccc;
} */


/* change the main top margin.  it was too much */
.md-main__inner {
    margin-top: 0.5rem;
}


/* change the nav font size */
.md-nav {
    font-size: 14px;
}


/* change the overall font size */
.md-typeset {
    font-size: 15px;
    line-height: 1.8;
}

.md-typeset code {
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #d63384;
    font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    margin: 0 2px;
    padding: 4px 8px;
}


/* add a visual border on the left for the expanded topics */
/* .md-nav {
    margin-bottom: .25rem;
} */


.md-content {
    margin-bottom: 48px;
}


.md-nav__title {
    padding-left: 0;
    margin-bottom: .7rem;
}


.md-nav--primary .md-nav__list {
    padding-left: 0 !important;
}


.md-nav__link {
    margin-top: 0;
    padding-bottom: 4px;
    padding-top: 4px;
}

li:has(> .md-nav__link--active) {
    border-left: 2px solid #ccc !important;
    border-color: #4051b5 !important;
}


.md-nav--primary>.md-nav__list ul {
    margin-bottom: 20px;
}


.md-nav--primary>.md-nav__list ul .md-nav__item {
    margin-left: 4px;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}


.md-nav__link--active {
    font-weight: bold;
}


/* li .md-nav__item--nested:has(.md-nav__link) {
    font-weight: bold;
} */



.md-container
img,
video,
iframe {
    background: #fcfcfc;
    box-sizing: content-box;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    padding: 10px;
    max-width: 95%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.md-container
iframe,
video {
    aspect-ratio: 16/9;
}

.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--md-typeset-color) !important; /* Adjust the '2px' to your desired thickness */
}

.md-typeset .md-code__content {
    color: #666;
}


/* .md-typeset code {
    background: #f8f8f8 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #d63384;
    font-size: .875em;
    padding: 3px 6px;
    white-space: nowrap;
    word-wrap: break-word;
} */


/* remove the bottom margin on the list items */
.md-typeset ol li, .md-typeset ul li {
    margin-bottom: 0;
}


.md-nav__link.disabled {
    color:#aaa;
}


.md-nav__link.header {
    color:#666;
    font-weight: bold;
}


/* only apply the padding to the top if it is not the first list item in the group */
li:not(:first-child) .md-nav__link.header {
    padding-top: 24px;
}
