:root{
    --main-light: #EAE7DE;
	--main-dark: #111111;
    --transparent-dark: #111111fb;
	--second-dark: #181818;
	--grey: #181818;
	--purple: #78589d;
    --orange: #c58c65;
}
  .debug{
    border: solid 1px red;
}

@font-face {
    font-family: "courier prime";
    src: url("font/CourierPrime-Regular.ttf");
}

@font-face{
    font-family: "ms gothic";
    src: url("font/msgothic.ttf");
}

@font-face {
    font-family: "dos";
    src: url("font/Px437_DOS-V_TWN16.ttf");
}

@font-face {
    font-family: "alagard";
    src: url("font/alagard.ttf");
}

/* scrollbar*/
::-webkit-scrollbar{
    width: 5px;
}

::-webkit-scrollbar-track{
    background: var(--pruple);
}

::-webkit-scrollbar-thumb{
    background: var(--main-light);
}

  
  body{
    margin: 0;
    padding: 0;
    
    font-size: 18px;
    word-break: break-word;
    
    background-color: var(--main-dark);
    color: var(--main-light);
     
     
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}


h1, h2, h3, h4{
    font-family: "dos";
    margin: 8px 0px;
    letter-spacing: 2px;
    font-weight: 400;
}

h1{
    font-size: 2.75em;
}

h1.biggerh1{
    font-size: 4em;
}

h2{
    font-size: 2em;
}

h3 {
    font-size: 1.4em;
}

h4 {
    margin: 0px;
}

b{
    letter-spacing: 2px;
}

pre{
    font-family: "courier prime";
    border: solid 2px var(--orange);
    color: var(--orange);
    background-color: var(--second-dark);
    padding: 10px;
}

code {
    font-family: "courier prime";
    color: var(--orange);
    font-size: 0.9em;
    padding: 2px 5px;
    background-color: var(--second-dark);
    border-radius: 2px;
    overflow-wrap: break-word;
}

code.precode{
    border: solid 2px var(--orange);
    padding: 10px;
}

hr{
    border: solid 1px var(--main-light);
    width: 70%;
}

hr.bighr{
    border: solid 2px var(--main-light);
    width: 90%;
}

hr.fullhr{
    width: 100%;
}

hr.subtitlehr{
    width: 40%;
    float: left;
}

ul {
    list-style-type: square;
}

ul, ol{
    margin-left: 60px;
}

ul ol, ol ul, ol.noindent, ul.noindent{
    margin-left: 0px;
}

ul ol, ol ul, ol.halfindent, ul.halfindent{
    margin-left: 30px;
}

s{
    text-decoration-thickness: 2px;
}

q{
    font-style: italic;
}

p.q span{
    float: right;
}

p.q span::before{
    content: "- ";
}

p.framed{
    color: var(--orange);
}

iframe{
    width: 47vw;
    height: 28vw;

    border: solid 2px var(--main-light);
}

iframe.fourthree{
    width: 40em;
    height: 30em;
}

nav,
.navbar{
    position: fixed;
    background-color: var(--main-dark);
    width: 100vw;

    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

nav a,
.navbar a{
    color: var(--main-light);
    text-decoration: none;
}

nav div,
.navbar div{
    padding: 5px;
    margin: 0 10px;
}

.botbar{
    background-color: var(--main-dark);
    width: 100%;

    position: fixed;
    bottom: 0%;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.botbar a{
    color: var(--main-light);
    padding: 5px 10px;

    text-align: center;
}

.botbar a:last-child{
    margin-left: auto;
}

a{
    color: var(--purple);
}

a:hover{
    color: var(--main-light);
    background-color: var(--purple);
}

a.hiddenlink{
    color: var(--main-light);
    text-decoration: none;
}

a.hiddenlink:hover{
    background-color: transparent;
}

a.buttona{
    background-color: var(--purple);
    color: var(--main-light);
    padding: 6px 10px;
    margin-top: 100px;
    line-height: 45px;
    border: ridge 4px var(--purple);

    text-align: center;
}

a.buttona:hover{
    background-color: var(--main-light);
    color: var(--purple);
}

.invisible{
    color: transparent;
}

.invisible.invisiblespoiler:hover{
    color: inherit;
}

hr.invisible{
    border: solid 1px transparent;
    width: 99%;
}

.webbuttons a:hover{
    background-color: transparent;
}

img.webbutton{
    width: 88px;
    height: 31px;

    vertical-align: middle;
}

.webbuttons img{
    width: 88px;
    height: 31px;

    padding: 2px;
}


.centertext{
    text-align: center;
}

p.backtotop, .smalltext{
    font-size: 0.7em;
}

.spoiler{
    color: var(--main-light);
    background-color: var(--main-light);
}

.spoiler:hover{
    color: inherit;
    background-color: inherit;
}

.spoiler a{
    color: var(--main-light);
}

.spoiler:hover a{
    color: var(--purple)
}

.spoiler:hover a:hover{
    color: var(--main-dark);
}

.indent{
    padding-left: 35px !important;
}
.indent2{
    padding-left: 70px !important;
}

.orange{
    color: var(--orange);
}

.purple{
    color: var(--purple)
}

.fantasy{
    font-family: "alagard";
}

.wborder{
    border: solid 2px var(--main-light);
}

.img-vertical-flip {
    -webkit-transform: scale(-1, -1);
    -moz-transform: scale(-1, -1);
    -o-transform: scale(-1, -1);
    transform: scale(-1, -1);
}

/********* content blocks *********/
.mainwindow{ 
    position: absolute;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    

    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    
    /*
    want to move away from using this padding rule
    keeping it for legacy reasons for now, but need to manually fix it in a lot of dif places
    todo: about, files, logs, links
    */
    padding: 0px 20px; 


    border: ridge 6px var(--main-light);
    background-color: var(--transparent-dark);

    overflow-y: scroll;
}

.mainwindow-mainbody{
    padding: 0px 20px;
}

.mainwindow-wide{
    max-width: none;
    width: 80vw;
}

.mainwindow p{
    padding: 0px 20px;
}


.fullheightwindow{
    min-height: 88vh;
}
body::before{ 
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(20, 20, 20, 0) 66%, rgba(0, 0, 0, 0.20) 33%);
    background-size: 100% 3px;
    z-index: 9999;
    pointer-events: none;
    
    animation: scanlines-anim 0.7s linear infinite;
}

@keyframes scanlines-anim{
    0% {
		background-position: 0px 0px;
	}
	100% {
        background-position: 0px 9px;
	}
}


@media only screen and (orientation: portrait){

    .mainwindow{
        width: 90vw;
    }

    p{
        font-size: 0.9em;
    }
    .filewindow{
        width: 90vw;
    }
    
    nav #status,
    .navbar #status{
        width: 40%;
        text-align: right;
    }

    /********* scanlines **********/
    body::before{
        background-size: 100% 4px;
    }
}