html, body {
	margin: 0;
	width: 100%;
	min-width: 1050px;
	height: 100%;
	min-height: 500px;
	font-family: Segoe UI, Arial, sans-serif;
	font-size: 12pt;
	font-weight: bold;
	font-variant: small-caps;
	color: #CCC;
	background: rgb(0, 0, 0);
	overflow: hidden;
}

* {
	float: left;
	box-sizing: border-box;
}

#load {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-color: #101010;
	background-image: url(/images/load/background.png);
	background-position: center;
	background-repeat: no-repeat;
	z-index: 999999;
}

#percent {
	position: absolute;
	width: 48px;
	height: 16px;
	top: calc(50% + 32px);
	left: calc(50% - 142px);
	text-align: right;
	color: #FFF;
	line-height: 18px;
	font-size: 22px;
	font-family: monospace;
}

#icons {
	position: fixed;
	right: 15px;
	bottom: 15px;
	width: 30px;
	z-index: 99999;
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
}

#icons.open, #route-controls.open {
	bottom: 172px;
}

#cog {
    background-position: 0px -28px; 
}

#lock {
    background-position: -28px -28px; 
}

#size {
    background-position: -56px -28px; 
}

#size.x2 {
    background-position: -84px -28px; 
}

#left {
    background-position: -112px -28px; 
}

#right {
    background-position: -140px -28px; 
}

#left-all {
    background-position: -224px -28px; 
}

#right-all {
    background-position: -252px -28px; 
}

#bottom-all {
    background-position: -280px -28px; 
}

#top-all {
    background-position: -308px -28px; 
}

#collision {
    background-position: -336px -28px; 
}

#bonus-stars {
    background-position: -364px -28px; 
}

#hit-points {
    background-position: -392px -28px; 
}

#check-points {
    background-position: -420px -28px; 
}

#enemies {
    background-position: -448px -28px; 
}

#allies {
    background-position: -476px -28px; 
}

#routes {
    background-position: -504px -28px; 
}

#play {
    background-position: -532px -28px; 
}

#play.pause {
    background-position: -560px -28px; 
}

#restart {
    background-position: -588px -28px; 
}

#stop {
    background-position: -616px -28px; 
}

.icon {
	position: relative;
	width: 30px;
	height: 30px; 
	color: #DDD;
	background-image: url(/images/icons.png);
	background-repeat: no-repeat;
	background-color: #242424;
	border: 1px solid #000;
	box-shadow: 2px 2px #000;
	cursor: pointer;
	transition: 0.25s all ease-in-out;
	-webkit-transition: 0.25s all ease-in-out;
	-webkit-user-select: none;      
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.icon.top {
	border-top-color: transparent;
}

.icon.right {
	border-right-color: transparent;
}

.icon.top.pad {
	margin-top: 5px;
	border-top-color: #000;
}

.icon:hover {
	background-color: #2D2D2D;
}

.icon.enabled {
	border-color: #0C0!important;
}

.icon > .tooltip {
	position: absolute;
	visibility: hidden;
	opacity: 0;
	padding: 0 5px;
	top: -1px;
	right: calc(100% + 1px);
	width: 0;
	height: calc(100% + 2px);
	line-height: 28px;
	text-align: center;
	color: #FFF;
	font-size: 14px;
	background-color: rgba(0, 0, 0, 0.5);
	border: 1px solid #000;
	border-right: none;
	border-radius: 3px 0 0 3px;
	box-shadow: 0 2px #000;
	overflow: hidden;
	transition: 0.25s all ease-in-out;
	-webkit-transition: 0.25s all ease-in-out;
}

.icon:hover > .tooltip {
	visibility: visible;
	opacity: 1;
	width: 150px;
}

.icon:hover > .tooltip:hover {
	visibility: hidden;
	opacity: 0;
	width: 0;
}

#new-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: -157px;
	height: 157px;
	background: #101010;
	z-index: 99998;
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
}

