/*
Miracle: a JavaScript Sega Master System emulator.
By Matt Godbolt <matt@godbolt.org>
Based heavily on JSSpeccy which is Copyright (C) 2008 Matthew Westcott

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Contact details: Matt Godbolt <matt@godbolt.org>
JSSpeccy contact details: Matthew Westcott <matthew@west.co.tt
*/

body {
    background-color: #000000;
    color: #ffffff;
    font-family: arial, tahoma;
    font-size: 11px;
}

#screen {
	border: 64px solid black;
	width: 512px;
	height: 384px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#menu {
	clear: left;
	margin: 0;
	padding: 0;
	width: 640px;
	height: 56px;
	list-style-type: none;
}
#menu li {
	float: left;
	margin: 4px;
}
#menu li a {
	display: block;
	width: 48px;
	height: 48px;
	outline: none;
}
#menu li #menu_about {
	float: right;
}
#rom_chooser {
	position: absolute;
	padding: 8px;
	left: 128px;
	top: 16px;
	width: 384px;
	background-color: #112222;
	height: 480px;
	overflow: auto;
    border: 1px solid #334444;
}
input {
    color: white;
}
#about {
	position: absolute;
	left: 64px;
	top: 32px;
	width: 512px;
	background-color: #112222;
	height: 420px;
	padding: 4px;
	text-align: center;
	overflow: auto;
    border: 1px solid #334444;
}
a.close_button {
	display: block;
	border: 1px solid black;
	background-color: #ccc;
	margin: auto;
	padding: 4px;
	width: 200px;
	margin-bottom: 8px;
	margin-top: 8px;
	color: black;
	text-decoration: none;
	text-align: center;
	clear: both;
}
#rom_list {
	list-style-type: none;
	height: 320px;
	overflow: auto;
	margin: 0;
	border: 1px solid #ccc;
	padding: 0;
}
#rom_list li {
	line-height: 40px;
	border-bottom: 1px solid black;
	padding-left: 16px;
}
#rom_list li a {
	display: block;
}
#about h1 {
	font-size: 18pt;
	margin-bottom: 0;
    text-align: center;
}
#about h2 {
	font-size: 12pt;
}
#about a, #about a:hover, #about a:focus {
	color: white;
}
#about #licence {
	font-size: 9pt;
}
#debug {
    background-color: #333333;
    border: 1px solid #555555;
    margin: 2px;
    padding: 2px;
    position: fixed;
    bottom: 0px;
    right: 0px;
	font-size: 8pt;
	font-family: monospace;
}
#registers {
	float: right;
    text-align: right;
    width: 90px;
}

#disassembly {
    width: 400px; 
	float: left;
}

#vdp_registers, #pages {
    margin-top: 10px;
}

.dis_addr {
    display: inline-block;
    width: 8em;
    color: #d0d0d0;
}

.instr_bytes {
    display: inline-block;
    width: 8em;
    color: #80d0d0;
}

.addr:hover {
    background-color: #330000;
}

.addr:focus {
    background-color: #ff0000;
}

.label {
    color: white;
    font-family: arial, tahoma;
    font-weight: bold;
}

.addr > .editable {
    width: 4em;
    color: black;
    border: 1px;
}

.opcode {
    font-weight: bold;
}

.register {
    color: #88ee88
}

.current {
    background-color: #227777;
}

.changed {
    background-color: #772222;
}

.template {
	display: none;
}

.help {
    font-size: 12px;
    margin-bottom: 15px;
}

.key {
    font-family: monospace;
    border: 1px solid white;
    padding-left: 2px;
    padding-right: 2px;
    background-color: #222222;
}
