@font-face {
    font-family: "FreePixel";
    src: url("../FreePixel.ttf");
}

:root {
    --badge-bg: rgba(255, 255, 255, 0.18);
    --badge-border: rgba(9, 17, 9, 0.28);
    --font-display: "FreePixel", MS Gothic;
    --lowkey: #d0d5ff;
    --panel-fill: linear-gradient(
        180deg,
        var(--zato-top) 0%,
        var(--zato-base) 100%
    );
    --panel-noise: repeating-radial-gradient(
        circle at 17% 32%,
        #fff,
        #111 1.4px
    );
    --panels: #b1b5b2;
    --zato-base: #5b7860;
    --zato-hover-bottom: #64806a;
    --zato-hover-top: #79997f;
    --zato-top: #6d8c72;
}

* {
    font-family: var(--font-display);
    image-rendering: pixelated;
}

body {
    background-color: #03070b;
    margin: 0;
    overflow-x: hidden;
}

/* FOR BLOGG WRITING AND MD. START */

a {
    color: inherit;
}

a:hover {
    cursor: pointer;
    color: #8c0000;
}

ul {
    list-style-type: "- "
}

.spoiler {
  cursor: pointer;
  background: black;
  color: black;
  padding: 0 0.2rem;
}

.spoiler:hover,
.spoiler:hover .spoiler-text {
  color: #fff;
}

.info {
  border-left: 4px solid var(--panels);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: #355657;
}

.big {
    font-weight: bold;
    font-size: 2rem;
    margin: 1rem;
    overflow: hidden;
    margin-bottom: -8px;
    padding-bottom: 8px;
    border-bottom: dotted;
}

h3 {
    border-bottom: dotted;
}

.normal {
    font-size: 1.5rem;
    margin: 1rem;
    line-height: 1.4;
}

.smaller {
    font-size: 1rem;
}

.ascii {
    font-family: monospace;
    font-size: 0.2rem;
    line-height: 1;
    white-space: pre;
    display: inline-block;
    vertical-align: middle;

}

.poetry {
    padding: 5px;
    font-weight: bolder;
    text-align: center;
    line-height: 1.45;
}

.highlight {
}

/* FOR BLOGG WRITING AND MD. END */

