#wrapper {
    width: 100%;
}
body {
    overflow-x: hidden;
    margin: 0 !important;
    font-family: sans-serif, serif;
}

/* ~~~~~ Header/Navigation Styles ~~~~~ */
header {
    width: 100%;
    height: 50px;
    background-color: #3a3a3a;
}
header div {
    height: 50px;
    text-align: center;
    color: #efefef;
    font-size: 20px;
}
header .dropdown {
    width: 200px;
    cursor: pointer;
    background-color: #3a3a3a;
}
header .dropdown.history {
    left: 0;
    z-index: 10000;
}
header .dropdown.labs {
    right: 0;
    z-index: 10000;
}
header .mobile-title {
    position: absolute;
    margin: auto;
    width: 100%;
    list-style-type: none;
    padding-top: 11px;
}
header #lab-title {
    width: 100%;
}
header .dropdown:hover {
    background-color: #6e6e6e;
}
header li.history:hover ~ .submenu.history {
    /*display: block !important;*/
}
header li.labs:hover ~ .submenu.labs {
    /*display: block !important;*/
}
header .submenu {
    display: none;
    position: absolute;
    align-items: center;
    color: #efefef;
    background-color: #3a3a3a;
    width: 200px;
    height: auto;
    min-height: 50px;
    margin-top: 50px;
    -webkit-margin-before: 50px;
    border-top: 1px solid #efefef;
    padding: 20px 0 0 20px;
    z-index: 100 !important;
}
header .submenu li {
    list-style-type: none;
    width: 100%;
    font-size: 17px;
    text-align: left;
    line-height: normal;
    min-height: 75px;
    white-space: nowrap;
}
header .submenu.history {
    left: 0 !important;
    overflow-y: scroll;
    overflow-x: hidden;
    margin-bottom: 10px;
    max-height: 318px;
}
header .submenu.labs {
    right: 0 !important;
    width: 200px;
    padding: 20px 0 20px 0; !important;
}
header .submenu a {
    width: 100%;
    color: #efefef;
    text-decoration: none;
    padding-left: 20px;
    float: left;
}





.submenu.history li:not(:first-child) {
    border-top: 1px solid white;
    padding-top: 7px;
}
.submenu.history li:first-child {
    height: 75px;
    margin-top: -12px;
    margin-bottom: -8px;
}
.submenu.history li.no-shot-history {
    height: 0;
    margin: 0;
    padding: 0;
}
header .submenu.history::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}
header .submenu.history::-webkit-scrollbar {
    width: 12px;
	background-color: #F5F5F5;
}
header .submenu.history::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #1A6AAD;
}
.submenu.history .history-details {
}



/* ~~~~~ Header/Navigation Fixes for Bootstrap ~~~~~ */
.navbar-default {
    background-image: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
}
.container-fluid {
    padding: 0;
    margin: 0;
}
.navbar-collapse {
    width: 100%;
    padding: 0;
}
.navbar-collapse .nav {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.navbar-collapse li.history {
    position: absolute;
    left: 0;
    z-index: 11;
}
.navbar-collapse li.title {
    width: 100%;
    position: absolute;
    z-index: 1;
}
.navbar-collapse li.labs {
    position: absolute;
    right: 0;
    z-index: 11;
}
.navbar-nav > li {
    height: 50px;
}
.navbar-nav > li div {
    padding-top: 11px;
    height: 100%;
}
.container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ~~~~~ Results Styles ~~~~~ */
#results {
    position: absolute;
    right: 10px;
    margin-top: 10px;
    background-color: #6e6e6e;
    color: #efefef;
    padding-right: 20px;
    z-index: 9;
    width: auto;
}
#results ul {
    margin-left: -20px;
    margin-top: 10px;
    font-size: 16px;
    line-height: 20px;
}
#results li {
    list-style-type: none;
    white-space: nowrap;
}
#results li span.results-inner {
    min-width: 80px;
    white-space: nowrap;
}
#results li span span {
    font-weight: bold;
}
#results ul:first-child {
    width: 20% !important;
    float: left;
}
#results ul:last-child {
    width: auto !important;
    float: right;
}
#results ul:last-child li {
    float: right;
    clear: both;
}



/* ~~~~~ Canvas Styles ~~~~~ */
#canvas-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 0;
}

