/* CSS I understand */
a, a:visited {
    color: #6897bb;
    text-decoration: none;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}
#render {
	text-align: center;
}
#render svg {
	display: inline-block;
}
#render svg {
	background-color: white;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 10px;
}
table.metrics {
	font-size: 0.8em;
	margin: auto;
    border-collapse: collapse;
    margin-bottom: 1em;
}
table.metrics th {
    background-color: #6897bb;
    color: #eee;
}
.separator {
	background-color: rgba(0,0,0,0) !important;
	border: none;
}
.controller-lag-result.noskip {
	background-color: lightgreen;
}
.controller-lag-result.onefskip {
	background-color: #cc7832;
}
.controller-lag-result.twofskip {
	background-color: #BC3F3C;
}
div.controller-lag-result {
	display: inline-block;
	height: 2em;
}
.game-lag-result.inputlag {
	background-color: lightgreen;
}
.game-lag-result.stability {
	background-color: #cc7832;
	height: 0.5em;
	margin-bottom: 1.5em;
}
div.game-lag-result {
	display: block;
	height: 1.5em;
}
div.controller-lag-container {
	position: relative;
	width: 100%;
	background-color: #8593A2;
	margin-bottom: 1.5em;
	height: 2em;
}
div.controller-lag-container span.title {
	font-weight: bold;
	position: absolute;
	line-height: 2em;
	margin-left: 2em;
	color: black;
}
div.controller-lag-container span.metrics {
	font-weight: bold;
	position: absolute;
	line-height: 1em;
	margin-left: 3em;
	margin-top: 3em;
	color: white;
	font-size: 0.75em;
}
.result {
	font-weight: bold;
	color: #2EAE9B;
}
.warning {
	font-weight: bold;
	color: #BC3F3C;
}
img {
	-webkit-border-radius: 0.5em;
	-moz-border-radius: 0.5em;
	border-radius: 0.5em;
	border: 2px solid #777777;
	background-color: #eee;
}
.float-right {
	display: block;
	max-width: 80%;
	margin: 1em auto;
}
.centered {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 500px;
}

a:hover, a:active {
    color: #6897bb;
    text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
    color: #cc7832;
    line-height: 1.2em;
    margin-bottom: 0.6em;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.7em;
}

h3 {
	font-size: 1.2em;
	margin-top: 1em;
}

p, table {
    margin-bottom: 1em;
}

ol, ul {
    padding-left: 30px;
    margin-bottom: 0.5em;
}

b, strong {
    font-weight: bold;
}

i, em {
    font-style: italic;
}

u {
    text-decoration: underline;
}

abbr, acronym {
    cursor: help;
    border-bottom: 0.1em dotted;
}

td, td img {
    vertical-align: top;
}

td, th {
    border: solid 1px #999;
    padding: 0.25em 0.5em;
}

th {
    font-weight: bold;
    text-align: center;
    background: #eee;
}

sub {
    vertical-align: sub;
    font-size: smaller;
}

sup {
    vertical-align: super;
    font-size: smaller;
}

code {
    font-family: Courier, "Courier New", Monaco, Tahoma;
    background: #444;
    color: #eee;
    padding: 0px 2px;
}

pre {
    background: #444;
    padding: 20px;
    margin-bottom: 1em;
    overflow: auto;
}

blockquote {
    font-style: italic;
    margin: 0 0 1em 15px;
    padding-left: 10px;
    border-left: 5px solid #dddddd;
}


@font-face {
	font-family: 'OpenSansBold';
	src: url('../css/OpenSans-Bold.ttf');
}
@font-face {
	font-family: 'OpenSansLight';
	src: url('../css/OpenSans-Light.ttf');
}

/* CSS I dont understand */

body {
	display: flex;
	flex-flow: row wrap;
	margin: 0;
	font-family: "OpenSansLight";
    background-color: #232525;
    color: #A9B7C6;
}

header, aside, nav, footer {
	flex: 1 100%;
	z-index: 10;
}

