html,
body {
    margin: 0px;
    padding: 0px;
}

@media (min-width: 768px) {
    body {
        width: 90%;
    }
}

@media (min-width: 1200px) {
    body {
        padding: 0;
        max-width: 65%;
    }
}

html {
    font-family: Monda, sans-serif;
    font-size: 1.5em/1.5;
    color: #464646;
    background-color: rgb(242, 242, 242);

    transition:
        background-color 1000ms ease,
        color 1000ms ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        filter: grayscale(1);
    }

    100% {
        opacity: 1;
        filter: grayscale(0);
    }
}

body {
    max-width: 960px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    padding: 1rem;

    animation: fadeIn 1s ease 1;
}

h1 {
    font-size: 1.8em;
}

h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h1,
h2 {
    font-weight: normal;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    color: rgb(13, 171, 171);
}

/* article h2 {
    background-color: #02daaf;
    color: #fff;
    margin-top: 3mm;
    padding-left: 1rem;
    border-bottom-width: 4px;
    border-bottom-style: solid;
    border-bottom-color: #01BE98;
}

article h2 a {
    color: #fff;
} */

article img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* width: 50%; */
}

article {
    text-align: justify;
    hyphens: auto;
    hyphenate-character: "—";
    hyphenate-limit-chars: 5 2 7;
}

p {
    margin-bottom: 1rem;
}

a {
    color: rgb(13, 171, 171);
    text-decoration: none;
}

pre {
    font-family: "Source Code Pro", "Courier New", Courier, monospace;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 1rem;
    tab-size: 4;
    overflow-x: auto;
}

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

video {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid #e5e5e5;
}

blockquote {
    border-left: 4px solid #e5e5e5;
    margin: 0;
    padding: 0 0 0 20px;
    font-style: italic;
}

button {
    font-family: Monda, sans-serif;
    background-color: #02daaf;
    color: #fff;
    padding: 1rem 1rem;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #01BE98;
}

button:active {
    background-color: #02daaf;
}

.row {
    display: flex;
    gap: 1rem;
}

.col {
    flex: 1;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    background-color: #080816;
}

.logo img {
    image-rendering: pixelated;
}

.logo p {
    text-decoration: none;
    font-size: 1.5rem;
    color: #97CEEC;
    margin: inherit;
    padding-right: 1rem;
}