#new-nav.open {
	bottom: 0;
}

.tabs {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 5px;
	height: 35px;
	background: #242424;
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
}

.tab {
	position: relative;
	min-width: 100px;
	height: 100%;
	line-height: 1.3em;
	text-align: center;
	border: 1px solid transparent;
	cursor: pointer;
	z-index: 99;
	transition: 0.25s all ease-in-out;
	-webkit-transition: 0.25s all ease-in-out;
	-webkit-user-select: none;      
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.tab.selected {
	color: #FFF;
}

#selected-tab {
	position: absolute;
	top: 5px;
	width: 100px;
	height: 23px;
	background-color: #101010;
	border: 1px solid #000;
	box-shadow: 2px 2px #000, inset 0 0 2px #000;
	z-index: 0;
	transition: 0.25s all ease-in-out;
	-webkit-transition: 0.25s all ease-in-out;
}

#selected-tab.g {
	left: 5px;
}

#selected-tab.s {
	left: 105px;
}

#selected-tab.e {
	left: calc(100% - 150px);
}

.level-select-container {
	position: absolute;
	top: 35px;
	left: 60px;
	right: 60px;
	bottom: 0;
	overflow: hidden;
	cursor: move;
	cursor: grab;
	cursor: -o-grab;
	cursor: -moz-grab;
	cursor: -webkit-grab;
}

#scroll-left {
	left: 5px;
	background-position: 0 -110px;
}

#scroll-right {
	right: 5px;
	background-position: -48px -110px;
}

.scroll {
	position: absolute;
	top: 40px;
	width: 50px;
	height: 112px;
	background-image: url(/images/level.png);
	background-repeat: no-repeat;
	background-color: #242424;
	border: 1px solid #000;
	box-shadow: 2px 2px #000;
	cursor: pointer;
	transition: 0.25s all ease-in-out;
	-webkit-transition: 0.25s all ease-in-out;
	-webkit-user-select: none;      
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.scroll:hover {
	background-color: #2D2D2D;
}

.level-select {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	width: 2965px;
	height: 122px;
	bottom: -122px;
	padding: 5px 0;
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
	z-index: 0;
}

.level-select.visible {
	visibility: visible;
	opacity: 1;
	bottom: 0;
	z-index: 1;
}

.level {
	position: relative;
	margin-left: 5px;
	width: 160px;
	height: 112px;
	background-color: #242424;
	background-size: 160px 112px;
	background-position: center;
	background-repeat: no-repeat;
	border: 1px solid #000;
	box-shadow: 2px 2px #000;
	overflow: hidden;
	cursor: pointer;
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
}

#snes.level-select > .level {
	background-size: 128px 112px;
}

.level:first-child {
	margin-left: 0;
}

.level.selected {
	border: 1px solid #0C0;
}

.level > .tooltip {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	padding: 5px;
	text-align: center;
	background: rgba(0, 0, 0, 0.5);
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
}

.level:hover > .tooltip {
	visibility: visible;
	opacity: 1;
}

/*////////////////////////////////////*/

#e {
	position: absolute;
	right: 10px;
}

#ee {
	position: absolute;
	width: 100%;
	text-align: center;
	line-height: 3.5em;
}


/*////////////////////////////////////*/

.blackoutline {
	text-shadow:
		0px -1px #000,
		1px -1px #000,
		1px 0px #000,
		1px 1px #000,
		0px 1px #000,
		-1px 1px #000,
		-1px 0px #000,
		-1px -1px #000;
}

.blueoutline {
	text-shadow:
		0px -1px #00F,
		1px -1px #00F,
		1px 0px #00F,
		1px 1px #00F,
		0px 1px #00F,
		-1px 1px #00F,
		-1px 0px #00F,
		-1px -1px #00F;
}

/*////////////////////////////////////*/

#levels-container {
	position: absolute;
	padding: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	background-image: url(/images/background.png);
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
}

