:root {
    --themegreen: #B0D88C;
    --themeblue: #4A7AE2;
    --themeyellow: #FFCE54;
    --themepink:  #ff72c0;
    --bodyfont: "Terminal Grotesque", "Calibri", Helvetica, sans-serif;
}


@font-face {
    font-family: 'Terminal Grotesque';
        src: url('/fonts/terminal-grotesque.ttf')  format("truetype");
    }

body{
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: 0;
    background-color: var(--themeblue);
    background-image: url(/img/bg.png);
    background-repeat: repeat-x;

}

* {
    font-family: var(--bodyfont);
}

h1 {
    padding: 0;
    margin: 0;
}

a {
    color: var(--themegreen);
}

a:visited {
    color: var(--themepink)
}

a:hover {
    color: var(--themeblue);
}



#container {
    width: 1000px;
    max-width: 100%;
    align-self: center;
    display: grid;
}



#header {
    grid-area: header;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-bottom: 15px;
}


#banner {
    place-self: center;
    margin: 20px 50px;
}

#banner img {
    max-width: 100%;
}

#menu {
    width: 100%;
    height: 35px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}



.taskbar {
    height: 100%;
    max-height: 35px;
}

#headerarchive {
    margin-left: -16px;
}

#headerabout {
    margin-left: -16px;
}

#headercharacters {
    margin-left: -16px;
}

#headeraboutmobile {
    margin-left: -16px;
}

#headernews {
    margin-left: -16px;
}

#headerextras {
    margin-left: -16px;
}

#headerextrasmobile {
    margin-left: -16px;
}

#barend {
    margin-left: -10px;
}

#barendmobile {
    margin-left: -10px;
    display: none;
}


.headerimg {
    display: block;
}

a:hover .headerimg{
    display: none;
}

.headerimghover {
    display: none;
}

a:hover .headerimghover{
    display: block;
}

#headercharactersmobile{
    display: none;
}

#headeraboutmobile{
    display: none;
}

#headerextrasmobile{
    display: none;
}

@media screen and (max-width: 960px) and (min-width: 504px){

    #banner {
        margin: 15px 0 80px 0;
    }

    #menu {
        flex-wrap: wrap;
        max-width: 600px;
        min-width: 504px;
        justify-self: right;
        margin-top: -70px;
    }

    #headercharacters{
        display: none;
    }

    #headercharactersmobile{
        display: block;
    }

    #headerabout{
        display: none;
    }

    #headeraboutmobile{
        display: block;
    }

    #barend {
        display: none;
    }

    #barendmobile {
        display: block;
    }

}

@media screen and (max-width: 504px) {

    #banner {
    margin: 15px 0 80px 0;
    }

    #menu {
        flex-wrap: wrap;
        max-width: 600px;
        justify-self: right;
        margin-top: -64px;
    }

    #headercharacters{
        display: none;
    }

    #headercharactersmobile{
        display: block;
    }

    #headerabout{
        display: none;
    }

    #headeraboutmobile{
        display: block;
    }

    #headerextras{
        display: none;
    }

    #headerextrasmobile{
        display: block;
    }

    #barend {
        display: none;
    }

    #barendmobile {
        display: none;
    }

    .taskbar {
    height: auto;
    max-height: calc(100vw / 13);
    object-fit: cover;
}

}



/* images as background images
#menu div {
    background-origin: border-box;
    background-repeat: no-repeat;
}

#menu div:not(:first-child) {
    margin-left: -10px;
}

#headerhome {
    background-image: url(/img/header/home.png);
    width: 98px;
}

#headerhome:hover {
    background-image: url(/img/header/homehover.png);
}

#headerarchive {
    background-image: url(/img/header/archive.png);
    width: 103px;
}

#headerarchive:hover {
    background-image: url(/img/header/archivehover.png);
}

#headerabout {
    background-image: url(/img/header/about.png);
    width: 103px;
}

#headerabout:hover {
    background-image: url(/img/header/abouthover.png);
    width: 103px;
}

#headernews {
    background-image: url(/img/header/news.png);
    width: 103px;
}

#headernews:hover {
    background-image: url(/img/header/newshover.png);
}

#barend {
    background-image: url(/img/header/barend.png);
    width: 41px;
}
*/


.firstlastnavimg {
    display: block;
}

a:hover .firstlastnavimg{
    display: none;
}

.firstlastnavimghover {
    display: none;
}

a:hover .firstlastnavimghover{
    display: block;
}


footer {
    font-size: 10pt;
    text-align: center;
    background-color: var(--themeblue);
    color: white;
    padding: 5px 0;
}