:root {
    --color-gray-20: #e0e0e0;
    --color-gray-50: #C0C0C0;
    --color-gray-90: #002b36;
    --sidebar-width: 320px;
    --main-width: 780px;
    --main-width-large: 900px;

    /* --text-color is assigned to --color-gray-_ above */
    --text-color-link: #1864ab;
    --text-color-link-active: #1864ab;
    --text-color-link-visited: #1864ab;
    --text-color-title: #1864ab;
    --text-color-link-hover: #1971c2;

    --background-color: #fff;
    --background-menu: #1971c2;

    --text-color: var(--color-gray-90);

    --font-family: Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Cantarell,
        Roboto,
        Oxygen,
        Ubuntu,
        'Fira Sans',
        'Droid Sans',
        'Helvetica Neue',
        sans-serif;
    --font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
    --font-family-logo: serif;
    --font-family-title: serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0 auto;
    min-height: 100vh;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: white;
    /* background-image: url("/docs/img/wrapperback2-alt.png"), url("/docs/img/wrapperback1.png");
    background-position: top center, top center;
    background-repeat: repeat-y, repeat; */
    font-size: 16px;
}

body {
    padding: 24px;
}

.wrapper {
    max-width: var(--main-width-large);
    margin: auto;
    position: relative;
}

html {
    overflow-y: scroll;
    background-color: var(--background-color);
}

/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

h1 img.logo {
    max-width: 100%;
    height: auto;
}

a[href] {
    color: var(--text-color-link);
    text-decoration: underline dashed 1px;
    border-radius: 0.1rem;
    text-decoration: underline dashed 1px;
    text-underline-offset: 0.1rem;
}

a[href]:visited {
    color: var(--text-color-link-visited);
}

a[href]:hover,
a[href]:active {
    color: var(--text-color-link-hover);
    background-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

blockquote {
    opacity: 75%;
    border-left: 3px solid currentColor;
    padding-left: 12px;
}

/* Direct Links / Markdown Headers */
.header-anchor {
    text-decoration: none;
    font-style: normal;
    font-size: 1em;
    margin-left: .1em;
}

a[href].header-anchor,
a[href].header-anchor:visited {
    color: transparent;
}

a[href].header-anchor:focus,
a[href].header-anchor:hover {
    text-decoration: underline;
}

a[href].header-anchor:focus,
:hover>a[href].header-anchor {
    color: #aaa;
}

header {
    background: center center url("/img/back.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 3px;
    height: 240px;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color-title);
    font-family: var(--font-family-title);
    line-height: 1;
}

h1 {
    font-size: 3rem;
}

header h1 {
    text-align: center;
}

header h1 a[href] {
    font-size: 5.5rem;
    text-shadow: -2px -2px 0 #000,
        0 -2px 0 #000,
        2px -2px 0 #000,
        2px 0 0 #000,
        2px 2px 0 #000,
        0 2px 0 #000,
        -2px 2px 0 #000,
        -2px 0 0 #000,
        .05em .1em 0 #000;
    font-weight: 900;
    color: white !important;
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.quadrillage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    padding: 12px;
    height: 100%;
    background-color: var(--background-menu);
    border-width: 0 18px 0 0;
    border-style: solid;
    border-image:url("/docs/img/pics.png");
    border-image-slice: 0 18 0 0;
    border-image-repeat: repeat;
    border-image-outset: 18px;
    background-position: bottom left;
    background-repeat: repeat-x;
    background-attachment: fixed;
}

#sidebar.shown {
    left: 0;
}

#sidebar>ul>li {
    margin: 0;
    padding: 3px;
}

main {
    line-height: 1.5rem;
    margin: auto;
}

main img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}

#sidebar ul>li,
#links ul>li {
    list-style: none;
    font-weight: bold;
}


#more-info ol>li,
#more-info ul>li {
    list-style: none;
}

#sidebar ul>li li,
#links ul>li li,
#more-info li {
    border-radius: 0px;
    padding: 0px;
    margin: 0px;
    font-weight: normal;
    border: 0;
    box-shadow: none;
}

ul.nav,
#sidebar ul li ul,
#links ul li ul,
#more-info ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar ul li a,
#more-info ol li a {
    display: block;
    width: 100%;
    text-decoration: dashed;
    color: white;
    border-radius: 6px;
    padding: 6px;
}

#sidebar ul li span {
    display: block;
    width: 100%;
    color: white;
    padding: 6px;
}

#more-info ol li a {
    color: var(--text-color);
}

#links ul li>p {
    padding: 3px;
    margin: 0;
}

#more-info h2 {
    padding: 6px;
    margin: 0;
    font-size: 1rem;
}

