:root {
    --color: white;
}

body, html {
    margin: 0;
    color: white;
    font-family: "Fira Code", monospace;
    font-size: 1.3rem;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    scrollbar-width: thin;
    scrollbar-color: #444 #111;
}

::selection {
    background: white;
    color: black;
    text-shadow: cyan 0.04em 0.04em,
    magenta -0.04em -0.04em;
}

.magenta {
    --color: magenta;
}

.cyan {
    --color: cyan;
    animation-delay: 5s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.silkscreen-regular, h1, h2, h3, h4, h5, h6 {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1 { font-size: 2em; }  /* 40px */
h2 { font-size: 1.75em; }    /* 32px */
h3 { font-size: 1.5em; }  /* 24px */
h4 { font-size: 1.25em; } /* 20px */
h5 { font-size: 1em; }    /* 16px */
h6 { font-size: 0.875em;} /* 14px */

.bytesized-regular {
    font-family: "Bytesized", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url("assets/bg.webp") center center;
    z-index: -1;
    animation: background linear 60s infinite;
    pointer-events: none;
}


@keyframes background {
    from {
        background-position-y: 0;
        /*filter: hue-rotate(0);*/
    }
    /*50%  {*/
    /*    filter: hue-rotate(40deg);*/
    /*}*/
    to {
        background-position-y: -1080px;
        /*filter: hue-rotate(0);*/
    }
}

.container {
    display: flex;
}

.cont-container {
    margin: auto;
    max-width: 1100px;
    border-right: black solid 2px;
    border-left: black solid 2px;
}

.banner {
    box-sizing: border-box;
    display: block;
    width: 100%;
}

.content {
    background: rgba(0, 0, 0, 0.5);
    max-width: 800px;
    min-height: calc(100vh - 300px);
    padding: 30px;
    box-sizing: border-box;
}

.sidebar {
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.75);
    max-width: 300px;
    flex-grow: 1;
    padding: 10px;
    box-sizing: border-box;
}

.button-container {
    font-size: 0.8em;
}

.button-container img {
    max-width: 88px;
}

header {
    display: flex;
    justify-content: space-between;
}

.name {
    font-size: 1.5rem;
    text-shadow: cyan 0.04em 0.04em,
    magenta -0.04em -0.04em;
}

nav {
    user-select: none;
    text-align: right;
}

.split-text {
    position: relative;
    display: inline-block;
    color: transparent;
    font-weight: bold;
    text-decoration: none;
}

.split-text::before,
.split-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: white;
    background: transparent;
    transition: transform 0.5s;
    pointer-events: none;
}

.split-text::before {
    clip-path: inset(0 0 50% 0);
}

.split-text::after {
    clip-path: inset(50% 0 0 0);
}


.split-text:hover::before {
    transform: translateX(3px);
    color: black;
    background: white;
    text-decoration: line-through 3px;
}

.split-text:hover::after {
    transform: translateX(-3px);
    color: black;
    background: white;
    text-decoration: line-through 3px;
}

.likes {
    display: inline-block;
    width: 7em;
}

.likes::before {
    color: magenta;
    animation: likes 3s infinite;
    content: "computers";
}
.likes::after {
    content: ".";
}

@keyframes likes {
    0% {
        content: "computers";
    }
    10% {
        content: "programming";
    }
    20% {
        content: "electronics";
    }
    30%  {
        content: "design";
    }
    40% {
        content: "reading";
    }
    50% {
        content: "anime";
    }
    60% {
        content: "manga";
    }
    70% {
        content: "vocaloid";
    }
    80% {
        content: "lame puns";
    }
    90% {
        content: "math";
    }
}

fieldset {
    margin: 20px 2px;
    background: black;
    box-shadow: var(--color) 0 0 40px 5px inset,
    var(--color) 0 0 40px 5px;
    border: solid white 5px;
    text-shadow: 0 0 20px;
    animation: flicker 20s infinite;
}

@keyframes flicker {
    49.75% {
        box-shadow: var(--color) 0 0 40px 5px inset,
        var(--color) 0 0 40px 5px;
        border: solid white 5px;
    }
    50% {
        box-shadow: none;
        border: solid dimgray 5px;
    }
    50.75% {
        box-shadow: var(--color) 0 0 40px 5px inset,
        var(--color) 0 0 40px 5px;
        border: solid white 5px;
    }


    54.75% {
        box-shadow: var(--color) 0 0 40px 5px inset,
        var(--color) 0 0 40px 5px;
        border: solid white 5px;
    }
    55% {
        box-shadow: none;
        border: solid dimgray 5px;
    }
    56.5% {
        box-shadow: none;
        border: solid dimgray 5px;
    }
    57% {
        box-shadow: var(--color) 0 0 40px 5px inset,
        var(--color) 0 0 40px 5px;
        border: solid white 5px;
    }


    57.25% {
        box-shadow: var(--color) 0 0 40px 5px inset,
        var(--color) 0 0 40px 5px;
        border: solid white 5px;
    }
    57.5% {
        box-shadow: none;
        border: solid dimgray 5px;
    }
    58.75% {
        box-shadow: var(--color) 0 0 40px 5px inset,
        var(--color) 0 0 40px 5px;
        border: solid white 5px;
    }
}

@media screen and (max-width: 670px) {
    .content {
        padding: 10px;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        max-width: none;
    }
}

@media screen and (max-width: 420px) {
    nav {
        width: min-content;
    }
}
