html, body {
    height: 100%;
}

body {
    min-height: 100%;
    padding: 0;
    margin: 0;
    background: #28130e url('/static/images/bg.jpg') no-repeat top center;
    font-family: Neuton, sans-serif;
    font-size: 24px;
    color: #fff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, .5);
}

h1, h2 {
    margin: 0;
    font-weight: 400;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 1em 0;
}

.columns {
    display: flex;
}

.columns > .column {
    flex: 1;
    padding: 0 10px;
}

.button {
    display: inline-block;
    padding: .4em .8em;
    border-radius: 5px;
    background: #492219;
    font-size: .7em;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    text-shadow: none;
    cursor: pointer;
    user-select: none;
}

.button:hover {
    background: #ffb200;
    color: #492219;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    opacity: .65;
}

.text-small {
    font-size: .8em;
}

.stat {
    margin-top: 10px;
    text-shadow: 0 0 3px #000, 0 3px 6px rgba(0, 0, 0, .5);
}

.stat strong {
    font-size: 1.1em;
}

#download-mask {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    background: #28130e;
    text-align: center;
}

.downloading #download-mask {
    display: block;
}

#download-mask .inner {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#download-mask svg {
    color: #ffb200;
}

#toggle-nav {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: .2em;
    border-radius: 5px;
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    user-select: none;
}

#toggle-nav:hover {
    color: #fff;
}

#toggle-nav .fa-times,
#toggle-nav.active .fa-bars {
    display: none;
}

#toggle-nav.active .fa-times {
    display: inline-block;
}

#navigation {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 0;
    background: rgba(33, 16, 11, 0.95);
    white-space: nowrap;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width .2s;
    z-index: 1000;
}

#navigation a {
    display: block;
    padding: .3em .6em;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: .7em;
    color: rgba(255, 255, 255, .5);
}

#navigation a img {
    height: 28px;
    margin-right: 5px;
    vertical-align: middle;
    opacity: .5;
}

#navigation a:hover {
    color: #fff;
}

#navigation a:hover img {
    opacity: 1;
}

#navigation.active {
    width: 200px;
}

#site-link .button {
    border-radius: 0;
    border-bottom-left-radius: 5px;
}

#wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#body {
    flex: 1 0 auto;
}

#summary {
    min-height: 590px;
    padding-top: 0;
}

.downloading #summary {
    background: url('/static/images/bg.jpg') no-repeat top center;
}

#summary .headline {
    padding: 20px 0;
    font-size: 2.2em;
    color: #ffb200;
    text-shadow: 0 0 15px #da7600;
    text-align: center;
}

#summary .headline img {
    width: 250px;
    margin: 0 10px;
    vertical-align: middle;
}

#summary .command-hint {
    display: none;
    margin-top: 1em;
    color: #ffb200;
    text-shadow: 0 0 15px #da7600;
}

#summary .command-hint code {
    font-size: .9em;
    font-weight: bold;
}

.downloading #summary .command-hint {
    display: block;
}

#most-played {
    position: relative;
    min-height: 380px;
}

#most-played .foreground {
    position: relative;
    z-index: 600;
}

#most-played .background {
    display: block;
    content: " ";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('/static/images/most-played-text-shadow.png') no-repeat 0 0;
    background-size: 100% 100%;
    z-index: 500;
}

#most-played .title,
#most-played .stats {
    position: absolute;
    padding: 1em .5em;
    z-index: 1000;
}

#most-played .title {
    top: -1.5em;
    left: 0;
}

#most-played .stats {
    top: 1.5em;
    right: 0;
}

#most-played .stat:first-child {
    margin: 0;
}

#share {
    padding: 1em 0;
}

#game-stats-header {
    padding: .8em 0 1.2em 0;
}

#game-stats .anchor {
    position: relative;
    top: -86px;
}

#game-stats .section {
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    background: radial-gradient(#41241c, #28130e);
}

#game-stats .section:first-child {
    box-shadow: inset 0px 120px 100px -100px #28130e;
}

#game-stats .section h2 img {
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 15px rgba(0, 0, 0, .5);
}

#footer {
    padding: 2em 0;
    font-size: .9em;
    text-align: center;
    opacity: .5;
}

#top-shortcut {
    position: fixed;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity .2s;
}

#top-shortcut a {
    display: none;
}

#top-shortcut.show {
    opacity: 1;
}

#top-shortcut.show a {
    display: inline-block;
}

@media screen and (max-width: 610px) {
    body {
        font-size: 20px;
    }

    #summary .headline {
        font-size: 1.8em;
    }

    #summary .headline img {
        width: 150px;
    }

    #most-played {
        min-height: 320px;
    }
}

@media screen and (max-width: 600px) {
    .columns {
        flex-wrap: wrap;
    }

    .columns > .column {
        margin-bottom: 1em;
    }

    .columns > .column:first-child {
        flex-basis: 100%;
    }
}