body {
	padding: 0px;
	margin: 0px;
	background: #111;
}

form, table {
	margin: 0px;
	padding: 0px;
	border: none;
}

img {
	border: 0px;
}

#game_box {
	position: relative;
	width: 900px;
	height: 600px;
	margin: 0px auto 0px;
	overflow: hidden;
	font-family: "action_manregular", Helvetica, Arial, sans-serif;
}

#overlay {
	display: none;
	position: absolute;
	left: 0px;
	top: 0px;
	width: 900px;
	height: 600px;
	cursor: default;
}

#resources {
	position: absolute;
	left: 0px;
	top: 500px;
	width: 900px;
	height: 100px;
}

#resources .resource {
    display: none;
	float: left;
	width: 84px;
	height: 100px;
	padding-left: 80px;
	color: #ddd;
	font-size: 24px;
	line-height: 100px;
	white-space: nowrap;
}

#resources .resource .value {
	display: inline-block;
	width: 32px;
	white-space: nowrap;
}

#building_menu {
	display: none;
	position: absolute;
	left: 10px;
	top: 0px;
	width: 880px;
	height: 300px;
}

#building_hint1,
#building_hint2 {
	position: absolute;
	top: 32px;
	height: 28px;
	line-height: 26px;
	font-size: 16px;
	background: rgba(0, 0, 0, 0.9);
	color: #ddd;
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
	white-space: nowrap;
	text-align: center;
}

#building_hint1 { left: 150px; width: 200px; }
#building_hint2 { left: 450px; width: 240px; }

#building_hint1 img,
#building_hint2 img {
	width: 19px;
	height: 15px;
	vertical-align: middle;
}

#building_options {
	position: absolute;
	top: 92px;
	left: 0px;
	width: 880px;
	height: 200px;
}

#building_options .option_box {
	float: left;
	width: 168px;
	height: 92px;
	padding: 4px;
}

#building_options .option {
	position: relative;
	left: 0px;
	top: 0px;
	width: 164px;
	height: 88px;
	background: rgba(0, 0, 0, 0.9);
	color: #ddd;
	border: 2px solid #999;
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
}

#building_options .selected {
	background: #555 !important;
	color: #fff !important;
	border-color: #fff;
}

#building_options .option .title {
	padding: 16px 6px 6px;
	line-height: 26px;
	width: 152px;
	font-size: 24px;
	text-align: center;
}

#building_options .option_box #option_barricade .title,
#building_options .option_box #option_sawmill .title,
#building_options .option_box #option_catapult .title,
#building_options .option_box #option_wall .title,
#building_options .option_box #option_mine .title,
#building_options .option_box #option_smelter .title {
	padding: 28px 6px 6px !important;
}

#building_options .option .cost {
	position: absolute;
	left: 0px;
	top: 64px;
	width: 152px;
	padding: 0px 6px 6px;
	line-height: 20px;
	font-size: 16px;
	text-align: center;
}

#building_options .building_locked {
	width: 164px;
	height: 50px;
	padding-top: 38px;
	background: url(../img/requires_level.png);
	font-size: 16px;
	line-height: 20px;
	text-align: center;
	color: #888;
}

#building_options .building_not_enough_space {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 164px;
	height: 46px;
	padding-top: 42px;
	background: url(../img/not_enough_space.png);
	font-size: 16px;
	line-height: 20px;
	text-align: center;
	color: #888;
}

#building_cost {
	position: absolute;
	left: 4px;
	top: 302px;
	height: 28px;
	width: 160px;
	line-height: 26px;
	font-size: 16px;
	background: rgba(0, 0, 0, 0.9);
	color: #ddd;
	padding: 0px 0px;
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
	text-align: center;
}

#building_tooltip {
	position: absolute;
	left: 174px;
	top: 302px;
	height: 28px;
	line-height: 26px;
	font-size: 16px;
	background: rgba(0, 0, 0, 0.9);
	color: #ddd;
	padding: 0px 8px;
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
}

#cancel_building {
	position: absolute;
	left: 756px;
	top: 324px;
	width: 116px;
	height: 36px;
	line-height: 32px;
	background: rgba(0, 0, 0, 0.9);
	color: #ddd;
	font-size: 24px;
	border: 2px solid #999;
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
	text-align: center;
}

#cancel_building.selected {
	background: #555 !important;
	color: #fff !important;
	border-color: #fff;
}

#map_hint {
	position: absolute;
	width: 240px;
	height: 124px;
}

#map_hint .line {
	position: absolute;
	left: 0px;
	width: 240px;
	height: 20px;
	font-size: 16px;
	line-height: 20px;
	text-align: center;
	white-space: nowrap;
}

#map_hint_1 { top: 0px; }
#map_hint_2 { top: 20px; }
#map_hint_3 { top: 52px; }
#map_hint_4 { top: 84px; opacity: 0.6; }
#map_hint_5 { top: 104px; opacity: 0.6; }

#map_hint .line img {
	width: 19px;
	height: 15px;
	vertical-align: middle;
}

#day {
	display: none;
	position: absolute;
	top: 0px;
	left: 300px;
	width: 300px;
	height: 100px;
	line-height: 100px;
	font-size: 50px;
	color: #000;
	text-align: center;
}

#paused {
	display: none;
	position: absolute;
	top: 0px;
	left: 0px;
	width: 900px;
	height: 600px;
	line-height: 600px;
	font-size: 24px;
	color: #fff;
	text-align: center;
	background: rgba(0, 0, 0, 0.8);
}

#muted {
	display: none;
	position: absolute;
	top: 0px;
	left: 2px;
	width: 100px;
	height: 20px;
	line-height: 20px;
	font-size: 16px;
	color: #000;
}

#low_quality {
	display: none;
	position: absolute;
	top: 20px;
	left: 2px;
	width: 100px;
	height: 20px;
	line-height: 20px;
	font-size: 16px;
	color: #000;
}

#game_over {
	display: none;
	position: absolute;
	left: 0px;
	top: 0px;
	width: 900px;
	height: 600px;
	background: #000;
}

#survived {
	display: none;
	position: absolute;
	left: 0px;
	top: 240px;
	width: 900px;
	height: 60px;
	line-height: 60px;
	font-size: 50px;
	color: #fff;
	text-align: center;
}

#restart {
	display: none;
	position: absolute;
	left: 0px;
	top: 300px;
	width: 900px;
	height: 100px;
	line-height: 100px;
	font-size: 16px;
	color: #fff;
	text-align: center;
}

#restart img {
	width: 19px;
	height: 15px;
	vertical-align: middle;
}

.tutorial {
	display: none;
	position: absolute;
	left: 0px;
	top: 100px;
	width: 900px;
	height: 100px;
	font-size: 16px;
	line-height: 20px;
	text-align: center;
	text-shadow: 0px 0px 3px #fff;
}

.tutorial img {
	width: 19px;
	height: 15px;
	vertical-align: middle;
}

#loading {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 900px;
	height: 600px;
	background: #eee url(../img/loading.png);
}

#loading_bar_box {
	position: absolute;
	top: 555px;
	left: 409px;
	width: 80px;
	height: 3px;
	border: 1px solid #000;
}

#loading_bar {
	width: 0px;
	height: 3px;
	background: #000;
}

#fps {
	position: absolute;
	left: 0px;
	bottom: 0px;
	background: #fff;
	color: #000;
	opacity: 0.3;
}