body {
	background-color: white;
	margin: 0;
	font-family: sans-serif;
	font-size: 12px;
}

* {
	box-sizing:border-box;
}

#game ul {
	margin: 0;
	padding: 0;
}

#game li {
	list-style-type: none;
	float: left;
}

th {
	text-align: left;
}

th, td {
	padding: 0;
	border-spacing: 0;
}

h2 {
	margin: 0;
}

button {
	border: 1px solid #7a7667;
	padding: 0 8px;
	background-color: white;
	border-radius: 6px;
}

button[disabled] {
	background-color: #ddd;
	color: #b62121;
}

.clickable, button {
	cursor: pointer;
}

.warning {
	color: #b62121;
}

#game {
	display: none;
}

#map {
	position: relative;
}

#space {
	background-color: black;
}

#header {
	width: 800px;
	height: 20px;
	background: #e1ecee;
	border-bottom: 1px solid black;
	line-height: 19px;
}

#players {

}

#players li {
	padding: 0 10px;
}

#resources {
	float: right;
	margin-right: 4px;
}

#resources .resource {
	width: 120px;
}

.resource {
	padding-left: 20px;
	background-image: url(../gfx/resources.png);
	background-repeat: no-repeat;
}

.resource.gold {

}

.resource.science {
	background-position: 0 -32px;
}

.resource.influenceGrowth {
	background-position: 0 -64px;
}

.resource.influence {
	background-position: 0 -96px;
}

.resource.condition {
	background-position: 0 -128px;
}

.infoBox {
	position: absolute;
	display: inline-block;
	height: auto;
	padding: 5px;
	background: #eeebe3;
	border-radius: 4px;
	border: 1px solid #d5cebb;
	z-index: 1000;
	box-shadow: 1px 1px 0 #7a7667;
}

/*.infoBox.pointer:before {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 0 10px 15px;
	border-color: #d5cebb transparent;
	display: block;
	width: 0;
	z-index: 1001;
	top: -15px;
	left: 6px;
}

.infoBox.pointer:after {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 0 10px 15px;
	border-color: #eeebe3 transparent;
	display: block;
	width: 0;
	z-index: 1001;
	top: -14px;
	left: 6px;
}

.infoBox.pointer.above:before {
	border-width: 15px 10px 0;
	top: auto;
	bottom: -16px;
	left: 6px;
}

.infoBox.pointer.above:after {
	border-width: 15px 10px 0;
	top: auto;
	bottom: -15px;
	left: 6px;
}*/

#planetInfo {

}

#planetInfo h3 {
	margin: 0;
}

#planetInfo .closeButton {
	float: right;
	color: black;
	text-decoration: none;
}

#planetResources {
	border-bottom: 1px solid #d5cebb;
	border-top: 1px solid #d5cebb;
	overflow: hidden;
	padding: 4px 0;
	margin: 4px 0;
}

#planetResources li {
	height: 16px;
	line-height: 16px;
}

#planetResources .science,
#planetResources .gold,
#planetResources .influenceGrowth,
#planetResources .influence { width: 48px; }
#planetResources .condition { width: 60px; }

#planetResources .capped {
	color: #1f439f;
	font-weight: bold;
}

#planetBuildings td {
	line-height: 24px;
}

#planetBuildings button {
	width: 70px;
	text-align: left;
}

#planetBuildings .count {
	width: 16px
}

#planetBuildings .destroyCol {
	width: 16px;
}

a.destroyBuilding {
	color: red;
	text-decoration: none;
}

#planetBuildings .buyCol {
	width: 100px;
}

.building {
	background-image: url(../gfx/buildings.png);
	background-repeat: no-repeat;
	width: 16px;
}

.building.transmitter {

}

.building.shipyard {
	background-position: 0 -32px;
}

.building.shield {
	background-position: 0 -64px;
}

.building.laboratory {
	background-position: 0 -96px;
}

.building.mine {
	background-position: 0 -128px;
}

.overlay {
	position: absolute;
	top: 100px;
	left: 100px;
	background-color: #eeebe3;
	border: 1px solid #d5cebb;
	box-shadow: 1px 1px 0 #7a7667;
	border-radius: 4px;
	padding: 10px;

}

.overlay h2 {
	border-bottom: 1px solid #d5cebb;
}

#researchWindow td {
	padding-right: 4px;
	vertical-align: top;
	line-height: 24px;
}

#researchWindow td:last-child {
	padding-right: 0;
}

#researchWindow .closeButton {
	float: right;
	color: black;
	text-decoration: none;
}

#researchWindow button {
	width: 72px;
	text-align: left;
}

#titleScreen {
	width: 460px;
}

#settings {
	margin-top: 10px;
}

#settings input[type=number] {
	width: 50px;
}

#difficultyText {
	font-size: 10px;
}

#fairStartLabel {
	margin-left: 10px;
}

#instructions {
	border-top: 1px solid #d5cebb;
	border-bottom: 1px solid #d5cebb;
	margin-bottom: 4px;
	display: none;
	font-size: 10px;
}

#tutorialOverlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 600px;
	display: none;
}

#musicLabel {
	position: absolute;
	left: 380px;
}

#toggleMusic {
	width: 16px;
	height: 16px;
	background: transparent url(../gfx/music.png) no-repeat 0 -16px;
	border: 0;
	vertical-align: middle;
}

#toggleMusic.enabled {
	background-position: 0 0;
}
