* {
    box-sizing: border-box;
    margin: 0;
    overflow: hidden;
}

body,
html {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    user-select: none;
}

body {
    background-color: #000;
    color: var(--font-color);
    font-family: Jackeyfont;
    letter-spacing: 0.001em;
    font-size: 14px;
}

#crt {
    background-image: url('pixel.apng');
    background-size: 2px 1px;
    background-repeat: repeat;
    background-color: #fff;
    background-blend-mode: hard-light;
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: 0.4;
    /* Force hardware acceleration for better APNG performance */
    transform: translateZ(0);
    will-change: background-image;
}

#crt {
    position: fixed;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9999
}

/* Firefox-specific APNG fixes */
@-moz-document url-prefix() {
    #crt {
        opacity: 0.3;
        /* Force Firefox to properly animate APNG */
        background-attachment: scroll;
        background-position: 0 0;
    }
}

/* Safari/WebKit APNG fixes */
@supports (-webkit-appearance: none) {
    #crt {
        opacity: 0.4;
        /* Ensure WebKit properly handles APNG */
        -webkit-background-size: 2px 1px;
        background-size: 2px 1px;
        background-attachment: scroll;
    }
}

/* Mobile browser APNG optimizations */
@media (max-width: 768px) {
    #crt {
        opacity: 0.3;
        /* Reduce APNG size on mobile for better performance */
        background-size: 1px 0.5px;
        /* Force mobile browsers to animate APNG */
        transform: translate3d(0, 0, 0);
    }
}

/* High DPI displays - adjust APNG size */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #crt {
        background-size: 1px 0.5px;
    }
}

img { image-rendering: crisp-edges; }

h1, h3, p { margin: 0; padding: 0; }

a { text-decoration: none; color: inherit; }

div,
img {
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    image-rendering: optimizeSpeed;
    image-rendering: optimize-contrast;
}

@font-face {
    font-family: Jackeyfont;
    src: url(fonts/jackeyfont.woff);
}

a, p { font-family: Jackeyfont; }

:root {
    --purplesaur: #008080;
    --purpleHelmet: #034040;
    --blueish: #000033;
    --trueGreen: #034040;
    --font-color: #ffffff;
}

desktop {
    display: flex;
    background-color: teal;
}

.content {
    z-index: 13;
    left: 72px;
    position: relative;
    width: 720px;
    height: 592px;
    border: 4px inset var(--trueGreen);
}

.icon {
    width: 108px;
    height: 108px;
    margin: 16px;
    display: flex;
    justify-content: center;
    flex-flow: column wrap;
    align-items: center;
}

.icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

.icon p {
    text-shadow: 4px 4px 1px #000;
    text-align: center;
}

.icon:hover {
    border: 2px dashed var(--trueGreen);
}

#os {
    border: 8px ridge var(--trueGreen);
    padding: 2em;
    width: fit-content;
}

.window {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

.container {
    width: 150px;
    height: 10px;
    border: 2px solid #b2b2b2;
    border-radius: 7px;
    margin: 0 auto;
    padding: 2px 1px;
    overflow: hidden;
    font-size: 0;
}

.box {
    width: 9px;
    height: 100%;
    background: linear-gradient(to bottom,
            #2838c7 0,
            #5979ef 17%,
            #869ef3 32%,
            #869ef3 45%,
            #5979ef 59%,
            #2838c7 100%);
    display: inline-block;
    margin-right: 2px;
    animation: loader 2s infinite;
    animation-timing-function: linear;
}

.logo {
    width: 220px;
    margin: 50px auto;
}

.logo p {
    margin: 0;
    padding: 0;
    font-family: Roboto, sans-serif;
    padding-bottom: 10px;
}

.top {
    font-size: 16px;
    font-weight: 300;
    line-height: 16px;
}

.top:after {
    content: "\00a9";
    font-size: 10px;
    position: relative;
    top: -5px;
    margin-left: 2px;
}

.mid {
    font-size: 46px;
    font-weight: 700;
    line-height: 36px;
}

.mid span {
    font-size: 22px;
    display: inline-block;
    vertical-align: top;
    color: #ff6821;
    margin-top: -8px;
    font-family: Roboto, sans-serif;
}

.logo .bottom {
    font-size: 30px;
    font-weight: 300;
    line-height: 30px;
    margin-left: 5px;
}

@keyframes loader {
    0% {
        transform: translate(-30px);
    }

    100% {
        transform: translate(150px);
    }
}

@media (pointer: coarse) {
    .content {
        width: calc(100% - 72px);
        height: 100%;
    }

    .icon {
        margin: 12px;
        width: 112px;
        height: 112px;
        border: 4px outset var(--trueGreen);
    }

    .icon img {
        width: 64px;
        height: 64px;
        margin: 4px;
    }

    .icon:active {
        border: 4px inset var(--trueGreen);
    }

    .icon:hover {
        border: 4px outset var(--purplesaur);
    }

    #os {
        width: 90%;
    }
}

@keyframes colorRotate {
    from {
        color: red;
    }

    10% {
        color: orange;
    }

    50% {
        color: #ff0;
    }

    75% {
        color: green;
    }

    100% {
        color: #00f;
    }
}

.green {
    color: #004300;
}

.red {
    color: #9b0000;
}

@media only screen and (max-width: 600px) {
    .text-container {
        width: 90%;
        margin: 0 auto;
        max-width: 100%;
    }

    .ichi {
        max-width: 90%;
        left: 10px;
        text-align: left !important;
    }

    .ichi p {
        max-width: 100%;
        margin: 0 auto;
        font-size: 1em;
        padding-top: 10px;
        text-align: left !important;
    }

    body {
        font-size: 12px;
    }

    .anim-typewriter {
        animation: typing 1s steps(30, end) infinite;
        animation-direction: normal;
        text-align: left !important;
        margin-left: 0;
    }
}

:root   {
    --width: 800px;
    --height: 600px;
}

.load {
    position: fixed; 
    width: 100%; 
    top: 0; 
    bottom: 0; 
    right: 0; 
    left: 0;
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 0;
}

.一    {animation: 一 0.5s step-end;}
.二    {animation: 一 3s step-end;}
.三    {animation: 一 3s step-end;}
.四    {animation: 一 3.5s step-end;}
.五    {animation: 一 7s step-end;}

@keyframes 一 {
    0%      {opacity: 0;}
    100%    {opacity: 1;}
}

.ichi, .ni, .san, .roku, .nana, .hachi, .juu, .tsumi
         {position: fixed; width: var(--width); height: var(--height);}

.ichi    {z-index: 1;   }
.ni      {z-index: 2;   background-color: black;}
.san     {z-index: 3;}
.shi     {z-index: 4;}

@media (pointer: coarse){
    .go  {width: calc(100%); height: calc(100%);}
    .ichi, .ni, .san, .roku, .nana, .hachi, .juu, .tsumi 
         {width: 100%; height: 100%;}
}

.anim-typewriter{
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter .5s steps(55) 1s 1 normal both,
               blinkTextCursor 500ms steps(55) infinite normal;
  }
  @keyframes typewriter{
    from{width: 0;}
    to{width: 24em;}
  }
  @keyframes blinkTextCursor{
    from{border-right-color: rgba(255,255,255,.75);}
    to{border-right-color: transparent;}
  }

.anim {
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter .5s steps(55) 1.5s 1 normal both,
               blinkTextCursor 500ms steps(55) infinite normal;
}

.anim2 {
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter .5s steps(88) 2s 1 normal both,
        blinkTextCursor 500ms steps(55) infinite normal;
}