#levels-container.open {
	bottom: 157px;
}

.level-container {
	position: absolute;
	visibility: hidden;
	opacity: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	cursor: move;
	cursor: grab;
	cursor: -o-grab;
	cursor: -moz-grab;
	cursor: -webkit-grab;
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
}

.level-container:active { 
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.level-container.visible {
	visibility: visible;
	opacity: 1;
	z-index: 9999;
}

.background {
	position: absolute;
	background-size: 512px 1024px;
}

.background.x2 {
	background-size: 1024px 2048px;
}

.background.locked {
	bottom: 0;
}

.tile {
	position: relative;
	width: 1024px;
	height: 1024px;
	background-size: contain;
}

.tile.x2 {
	width: 2048px;
	height: 2048px;
}

.level-content {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	background-size: contain;
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
}

.level-content.on {
	opacity: 1;
}

/*// GENESIS /////////////////////////*/
#genesis-level-1 > .background {
	width: 4224px;
	height: 1024px;
	background-image: url(/images/genesis/1/background.png);
}
#genesis-level-1 > .background.x2 {
	width: 8448px;
	height: 2048px;
}
#genesis-level-1 .tile.last {
	width: 128px;
}
#genesis-level-1 .tile.last.x2 {
	width: 256px;
}
/*////////////////////////////////////*/
#genesis-level-2 > .background {
	width: 4192px;
	height: 1024px;
	background-image: url(/images/genesis/2/background.png);
}
#genesis-level-2 > .background.x2 {
	width: 8384px;
	height: 2048px;
}
#genesis-level-2 .tile.last {
	width: 1120px;
}
#genesis-level-2 .tile.last.x2 {
	width: 2240px;
}
/*////////////////////////////////////*/
#genesis-level-3 > .background {
	width: 16352px;
	height: 1024px;
	background-image: url(/images/genesis/3/background.png);
}
#genesis-level-3 > .background.x2 {
	width: 32704px;
	height: 2048px;
}
#genesis-level-3 .tile.last {
	width: 992px;
}
#genesis-level-3 .tile.last.x2 {
	width: 1984px;
}
/*////////////////////////////////////*/
#genesis-level-4 > .background {
	width: 512px;
	height: 1024px;
	background-image: url(/images/genesis/4/background.png);
}
#genesis-level-4 > .background.x2 {
	width: 1024px;
	height: 2048px;
}
#genesis-level-4 .tile.last {
	width: 512px;
}
#genesis-level-4 .tile.last.x2 {
	width: 1024px;
}
/*////////////////////////////////////*/
#genesis-level-5 > .background {
	width: 2048px;
	height: 4096px;
	background-image: url(/images/genesis/5/background.png);
	background-size: 512px 256px;
}
#genesis-level-5 > .background.x2 {
	width: 4096px;
	height: 8192px;
	background-size: 1024px 512px;
}
/*////////////////////////////////////*/
#genesis-level-6 > .background {
	width: 6944px;
	height: 1024px;
	background-image: url(/images/genesis/6/background.png);
}

#genesis-level-6 > .background.x2 {
	width: 13888px;
	height: 2048px;
}
#genesis-level-6 .tile.last {
	width: 800px;
}
#genesis-level-6 .tile.last.x2 {
	width: 1600px;
}
/*////////////////////////////////////*/
#genesis-level-7 > .background {
	width: 22016px;
	height: 1024px;
	background-image: url(/images/genesis/7/background.png);
}

#genesis-level-7 > .background.x2 {
	width: 44032px;
	height: 2048px;
}
#genesis-level-7 .tile.last {
	width: 512px;
}
#genesis-level-7 .tile.last.x2 {
	width: 1024px;
}
/*////////////////////////////////////*/
#genesis-level-9 > .background {
	width: 10720px;
	height: 1024px;
	background-image: url(/images/genesis/9/background.png);
}

