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

@font-face {
    font-family: "8bitoperator JVE Regular";
    src: url("font/8bitoperator_jve.ttf");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "8bitoperator JVE Regular", monospace;
    font-size: 32px;
    text-shadow: 2px 2px 0 #000080;
    color: #fff;
    text-align: center;
    margin: 1em;
    /* display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    align-items: center;
    gap: 1em;
    margin: 1em 0; */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: url('images/bg.gif');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    filter: brightness(0.25);
    z-index: -1;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 48px solid transparent;
    border-image-source: url('images/spr_textbox.webp');
    border-image-slice: 16 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    background-clip: padding-box;
    background-color: #000;
    max-width: 100%;
    text-wrap: balance;
}

a {
    color: #fff;
}

.link {
    text-decoration: none;
    border: 4px solid #fff;
    text-shadow: none;
    padding: 12px;
    cursor: url("images/SOUL.png") 16 16, pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

.green {
    border: 4px solid #0f0;
    color: #0f0;

    .mask {
        background-color: #0f0;
    }
}

.mask {
    width: 1em;
    height: 1em;
    background-color: #ffffff;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.discord {
    -webkit-mask-image: url('images/discord.png');
    mask-image: url('images/discord.png');
}

.twitter {
    -webkit-mask-image: url('images/twitter.png');
    mask-image: url('images/twitter.png');
}

.bluesky {
    -webkit-mask-image: url('images/bluesky.png');
    mask-image: url('images/bluesky.png');
}

.github {
    -webkit-mask-image: url('images/github.png');
    mask-image: url('images/github.png');
}

.kofi {
    -webkit-mask-image: url('images/ko-fi.png');
    mask-image: url('images/ko-fi.png');
}

.link:hover {
    border: 4px solid #ff0;
    color: #ff0;

    .mask {
        background-color: #ff0;
    }
}

.big {
    font-size: clamp(1.75em, calc(8vw + 1em), 2.5em);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

#trickytony {
    user-select: none;
    width: 25%;
}

footer {
    opacity: 0.75;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 600px) {
    body {
        font-size: 20px;
        margin: 1rem 12px;
    }

    .main {
        border-width: 32px;
        gap: 0.75rem;
    }

    .big {
        font-size: clamp(1.4em, 8vw, 2em);
    }

    #trickytony {
        width: 35%;
    }
}