/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Z-Index tables ======================== 

Board: 200+ - ~2500 (50x50)

Characters : Board + 3000 :: max = 5500

UI: 10,000 +

*/


/* Game Styles ==================================================== */

html,
body { 
	height: 100%;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #1564A6;
	color: #fff;
	overflow: hidden;	
	background-image: -ms-radial-gradient(center, circle farthest-corner, #52362A 0%, #000000 100%);
	background-image: -moz-radial-gradient(center, circle farthest-corner, #52362A 0%, #000000 100%);
	background-image: -o-radial-gradient(center, circle farthest-corner, #52362A 0%, #000000 100%);
	background-image: -webkit-gradient(radial, center center, 0, center center, 471, color-stop(0, #52362A), color-stop(1, #000000));
	background-image: -webkit-radial-gradient(center, circle farthest-corner, #52362A 0%, #000000 100%);
	background-image: radial-gradient(center, circle farthest-corner, #52362A 0%, #000000 100%);
}

#debug {
	position: fixed;
	left: 10px;
	bottom: 10px;
	height: 100px;
	width: 400px;
	padding: 6px;
	border: 1px solid #900;
	background-color: rgba(153,0,0,0.5);
	color: #fff;
	z-index: 10000;
	overflow-y: scroll;
}


/* Board Styles ========================================================= */

#board {
	margin:0px auto;
	border:4px solid #CCCCCC;
	z-index:0;
	overflow: hidden;
	height: 100%;
}

.content {
	position: relative;
	overflow: hidden;
}

.content div.tile {
	position: absolute;
}
div.tile {
	width:104px;
	height:57px;
	line-height:57px;
	background:url('../images/tiles.png') no-repeat;
}


/* Tiles */
div.tile.default	{ background-position: 0px 		0px; }
div.tile.null		{ background-position: 110px 	0px; }

div.tile.gravel1 	{ background-position: 0px 		-59px; }
div.tile.gravel2 	{ background-position: -110px 	-59px; }
div.tile.gravel3 	{ background-position: -218px 	-59px; }

/*
div.tile div.object {
	background-color: red;
	width: 80px;
	height: 100px;	
	margin-top: -40px;
	opacity: 0.4;
}*/

div.wall {
	position: absolute;
	width: 52px;
	height: 121px;
}
div.wall.north {
	background: url("../images/walls.png") no-repeat -9px -4px;
}
div.wall.west  {
	background: url("../images/walls.png") no-repeat -74px -30px;
}


div.wall.half {
	height: 52px;
	margin-top: 68px;
}

div.wall.north.half {
	background: url("../images/walls.png") no-repeat -9px -164px;
	top: -95px; left: 0px;
}

div.wall.west.half {
	background: url("../images/walls.png") no-repeat -74px -190px;
	top: -65px; left: 0px;
}

/*
.content div.tile:hover { 
	opacity:0.8; 
	-moz-opacity:0.8; 
	-webkit-opacity:0.8; 
	-khtml-opacity:0.8; 
}
*/

/*
.grass_0 { background-position:0px 0px; }
.grass_1 { background-position:64px 0px;}
.grass_2 { background-position:128px 0px; }
.grass_3 { background-position:192px 0px;}
.grass_4 { background-position:0px 58px;}
.grass_5 { background-position:64px 58px;}
.grass_6 { background-position:128px 58px;}
.grass_7 { background-position:192px 58px; }
*/
div#board div#content div.tile div.object {}

.npc_0 { background:transparent url('../images/temple.png') top left no-repeat; position:relative;width:256px; height:128px;left:-128px;bottom:96px; }


.content div.tile.hover {
	background:url('../images/highlight.png') no-repeat;
}
		
		

#editorPane {
	position: fixed;
	top: 10px; 
	left: 10px; 
	width: 200px;
	height: 500px;
	padding: 10px;
	border: 1px solid #000;
	background-color: rgba(0,0,0,0.5);
	z-index: 10000;
	overflow: hidden;
	overflow-y: scroll;
}

#editorPreview {
	width:104px;
	height:57px;
	line-height:57px;
	margin: 0 auto;
}

#editorPane li.header {
	font-weight: bold;
	margin-top: 10px;	
	color: red;
}

#editorPane a {
	display: block;
	padding: 4px;
	margin-top: 4px;
	color: #fff;
	text-decoration: none;	
}

#editorPane a:hover {
	background-color: #000;	
}

#editorPane a.selected {
	background-color: #900;	
}























