/* reset styles */
:root {
    color-scheme: dark;
    font-family: "Verdana", "Arial", sans-serif;
    --mono-font: "Source Code Pro", "Fira Mono", monospace;
    --bg-color: #191919;
    --text-color: #eeeeee;
    --accent-color: #4ecca3;
    /*--accent-color: #cc4ecc;*/
    --text-weak-color: #cccccc;
    --bg-accent-color: #223730;
    /*--bg-accent-color: #372237;*/

    background: var(--bg-color);
    color: var(--text-color);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full-height container */
html,
body {
    min-height: 100%;
    width: 100%;
    display: flex;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

#root {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    min-width: 70%;
    min-height: 100%;
}
main,
footer,
header {
    display: flex;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    @media (min-width: 768px) {
        max-width: 750px;
    }
}
main {
    flex-direction: column;
}

article {
    max-width: 100%;
}
h1 {
    font-size: 32px;
    color: var(--accent-color);
}
h2 {
    font-size: 28px;
    color: var(--accent-color);
}
h3 {
    font-size: 22px;
}
h1,
h2,
h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

p,
ul,
ol {
    margin-bottom: 0.5em;
}

ul {
    list-style-type: "‒ ";
    padding-left: 1em;
}
ol {
    padding-left: 1em;
}

p,
code,
ul,
ol,
pre {
    font-size: 20px;
    line-height: 140%;
}

code {
    background-color: var(--bg-accent-color);
    padding-left: 0.2em;
    padding-right: 0.2em;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    border-radius: 2px;
    font-family: var(--mono-font);
}

pre {
    width: 100%;
    max-width: 100%;
    background-color: var(--bg-accent-color);
    padding: 0.5em;
    margin: 0.5em;
    overflow-x: scroll;
    border-width: 1px;
    border-color: var(--accent-color);
    border-style: solid;
    border-radius: 5px;
    font-family: var(--mono-font);
}

a {
    color: var(--text-color);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
}
a:hover {
    color: var(--accent-color);
}

.accent {
    color: var(--accent-color);
}

.shiner:hover {
    background-color: var(--accent-color);
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(
        66deg,
        var(--accent-color) 30%,
        #fff 50%,
        var(--accent-color) 70%
    );
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: 200%;
    animation: shine 1.9s linear 2;
}
a.shiner:hover {
    background-color: var(--accent-color);
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(
        66deg,
        var(--accent-color) 30%,
        #fff 50%,
        var(--accent-color) 70%
    );
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: 200%;
    animation: shine 1.9s linear 2;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
}
@keyframes shine {
    0% {
        background-position: -200%;
    }
    100% {
        background-position: 800%;
    }
}

footer {
    position: relative;
    margin-top: 2em;
    padding-top: 1em;
    font-size: 20px;
    padding-bottom: 4em;
}
footer a {
    margin-left: 10px;
    margin-right: 10px;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-color) 30%,
        var(--accent-color) 70%,
        transparent
    );
}

glitchy-img {
    display: block;
}
glitchy-img > img {
    width: 100%;
}

glitchy-img.inline {
    width: 100%;
    @media (min-width: 768px) {
        float: left;
        width: 35%;
        margin-right: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
    }
}
