@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  src: local("IBM Plex Sans"), local("IBMPlexSans"), url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"), url("../fonts/IBMPlexSans-Regular.woff") format("woff");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"), url("../fonts/IBMPlexSans-Medium.woff") format("woff");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  src: local("IBM Plex Mono"), local("IBMPlexMono"), url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"), url("../fonts/IBMPlexMono-Regular.woff") format("woff");
}

:root {
    color-scheme: dark;
}
body {
    background-color: #102825;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    line-height: 1.8;
    margin: 1em;
    font-family: 'IBM Plex Sans', sans-serif;
}
/* body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #255651 0%, #102825 10%);
    z-index: -1;
} */
header, footer, main {
    background-color: #102825;
    padding: 2em;
    max-width: 55em;
    display: block;
    margin: 0 auto;
}
header {
    /* border-radius: calc(2em + 22.5px) calc(2em + 22.5px) 0 0; */
    line-height: 0;
}

@media screen and (max-width: 600px) {
    body {
        margin: 0em;
    }
    header, footer, main {
        border-radius: 0;
        padding: 1em;
        margin: 0;
    }
    header {
        padding-bottom: 3em;
    }
    footer {
        padding-top: 3em;
    }
}



::selection {
    background-color: rgba(180, 255, 235, 0.4);
}

h2 {
    margin: 0;
    padding-top: 1em;
    font-size: 1.67em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}
hr {
    max-width: 45em;
    margin: 1em 0 2em;
    border: #ffffff30 1px solid;
}
p {
    max-width: 45em;
    margin: 0 0 1em 0;
}
ul {
    list-style-type: none;
    padding: 0em;
    margin: 0 0 1em 0;
}
@media screen and (max-width: 600px) {
    li {
        line-height: 1.9em;
    }
}
/* indent nested ul */
ul ul {
    /* list-style-type: disc; */
    padding-left: 1.5em;
}
/* table {
    margin: 0 0 1em 0;
    max-width: 45em;
} */
code {
    color: rgba(180, 255, 235, 0.9);
    /* background-color: rgba(0, 0, 0, 0.2); */
    font-size: 0.98em;
    font-family: 'IBM Plex Mono', monospace;
    padding: 0.2em;
    padding-top: 0.1em;
    outline: rgba(255, 255, 255, 0.2) 1px solid;
    outline-offset: -1px;
    border-radius: 0.2em;
    user-select: all;
}
code.noWrap {
    display: inline-block;
    white-space: nowrap;
    overflow-x: auto;
    width: calc(100% - 1em);
    max-width: 45em;
    padding: 0.4em;
}

a:not(:has(img)) {
    color: white;
    font-size: 0.98em;
    text-underline-offset: 0.2em;
    padding: 0.2em;
    padding-top: 0.1em;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0.2em;
    font-weight: 500;
}
a:not(:has(img)):visited {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}
a:not(:has(img)):hover {
    color: #000;
    background-color: rgba(180, 255, 235, 0.9);
}

a:has(img) {
    background-color: transparent;
}
a:has(img):hover {
    opacity: 0.8;
}

.a-li {
    padding-inline: 0.65em;
}

/* td {
    padding: 0em 0.5em 0em 0;
    vertical-align: top;
} */

.type-example {
    opacity: 0.5;
    background-color: black;
    margin-bottom: 1em;
    max-width: 45em;
    height: auto;
}
div.images > .type-example {
    margin-bottom: 0;
}

@media screen and (max-width: 44em) {
    .type-example {
        max-width: 100%;
    }
}
.image {
    width: 20em;
    height: auto; 
    margin-bottom: 0.5em;
    margin-top: 1em;
}
#gradient-png {
    background: radial-gradient(#71ecc3 2px, transparent 2px),
                radial-gradient(rgb(215, 81, 44) 2px, transparent 2px),
                radial-gradient(rgb(152, 216, 48) 2px, transparent 2px),
                radial-gradient(#4634e9 2px, transparent 2px);
    background-position: 0 0, 0.25em 0.25em, 0 .25em, 0.25em 0;
    background-size: .5em .5em;
}
@media screen and (max-width: 24em) {
    .image {
        width: 100%;
    }
}
div.images {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}