:root {
    --black: rgb(8, 4, 16);
    --purple: rgb(84, 41, 110);
    --purple-brighter: rgb(141, 80, 179);
    --yellow: rgb(255, 206, 183);
    --orange: rgb(241, 118, 47);
    --lightorange: rgb(241, 149, 95);
    --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: black;
  background: var(--orange);
}

::selection {
  color: black;
  background: var(--orange);
}

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

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

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

h3 {text-decoration: underline}

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

a:hover {
    text-decoration: none;
}

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

@font-face {
    font-family: "perfectdos";
    src: url("../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;
    filter: drop-shadow(0px 0px 10px rgba(241, 118, 47, 0.3));
    margin-top: 15px;
}

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

#tagline {
    position: absolute;
    z-index: 1;
    font-size: 22px;
    bottom: -6px;
    filter: drop-shadow(2px 2px 2px var(--black)) drop-shadow(0px 0px 15px var(--orange));
}

#clouds {
    z-index: 1;
    pointer-events: none;
    user-select: none;
    position: absolute;
    filter: drop-shadow(0px 0px 10px rgba(42, 7, 90, 0.8));
}

.header_margin {
    margin-bottom: 165px;
}

.flexbox {
    display: flex;
}

.relative {
    position: relative;
}

.right {
    margin-left: 25px;
}

.subscript {
    font-size: 13px;
}

.underline {
    text-decoration: underline;
}

.italic {
    font-style: italic;
}

.text-drop-shadow {
    filter: drop-shadow(0px 0px 10px rgba(255, 206, 183, 0.5));
}

.window {
    border: 1px var(--purple) solid;
    border-radius: 5px;
    filter: drop-shadow(0px 0px 10px rgba(84, 41, 110, 0.6));
    background-image: linear-gradient(var(--black), #130721);
}

button {
    background-color: var(--black);
    color: var(--orange);
    font-family: "perfectdos", monospace;
    border: 1px solid var(--purple);
    border-radius: 5px;
    padding: 6px;
    cursor: pointer;
    font-size: 16px;
    background-image: var(--gradientbg);
}

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

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

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

#background-back {z-index: -3;}
#background-front {z-index: -1;}

.topbar {
    height: 25px;
    width: 100%;
    border-bottom: solid 1px var(--purple);
    background: linear-gradient(to right, var(--black), #1B0D28);
    position: relative;
    top: 0;
}

.topbar > img {
    position: absolute;
    right: -5px;
    pointer-events: none;
    user-select: none;
}

.topbar > h1 {
    position: absolute;
    top: 0;
    margin: 5px;
    margin-left: 7px;
    font-size: 16px;
}

.frill {
    width: 100%;
    height: 25px;
    position: fixed;
    background-image: url("/res/asset/landing/halloween/bg_frill.png");
    left: 0;
    pointer-events: none;
    user-select: none;
    z-index: 10;
}

.frill.top {
    transform: scale(-1);
    top: 0;
}

.frill.bottom {
    bottom: 0;
}


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

@media screen and (max-width: 1088px) {
    .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;
        flex-direction: column;
    }

    #tagline {
        bottom: auto;
        position: relative;
        margin: 0;
        transform: translate(65px, -15px);
    }
    
    #clouds {
        width: 100%;
    }
    
    #header_overlap {
        transform: none;
    }
}

@media screen and (max-width: 500px) {
    #tagline {
        font-size: 16px;
        transform: translate(40px, -15px);
    }
}

@media screen and (max-width: 304px) {
    #tagline {display: none;}
}

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