* { margin: 0; padding: 0 }

html {
	height: 100%;
	width: 100%;
	overflow: hidden;
	background-color: black;
}

body {
	height: 100%;
	width: 100%;
	overflow: hidden;
	background-color: black;
	font: 20px pixel;
	color: white;
}

.optionsPanel {
	color: #AEF;
	z-index: 10;
	font: 14px Monospace;
	padding: 4px;
	background-color:rgba(0,0,0,0.7);
	overflow: auto;
	overflow-x:hidden;
	/*pointer-events: none;*/
}

.optionsPanel.side {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	min-width: 260px;
	max-width: 300px;
}

.optionsPanel.right {
	position: fixed;
	left: auto;
	right: 0;
}

.optionsPanel.center {
	position: fixed;
	top: 25%;
	left: 25%;
	width: 50%;
	height: 50%;
}

.optionsPanel.ingame, .optionsPanel.ingame button {
	font: 30px pixel;
}

::-webkit-scrollbar {
    height: 12px;
	width: 12px;
	background: #222;
}
::-webkit-scrollbar-thumb {
    background: #aaa;
}
::-webkit-scrollbar-corner {
    background: #666;
}

.optionsPanel p {
	vertical-align: top;
	margin-bottom: 2px;
}

.optionsPanel .name, .optionsPanel .title {
	display: inline-block;
	min-width: 60px;
	color: white;
	background-color: rgba(200,200,200,0.2);
	padding-left: 0.5em;
	margin-right: 4px;
	overflow: hidden;
}

.optionsPanel .title {
	width: 100%;
	opacity: 0.8;
	cursor: pointer;
	border-top: 1px solid rgba(0,0,0,0.3);
	border-left: 0.2em solid #EEA;
}

.optionsPanel .title.collapsed {
	border-left: 0.2em solid #AEE;
}

.optionsPanel .value {
	display: inline-block;
	background-color: rgba(50,50,50,0.2);
	overflow: hidden;
	min-width: 40px;
}

.optionsPanel .data {
	min-height: 140px;
}

.optionsPanel .buttons {
	pointer-events: default;
}

.optionsPanel button {
	position: relative;
	color: #AAA;
	background-color: rgba(0,0,0,0.4);
	width: 100%;
	text-align: left;
	padding-left: 2em;
	height: 1.4em;
	border: 0;
	opacity: 0.9;
	transition: all linear 0.1s;
	cursor: pointer;
}

.optionsPanel button:hover {
	opacity: 0.9;
	background-color: #369;
	color: white;
}

.optionsPanel button.on .bit {
	position: absolute;
	display: inline-block;
	width: 10px;
	height: 10px;
	top: 5px;
	left: 5px;
	background-color: #AFA;
}

.optionsPanel button .value {
	opacity: 1;
	margin-left: 10px;
	padding-left: 10px;
	font-size: 0.7em;
	color: white;
	background-color: black;
	pointer-events: none;
}

.optionsPanel button.slider {
	background: linear-gradient(to right, #356 50%,black 51%, black 100%);
}

.optionsPanel textarea {
	width: 100%;
	color: #AFA;
	background-color: rgba(0,0,0,0.4);
	border: 0;
	padding: 2px;
	outline: none;
}

.good {
	color: #9F9;
}

.bad {
	color: #F99;
}

.gamemenu {
	position: fixed;
	top: 0;
	left: 0;
	width: 25%;
	
	font-size: 1.5em;
	background-color: rgba(0,0,0,0.5);
	transition: 0.2s all;
}

.gamemenu .header {
	padding-left: 0.5em;
	background-color: rgba(0,0,0,0.25);
}

.gamemenu .item {
	padding-left: 0.5em;
	color: #AAA;
	width: 100%;
	transition: 0.2s all;
}

.gamemenu .item.disabled {
	opacity: 0.5;
}

.gamemenu .item:hover:not(.disabled) {
	color: white;
	background-color: rgba(0,0,0,0.75);
	transform: translate(10px,0px);	
	transition: 0.2s all;
	width: calc( 100% - 30px );
	cursor: pointer;
}

#mapcanvas {
	top: 10px;
	right: 10px;
	position: fixed;
	width: 128px;
	height: 128px;
	image-rendering: pixelated; 
	background-color: rgba(0,0,0,0.4);
}

.optionsPanel, .optionsPanel button {
	font-family: 'Oswald', sans-serif;
	font-size: 20px;
}

#header {
	font-family: 'Oswald', sans-serif;
	position: fixed;
	top: 0;
	left: 0;
	color: white;
	pointer-events: none;
}

#header span {
	padding-left: 0.4em;
}

span.separator {
	color: #4ae40d;
}

#footer {
	font-family: 'Oswald', sans-serif;
	position: fixed;
	bottom: 10px;
	left: 10px;
	color: white;
	pointer-events: none;
}

#footer .title {
	display:block;
	font-size: 5em;
    margin-bottom: -0.2em;
}

#footer .extra {
	opacity: 0.5;
}

#info-panel {
	font-family: 'Oswald', sans-serif;
	color: white;
}

#info-panel .header {
	display:block;
	font-size: 3em;
    margin-bottom: -0.2em;
}

#info-panel .extra {
	opacity: 0.5;
}

#info-panel .country-title {
	position: relative;
	display: block;
	border-bottom: 3px solid #444;
	width: 100%;
	padding-bottom: 4px;
	height: 60px;
	overflow: hidden;
}

#info-panel .country-title .country-name {
	display: block;
	position: absolute;
	right: 0;
	top: 0;
	line-height: 1em;
	width: calc(100% - 100px);
}

#info-panel .flag {
	display: inline-block;
	vertical-align: top;
	margin-right: 10px;
	max-width: 90px;
	overflow: hidden;
}

#info-panel .country-name.long {
	font-size: 0.5em;
}

#info-panel .slot1, #info-panel .slot2, #info-panel .slot3 {
	display: block;
	margin-top: 20px;
}

#info-panel .item {
	padding-left: 20px;
}

#info-panel .capital {
	color: #AAF;
}