:root {
    --pink: #E71FA3;
    --yellow: #FFE600;
    --blue: #35C2FF;
    --bg-color: #f4f4f4;
    --bg-lighter-color: #ddd;
    --text-color: #111;
    --reverse-bg-color: #111;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #111;
        --bg-lighter-color: #333;
        --text-color: #f4f4f4;
        --reverse-bg-color: #f4f4f4;
    }
}

::-moz-focus-inner {
    border: 0;
}


html {
    box-sizing: border-box;
    height: 100%;
}

*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

body {
    font-family: monospace;
    font-size: 15px;
    text-align: left;
    min-height: 100%;
}


main {
    padding: 3em calc(1em + 1vw) 5em;
    max-width: 46rem;
    margin: 0 auto;
    line-height: 1.7;
}
header {
    display: flex;
    align-items: center;
    margin-bottom: 3em;
}

header .img-container {
    display: flex;
    align-items: center;
}

#img-label {
    font-size: .7em;
    margin-left: .8em;
    margin-bottom: 4em;
    user-select: none;
    visibility: hidden;
}
img:hover + #img-label {
    visibility: visible;
}

.language-switch-container {
    margin-left: auto;
    font-style: italic;
    text-align: right;
}

details summary {
    cursor: pointer;
    color: var(--pink);
    font-weight: bold;
    padding: .3em 0 .5em;
}
details p {
    margin-top: .5em;
}


p+h2 {
    margin-top: 2em;
}

a {
    text-decoration: none !important;
    color: inherit;
    border-bottom: .18em solid var(--pink);
    padding: 0 .1em .01em .1em;
    display: inline;
}

footer a {
    border: none;
    padding: 0;
    display: flex;
}

a:hover {
    background-color: rgba(231, 31, 163, 0.4);
    border-bottom-color: transparent;
}

a:focus {
    outline: .2em solid var(--pink);
    transition: none;
    border-color: transparent;
    background-color: rgba(231, 31, 163, 0.4);
}

a:active {
    outline: .2em solid var(--pink);
    border-color: transparent;
}

@keyframes npIndicator {
    0%, 15%, 35%, 40%, 60%, 65%, 85%, 100% {
        filter: brightness(1);
    }
    25%, 50%, 75% {
        filter: brightness(2);
    }
}
.np-indicator {
    font-weight: bold;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    padding: .1em;
    animation: npIndicator 8s infinite;
}


ul li {
    margin-bottom: .3em;
}

code {
    padding: .1em .3em .15em;
    background-color: var(--bg-lighter-color);
    cursor: text;
    overflow-wrap: break-word;
}

.m code+code {
    margin-left: -.3em;
    padding-left: 0;
}

.m code span {
    font-size: .1em;
    user-select: none;
    margin-left: -.12em;
    margin-right: -.12em;
    cursor: text;
}

.m code+code span {
    margin-left: -.5em;
    margin-right: -.5em;
}

footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: .5em;
    display: flex;
}

footer::before {
    content: "";
    display: block;
    height: .5em;
    width: 100%;
    margin: 4em 0;
    background: linear-gradient(to right, var(--pink) 0%, var(--pink) 33.33%, var(--yellow) 33.33%, var(--yellow) 66.66%, var(--blue) 66.66%, var(--blue) 100%);
}


footer img {
    image-rendering: pixelated;
}
footer a:hover {
    opacity: .8;
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media all and (max-width: 500px) {
    body {
        font-size: 14px;
    }
    #img-label {
        display: none;
    }
}
