/* classic admonitions */

.md-typeset .admonition,
.md-typeset details {
    border-width: 0;
    border-left-width: 4px;
    font-size: unset;
}

/* table fonts and colors */

.md-typeset table:not([class]) {
    font-size: unset;
    line-height: initial;
}

.md-typeset table:not([class]) th {
    background-color: var(--md-code-bg-color);
}

/* draft elements */

.mkdocs-draft-marker {
    color: crimson;
}

samp {
    color: crimson;
    font-family: unset;
    font-weight: bold;
}

/* fancy borders */

.shadow {
box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

/* print settings */

.md-typeset h2,
.md-typeset h3 {
    page-break-after: avoid;
}

@page {
    margin: 0.5in;
}

@media print {
    .md-main__inner {
        margin-top: 0;
    }

    .mkdocs-draft-marker, samp {
        display: none !important;
    }

    .screenonly {
        display: none !important;
    }
}

@media screen {
    .printonly {
        display: none !important;
    }
}

/* child pages in sections aren't indented? */
/* thanks to https://github.com/squidfunk/mkdocs-material/discussions/6460#discussioncomment-7936316 */
.md-nav[data-md-level="1"] > .md-nav__list {
    margin-left: 1em;
    padding-left: 0.5em;

    /* it kind of looks cool with the line, but it breaks with the standard 
    in the theme of using negative space for distinguishing layout regions */
    /* border-left: 1px solid var(--md-accent-fg-color); */
}

.auto-index {
    display: none;
}

.auto-index svg {
    fill: currentColor;
    flex-shrink: 0;
    height: 1.3em;
    margin-right: 0.25em;
    vertical-align: text-bottom;
}

/* to make things less redundant, show the auto-index only when not showing the sidebar */
@media screen and (max-width:76.234375em) {
    .auto-index {
        display: block;
    }
}

/* highlight the linked heading */
@keyframes highlight {
    0% {
        background: none;
        color:var(--md-typeset-color);
        text-decoration: none;
    }
    50%{
        background: #7E56C2;
        color: #fff;
        text-decoration: underline;
    }
    100% {
        background: none;
        color:var(--md-typeset-color);
        text-decoration: none;
    }
}

:target {
    /* animation: 3s ease-in-out 0s highlight; */
    /* animation: 3s cubic-bezier(0.4, 0, 0.6, 1) 0s highlight; */
    /* animation: 3s cubic-bezier(0.2, 0, 0.8, 1) 0s highlight; */
    /* https://cubic-bezier.com/#.75,0,.25,1 this thing was helpful.  */
    /* animation: 3s cubic-bezier(1, 0, 0, 1) 0s highlight; */
    animation: 3s cubic-bezier(.75,0,.25,1) 0s highlight;
}

.serif {
    font-family: Georgia, 'Times New Roman', Times, serif;
}


.mobile-frame {
    display: inline-block;
    max-width: 100%;
    border-radius: 40px;
    padding: 14px;
    background: #111;
    box-shadow:
        0 0 0 2px #333,
        0 20px 40px rgba(0, 0, 0, 0.35);
    position: relative;
}

.mobile-frame img {
    border-radius: 24px;
}

/* notch */
.mobile-frame::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 18px;
    background: #000;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

/* speaker + camera hint */
.mobile-frame::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #222;
    border-radius: 3px;
    box-shadow:
        -24px 0 0 0 #222;
    z-index: 3;
}

.chip-teal {
    display: inline-block;
    background: #009698;
    color: white;
    padding: 0px 6px;
    border-radius: 10px;
    margin-inline-start: 1rem;
}

.chip-purple {
    display: inline-block;
    background: #450084;
    color: white;
    padding: 0px 6px;
    border-radius: 10px;
    margin-inline-start: 1rem;
}

.gameboy {
    border-width: 1rem 2rem;
    border-style: solid;
    border-color: #575763;
    border-radius: 0.5rem;
    border-end-end-radius: 2rem;
    background-color: #566525;
}