#sidebar ul li li a,
#links ul li li a,
#more-info ol li a {
    padding-left: 18px;
}

#sidebar ul li a.active,
#sidebar ul li a:hover,
#more-info ol li a:hover,
#more-info ol li a.active {
    background-color: rgba(255, 255, 255, 0.3);
}

aside {
    position: absolute;
    top: 1px;
    right: -264px;
    height: 100%;
}

#more-info {
    position: sticky;
    top: 12px;
    border-left: 3px solid var(--text-color-title);
    padding: 6px;
}

#sidebar {
    min-width: var(--sidebar-width);
    width: var(--sidebar-width);
    z-index: 10;
}

#sidebar .nav {
    display: none;
    width: 100%;
}

.sidebar-selector {
    padding: 0;
    margin: 0;
}

.sidebar-selector button {
    background: transparent;
    border: 0;
    margin: 0;
    line-height: 0;
    width: 40px;
    aspect-ratio: 1;
    padding: 0.25rem;
    border-radius: 6px;
}

.sidebar-selector button:hover,
.sidebar-selector button.active {
    background-color: rgba(255, 255, 255, 0.3);
}

.picture img {
    border-radius: 12px;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.3);
}

#more-info {
    min-width: 240px;
    width: 240px;
}

footer {
    text-align: right;
    width: 100%;
}

iframe {
    border: none;
}

.menu-button {
    display: none;
}

.well {
    padding: .25rem 1.5rem;
    background-color: rgba(24, 100, 171, .1);
    border-radius: 8px;
}

.well.warning {
    background-color: rgba(201, 42, 42, .1);
}

@media screen and (max-width: 1350px) {
    .wrapper {
        margin-left: var(--sidebar-width);
        position: relative;
    }

    aside {
        position: static !important;
    }

    #more-info {
        position: static;
        border-left: 3px solid var(--text-color-title);
        padding: 6px;
    }
}

.d-none {
    display: none;
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    color: currentColor;
    position: relative;
}

.icon-32 {
    color: white;
    width: 1.8em;
    height: 1.8em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
    transition-delay: .8s;
    transition-property: opacity;
    transition-duration: 0.2s;
}

@media screen and (max-width: 1000px) {
    #sidebar {
        left: calc(-1* var(--sidebar-width));
    }

    .wrapper {
        margin: .5rem;
    }

    .menu-button {
        position: fixed;
        bottom: 24px;
        right: 24px;
        background-color: rgba(0, 0, 0, 0.4);
        color: white;
        padding: 0.75em;
        border: none;
        font-size: 1.2rem;
        display: flex;
        align-content: center;
        justify-content: center;
        aspect-ratio: 1;
        border-radius: 999px;
        z-index: 12;
    }

    .menu-button:hover {
        background-color: var(--text-color-link);
    }
}


@media screen and (max-width: 1600px) {
    .wrapper {
        max-width: var(--main-width);
    }

}

@media screen and (max-width: 600px) {
    header h1 a[href] {
        font-size: 5rem;
    }

    h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 460px) {
    header h1 a[href] {
        font-size: 4.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 390px) {
    header h1 a[href] {
        font-size: 4rem;
    }

    h1 {
        font-size: 2.25rem;
    }
}

hgroup {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bolder;
}

hgroup h1 {
    margin-bottom: 0;
}

hgroup h1 img {
    image-rendering: pixelated;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.4));
}

table {
    border-collapse: collapse;
    width: 100%;
    border: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

table.centered th,
table.centered td {
    text-align: center;
}

th,
td {
    border: 0;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    ;
}

tr:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

thead tr:last-child,
tr.thead {
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

th,
td {
    padding: .33rem .66rem;
}

.table-auto,
div.dataTable {
    overflow-x: auto;
}

a.btn {
    background-color: var(--text-color-link);
    color: #fff !important;
    padding: .5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
}

a.btn:hover {
    background-color: var(--text-color-link-hover);
}

ul.classe-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style-type: none;
    flex-wrap: wrap;
}

ul.classe-list li {
    white-space: nowrap;
}

ul.classe-list li a,
ul.classe-list li a:hover,
ul.classe-list li a:visited,
ul.classe-list li span:not(.emoji) {
    display: block;
    padding: 0.3rem 0.6rem;
    margin: 0.15rem;
    color: #000;
    background-color: var(--text-color-link);
    text-decoration: none;
    border-radius: 6px;
}

ul.classe-list li a:hover,
ul.classe-list li span.active {
    background-color: var(--text-color-link-hover);
}

hr {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 3rem;
}

.emoji {
    text-shadow: 1px 1px 0px black;
}