#genesis-level-9 > .background.x2 {
	width: 21440px;
	height: 2048px;
}
#genesis-level-9 .tile.last {
	width: 480px;
}
#genesis-level-9 .tile.last.x2 {
	width: 960px;
}
/*////////////////////////////////////*/
#genesis-level-10 > .background {
	width: 1024px;
	height: 4896px;
	background-image: url(/images/genesis/10/background.png);
	background-size: 64px;
}

#genesis-level-10 > .background.x2 {
	width: 2048px;
	height: 9792px;
	background-size: 128px;
}
#genesis-level-10 .tile.last {
	height: 800px;
}
#genesis-level-10 .tile.last.x2 {
	height: 1600px;
}
/*////////////////////////////////////*/
#genesis-level-13 > .background {
	width: 3550px;
	height: 1024px;
}

#genesis-level-13 > .background.x2 {
	width: 7100px;
	height: 2048px;
}


/*// SNES    /////////////////////////*/
#snes-level-1 > .background {
	width: 4320px;
	height: 1024px;
	background-image: url(/images/snes/1/background.png);
}
#snes-level-1 > .background.x2 {
	width: 8640px;
	height: 2048px;
}
#snes-level-1 .tile.last {
	width: 224px;
}
#snes-level-1 .tile.last.x2 {
	width: 448px;
}

/*////////////////////////////////////*/

.level-route {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
}

.level-route.on {
	visibility: visible;
	opacity: 1;
}

.woody {
	position: relative;
	left: -20px;
	top: -41px;
	width: 41px;
	height: 85px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url(/images/genesis/woody.png);
}

.woody.x2 {
	left: -38px;
	top: -82px;
	width: 82px;
	height: 170px;
}

[id^=genesis-level-] .woody {
	background-image: url(/images/genesis/woody.png);
}

[id^=snes-level-] .woody {
	background-image: url(/images/snes/woody.png);
}

svg {
	position: absolute;
	width: 100%;
	height: 100%;
}

path {
  stroke-width: 2px;
  stroke: #0F0;
  fill: none;
}

#route-controls {
	visibility: hidden;
	opacity: 0;
	position: fixed;
	left: calc(50% - 246px);
	bottom: 15px;
	transition: 0.5s all ease-in-out;
	-webkit-transition: 0.5s all ease-in-out;
	z-index: 99999;
}

#route-controls.visible {
	visibility: visible;
	opacity: 1;
}

.track {
	padding: 0 5px;
	width: 400px;
	background-image: none;
}

input[type=range] {
	-webkit-appearance: none; /* Hides the slider so that custom slider can be made */
	width: calc(100% - 4px); /* Specific width is required for Firefox. */
	background: transparent; /* Otherwise white in Chrome */
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
}

input[type=range]:focus {
	outline: none;
}

input[type=range]::-ms-track {
	width: calc(100% - 4px);
	cursor: pointer;
	background: transparent; 
	border-color: transparent;
	color: transparent;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 20px;
	width: 8px;
	background: #FFF;
	cursor: pointer;
	margin-top: -8px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

input[type=range]::-moz-range-thumb {
	height: 20px;
	width: 8px;
	background: #FFF;
	cursor: pointer;
}

input[type=range]::-ms-thumb {
	height: 20px;
	width: 8px;
	background: #FFF;
	cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
	margin: 10px 0;
	width: 100%;
	height: 4px;
	cursor: pointer;
	background: #AAA;
}

input[type=range]::-moz-range-track {
	margin: 10px 0;
	width: 100%;
	height: 4;
	cursor: pointer;
	background: #AAA;
}

input[type=range]::-ms-track {
	margin: 10px 0;
	width: 100%;
	height: 4px;
	cursor: pointer;
	background: transparent;
	border-color: transparent;
	border-width: 16px 0;
	color: transparent;
}
input[type=range]::-ms-fill-lower {
	background: #AAA;
}
input[type=range]::-ms-fill-upper {
	background: #AAA;
}
