html {
    color-scheme: dark;
}

body {
    background-color: #000;
    background-image: url(assets/starz.gif);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;

    & > main:first-of-type {
        & > *:not(.window) {
            display: block;
            margin: 10px auto;
        }
    }
}

#me {
    font-size: clamp(2.75rem, 8vw, 5em);
    white-space: nowrap;
    position: relative;
    display: inline-block;
    background: #ADC0D7;
    background: linear-gradient(180deg, #ADC0D7 30%, #FFFFFF 48%, #9C4B44 57%, #D2ADA2 96%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
}

#me::before {
    --extrude: #160D0D;
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;

    text-shadow:
        1px 1px 0 var(--extrude),
        2px 2px 0 var(--extrude),
        3px 3px 0 var(--extrude),
        4px 4px 0 var(--extrude),
        5px 5px 0 var(--extrude),
        6px 6px 0 var(--extrude),
        7px 7px 16px rgba(0, 0, 0, .5);
}

h1, h2, h3, h4, h5, h6, p, small {
    margin: 0;
}

small {
    opacity: .5;
}

.window {
    background-color: #c0c0c0;
    border: 2px outset #fff;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #000;
    margin-bottom: 2em;

    & > section:first-of-type { /* title bar */
        background: linear-gradient(to right, #0a246a, #a6caf0);
        color: white;
        padding: 3px 5px;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #c0c0c0;

        & p { /* title text */
            flex-grow: 1
        }

        & button { /* title button */
            background-color: #c0c0c0;
            border: 2px outset #fff;
            font-size: 14px;
            padding: 0 5px;
            margin-left: 2px;
            cursor: pointer;
            color: #000;
            font-weight: bold;

            &:active {
                border-style: inset;
                background-color: #808080;
            }

            &:focus {
                outline: none;
            }
        }
    }

    & main { /* the content lol */
        padding: 15px;
        background-color: #fff;

        & p {
            margin-bottom: 10px;
        }
    }
}

a {
    color: #0000ff;
    text-decoration: underline;
}

a:hover {
    color: #800080;
}

ul {
    margin: 5px;
}

span.mono {
    font-family: monospace;
    font-size: 1.3em;
}

img[src$=".gif" i], img[src$=".webp" i] {
    content-visibility: auto;
    image-rendering: pixelated;
    will-change: transform;
}

#moon {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: help;
    z-index: -1;
}