.scroll {
    background: var(--zato-base);
    border: 5px solid var(--panels);
    border-style: ridge;
    color: black;
    height: 30px;
    left: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.scroll p {
    align-items: center;
    animation: scroll-left 7s linear infinite;
    display: flex;
    flex-direction: columns;
    font-size: 150%;
    font-weight: bold;
    gap: 8px;
    height: 100%;
    justify-content: center;
    letter-spacing: 0.6vw;
    line-height: 30px;
    margin: 0;
    position: absolute;
    text-align: center;
    transform: translateX(100%);
    white-space: nowrap;
    width: 100%;
    z-index: 1;
    cursor: pointer;
}

.scroll p a {
    color: inherit;
    font-size: 120%;
    line-height: 1;
    pointer-events: auto;
    text-decoration: none;
}

.scroll p img {
    height: 70px;
    width: auto;
}

.scroll-track {
    animation: scroll-left 8s linear infinite;
    display: flex;
    font-size: 0;
    gap: 10px;
    height: 100%;
    letter-spacing: 0.6vw;
    line-height: 30px;
    margin: 0;
    margin-top: 5px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    width: max-content;
    z-index: 1;
}

.scroll-trackR {
    animation: scroll-left 8s linear infinite reverse;
    display: flex;
    font-size: 0;
    gap: 10px;
    height: 100%;
    letter-spacing: 0.6vw;
    line-height: 30px;
    margin: 0;
    margin-top: 55px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    width: max-content;
    z-index: 1;
}

.scroll-trackR img {
    display: inline-block;
    height: 40px;
    width: auto;
    transition: transform 0.15s ease-out;
}

.scroll-trackR a:hover img {
    transform: scale(0.9);
}

.scroll img {
    display: inline;
    height: 40px;
    width: auto;
}

.scroll::after {
    animation: static-move 0.2s steps(3) infinite;
    background-image: var(--panel-noise);
    content: "";
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.scroll:first-of-type {
    margin-inline: auto;
    max-width: 1550px;
    left: 40px;
    right: 40px;
    width: auto;
    border-top: 0px;
}

.scroll:last-of-type {
    bottom: 0;
    height: 100px;
    left: 40px;
    margin-inline: auto;
    max-width: 1500px;
    position: absolute;
    right: 40px;
    top: auto;
    width: auto;
    border-bottom: 0px;
}

@keyframes static-move {
    0% {
        background-size: 100% 100%;
    }
    100% {
        background-size: 170% 210%;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 5px));
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.scroll:nth-of-type(1) p {
    animation: scroll-right 7s linear infinite;
}

@keyframes matrix-flicker {
    0% {
        opacity: 1;
    }
    10% {
        opacity: 0.5;
    }
    17% {
        opacity: 0.2;
    }
    28% {
        opacity: 1;
    }
    91% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

.text {
    color: white;
    font-size: clamp(2rem, 3.5cqw, 4.5rem);
    letter-spacing: -0.015em;
    line-height: 1;
    margin: 0;
    opacity: 0.85;
    text-align: center;
    white-space: nowrap;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin: 0 auto;
    max-width: 70rem;
    padding: 4.5rem 1rem 14rem;
    position: relative;
    z-index: 1;
}

.main-text {
    container-type: inline-size;
    text-align: center;
}

.main-lowkey {
    color: var(--lowkey);
    font-size: clamp(1rem, 1vw, 1.4rem);
    letter-spacing: 0.18em;
    margin: 0 0 0.75rem;
    opacity: 0.75;
    text-transform: uppercase;
}

.main-panels {
    align-items: start;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.channels,
.transmissions {
    display: grid;
    gap: 0.65rem;
}

.trans-scroll {
    position: relative;
    margin-top: -0.3rem;
    height: 325px;
    margin-bottom: 125px;
    max-height: none;
    overflow-y: auto;
    padding: 1rem 1rem 2rem;
    background: rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    border: 5px solid #508587;
    border-style: ridge;
    content: "";
    background-image: url("/assets/m17.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lowkey,
.lowkey-navigator {
    color: var(--lowkey);
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.18em;
    line-height: 1.9;
    margin: 0;
    opacity: 0.78;
    text-transform: uppercase;
}

.lowkey-navigator {
    position: absolute;
    z-index: 3;
    top: 550px;
}

.channels-selector,
.transmissions-selector {
    background: var(--panel-fill);
    isolation: isolate;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.channels-selector::before,
.transmissions-selector::before {
    border-width: 5px;
    border-style: ridge;
    inset: -4px;
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: -1;
}


.channels-selector::before {
    border-color: #508587;
}

.transmissions-selector::before {
    border-color: #355657;
}

.channels-selector:hover,
.channels-selector:focus-visible,
.transmissions-selector:hover,
.transmissions-selector:focus-visible {
    background: linear-gradient(180deg, #3e71cd, #2c3e6c);
    color: black;
}

.static::after,
.channels-selector::after,
.transmissions-selector::after,
.music::after,
.status::after,
.webring::after,
.box::after {
    animation: static-move 0.2s steps(3) infinite;
    background-image: var(--panel-noise);
    content: "";
    inset: 0;
    opacity: 0.14;
    pointer-events: none;
    position: absolute;
}

.nostatic::after {
    animation: none !important;
    content: none !important;
}

.trans-scroll::after,
.changelog::after {
    animation: static-move 0.2s steps(3) infinite;
    background-image: var(--panel-noise);
    content: "";
    inset: 0;
    position: absolute;
    opacity: 0.14;
    pointer-events: none;
    bottom: -1000px;
}

.channels-selector > *,
.transmissions-selector > * {
    position: relative;
    z-index: 1;
}

.channel-number,
.transmissions-number {
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    min-width: 0;
    text-align: center;
    width: fit-content;
}

.channels-list {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(4, minmax(0, 6rem));
    justify-content: start;
}

.channels-selector {
    container-type: inline-size;
    display: grid;
    gap: 0.15rem;
    grid-template-rows: auto 1fr;
    padding: 0.3rem;
}

.channels-selector:hover,
.channels-selector:focus-visible {
    color: #8c0000;
}

.channels-selector:hover .preview,
.channels-selector:focus-visible .preview {
    color: black;
}

.channel-number {
    font-size: 1.05rem;
    letter-spacing: 0.09em;
    padding: 0.18rem 0.38rem;
    text-transform: uppercase;
}

.channel-name {
    align-self: end;
    font-size: clamp(0.75rem, 17cqw, 1.82rem);
    font-weight: bold;
    line-height: 0.88;
    min-width: 0;
    text-align: left;
    text-transform: lowercase;
    text-wrap: balance;
    width: 100%;
}

.transmissions-list {
    display: grid;
    gap: 2rem;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.transmissions-selector {
    align-items: center;
    column-gap: 1rem;
    display: grid;
    grid-template-areas:
        "channel title"
        "channel snippet";
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.95rem 1.1rem;
    row-gap: 0.25rem;
}

.transmissions-selector:hover .transmissions-number,
.transmissions-selector:focus-visible .transmissions-number {
    color: #8c0000;
}

.transmissions-number {
    align-self: center;
    font-size: 1rem;
    grid-area: channel;
    justify-self: start;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    text-transform: none;
    white-space: nowrap;
}

.transmissions-title {
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    grid-area: title;
    line-height: 1.05;
    min-width: 0;
}

.transmissions-preview {
    font-size: 1rem;
    grid-area: snippet;
    min-width: 0;
    opacity: 0.74;
}

.preview {
    font-size: 85%;
    margin-top: 10px;
    opacity: 0.74;
}

@media (max-width: 1000px) {
    .main-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main {
        gap: 1.6rem;
        padding: 4.25rem 0.75rem 10rem;
    }

    .channels-selector {
        padding: 0.52rem;
    }

    .channel-name {
        font-size: clamp(1.02rem, 14.5cqw, 1.35rem);
    }

    .transmissions-selector {
        gap: 0.35rem;
        grid-template-areas:
            "channel"
            "title"
            "snippet";
        grid-template-columns: 1fr;
    }

    .transmissions-title {
        font-size: 1.35rem;
    }

    .transmissions-preview {
        font-size: 1rem;
    }
}

.zato {
    display: flex;
    flex-direction: column;
    opacity: 0.16;
    pointer-events: none;
    position: fixed;
    top: -10%;
    z-index: 0;
}

.zato.left {
    align-items: flex-start;
    left: 0;
}

.zato.right {
    align-items: flex-end;
    right: 0;
}

.zato-col {
    animation: matrix-flicker 1.7s steps(2, end) infinite;
    color: white;
    font-size: 150%;
    line-height: 0.7;
    text-align: left;
    white-space: pre;
}

.zato-col + .zato-col {
    margin-top: -45px;
}

.zato.right .zato-col {
    text-align: right;
}

.zato-col:nth-child(1n) {
    animation-delay: 0s;
}

.zato-col:nth-child(2n) {
    animation-delay: 0.22s;
}

.zato-col:nth-child(3n) {
    animation-delay: 0.44s;
}

.zato-col:nth-child(4n) {
    animation-delay: 0.66s;
}

.zato-col:nth-child(5n) {
    animation-delay: 0.88s;
}

.zato-col:nth-child(6n) {
    animation-delay: 1.1s;
}

.zato-col:nth-child(7n) {
    animation-delay: 1.32s;
}

.zato-col:nth-child(8n) {
    animation-delay: 1.54s;
}

.zato-col:nth-child(9n) {
    animation-delay: 1.76s;
}

.zato-col:nth-child(10n) {
    animation-delay: 1.98s;
}

.hidden {
    display: none;
}

.cursor-select {
    margin-left: 169px;
    position: absolute;
}

.fumo,
.fumo2 {
    position: absolute;
    z-index: 11;
    pointer-events: none;
    height: 80px;
    width: 140px;
    animation: fumo-spin 2s steps(14) infinite;
    background-repeat: no-repeat;
    background-size: 1500% 100%;
}

.fumo {
    background-image: url("/assets/spritesheet.png");
    left: max(40px, calc((100vw - 1500px) / 2));
    bottom: 105px;
}

.fumo2 {
    background-image: url("/assets/spirtesheet2.png");
    right: max(40px, calc((100vw - 1500px) / 2));
    bottom: 100px;
}

@keyframes fumo-spin {
    from {
        background-position: 0% 0;
    }
    to {
        background-position: 100% 0;
    }
}

@keyframes cur-ani {
    0% {
        filter: brightness(0.75)
            drop-shadow(0 0 0.85rem rgba(91, 120, 96, 0.95))
            drop-shadow(0 0 0.9rem rgba(109, 140, 114, 0.65));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 0.85rem rgba(91, 120, 96, 0.95))
            drop-shadow(0 0 0.9rem rgba(109, 140, 114, 0.65));
    }
    100% {
        filter: brightness(0.75);
    }
}

.sakura {
    display: inline-block;
    transform-origin: center;
    vertical-align: middle;
}

#cursor-lily:checked + .cursor-toggle-label .sakura,
#cursor-fairy:checked + .cursor-toggle-label .sakura,
#cursor-reimu:checked + .cursor-toggle-label .sakura {
    animation: cur-ani 2s linear;
}

.glow-green {
    filter: brightness(0.75);
}

.zato-red {
    color: #ff0000;
}

.bbq {
    font-style: bold;
    font-weight: 1000000;
    animation: bbqE 2s linear infinite;
}

@keyframes bbqE {
    0% {
        color: black;
    }
    50% {
        color: #ff0000;
        filter: brightness(0.5);
    }
    100% {
        color: black;
    }
}

.s {
    position: absolute;
    width: 1.5px;
    height: 1.5px;
    background: white;
    border-radius: 90%;
    animation: stars 3s infinite ease-in-out;
}

.s.s1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.s.s2 {
    top: 10%;
    left: 40%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.s.s3 {
    top: 10%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 5s;
}

.s.s4 {
    top: 25%;
    left: 20%;
    animation-delay: 0.5s;
    animation-duration: 3s;
}

.s.s5 {
    top: 25%;
    left: 60%;
    animation-delay: 1.5s;
    animation-duration: 4s;
}

.s.s6 {
    top: 40%;
    left: 15%;
    animation-delay: 2.5s;
    animation-duration: 5s;
}

.s.s7 {
    top: 40%;
    left: 50%;
    animation-delay: 0.8s;
    animation-duration: 3s;
}

.s.s8 {
    top: 40%;
    left: 80%;
    animation-delay: 2.2s;
    animation-duration: 6s;
}

.s.s9 {
    top: 55%;
    left: 30%;
    animation-delay: 1.2s;
    animation-duration: 3s;
}

.s.s10 {
    top: 55%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 5s;
}

.s.s11 {
    top: 70%;
    left: 15%;
    animation-delay: 0.4s;
    animation-duration: 4s;
}

.s.s12 {
    top: 70%;
    left: 50%;
    animation-delay: 2s;
    animation-duration: 2s;
}

.s.s13 {
    top: 70%;
    left: 85%;
    animation-delay: 1.6s;
    animation-duration: 3s;
}

.s.s14 {
    top: 85%;
    left: 25%;
    animation-delay: 2.8s;
    animation-duration: 7s;
}

.s.s15 {
    top: 85%;
    left: 55%;
    animation-delay: 1.1s;
    animation-duration: 4s;
}

.s.s16 {
    top: 85%;
    left: 80%;
    animation-delay: 3.5s;
    animation-duration: 6s;
}

.s.s17 {
    top: 93%;
    left: 35%;
    animation-delay: 0.9s;
    animation-duration: 5s;
}

@keyframes stars {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
    }
    50% {
        opacity: 1;
        transform: scale(1.7);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    }
}

.music {
    position: relative;
    right: 4px;
    width: 650px;
    background-color: #353070;
    margin-top: 20px;
    right: -40px;
}

.music:nth-child(2) {
    height: 500px;
}

.music iframe {
    display: block;
    width: 100%;
    height: 75px;
    background: rgba(0, 0, 0, 0.7);
}


.music:nth-child(2) iframe {
    height: 800px !important;
}

.pin {
    height: 150px !important;
    border: 1px solid rgb(255, 255, 255, 0.9);
    border-radius: 5px;

}

.status {
    height: 200px;
    width: 750px;
    margin-top: -6rem;
    margin-left: -5px;
    position: relative;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    border: 5px solid #508587;
    border-style: ridge;
    content: "";
    background-image: url("/assets/dwarfs.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.changelog {
    height: 465px;
    width: 300px;
    margin-top: -29.2rem;
    margin-left: 50rem;
    position: relative;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    border: 5px solid #508587;
    border-style: ridge;
    content: "";
    background-image: url("/assets/gas.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-variant: small-caps;
    font-weight: bold;
    padding-left: 15px;
    color: var(--lowkey);
    font-size: 20px;
    line-height: 3px;
}

.changelog h2 {
    background-color: #1b2330;
    padding: 10px;
    width: fit-content;
    color: rgb(220, 220, 220);
    margin-bottom: -5px;
}

.changelog li::after {
    content: "";
    display: block;
    width: 90%;
    border-bottom: 3px solid rgba(220, 220, 220, 0.4);
}

.changelog ul {
    padding-left: 10px;
}

.changelog li p:first-of-type {
    background-color: #1b2330;
    width: fit-content;
    padding: 7px;
    margin-bottom: -8px;
}

.changelog li p:nth-child(2) {
    font-size: 15px;
    max-width: 10rem;
    margin-left: 10px;
    padding: 5px;
    width: fit-content;
    background-color: #1b2330;
    line-height: 11px;
    text-transform: lowercase;
}

.Scontainer {
    position: relative;
}

.broadcaster {
    box-sizing: border-box;
    border: 4px solid rgba(70, 130, 180, 0.5);
    border-style: ridge;
    width: 170px;
    height: 170px;
    position: relative;
    margin-left: 20px;
    margin-top: 10px;
    background-image: url(/assets/86anime-lena.gif);
    background-size: 144%;
    background-position: 55%;
}

.messegeBox {
    position: relative;
    background: #1b2330;
    color: var(--lowkey);
    font-family: Arial;
    font-size: 13px;
    line-height: 11px;
    white-space: normal;
    padding: 9px;
    overflow-wrap: break-word;
    text-align: center;
    font-weight: bold;
    width: 500px;
    font-family: inherit;
    height: 54px;
    margin-left: 210px;
    margin-top: -160px;
    box-sizing: border-box;
    border: ridge 3px rgba(70, 130, 180, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.messegeBox:after {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-color: transparent rgb(27, 35, 48, 0.9);
    border-width: 13px 13px 13px 0;
    top: 75%;
    left: -12.5px;
    margin-top: -14px;
}

.statuses {
    display: flex;
    gap: 15px;
    margin-left: 235px;
    margin-top: 25px;
    font-size: 13px;
    font-weight: bold;
    align-items: center;
    align-items: flex-start;
}

.feelingNote {
    box-sizing: border-box;
    color: var(--lowkey);
}

.feelingNote {
    box-sizing: border-box;
    color: var(--lowkey);
}

.focusing {
    box-sizing: border-box;
    color: var(--lowkey);
}

.feelingNote,
.focusing {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
}

.feelingNote h3,
.focusing h3 {
    font-size: 16px;
    text-align: center;
    color: rgb(220, 220, 220);
    background-color: #1b2330;
    box-sizing: border-box;
    padding: 2px 6px;
    margin: 0;
}

.feelingNote p,
.focusing p {
    background-color: #1b2330;
    width: 100%;
    box-sizing: border-box;
    padding: 2px 6px;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
}

.focusing p {
    width: fit-content;
}

.webrings {
    position: absolute;
    bottom: 104px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    z-index: 11;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}

.webrings a:hover {
    color: #8c0000;
    cursor: pointer;
}

.line {
    text-decoration: none;
}

.webrings p {
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
}

.webring h3 {
    cursor: pointer;
}

.webring {
    flex: 1 1 0;
    max-width: 300px;
    height: 40px;
    background: var(--zato-base);
    border: 5px solid var(--panels);
    border-bottom: 0;
    border-style: ridge;
    position: relative;
}

.webring:nth-child(2) {
    max-width: 130px;
    height: 60px;
    display: inline-block;
    text-align: center;
}

.webring:nth-child(1),
.webring:nth-child(3) {
    bottom: -20px;
}

.box {
    box-sizing: border-box;
    background: var(--panel-fill);
    position: relative;
    border: 5px solid #508587;
    border-style: ridge;
    font-size: 18px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.box-beast {
    font-size: 19px;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.crt {
    filter: brightness(0.8);
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.65) 2px,
        rgba(0, 0, 0, 0.65) 4px
    );
}
