@font-face {
    font-family: retron;
    src: url(fonts/Retron2000.ttf);
}

:root {
    --color0: #fff0da; /*text colour*/
    --color1: #5a3030; /*primary*/
    --color2: #482f2f; /*secondary*/
    --color3: #261919; /*background*/
    --color4: #e9d5b6; /*border colour*/
    --color5: #ff4e56; /*link colour*/
}

* {
    padding: 0;
    margin: 0;
    font-family: "Courier New", "Courier", monospace;
    font-weight: bold;
    user-select: none;
    cursor: url(cursor.png), pointer;
}

body {
    background-color: #ff0000;
    background-image: url("vignette.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
    text-align: center;
    color: var(--color0);
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: fadeInAnimation ease 86400s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% { opacity: 1 }
    100% { opacity: 0 }
}

.doABarrelRoll {
    animation: roll 4s 1;
    -moz-animation: roll 4s 1;
    -webkit-animation: roll 4s 1;
}

@keyframes roll {
    0% { transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
}

.exploding {
    animation: explode 8s 1 forwards;
    -moz-animation: explode 8s 1 forwards;
    -webkit-animation: explode 8s 1 forwards;
}

@keyframes explode {
    0% { transform: scale(1, 1) }
    100% { transform: scale(60, 60) }
}

.white {
    background-color: #ffffff00;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    animation: fadeToWhite ease-out 4s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeToWhite {
    0% { background-color: #ffffff00 }
    100% { background-color: #ffffffff }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color2);
    box-shadow: inset 0 0 5px var(--color3);
}

::-webkit-scrollbar-thumb {
    background: var(--color4);
    border-radius: 10px;
}

#wall {
    background: #000000bb;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#wall button {
    position: fixed;
    top: 40%;
    left: 50%;
    width: 100px;
    transform: translate(-50%, -50%);
}

#canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#top {
    position: relative;
    margin-top: 20px;
    width: 100%;
}

#title {
    background: var(--color1);
    margin: 0 10px;
    border-width: 12px;
    border-radius: 18px;
    border-style: solid;
    border-color: var(--color4);
    padding: 12px;
    width: fit-content;
    height: 70px;
    box-shadow: 0px 0px 10px 0px black;
}

#title img { width: 100% }

#login {
    position: absolute;
    top: 1px;
    right: 6px;
}

#main {
    margin: auto;
    padding-top: 20px;
    position: relative;
    width: 920px;
    height: 100%;
}

#splashbox {
    background: #000000;
    margin: 0 10px;
    margin-top: 20px;
    border-width: 4px;
    border-radius: 6px;
    border-style: double;
    border-color: #008000;
    padding: 12px;
    min-height: 24px;
    cursor: url(cursor-splash.png), auto;
}

#splashtext {
    font-family: retron;
    font-size: 16px;
    font-weight: 100;
    color: #00ff00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: url(cursor-splash.png), auto;
}

#submain {
    margin-top: 20px;
    border-spacing: 10px 0;
}

#submain td {
    background: var(--color2);
    border-width: 8px;
    border-radius: 12px;
    border-style: solid;
    border-color: var(--color4);
    vertical-align: top;
    box-shadow: 0px 0px 10px 0px black;
}

#nav { position: relative }

hr {
    border: none;
    border-top: 4px solid var(--color4);
    width: 100%;
}

#keypad {
    position: absolute;
    bottom: 0;
}

#content { width: 100% }

.itch {
    background: var(--color1);
    margin: 10px;
    border-width: 4px;
    border-radius: 6px;
    border-style: solid;
    border-color: var(--color4);
    position: relative;
    height: 143px;
    text-align: left;
    display: flex;
}

.itch div { float: left }

.vr {
    border-left: 4px solid var(--color4);
    height: 100%;
}

.itch h2 {
    font-size: 24px;
    padding: 6px 12px;
}

.itch p {
    font-size: 12px;
    font-weight: 100;
    padding: 0 12px;
}

