@font-face {
    font-family: "Steraton";
    src: url("../fonts/steraton-font.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #111111;
    --color-text: #fafafa;
    --border-width: 3px;
    --gradient-colors: #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82;
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: "Steraton", sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    animation: fadeIn 0.6s ease both;
}

canvas {
    position: relative;
    height: 100%;
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.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;
}

.gradient-border {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--border-width);
}

.gradient-border::after {
    content: '';
    position: absolute;
    top: calc(-1 * var(--border-width));
    left: calc(-1 * var(--border-width));
    height: calc(100% + var(--border-width) * 2);
    width: calc(100% + var(--border-width) * 2);
    background: linear-gradient(60deg, var(--gradient-colors));
    background-size: 300% 300%;
    border-radius: calc(1 * var(--border-width));
    z-index: -1;
    animation: animatedGradient 3s ease alternate infinite;
}

.site-copyright {
    position: fixed;
    bottom: 16px;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    pointer-events: none;
}

.site-copyright__line {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    color: rgb(122, 122, 122);
}

.site-copyright__line strong {
    background: linear-gradient(60deg, var(--gradient-colors));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: animatedGradient 3s ease alternate infinite;
    font-weight: 700;
}

#box {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 420px) {
    canvas {
        height: 45px;
        width: 320px;
    }
}

@keyframes animatedGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gradient-border::after, body {
        animation: none;
    }
}