* {
	float: left;
	width: 100%;
	box-sizing: border-box;
}

html, body {
	padding: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	max-width: 814px;
	min-height: 600px;
	font-family: "segoe ui", helvetica, arial;
	color: #CCC;
	background-color: #101010;
}

body {
	position: relative;
}

body > header {
	padding: 0 5px 2px 26px;
	line-height: 1.5em;
	font-weight: 500;
	background-color: #202020;
	background-image: url(/img/tools/rba.png);
	background-size: 16px 16px;
	background-position: 5px;
	background-repeat: no-repeat;
	border: 1px solid #666;
	border-bottom: none;
}

body > footer {
	padding: 0 5px 2px 5px;
	line-height: 1.5em;
	color: #AAA;
	text-align: center;
	font-weight: 500;
	background-color: #202020;
	border: 1px solid #666;
	border-top: none;
}

#equip {
	position: absolute;
	left: -1000px;
	top: -1000px;
	width: 32px;
	height: 32px;
	background: url(/img/n64/mm/icons/ocarina-of-time.png);
}

span {
	width: auto;
}

a {
	float: none;
	text-decoration: none;
	color: #CCC;
}

a:hover {
	color: #FFF;
}

img {
	width: auto;
	height: auto;
}

ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

ul.default {
	margin: 10px 0;
	padding: 0 40px;
	list-style-type: initial;
}

ol {
	margin: 0;
	padding: 0 0 0 30px;
}

:focus {
	outline: none;
}

.important {
	color: #CC6666;
	font-weight: 500;
}




.window {
	font-family: monospace;
	font-size: 125%;
	background: #101010;
	border: 1px solid #666;
}


.inventory {
	width: 596px;
	height: 181px;
	border-top: none;
	border-left: none;
}

.inventory .items {
	width: 378px;
}

.inventory .masks {
	width: calc(100% - 378px);
}

.slot, .button, .form, .content {
	position: relative;
	margin: 2px;
	width: 32px;
	height: 32px;
	border-radius: 3px;
	cursor: pointer;
}

.slot:hover, .button:hover, .form:hover, .content:hover {
	background: #484848;
}

.slot.selected, .form.selected, .content.selected {
	background-image: url(/img/n64/mm/icons/selected.png);
}

.slot .id, .form .id, .content .id {
	position: absolute;
	bottom: 0;
}


.buttons {
	width: 218px;
	height: 181px;
	border-top: none;
}

.buttons .hud {
	position: relative;
	padding: 10px 0;
	height: 72px;
	border-bottom: 1px solid #666;
}

.buttons.oot .hud {
	padding: 10px 0 10px 36px;
}

.buttons .hud .button {
	position: relative;
	width: 32px;
	height: 32px;
}

.buttons .button:not(:first-child) {
	margin: 2px 0;
}

.buttons.mm .button.b {
	margin: 2px 2px 2px 16px;
	background-image: url(/img/n64/mm/buttons/b.png);
}
.buttons.mm .button.a {
	top: 16px;
	background-image: url(/img/n64/mm/buttons/a.png);
}
.buttons.mm .button.c.left {
	background-image: url(/img/n64/mm/buttons/c-left.png);
}
.buttons.mm .button.c.down {
	top: 16px;
	background-image: url(/img/n64/mm/buttons/c-down.png);
}
.buttons.mm .button.c.right {
	background-image: url(/img/n64/mm/buttons/c-right.png);
}

.buttons.oot .button.b {
	margin: 2px 2px 2px 16px;
	background-image: url(/img/n64/oot/buttons/b.png);
}
.buttons.oot .button.a {
	top: 16px;
	background-image: url(/img/n64/oot/buttons/a.png);
}
.buttons.oot .button.c.left {
	background-image: url(/img/n64/oot/buttons/c-left.png);
}
.buttons.oot .button.c.down {
	top: 16px;
	background-image: url(/img/n64/oot/buttons/c-down.png);
}
.buttons.oot .button.c.right {
	background-image: url(/img/n64/oot/buttons/c-right.png);
}


.data {
	width: 289px;
	height: 219px;
	border-left: none;
}

.data header {
	margin: 0 0 1px 0;
	padding: 2px 5px;
	height: 26px;
	line-height: 1.3em;
	height: 27px;
	border-bottom: 1px solid #666;
}

.data .row {
	position: relative;
}

.data .row div {
	position: absolute;
	top: 1px;
	right: 0;
	width: calc(100% - 76px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.hex {
	width: 525px;
	height: 219px;
}

.hex .offsets {
	width: 90px;
	height: 100%;
	text-align: right;
	border-right: 1px solid #666;
}

.hex .offsets div, .data .row {
	padding: 1px 5px;
	height: 26px;
	border: 1px solid transparent;
}

.hex .bytes {
	width: calc(100% - 90px);
	text-align: center;
	cursor: pointer;
}

.hex .byte, .hex .th-byte {
	margin: 0 1px 1px 0;
	padding: 1px;
	line-height: 1.3em;
	width: 26px;
	height: 26px;
	border: 1px solid transparent;
}

.hex .byte:nth-child(16n+2), .hex .th-byte:first-child {
	margin: 0 1px 1px 1px;
}

.hex .byte.selected, .hex .byte:hover {
	color: #FFF;
	border-color: #FFF;
}

.hex .row, .data .row {
	margin: 0 0 1px 0;
	height: 26px;
	line-height: 1.3em;
}

.hex .row:first-child {
	height: 27px;
	border-bottom: 1px solid #666;
}




.byte.item { background: #400; }
.byte.mask, .byte.equipment { background: #040; }
.byte.ammo { background: #034; }
.byte.quest { background: #404; }
.byte.dungeon { background: #440; }
.byte.small-key { background: #044; }
.byte.double-heart { background: #420; }
.byte.stray-fairy, .byte.skulltula { background: #240; }
.byte.inaccessible { opacity: 0.5; }

.byte.item.selected, .byte.item:hover { background: #800; }
.byte.mask.selected, .byte.mask:hover, .byte.equipment.selected, .byte.equipment:hover { background: #080; }
.byte.ammo.selected, .byte.ammo:hover { background: #068; }
.byte.quest.selected, .byte.quest:hover { background: #808; }
.byte.dungeon.selected, .byte.dungeon:hover { background: #880; }
.byte.small-key.selected, .byte.small-key:hover { background: #088; }
.byte.double-heart.selected, .byte.double-heart:hover { background: #840; }
.byte.stray-fairy.selected, .byte.stray-fairy:hover, .byte.skulltula.selected, .byte.skulltula:hover { background: #480; }