.tiles a {
    background-color: #F0F0F0;
    padding: 8px;
    display: inline-block;
    margin-right: 4px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: rgba(0, 0, 0, 0.1);
    transition:
        background-color 1000ms ease
}
.gallery {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-row {
    display: flex;
    gap: 8px;
}

.gallery a {
    display: block;
    overflow: hidden;
    text-decoration: none;
    flex-basis: 0;
    min-width: 0;
}

.gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover {
    width: 100%;
    object-fit: cover;
}
.code-tabs {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.code-tabs-radio {
    display: none;
}

.code-tabs-label {
    padding: 0.35rem 0.8rem;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    color: #666;
    background: #f5f5f5;
}

.code-tabs-panel {
    display: none;
    grid-column: 1 / -1;
}

.code-tabs .code-tabs-panel pre {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.code-tabs-radio:checked+.code-tabs-label {
    color: #202020;
    background: #ececec;
    border-color: #c4c4c4;
}

.code-tabs>input:nth-of-type(1):checked~.code-tabs-panel-left,
.code-tabs>input:nth-of-type(2):checked~.code-tabs-panel-right {
    display: block;
}
html:not(.dark-mode) {

    .token.cdata,
    .token.comment,
    .token.prolog {
        color: #9fa0a6
    }

    .token.doctype,
    .token.entity,
    .token.punctuation {
        color: #383942
    }

    .token.atrule,
    .token.attr-name,
    .token.boolean,
    .token.class-name,
    .token.constant,
    .token.number {
        color: #b66a00
    }

    .token.keyword {
        color: #a625a4
    }

    .token.deleted,
    .token.important,
    .token.property,
    .token.symbol,
    .token.tag {
        color: #e35549
    }

    .token.attr-value,
    .token.attr-value>.token.punctuation,
    .token.builtin,
    .token.char,
    .token.inserted,
    .token.regex,
    .token.selector,
    .token.string {
        color: #50a04f
    }

    .token.function,
    .token.operator,
    .token.variable {
        color: #4078f1
    }

    .token.url {
        color: #0083bb
    }

    .token.attr-value>.token.punctuation.attr-equals,
    .token.special-attr>.token.attr-value>.token.value.css {
        color: #383942
    }

    .language-css .token.selector {
        color: #e35549
    }

    .language-css .token.property {
        color: #383942
    }

    .language-css .token.function,
    .language-css .token.url>.token.function {
        color: #0083bb
    }

    .language-css .token.url>.token.string.url {
        color: #50a04f
    }

    .language-css .token.atrule .token.rule,
    .language-css .token.important {
        color: #a625a4
    }

    .language-javascript .token.operator {
        color: #a625a4
    }

    .language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation {
        color: #c91142
    }

    .language-json .token.operator {
        color: #383942
    }

    .language-json .token.null.keyword {
        color: #b66a00
    }

    .language-markdown .token.url,
    .language-markdown .token.url-reference.url>.token.string,
    .language-markdown .token.url>.token.operator {
        color: #383942
    }

    .language-markdown .token.url>.token.content {
        color: #4078f1
    }

    .language-markdown .token.url-reference.url,
    .language-markdown .token.url>.token.url {
        color: #0083bb
    }

    .language-markdown .token.blockquote.punctuation,
    .language-markdown .token.hr.punctuation {
        color: #9fa0a6;
        font-style: italic
    }

    .language-markdown .token.code-snippet {
        color: #50a04f
    }

    .language-markdown .token.bold .token.content {
        color: #b66a00
    }

    .language-markdown .token.italic .token.content {
        color: #a625a4
    }

    .language-markdown .token.list.punctuation,
    .language-markdown .token.strike .token.content,
    .language-markdown .token.strike .token.punctuation,
    .language-markdown .token.title.important>.token.punctuation {
        color: #e35549
    }

    .token.bold {
        font-weight: 700
    }

    .token.comment,
    .token.italic {
        font-style: italic
    }

    .token.entity {
        cursor: help
    }

    .token.namespace {
        opacity: .8
    }

    .token.token.cr:before,
    .token.token.lf:before,
    .token.token.space:before,
    .token.token.tab:not(:empty):before {
        color: hsla(230, 8%, 24%, .2)
    }
}
html.dark-mode {

    .token.comment,
    .token.prolog,
    .token.cdata {
        color: hsl(220, 10%, 40%);
    }

    .token.doctype,
    .token.punctuation,
    .token.entity {
        color: hsl(220, 14%, 71%);
    }

    .token.attr-name,
    .token.class-name,
    .token.boolean,
    .token.constant,
    .token.number,
    .token.atrule {
        color: hsl(29, 54%, 61%);
    }

    .token.keyword {
        color: hsl(286, 60%, 67%);
    }

    .token.property,
    .token.tag,
    .token.symbol,
    .token.deleted,
    .token.important {
        color: hsl(355, 65%, 65%);
    }

    .token.selector,
    .token.string,
    .token.char,
    .token.builtin,
    .token.inserted,
    .token.regex,
    .token.attr-value,
    .token.attr-value>.token.punctuation {
        color: hsl(95, 38%, 62%);
    }

    .token.variable,
    .token.operator,
    .token.function {
        color: hsl(207, 82%, 66%);
    }

    .token.url {
        color: hsl(187, 47%, 55%);
    }

    /* HTML overrides */
    .token.attr-value>.token.punctuation.attr-equals,
    .token.special-attr>.token.attr-value>.token.value.css {
        color: hsl(220, 14%, 71%);
    }

    /* CSS overrides */
    .language-css .token.selector {
        color: hsl(355, 65%, 65%);
    }

    .language-css .token.property {
        color: hsl(220, 14%, 71%);
    }

    .language-css .token.function,
    .language-css .token.url>.token.function {
        color: hsl(187, 47%, 55%);
    }

    .language-css .token.url>.token.string.url {
        color: hsl(95, 38%, 62%);
    }

    .language-css .token.important,
    .language-css .token.atrule .token.rule {
        color: hsl(286, 60%, 67%);
    }

    /* JS overrides */
    .language-javascript .token.operator {
        color: hsl(286, 60%, 67%);
    }

    .language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation {
        color: hsl(5, 48%, 51%);
    }

    /* JSON overrides */
    .language-json .token.operator {
        color: hsl(220, 14%, 71%);
    }

    .language-json .token.null.keyword {
        color: hsl(29, 54%, 61%);
    }

    /* MD overrides */
    .language-markdown .token.url,
    .language-markdown .token.url>.token.operator,
    .language-markdown .token.url-reference.url>.token.string {
        color: hsl(220, 14%, 71%);
    }

    .language-markdown .token.url>.token.content {
        color: hsl(207, 82%, 66%);
    }

    .language-markdown .token.url>.token.url,
    .language-markdown .token.url-reference.url {
        color: hsl(187, 47%, 55%);
    }

    .language-markdown .token.blockquote.punctuation,
    .language-markdown .token.hr.punctuation {
        color: hsl(220, 10%, 40%);
        font-style: italic;
    }

    .language-markdown .token.code-snippet {
        color: hsl(95, 38%, 62%);
    }

    .language-markdown .token.bold .token.content {
        color: hsl(29, 54%, 61%);
    }

    .language-markdown .token.italic .token.content {
        color: hsl(286, 60%, 67%);
    }

    .language-markdown .token.strike .token.content,
    .language-markdown .token.strike .token.punctuation,
    .language-markdown .token.list.punctuation,
    .language-markdown .token.title.important>.token.punctuation {
        color: hsl(355, 65%, 65%);
    }

    /* General */
    .token.bold {
        font-weight: bold;
    }

    .token.comment,
    .token.italic {
        font-style: italic;
    }

    .token.entity {
        cursor: help;
    }

    .token.namespace {
        opacity: 0.8;
    }
}
.dark-mode {
    color: rgba(153, 208, 237, 0.9);
    background-color: #080816;
}

.dark-mode pre {
    background-color: rgba(255, 255, 255, 0.02);
}

.dark-mode .tiles a {
    background-color: #0e0e25;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.1);
}

.dark-mode button {
    background-color: rgb(13, 171, 171);
}

.dark-mode button:hover {
    background-color: hsl(180, 100%, 36%);
}

.dark-mode button:active {
    background-color: rgb(13, 171, 171);
}

.dark-mode th,
.dark-mode td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode-toggle {
    float: right;
    display: inline-flex;
    align-items: center;
    height: 64px;
}