:root {
    --black: rgb(8, 4, 16);
    --purple: rgb(84, 41, 110);
    --yellow: rgb(229, 187, 167);
    --gradientbg: linear-gradient(var(--black), #1B0D28);
    scrollbar-color: var(--purple) var(--black) !important;
    scrollbar-width: thin !important;
}

::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--purple);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

::-moz-selection {
  color: white;
  background: var(--purple);
}

::selection {
  color: white;
  background: var(--purple);
}

@keyframes slide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 103px;
  }
}

body {
    background-color: var(--black);
    background-image: url("/res/bg/checker.png");
    background-repeat: repeat;
    animation: slide 5s linear infinite;
    color: var(--yellow);
    font-family: "perfectdos", monospace;
    line-height: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

h3 {text-decoration: underline}

a {
    color: var(--yellow);
}

a:hover {
    text-decoration: none;
}

a:visited {
    color: var(--yellow);
}

@font-face {
    font-family: "perfectdos";
    src: url("/res/font/perfectdos.ttf") format("truetype");
}

.truecenter {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 48%); /* oops! not true center i lied */
    width: 900px;
    height: 800px;
}

.center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.mainflex {
    display: flex;
    align-content: center;
    flex-direction: column;
    margin: auto;
    width: 900px;
}

.pageheader {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 900px;
    height: 200px;
    margin-top: 38px;
    top: 0px;
    z-index: 5;
}

#header_overlap {
    transform: translateY(20px);
    margin-top: 10px;
}

#header_wrap {
    text-align: center;
}

.title {
    display: inline;
    vertical-align: middle;
    z-index: 5;
    margin: auto;
    image-rendering: pixelated;
    width: 100%;
    position: relative;
}

.title:hover {
    width: 101%;
    transform: translateX(-3px);
}

#clouds {
    width: 100%;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    top: 0px;
    left: 0px;
    position: absolute;
}

.header_margin {
    margin-bottom: 165px;
}

.flexbox {
    display: flex;
}

.relative {
    position: relative;
}

.right {
    margin-left: 25px;
}

.subscript {
    font-size: 13px;
}

button {
    background-color: var(--black);
    color: var(--yellow);
    font-family: "perfectdos", monospace;
    border-color: var(--purple);
    border-style: solid;
    padding: 6px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    letter-spacing: 2px;
}

#background {
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    z-index: -1;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
}


@media screen and (max-width: 1300px) {
    .header_margin {margin-bottom: 20px;}
}

@media screen and (max-width: 850px) {
    .truecenter {
        transform: none;
        position: static;
        width: 100%;
        height: auto;
    }
    
    .mainflex {
        width: 100% !important;
    }
    
    #a {
        margin: 0px;
        overflow: hidden;
        float: none;
        transform: none;
        left: auto;
        width: 100%;
    }
    
    .pageheader {
        width: 100%;
        margin-top: 0px;
        height: auto;
        position: static;
    }
    
    #clouds {
        width: 100%;
    }
    
    #header_overlap {
        transform: none;
    }
}

@media screen and (max-width: 1079px) and (min-width: 851px) {
    .truecenter {
        width: 100%;
        transform: none;
        position: inherit;
        height: 100%;
        overflow-x: hidden;
    }
}