#myCanvas {
    position: relative;
    z-index: -99;
}
span.settings {
    color: black;
    position: absolute;
    left: 10px;
    top: 60px;
    z-index: 10;
    height: 10px;
    font-size: 25px !important;
}
span.zoomin {
	color: black;
    position: absolute;
    left: 10px;
    top: 100px;
    z-index: 10;
    height: 10px;
    font-size: 25px !important;
}
span.zoomout {
	color: black;
    position: absolute;
    top: 140px;
	left: 8px;
    z-index: 10;
    height: 10px;
    font-size: 25px !important;
}
span.settings:hover, span.zoomin:hover, span.zoomout:hover {
    color: #1A6AAD;
    cursor: pointer;
}


/* ~~~~~ Settings Modal Styles ~~~~~ */
.modal .onethird {
    width: 32%;
    display: inline-table;
    min-height: 50px;
    font-size: 16px;
    padding-right: 10px;
}
.modal .onethird label {
    font-weight: normal;
    width: 100%;
    cursor: pointer;
}
.modal .onethird label input {
    cursor: pointer;
}
.modal .onethird label span {
    margin-left: 5px;
}
.modal .onethird input[type="button"] {
    margin-top: 10px;
    width: 100%;
}




/* ~~~~~ Controls Styles ~~~~~ */
#controls-wrapper {
    width: 100%;
    height: 150px;
    position: absolute;
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 0;
    background-color: #3a3a3a;
    color: #efefef;
    font-size: 16px;
    z-index: -10;
}
#controls-top {
    height: 50px;
    width: 100%;
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}
#controls-top div {
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    align-items: center;
}
#controls-top .checkbox {
    margin-bottom: 0 !important;
}
#controls-top .checkbox input {
    margin-top: 5px;
    cursor: pointer;
}
#controls-top .checkbox label {
    cursor: pointer;
}
#controls-top .launch {
    color: #3a3a3a;
}
#controls-top .launch button {
    width: 200px;
    height: 30px;
    background-color: #1A6AAD;
    color: white;
    border: 0;
}
#controls-top .launch button:hover {
    background-color: white;
    color: #1A6AAD;
}
#controls-bottom {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    align-items: center;
    justify-content: space-around;
}
#controls-bottom label {
    margin-bottom: 5px;
    font-weight: 500;
}
#controls-bottom input {
    float: left;
}
.grav-dropdown {
    margin-bottom: -10px;
}
.grav-dropdown select {
    color: #3a3a3a;
}
.slider, .grav-dropdown {
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}
.slider label, .grav-dropdown label {
    font-weight: normal;
}
.slider .slider-controls, .grav-dropdown .grav-dropdown-controls {
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    align-content: center;
    align-items: center;
}
.slider input[type="number"] {
    width: 45px;
    margin-right: 10px;
    height: 20px;
    color: #3a3a3a;
    padding: 0 0 0 2px;
    border: 0;
}
.slider input[type="range"] {
    -webkit-appearance: none;
    min-width: 100px;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
    cursor: pointer;
}
.slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 17px;
    width: 16px;
    border-radius: 0%;
    background: #1A6AAD;
}
.off {
    display: none;
}


/* ~~~~~ Mobile Styling ~~~~~ */
@media (max-width: 767px) {
    .navbar-nav > li {
        width: 50% !important;
    }
    header .dropdown {
        width: 100% !important;
    }
    header .submenu {
        width: 50% !important;
        padding: 20px 0 20px 0px;
    }
    header .submenu li {
        text-align: center;
        margin-left: 0;
    }
}
@media (max-width: 500px) {
    .modal .onethird {
        width: 100% !important;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .modal .onethird:not(:last-child) {
        border-bottom: 1px solid #e5e5e5;
    }
}

@media (max-width: 580px) {
    .slider {
        /*flex-direction: row !important;*/
    }
    #controls-wrapper {
        height: 300px;
        z-index: 10;
    }
    #controls-bottom {
        display: block !important;
    }
    #controls-wrapper label {
        margin-bottom: 1px;
        margin-top: 5px;
    }
    #controls-top {
        width: initial !important;
        height: auto !important;
        display: block !important;
    }
    #controls-top .checkbox {
        margin-bottom: 5px !important;
    }
    #controls-top .checkbox label {
        margin: auto;
    }
}


.history a {
	padding: 0!important;
}

.history {
	padding-left: 0!important;
}

.history strong, .history span {
	padding: 0 10px;
}

.history hr {
	margin: 0;
	padding: 5px 0;
}
