.rom-file {
	-webkit-appearance: none;
	position: relative;
	margin-bottom: 10px;
	height: 38px;
	font-family: inherit;
	font-size: 13px;
	background: inherit;
	opacity: 0.1;
	top: -10px;
	left: -10px;
}
.rom-file:before {
	content: '';
	display: block;
	min-width: 100%;
	padding: 10px 5px;
	background: inherit;
	cursor: pointer;
	position: absolute;
	right: 0;
	left: 0;
}
.debug .nes {
	width: 256px;
	height: 240px;
}
.debug .nametable {
	display: inline-block !important;
}
canvas {
	display: block;
	margin: auto;
}
.controls {
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.controls [type=button], .controls .button {
	border: none;
	background: black;
	color: inherit;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 12px;
	line-height: 1em;
	padding: 3px;
	min-width: 1em;
	cursor: pointer;
	position: relative;
	height: 1.5em;
}
.controls [type=button].enabled, .controls .button.enabled {
	background: #333333;
}
.controls .button img {
	width: 1em;
	height: 1em;
	margin: 3px;
}
.controls .button.controller img {
	width: 1.5em;
	height: 1.5em;
	margin: 0 3px;
}
.controls .button.open {
	width: 1em;
	height: 1em;
	overflow: hidden;
}
.controls .button.open img {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
}
.controls [type=button]:hover, .controls .button:hover {
	background: #666;
}
.controls .fas {
}
.controls [type=button]:active, .controls .button:active {
	background: #ccc;
}
.controls [type=range] {
	-webkit-appearance: none;
	height: 0.3em;
	background: #999;
	width: 80px;
	vertical-align: baseline;
}
.controls [type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	background: white;
	width: 0.5em;
	height: 1em;
}
.controls input {
	cursor: pointer;
	outline: none !important;
}
/* Hide button controls that don't work on mobile devices */
.portrait .controls .button.fullscreenButton, .portrait .controls .button.controller {
	display: none;
}
html {
	height: 100%;
}
body {
	font-family: Tahoma;
	font-size: 12px;
	background-color: #ccc;
	background-image: linear-gradient(#cef, #acf, #acf, #7bc);
	background-attachment: fixed;
	text-align: center;
}
.emulator {
	background: black;
	border: 2px solid white;
	border-radius: 7px;
	box-shadow: 0 0 13px rgba(0,50,100,0.5);
	color: white;
	display: inline-block;
	overflow: hidden;
}


.fullscreen * {
	display: none !important;
}
.fullscreen .nes, .fullscreen .emulator {
	display: block !important;
}
.fullscreen {
	background: black;
	background-image: none;
}
.fullscreen .emulator {
	display: block !important;
	position: absolute !important;
	top: 0;
	left: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.overlay {
	color: black;
	background: white;
	padding: 20px;
	width: 230px;
	margin: auto;
	position: fixed;
	top: 150px;
	left: calc(50vw - 135px);
	box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

h2 {
	font-size: 2em;
	border-radius: 10px;
	background: rgba(255,255,255,0.3);
	max-width: 700px;
	margin: 20px auto;
	display: flex;
	padding: 5px 15px;
	color: rgba(0,30,50,0.3);
}
h2 a {
	color: inherit;
	margin-right: 10px;
	font-size: 1.5em;
}
h2 a:hover, h2 span:hover {
	color: rgba(0,30,50,0.5);
}
h2 span {
	width: 100%;
	cursor: pointer;
	padding-top: 10px;
	text-align: right;
}
.text, #gameDescription {
	max-width: 600px;
	margin: 20px auto;
	text-align: left;
	color: rgba(0,0,0,0.5);			
}

.controllerDisp {
	max-width: 600px;
	margin: 20px auto;
	text-align: center;
	color: rgba(0,0,0,0.5);
	border: 20px solid #ccc;
	border-radius: 20px;
	background-color: #000;
	padding: 40px 0;
}

.controllerDisp button {
	padding: 15px 20px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: #444;
	color: #eee;
}

.portrait h2 {
	margin: 5px auto;
	font-size: 1em;
}

.portrait .controllerDisp {
	max-width: 98%;
	padding: 10px 0;
	position: relative;
	padding-bottom: 60px;
	margin: 5px auto;
	border-width: 5px;
}

.portrait .controllerDisp button {
	padding: 8px 14px;
}

.portrait .controllerDisp .buttons {
	margin-top: 30px;
}

.portrait .controllerDisp .menu {
	margin-top: 25px;
}

.portrait .controllerDisp .directions {
	width: 45%;
}

.portrait .controllerDisp .middle {
	width: 100%;
	position: absolute;
	bottom: 10px;
	left: 0;
}

.portrait .controllerDisp .middle button {
	width: 30%;
	margin: 0 10px;
}

.portrait .controllerDisp .buttons {
	width: 45%;
	margin-left: 5%;
	position: relative;
	top: -10px;
}

.portrait .controllerDisp .buttons button {
	width: 48%;
}

.controllerDisp > div {
	display: inline-block;
}

.controllerDisp .directions {
	width: 30%;
}

.controllerDisp .middle {
	width: 30%;
}

.controllerDisp .buttons {
	width: 30%;
}

.controllerDisp .directions .up, .controllerDisp .directions .down {
	display: block;
	margin: auto;
	width: 50%;
}

.controllerDisp .directions .left, .controllerDisp .directions .right {
	display: inline-block;
	width: 48%;
}

.controllerDisp .menu {
	margin-top: 100px;
}

.controllerDisp .buttons {
	margin-top: 125px;
}

.controllerDisp, .controllerDisp * {
	/* Prevent text selection on screen-based inputs */
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	touch-action: manipulation;
}

#clickMe.embed {
    position: absolute;
    left: 0;
    top: 0;
}

#clickMe {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer; 
    background-color: #d6d8d9; 
    border-color: #c6c8ca; 
    color: #1b1e21; 
    text-align:center; 
    margin: auto;
    position: relative;
}

#clickMe h1 {
	font-family: serif;
    font-weight: normal;
    font-size: 6em;
    position: absolute;
    top: 50%;
    left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
}

.portrait #clickMe h1 {
    font-size: 3em;
}