@charset "UTF-8";

@font-face {
    font-family: 'RuneScape';
    src: url('../fonts/runescape_uf.eot');
    src: url('../fonts/runescape_uf.eot?#iefix') format('embedded-opentype'),
        url('../fonts/runescape_uf.woff') format('woff'),
        url('../fonts/runescape_uf.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --color-text: #C5C5C5;
    --color-link: #BA4DE2;
    --color-link-hover: #D37AF3;
    --color-link-disabled: #6C6C6C;
    --color-code: #D5BAF2;
    --color-section-outline: #FFFFFF;
    --color-border: #A0A0A0A0;
    --grid-margin: 10px;

    --color-header-1: #E4ADFA;
    --color-header-2: #FBBEFF;
    --color-header-3: #FFD0FF;
    --color-header-4: #FFE1FF;
    --color-header-5: #FFF2FF;
    --color-header-6: #FFFFFF;

    --cur-regular: url('../cursor/regular.png');
    --cur-pointer: url('../cursor/pointer.cur');
}

html {
    min-height: 100%;
    position: relative;
    cursor: var(--cur-regular), auto;
}

body {
    overflow-x: hidden;
    image-rendering: pixelated;
    font-family: Courier, monospace;
    background-image: url('../image/background.gif');
    background-attachment: fixed;
    color: var(--color-text);
}

.container {
    display: grid;
    grid-gap: var(--grid-margin) calc(var(--grid-margin) * 2);
    gap: var(--grid-margin) calc(var(--grid-margin) * 2);
    max-width: 1000px; /* I randomly thought of this number lol */
    width: 100%;
    margin: 0 auto;
    grid-template: "header header" auto "sidebar main" auto "footer footer" auto / 250px auto;
}

header {
    position: relative;
    width: fit-content;
    margin-bottom: 40px;
    padding-top: 10px;
    text-align: center;
    grid-area: header;
}

header img {
    display: block;
    margin: auto;
    width: 95%;
}

@keyframes splashpulse {
    0% { transform: translateX(-50%) rotateZ(-15deg) scale(1); }
    50% { transform: translateX(-50%) rotateZ(-15deg) scale(0.9); }
    100% { transform: translateX(-50%) rotateZ(-15deg) scale(1); }
}

header .splashmsg {
    position: absolute;
    top: 90%;
    left: 80%;
    transform: translateX(-50%) rotateZ(-15deg);
    font-weight: 900;
    font-size: 22px;
    color: #FFE141;
    text-shadow: 3px 3px 2px #000;
    overflow-wrap: break-word;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    animation: splashpulse 0.75s infinite linear;
}

aside {
    width: 250px;
    grid-area: sidebar;
}

aside nav ul {
    line-height: 1;
    padding: 0;
    list-style: none;
}

aside nav ul hr {
    margin: 5px 10px;
    color: var(--color-border);
}

aside nav ul h3 a { color: inherit; }

aside nav ul h3:not(:first-child) { margin-top: 20px; }

aside nav ul li { margin: 2px auto; }

aside nav ul li a::before { content: "❥ "; }

aside nav ul li.disabled a {
    color: var(--color-link-disabled);
    pointer-events: none !important;
}

aside nav ul li a {
    display: inline-block;
    padding: 5px 10px;
    width: calc(100% - 20px);
    font-size: 20px;
    font-weight: bolder;
    transition: all .25s ease-in;
}

aside nav ul li a:hover,
aside nav ul li a:focus,
aside nav ul li a:focus-within {
    text-decoration: solid;
    padding: 5px 20px;
    width: calc(100% - 40px);
}

main {
    width: 100%;
    grid-area: main;
}

footer {
    text-align: center;
    padding-top: 25px;
    padding-bottom: 15px;
    grid-area: footer;
    font-size: 18px;
}

footer a { margin: 0 10px; }

#skip-to-content {
    position: fixed;
    top: 0;
    left: 0;
    display: inline-block;
    color: #FFFFFF;
    background-color: #DA8BFF7C;
    font-size: 1.5rem;
    padding: 0.25rem;
    text-decoration: none;
    transform: translateX(-15rem);
    transition: transform 0.2s ease-in;
    z-index: 999999999999;
}

#skip-to-content:focus,
#skip-to-content:focus-within { transform: translateX(0); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Runescape', sans-serif;
    margin: 5px auto;
}

h1 {
    font-size: 34px;
    color: var(--color-header-1);
}

h2 {
    font-size: 30px;
    color: var(--color-header-2);
}

h3 {
    font-size: 26px;
    color: var(--color-header-3);
}

h4 {
    font-size: 22px;
    color: var(--color-header-4);
}

h5 {
    font-size: 18px;
    color: var(--color-header-5);
}

h6 {
    font-size: 14px;
    color: var(--color-header-6);
}

p {
    margin: 10px auto;
    font-size: 20px;
}

a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 600;
    cursor: var(--cur-pointer), auto;
}

a:hover { color: var(--color-link-hover); }

a.disabled {
    pointer-events: none;
    filter: saturate(.2);
}

.hidden-link,
.hidden-link:hover {
    cursor: var(--cur-regular), auto;
    color: inherit;
    font-weight: initial;
}

section {
    padding: 8px 16px;
    margin-bottom: calc(var(--grid-margin) * 1.5);
    border-radius: 5px;
    border: 2px solid var(--color-border);
    background-color: #2D004280;
}

.emoji {
    image-rendering: auto;
    display: inline-block;
    position: relative;
    min-width: 20px;
    min-height: 20px;
    vertical-align: bottom;
    max-height: 1.2em;
}

p .emoji { height: 1.25em ;}

.hidden { display: none; }

/* Stinky hack :p */
br { margin-bottom: .25em; }

hr { color: var(--color-border); }

/* hr but I think its cooler :3 */
.hr-gap { margin: 18px 5px; }

code {
    font-weight: 900;
    font-size: .875em;
    word-wrap: break-word;
    color: var(--color-code);
    font-family: Unifont, sans-serif;
}

.pointer { cursor: var(--cur-pointer), auto; }
