/****************************************
  ==== RESETS
****************************************/

* {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

::-moz-selection {
    color: #333;
    text-shadow: none;
}

::selection {
    color: #333;
    text-shadow: none;
}

.clear:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.clear {
    display: inline-table;
    clear: both;
}

/* Hides from IE-mac \*/
* html .clear {
    height: 1%;
}

.clear {
    display: block;
}

/* End hide from IE-mac */

/****************************************
  ==== LAYOUT
****************************************/

@font-face {
    font-family: 'hdrfont';
    src: url('fonts/future/future-condensedmedium-webfont.eot');
    src: url('fonts/future/future-condensedmedium-webfont.eot?#iefix') format('embedded-opentype'),
    url('fonts/future/future-condensedmedium-webfont.woff2') format('woff2'),
    url('fonts/future/future-condensedmedium-webfont.woff') format('woff'),
    url('fonts/future/future-condensedmedium-webfont.ttf') format('truetype'),
    url('fonts/future/future-condensedmedium-webfont.svg#futurecondensed_medium') format('svg');
    font-weight: normal;
    font-style: normal;

}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'hdrfont', sans-serif;
}

body {
    font-size: 14px;
    background-color: black;
    color: #ddd;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    height: 100%;
}

p {
    margin-bottom: 15px;
}

p.header, p.footer {
    display: none;
}

h1.title {
    font-family: 'hdrfont', sans-serif;
    text-transform: uppercase;
    text-align: center;
    line-height: 18px;
    line-height: 32px;
    margin: 0 1px 0 0;
    color: white;
    z-index: 10;
    font-weight: normal;
    font-size: 24px;
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

a:link, a:visited {
    color: #bfbfbf;
}

.highlight {
    color: white;
}

.template-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.template-wrap canvas {
    margin: 0 0 10px 0;
    position: relative;
    z-index: 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.fullscreen {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 10;
}

.small {
    font-size: smaller;
    color: #999;
}

div.sidebar {
    float: left;
    background-color: #252c36;
    width: 200px;
    height: 100%;
    padding: 20px;
}

#gameContainer {
color:#000;
    text-align: center;
    width:100%;
    height: 100%;
}

.webgl-content * {
    border: 0;
    margin: 0;
    padding: 0
}

.webgl-content {
    position: absolute;
    width: calc(100vw - 240px);
    top: 50%;
    height: 100vh;
    left: calc(50% + 120px);
    /*position: absolute;*/
    /*top: 50%;*/
    /*left: 50%;*/
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
@media(max-width: 1505px) {
    .webgl-content {
        position: absolute;
        left: 240px;
        top: 50%;
        transform: translateY(-50%);
        width: calc(100% - 240px);
        height: calc(0.75 * (calc(100vw - 240px)));
	max-height:100%;

    }
    #gameContainer {
        max-width: calc(100vw - 240px);
        max-height: 100%;
    }
}
.webgl-content canvas {
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
}



.webgl-content .logo, .progress {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.webgl-content .logo {
    background: url('akeron_logo.png') no-repeat center / contain;
    width: 154px;
    height: 130px;
}

.webgl-content .progress {
    height: 18px;
    width: 141px;
    margin-top: 90px;
}

.webgl-content .progress .empty {
    background: url('progressEmpty.Light.png') no-repeat right / cover;
    float: right;
    width: 100%;
    height: 100%;
    display: inline-block;
}

.webgl-content .progress .full {
    background: url('progressFull.Light.png') no-repeat left / cover;
    float: left;
    width: 0%;
    height: 100%;
    display: inline-block;
}

.webgl-content .logo.Dark {
    background-image: url('akeron_logo.png');
}

.webgl-content .progress.Dark .empty {
    background-image: url('progressEmpty.Dark.png');
}

.webgl-content .progress.Dark .full {
    background-image: url('progressFull.Dark.png');
}




div.index {
    font-family: 'hdrfont', sans-serif;
}
div.index h2, div.index h3, div.index h4{
    font-weight: normal;
    font-size: 18px;
    text-transform: uppercase;
}
div.index h2{
    font-size: 24px;
    margin: 20px 0 10px 0;
}
div.index .parts{
    margin: 0 -5px;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    margin-bottom: 20px;
}
div.index a{
    display: block;
    margin: 5px;
    width: 25px;
    height: 25px;
    text-decoration: none;
    line-height:25px;
    text-align: center;
    background-color: #5e6f93;
}

div.index a.prologue {
	width: 100px;	
}

div.index a.current, div.index a:hover{
    background-color: #bfbfbf;
    color: #5e6f93;
}

@media(max-height: 840px){
    div.index h3, div.index h4{
        font-size: 14px;
    }
    div.index h2{
        font-size: 18px;
        margin: 20px 0 10px 0;
    }

    div.index a{
        display: block;
        margin: 5px;
        width: 15px;
        height: 18px;
        text-decoration: none;
        line-height:18px;
        text-align: center;
        background-color: #5e6f93;
    }

}

div.sidebar .index {
    height: calc(100vh - 350px);
    overflow-y: auto;
    overflow-x: hidden;
}
