/*
 * Josh Comeau's awesome CSS reset
 * more about it here: https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

#root,
#__next {
    isolation: isolate;
}

:root {
    --bg-color: hsl(155deg 80% 5%);
    --fg-color: hsl(155deg, 93%, 44%);
    --fg-deep-color: hsl(155deg, 93%, 20%);
}

::selection {
    background-color: hsl(155deg, 93%, 44%);
    color: hsl(155deg 80% 5%);
}

@font-face {
    font-family: "JetbrainsMono";
    src: url("/static/fonts/JetBrainsMono.woff2");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "TsunagiGothic";
    src: url("/static/fonts/TsunagiGothicTiny.woff2");
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Schabo";
    src: url("/static/fonts/Schabo.woff2");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: "JetbrainsMono", monospace;
    line-height: 1.6;
    background-color: #000;
    color: var(--fg-color);
}

a {
    color: var(--fg-color);
    text-decoration: none;
    opacity: 0.5;
}

a:hover {
    opacity: 1;
    background-color: var(--fg-color);
    color: var(--bg-color);
}

a::before {
    content: "[";
    position: inherit;
}

a::after {
    content: "]";
}

p {
    margin: 24px 0px;
    opacity: 0.8;
}

.container {
    width: 100%;
    min-height: 100%;
    max-width: 900px;
    margin: 0px auto;
    padding: 16px;
    border: 1px var(--fg-color) solid;
}

.crt-container {
    position: relative;
    background-color: var(--bg-color);
}

.crt-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.crt-container::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

.crt-text {
    position: relative;
    z-index: 0;
    color: var(--fg-color);
    text-shadow:
        0 0 5px var(--fg-color),
        0 0 10px var(--fg-color),
        0 0 20px var(--fg-deep-color),
        0 0 40px var(--fg-deep-color);
    animation: flicker 0.15s infinite;
    line-height: 1.6;
}

.crt-text-inverted {
    position: relative;
    z-index: 0;
    color: var(--bg-color);
    text-shadow:
        0 0 3px var(--bg-color),
        0 0 6px var(--bg-color);
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.97;
    }
    5% {
        opacity: 1;
    }
    10% {
        opacity: 0.98;
    }
    15% {
        opacity: 1;
    }
    20% {
        opacity: 0.99;
    }
    25% {
        opacity: 1;
    }
    30% {
        opacity: 0.97;
    }
    35% {
        opacity: 0.99;
    }
    40% {
        opacity: 1;
    }
    45% {
        opacity: 0.98;
    }
    50% {
        opacity: 1;
    }
    55% {
        opacity: 0.99;
    }
    60% {
        opacity: 0.97;
    }
    65% {
        opacity: 1;
    }
    70% {
        opacity: 0.99;
    }
    75% {
        opacity: 0.98;
    }
    80% {
        opacity: 1;
    }
    85% {
        opacity: 0.97;
    }
    90% {
        opacity: 0.99;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0.98;
    }
}

.screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.font-jp {
    font-family: "TsunagiGothic";
}

.font-alt {
    font-family: "Schabo";
}

.font-bold {
    font-weight: "bold";
}

.address-bar {
    background-color: var(--fg-color);
    color: var(--bg-color);
    padding: 2px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 999;
}

.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bg-color) !important;
    background-color: var(--fg-color);
    padding: 2px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 999;
}

.bottom-bar ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bottom-bar ul li {
    list-style: none;
}

.bottom-bar ul li a {
    color: var(--bg-color) !important;
    opacity: 1 !important;
}

.bottom-bar ul li a:hover {
    background-color: var(--bg-color) !important;
    color: var(--fg-color) !important;
}

.heading-main {
    display: inline-block;
    position: relative;
}

.text-main-jp {
    position: absolute;
    bottom: -0.3em;
    left: 0.6em;
    font-size: 3em;
    mix-blend-mode: difference;
}

.text-h1-main {
    font-size: 6em;
    font-weight: 200;
}

.blinking-cursor {
    display: inline-block;
    position: relative;
    bottom: 0px;
    right: 0px;
    width: 20px;
    height: 80px;
    background-color: var(--fg-color);
    animation: blinking 1s infinite ease forwards;
}

@keyframes blinking {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media screen and (max-width: 420px) {
    body {
        font-size: 0.875em !important;
    }

    .text-main-jp {
        font-size: 2em;
    }

    .text-h1-main {
        font-size: 4em;
    }

    .blinking-cursor {
        width: 10px;
        height: 50px;
    }

    .bottom-bar {
        display: block;
    }

    .bottom-bar ul {
        justify-content: start;
        align-items: normal;
        margin: 8px 0px;
        padding: 0px;
    }
}