.itch-buttons {
    border-top: 4px solid var(--color4);
    position: absolute;
    bottom: 0;
    left: 184px;
}

.itch button { width: 223px }

#play-on-itch { width: 446px }

#cat {
    position: absolute;
    bottom: -400px;
    left: -400px;
}

#catimg {
    cursor: url(hand.png) 16 16, auto;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#catimg:hover { transform: translateX(350px) }

#hidden {
    color: #00000000;
    position: fixed;
    bottom: 8px;
    right: 10px;
    transition: color 1s ease-in-out;
}

h3 { cursor: url(cursor-help.png), auto }

#hidden:hover { color: var(--color0) }

#tardis {
    position: fixed;
    top: 0%;
    left: -10%;
    width: 10%;
    height: auto;
    animation: tardisFly linear 3s;
    animation-iteration-count: 1;
    animation-delay: 120s;
    z-index: 15;
}

.dematerialise {
    transition: 2s;
    opacity: 0%;
}

@keyframes tardisFly {
    0% { top: 20%; left: -10% }
    100% { top: 60%; left: 100% }
}

h1 { font-size: 40px }

#field {
    color: #00000000;
    margin: 10px;
    font-size: 10px;
    user-select: auto;
}

a {
    color: var(--color0);
    text-decoration: none;
}

button {
    background: #82272c;
    margin: 0;
    border-width: 3px;
    border-top: 1px;
    border-bottom: 6px;
    border-radius: 4px;
    border-style: outset;
    border-color: #9e2f35;
    padding: 0;
    width: 200px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    white-space: nowrap;
    float: left;
    cursor: url(cursor-pointer1.png) 6 2, pointer;
    animation: cursor 400ms infinite;
    transition: background 0.05s ease-in-out, border-color 0.1s ease-in-out;
}

@keyframes cursor {
    10% { cursor: url(cursor-pointer2.png) 6 2, pointer }
    50% { cursor: url(cursor-pointer3.png) 6 2, pointer }
    60% { cursor: url(cursor-pointer4.png) 6 2, pointer }
    85% { cursor: url(cursor-pointer2.png) 6 2, pointer }
}

button:hover {
    background: var(--color5);
    border-color: var(--color5);
}

#login-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    width: fit-content;
    height: fit-content;
    font-size: 16px;
    color: var(--color0);
}

.media-btn {
    padding: 5px;
    width: 40px;
}

.media-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 90%;
    pointer-events: none;
}

.media-btn:hover img {
    opacity: 80%;
}

#null {
    background: #4b4141;
    border-style: inset;
    border-color: #473d3d;
    pointer-events: none;
    opacity: 50%;
}

#youtube {
    background: #860000;
    border-color: #a10000;
}

#curseforge {
    background: #7a2b00;
    border-color: #a33800;
}

#twitch {
    background: #3c2763;
    border-color: #3c2763;
}

#bluesky {
    background: #0f527c;
    border-color: #13699e;
}

#youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

#curseforge:hover {
    background: #ff5700;
    border-color: #ff5700;
}

#twitch:hover {
    background: #6441a5;
    border-color: #6441a5;
}

#bluesky:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.nav-btn {
    padding: 0 6px;
    text-align: left;
    font-size: 14px;
    font-weight: 100;
}

@font-face {
    font-family: uthyr;
    src: url(uthyr/fonts/stowe-titling/STOWE___.otf);
}

@font-face {
    font-family: facility;
    src: url(facility/fonts/cyberdyne/cyberdyne.ttf);
}

@font-face {
    font-family: facility-prime;
    src: url(facility-prime/fonts/bugaki/Bugaki.ttf);
}

#uthyr {
    font-family: uthyr;
    font-size: 20px;
}

#facility { font-family: facility }

#facility-prime { font-family: facility-prime }

.keypad {
    background: #756464;
    border-color: #816e6e;
    width: 50px;
    height: 30px;
}

.keypad:hover {
    background: #d3bbbb;
    border-color: #d3bbbb;
}

.enter {
    width: 50px;
    height: 30px;
}