/* Base */
@font-face
{
  font-family: "gg2bold";
  font-style: normal;
  font-weight: 400;
  src: url("/img/gg2bold.woff") format('woff');
}

html
{
    height: 100%;
}
body
{
    height: 100%;
    font: 12px Verdana;
    background-color: rgb(200, 200, 200);
    color: rgb(255, 255, 255);
    margin: 0px;
}
section.site
{
    margin: 0px auto;
    max-width: 800px;
    background-color: rgb(65, 59, 59);
    position: relative; /* To allow header footing to overlap in case of a glitch */
    min-height: -webkit-calc(100% - 220px - 30px);
    min-height: -moz-calc(100% - 220px - 30px);
    min-height: calc(100% - 220px - 30px);
    margin-bottom: -1px;
    overflow: auto; /* Prevent subpixel overlap glitches with footer in certan browsers (Chrome) */
}
img
{
    border: 0px;
}

/* Footer */
footer
{
    padding: 5px 0px 9px;
    background-color: rgb(126, 57, 50);
    min-height: 16px;
    margin-top: 1px;
}
section.footcenter
{
    background-color: rgb(126, 57, 50);
    max-width: 800px;
    margin: 0px auto;
    text-align: center;
    position: relative;
    display: block;
}
footer a
{
    color: black;
    padding: 0px 5px;
    text-decoration: underline;
    font-family: verdana, arial, helvetica, sans-serif;
    line-height: 120%;
    font-size: 10px;
}
.flattrbutton
{
    position: absolute;
    left: 0;
    top: 0;
    margin-left: 4px;
}
section.footerunderlap
{
    background-color: rgb(65, 59, 59);
}

/* Header */
img.header
{
    width: 100%;
    max-width: 800px;
    background-color: rgb(85, 85, 85);
    display: block;
    margin: 0px auto;
}
img.headfoot
{
    width: 100%;
    max-width: 800px;
    position: absolute;
    pointer-events: none;
}
.leftheaderbg
{
    background-image: url("/img/ggheaderleft.png");
    background-position: right;
    z-index: -1;
    position: absolute;
    left: 0px;
    top: 0px;
    right: 50%;
    height: 220px;
}
.rightheaderbg
{
    background-image: url("/img/ggheaderright.png");
    background-position: left;
    z-index: -1;
    position: absolute;
    right: 0px;
    top: 0px;
    left: 50%;
    height: 220px;
}

/* Navigations */
nav
{
    overflow: auto;
}
nav ul
{
    display: table;
    margin: 0px auto;
    padding: 0px;
    text-align: center;
}
nav ul li
{
    display: inline-block;
}
nav.sitenav
{
    width: 100%;
    background-color: rgb(85, 85, 85);
    padding: 0px;
    min-height: 42px;
}
nav.sitenav ul
{
    height: 42px;
}
nav.sitenav ul li
{
    height: 26px;
    margin: 0px 17px;
    padding: 7px 6px 9px;
    font-family: "gg2bold";
    font-size: 24px;
}
nav.sitenav ul li.selected
{
    background-color: rgb(65, 59, 59);
}
nav.subnav
{
    background-color: rgb(65, 59, 59);
    padding: 4px 0px 0px;
    min-height: 32px;
    font-family: "gg2bold";
    font-size: 24px;
    letter-spacing: -1px;
}
nav.subnav ul li
{
    color: rgb(255, 255, 255);
    margin-right: 13.5px;
    margin-left: 13.5px;
}
nav.subnav ul li a
{
    color: rgb(200, 200, 200);
}
nav.subnav ul li a:hover
{
    color: rgb(255, 255, 255);
}
nav.subnav ul li.selected a
{
    color: rgb(255, 255, 255);
}
nav.subnav ul li.selected a:hover
{
    color: rgb(200, 200, 200);
}

/* Main */
section.main
{
    background-color: rgb(65, 59, 59);
    font: 10pt Verdana;
    /* color: rgb(196, 196, 196); */
    color: rgb(204, 204, 204);
    padding: 8px 24px 16px;
}
.main p.bodytext
{
    margin-top: 0px;
    text-align: justify;
}
a
{
    color: rgb(250, 250, 255);
    text-decoration: none;
}
a:hover
{
    color: rgb(200, 200, 200);
}
.main.ircoverride
{
    padding: 0;
}

#video {
    clear: both;
    display: block;
    margin: 0 auto;
}

/* Asider and its replacement */
aside
{
    float: right;
    margin: 8px;
    margin-left: 24px;
    margin-right: 0px;
}
aside.image
{
    margin-top: 8px;
}
section.responsive-ob-aside
{
    display: none;
    width: 100%;
    float: none;
    margin: 8px auto 16px;
}
section.responsive-im-aside
{
    display: none;
    width: 100%;
    float: none;
    margin: 8px 0px 16px;
}
section.responsive-im-aside img
{
    float: left;
    margin-right: 16px;
    padding-bottom: 10px;
}

/* About content */
img.cutin-img
{
    margin: 8px 0px 16px 0px;
    max-width: 100%;
}
section.main section.responsive-im-aside:first-of-type
{
    margin-top: -8px;
}
.parapara
{
    padding-left: 3em;
}
.notop
{
    margin-top: 0px;
}
.fancypre
{
    margin-right: 20px;
    white-space: pre-wrap;
}

/* Downloads content */
div.dl-header
{
    font-family: "gg2bold";
    font-size: 36px;
    margin-top: 4px;
    margin-bottom: 12px;
    color: rgb(255, 255, 255);
}
div.dl-subheader
{
    font-family: "gg2bold";
    font-size: 24px;
    margin-top: 4px;
    margin-bottom: 12px;
    color: rgb(255, 255, 255);
}

/* News content */
div.ns-header
{
    font-family: "gg2bold";
    font-size: 36px;
    margin-top: 4px;
    margin-bottom: 12px;
    color: rgb(255, 255, 255);
}
div.ver-header
{
    font-family: "gg2bold";
    font-size: 24px;
    margin-top: 4px;
    margin-bottom: 12px;
    color: rgb(255, 255, 255);
}
aside.latestversion
{
    width: 40%;
}
ul.unlist
{
    list-style-type: none;
    padding-left: 0;
}
/* Random download stuff */
.dlimg
{
    width: 251px;
    height: 60px;
}
.main-download
{
    text-align: center;
}
.dlaside
{
    width: 50%;
    margin-top: -4px;
    text-align: right;
}

/* Responsive overrides */
@media screen and (min-width:800px)
{
    img.header
    {
        height: 220px;
    }
}
@media screen and (max-width:640px)
{
    aside.download
    {
        display: block;
        text-align: center;
        float: none;
    }
}
@media screen and (max-width:560px)
{
    aside.image
    {
        display: none;
    }
    section.responsive-im-aside
    {
        display: block;
    }
}
@media screen and (max-width:400px)
{
    footer a
    {
        float: right;
        margin-top: 3px;
    }
}
