/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html, body, .app {
	height: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
    font-size: 16px;
    font-family: 'Roboto Condensed', sans-serif;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#menu-toggle {
    position:absolute;
    top:10px;
    right:10px;
    width:20px;
    height:20px;
	background-color: gray;
    background-repeat:no-repeat;
    background-image:url('/asset?u=https%3A%2F%2Fprideout.net%2Fheman%2Fimg%2Fhud.png');
    background-size: 160px 20px;
    background-position:-1px 0px;
    opacity: 0.5;
}

#fps-toggle {
    right:35px;
    background-position:-51px 0px;
}

#menu-toggle:hover {
    cursor:pointer;
}

#fps-toggle:hover {
    cursor:pointer;
}

.app {
	overflow: hidden;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

input[type=range][orient=vertical]
{
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
    width: 8px;
    height: 175px;
    padding: 0 5px;
}

main {
	display: -webkit-flex;
    display: flex;
	-webkit-flex-direction: row;
    flex-direction: row;
	-webkit-flex: auto;
    flex: auto;
    overflow: hidden;
}

nav {
 	width: 200px;
	min-width: 200px;
    padding: 10px;
    background: rgb(86, 51, 51);
    transition: all .2s;
}

nav.collapsed {
 	width: 0;
    padding: 0;
	min-width: 0;
    transition: all .2s;
}

article {
	-webkit-flex: auto;
    flex: auto;
	overflow-x: hidden;
	overflow-y: auto;
    display: -webkit-flex;
    display: flex;
    position: relative;
}

.canvas-container {
    display: -webkit-flex;
    display: flex;
    -webkit-flex: 1;
    flex: 1;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    background: #303030;
    color: white;
}

nav a {
    color: #07f;
    text-decoration: none;
}

nav a:hover {
    cursor: pointer;
}

nav button {
    width: 100%;
	background-color: rgba(255,255,255,0.125);
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 2.0;
    border: none;
    border-radius: 5px;
    color: #aaa;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

nav button:hover {
    background: #0078e7;
    color: #eee;
    cursor: pointer;
}

nav button.selected {
    background: #30a8e7;
    color: black;
    cursor: pointer;
}

nav button:focus {
    outline: 0;
}

nav a.wip, nav button.wip, nav a.disabled, nav button.disabled {
    color: #aaa;
    background: #e6e6e6;
}

nav a.disabled, nav button.disabled {
    cursor: default;
}

nav a.disabled:hover, nav button.disabled:hover {
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}