header {
	font-size: 3em;
	font-family: "OpenSansBold";
    background-color: #232525;
	margin-left: 0.5em;
	padding-top: 0.33em;
}
header .main-title {
	font-size: 0.66em;
}
header .sub-title {
	font-size: 0.4em;
}
header img {
        -webkit-flex: 0 0 150px;
        flex: 0 0 150px;
        margin-right: 20px;
}
header nav {
        -webkit-flex: 1 1 100%;
        flex: 1 1 100%;
}
nav, nav ul, nav li{
        margin: 0;
        padding:0;
        border:none;
}
nav ul {
        display: -webkit-flex;
        -webkit-flex-direction: column;
        display: flex;
        flex-direction: row;
		flex-wrap: wrap;
        justify-content: flex-start;

}
nav li {
        list-style-type:none;
        margin: 0;
        -webkit-flex: 1 1 100%;
        flex: 1 1 100%;
		line-height: 1.5em;
}
nav a {
		  text-decoration: none;
}
article {
    padding: 1em;
    width: 100%;
}
table.metrics tr > td:first-child {
    text-align: left;
}
table.metrics tr td {
    text-align: right;
}
aside {
	text-align: left;
	border-bottom: 2px solid #d8d8d8;
}
aside nav {
	padding: 0.5em  15%;
}
aside li.sub {
	margin-left: 1em;
	font-style: italic;
}
footer {

		font-size: smaller;

}
footer * {
        -webkit-flex: 1 1 0%;
        -webkit-justify-content: space-between;
        flex: 1 1 0%;
}

nav li.active {
	font-weight: bold;
}

.lag-results, .video-settings {
    font-size: 0.55em;
}

aside nav {
	margin-top: 1em;
	max-height: 0;
	overflow: hidden;
	transition: all 0.25s linear;
	padding: 0;
}
aside nav.expanded {
	max-height: 500px;
	padding-left: 15%;
}

.menu-open {
	float: right;
	margin-right: 0.5em;
	cursor: pointer;
	margin-top: -0.4em;
}

.logo {
	display: none;
}

.toc {
    display: inline-block;
    padding: 1em 1em 1em 2em;
    background-color: #333;
    border: 1px solid #777;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-left: 2em;
}

@media all and (min-width: 52em) {
	.logo {
		display: block;
		position: fixed;
		width: 150px;
		margin-left: 3%;
		border: 0;
		background-color: transparent;
	}
	.menu-open {
		display: none;
	}
	.float-right {
		float: right;
		max-width: 40%;
		max-height: 250px;
		margin: 0 1em;
	}
	article {
		flex: 3 1 0%;
		margin: 1em 4% 2% 24%;
		padding: 0;
		max-width: 1024px;
	}

	aside {
		flex: 1 1 0%;
		margin-top: 10em;
		position: fixed;
		width: 21%;
		border-right: 2px solid #d8d8d8;
		border-bottom: 0px;

	}

	header {
		flex-flow: column wrap;
		display: flex;
		padding: 0.1em 2%;
		/*position: fixed;*/
		margin-left: 20%;
		width: 100%;
		transition: all 0.5s;
	}

	header .main-title {
		font-size: 1em;
	}

	header.smaller {
		font-size: 2em;
		
	}

	.header-wrapper {
		display: flex;
		flex-flow: row wrap;
		position: relative;

	}

	header * {
		flex: 1 1 0%;
	}

	header img {
		flex: 0 0 400px;
		margin-right: 50px;
	}

	aside nav {
		flex: 1 1 100%;
		padding: 10% 0 0 15%;
		max-height: 500px;
	}

	nav {
		margin: 0 !important;
		padding: 0;
		border: none;
	}
	nav ul, nav li {
		margin: 0;
		padding: 0;
	}

	nav ul {
		display: flex;
		justify-content: space-around;
		flex-direction: column;
	}

	nav li {
		list-style-type: none;
		margin: 0 0px;
	}
    table.metrics {
        font-size: 1em;
    }

	.lag-results, .video-settings {
		font-size: 1em;
	}
}
