* {
	padding: 0;
	margin: 0;
	font-family: Arial, sans-serif;
}

body {
	background: url('/cotg/images/backgrounds/webbackground.jpg'), black;
	position: relative;
	width: 100%;
	height: 100%;
	background-size: 100% auto;
	background-repeat: repeat-x;
	font-family: Arial, sans-serif;
}

button:focus {
	outline: none;
}

.bluebuttons {
	background: linear-gradient(#2A5B76, #193048);
	padding: 7px 12px 7px 12px;
    margin-top: 10px;
    margin-bottom: 5px;
	font-size: 12px;
	color: #e1c190;
	border: 1px solid #e1c190;
	cursor: pointer;
}

.bluebuttons:hover {
	background: linear-gradient(#3f6b83, #2f445a);
}


.bluebuttons:active {
	background: linear-gradient(#3c4c5d, #5d89a1);
}

.bluebuttons:focus {
	outline: none;
}

.activebttn, .activebttn:hover {
	background: linear-gradient(#3c4c5d, #5d89a1) !important;
}

#errorwindow {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.6);
	height: 100%;
	width: 100%;
	z-index: 200;
}

#actualerrorwindow {
	background: #e0e0e1;
	position: relative;
	margin: 150px auto 0 auto;
	height: 150px;
	width: 250px;
}

#importexportwindow {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.3);
	height: 100%;
	width: 100%;
	z-index: 100;
}

#actualimpexpwindow {
	background: #e0e0e1;
	position: relative;
	margin: 40px auto 0 auto;
	height: 510px;
	width: 400px;
}

.impexptop {
	background: linear-gradient(#e3e3e4, #9c9c9d);
	width: 100%;
	height: 30px;
}

#impexpclose, #errorwindowclose {
	background: url(images/icons/redx.png);
	background-repeat: no-repeat;
	background-size: contain;
	float: right;
	margin: 4px 5px 0 0;
	height: 20px;
	width: 20px;
	cursor: pointer;
}

.flex {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
}

#errormessage {
	font-size: 12px;
	width: 80%;
	margin: 10px auto;
	text-align: center;
}

.impexp1p {
	font-size: 12px;
	width: 80%;
	margin: 18px auto 10px auto;
	text-align: center;
}

.impexp2p {
	font-size: 12px;
	width: 80%;
	margin: 10px auto 10px auto;
	text-align: center;
}

.impexp3p {
	font-size: 12px;
	width: 80%;
	margin: 8px auto 10px auto;
	text-align: center;
}

.inputnameie {
	font-size: 11px;
	width: 60px;
	line-height: 23px;
}

.inputie {
	height: 20px;
	margin-bottom: 2px;
	width: 250px;
	padding-left: 4px;
    font-size: 12px;
}

.inputie:focus {
	outline: 2px solid #414141;
}

.textareacontain {
	width: 100%;
	text-align: center;
}

#actualimpexpwindow textarea {
	resize: none;
	height: 240px;
    width: 250px;
	text-align: left;
	font-size: 12px;
	overflow-y: auto;
	padding: 4px;
}

#actualimpexpwindow textarea:focus {
	outline: 2px solid #414141;
}

.loadbuttoncontain {
	width: 100%;
	text-align: center;
}

.loadbuttoncontain button {
	margin-top: 3px;
}

#sharestringinputlou, #loadloustringbutton {
	display: none;
}

#maintooltip {
	display: none;
	position: absolute;
	z-index: 2000;
	top: 2px;
	left: 45px;
	padding: 6px 10px 6px 10px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	background-color: #F6DD95;
	background-color: rgba(246, 221, 149, 0.9);
	color: #000;
	text-align: center;
	font-size: 12px;
	white-space: nowrap;
	pointer-events: none;
}

#maintooltip:after {
  position: absolute;
  top: 0;
  left: 0;
  margin-top: 7px;
  margin-left: -5px;
  width: 0;
  border-right: 5px solid #F6DD95;
  border-right: 5px solid rgba(246, 221, 149, 0.9);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  content: " ";
  font-size: 0;
  line-height: 0;
}


.topbar {
	width: 70%;
	height: 70px;
	background: url('/cotg/images/backgrounds/topbar.png');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	margin-right: auto;
	margin-left: auto;
}

.leftbutton {
	float: left;
	margin-right: 10px;
}

.rightbutton {
	float: right;
	margin-left: 10px;
}

.topbar br {
	clear: both;
}

.maincityholder {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	
}

#sidepanel {
	width: 250px;
	height: 587px;
	background: url('/cotg/images/backgrounds/parchmentlong.png');
	background-size: 100% 100%;
	margin-right: 1%;
}

#cityholder {
	margin-bottom: 10px;
}

.waterside table {
	background: url(images/backgrounds/walls_water.png), url(images/backgrounds/water.png), url(images/backgrounds/land.jpg);
	background-position: center center, right bottom, center center;
	background-size: 100% 100%, 266px 168px, 100% 100%;
	background-repeat: no-repeat;
}

.landlocked table {
	background: url(images/backgrounds/walls_land.png), url(images/backgrounds/land.jpg);
	background-size: 100% 100%, 100% 100%;
	background-repeat: no-repeat;
}

#cityholder table {
	border-collapse: collapse;
}

#cityholder td {
	height: 27px;
	width: 38px;
}

.activetd {
	background-color: rgba(246,221,149,0.2) !important;
}

#cityholder div {
	max-height: 100%;
	max-width: 100%;
	margin: auto;
}

#b11-11 {
	background: url('images/buildings/building_set_small.png') no-repeat 0 -81px;
	width: 27px;
	height: 27px;
}

#xbselmenu {
	background: transparent;
	border: none;
	float: right;
	margin: 7px 0 6px 0;
}

#xbselmenu div {
	background: url(images/icons/redx.png);
	background-repeat: no-repeat;
	background-size: contain;
	height: 15px;
	width: 15px;
}

#selectabuildingmenu {
	height: 100%;
	width: 100%;
	display: none;
}

#selectabuildingmenu table {
	width: 90%;
	margin: auto;
}

.b:hover {
	background-color: rgba(246,221,149,0.2);
}

#selectabuildingmenu p {
	color: #333231;
	text-align: center;
	font-size: 12px;
	margin: 4px auto 7px auto;
}

.breaker {
	height: 10px;
}

.smallbuilding {
	width: 27px;
	height: 27px;
	margin: auto;
}

.buildingmap {
	width: 27px;
	height: 27px;
	margin: auto;
}

#forest, .forest {
	background: url('images/buildings/building_set_small.png') no-repeat -81px -54px;
}

#stone, .stone {
	background: url('images/buildings/building_set_small.png') no-repeat 0 -54px;
}

#iron, .iron {
	background: url('images/buildings/building_set_small.png') no-repeat -81px -513px;
}

#lake, .lake {
	background: url('images/buildings/building_set_small.png') no-repeat -54px -54px;
}

#port, .port {
	background: url('images/buildings/building_set_small.png') no-repeat -54px -297px;
}

#foresters, .foresters {
	background: url('images/buildings/building_set_small.png') no-repeat -27px -27px;
}

#stonemine, .stonemine {
	background: url('images/buildings/building_set_small.png') no-repeat -81px -27px;
}

#ironmine, .ironmine {
	background: url('images/buildings/building_set_small.png') no-repeat -54px -135px;
}

#farm, .farm {
	background: url('images/buildings/building_set_small.png') no-repeat 0 -27px;
}

#villa, .villa {
	background: url('images/buildings/building_set_small.png') no-repeat -54px -243px;
}

#sawmill, .sawmill {
	background: url('images/buildings/building_set_small.png') no-repeat -27px -108px;
}

#masons, .masons {
	background: url('images/buildings/building_set_small.png') no-repeat -81px -108px;
}

#smelter, .smelter {
	background: url('images/buildings/building_set_small.png') no-repeat -54px -216px;
}

#grainmill, .grainmill {
	background: url('images/buildings/building_set_small.png') no-repeat 0 -135px;
}

#forum, .forum {
	background: url('images/buildings/building_set_small.png') no-repeat -54px -27px;
}

#storehouse, .storehouse {
	background: url('images/buildings/building_set_small.png') no-repeat -27px -135px;
}

#hide, .hide {
	background: url('images/buildings/building_set_small.png') no-repeat 0 -243px;
}

#cabin, .cabin {
	background: url('images/buildings/building_set_small.png') no-repeat -81px 0;
}

#barracks, .barracks {
	background: url('images/buildings/building_set_small.png') no-repeat -54px 0;
}

#guardhouse, .guardhouse {
	background: url('images/buildings/building_set_small.png') no-repeat -27px -405px;
}

#arena, .arena {
	background: url('images/buildings/building_set_small.png') no-repeat 0 -270px;
}

#academy, .academy {
	background: url('images/buildings/building_set_small.png') no-repeat -81px -243px;
}

#castle, .castle {
	background: url('images/buildings/building_set_small.png') no-repeat 0 -162px;
}

#shipyard, .shipyard {
	background: url('images/buildings/building_set_small.png') no-repeat 0 -324px;
}

#stable, .stable {
	background: url('images/buildings/building_set_small.png') no-repeat -81px -135px;
}

#blacksmith, .blacksmith {
	background: url('images/buildings/building_set_small.png') no-repeat -81px -378px;
}

#sorctower, .sorctower {
	background: url('images/buildings/building_set_small.png') no-repeat -27px -378px;
}

#fields, .fields {
	background: url('images/buildings/building_set_small.png') no-repeat -54px -567px;
	width: 27px;
	height: 27px;
	margin: auto;
}

.builicon {
	height: 20px;
	width: 20px;
	background-repeat: no-repeat;
	margin: auto;
}

#lock {
	background: url(images/icons/lock.png);
	background-size: 100% 100%;
}

.maplock {
	height: 27px;
	width: 27px;
	margin: auto;
}

#redxicon {
	background: url(images/icons/redx.png);
	background-size: 100% 100%;
}

#star {
	background: url('images/icons/star.png');
	background-size: 100% 100%;
}

.sbtpr {
	font-size: 11px;
	color: #333231;
	text-align: center;
	margin: 4px auto 7px auto;
}

.underneathmenu {
	width: 1070px;
	height: 280px;
	margin: 0 auto 50px auto;
	background: url('/cotg/images/backgrounds/newsbox.png');
	background-size: 100% 100%;
    background-repeat: no-repeat;
	color: #e3d5be;
	font-size: 12px;
	text-align: center;
}

#restab {
	display: flex;
	flex-wrap: nowrap; 
	width: 90%;
	height: 90%;
	padding-left: 30px; 
	margin-left: auto;
	margin-right: auto;
}

#miltab {
	display: none;
	flex-wrap: nowrap;
	width: 90%;
	height: 90%;
	padding-left: 30px; 
	margin-left: auto;
	margin-right: auto;
}

.tdbreaker {
	height: 7px;
}

.underneathmenu table {
	
	border-collapse: collapse;
	width: 90%;
	height: 80%;
	margin-left: auto;
	margin-right: auto;
}

#restab th {
	height: 34px;
}

.leftunderneathrestable {
	width: 50%;
	margin-right: 25px;
}

.rightunderneathrestable {
	width: 45%;
	height: 210px;
}

.leftunderneathrestable td {

}

.midbutton {
	width: 135px;
}

.smallerbutton {
	width: 90px;
}

.btt {
	width: 45px;
	text-align: center;
}

.mtt {
	text-align: center;
}

.btt button {
	width: 75%;
}

.tpb {
	margin: 0px 4px;
}

.mid {
	margin: 3px auto;
}

.bttbluebuttons {
	background: linear-gradient(#2A5B76, #193048);
	padding: 4px 10px 4px 10px;
	font-size: 12px;
	color: #e1c190;
	border: 1px solid #e1c190;
	cursor: pointer;
}

.bttbluebuttons:hover {
	background: linear-gradient(#3f6b83, #2f445a);
}


.bttbluebuttons:active {
	background: linear-gradient(#3c4c5d, #5d89a1);
}

.bttbluebuttons:focus {
	outline: none;
}

.centrefl {
	text-align: center;
	font-size: 14px;
}

.greentd {
	color: #6f6;
}

.lgreytd {
	color: #b7b7b7;
}

.dgreytd {
	color: #999999;
}

.endrow {
	text-align: right;
	padding-right: 20px;
}

.cabinpic {
	background: url(images/icons/cabin.png);
	background-size: 100% 100%;
	height: 20px;
	width: 20px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
}

.barrackspic {
	background: url(images/icons/barracks.png);
	background-size: 100% 100%;
	height: 20px;
	width: 20px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
}

.cartspic {
	background: url(images/icons/cart.png);
	background-size: 100% 100%;
	height: 14px;
	width: 20px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
}

.shipspic {
	background: url(images/icons/tradeship.png);
	background-size: 100% 100%;
	height: 20px;
	width: 20px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
}

#spothovermenu {
	display: none;
	height: 100%;
	width: 100%;
	color: #333231;
	font-size: 12px;
}

.spothovline {
	text-align: center;
	line-height: 30px;
	margin-top: 5px;
}

.optimalbuildingmain {
	margin-top: 5px;
	width: 60%;
	margin: auto;
}

.spothovertable {
	width: 100%;
	border-collapse: collapse;
}

.spothovertable td {
	width: 25%;
	text-align: center;
	height: 18px;
	font-size: 11px;
}

#optimalbuillarge {
	height: 50px;
	width: 50px;
	margin: 15px auto 20px auto;
}

#currbuilimg div, #optimbuilimg div {
	margin: 7px auto;
	height: 27px;
	width: 27px;
}

#optimalbuilname {
	text-align: center;
}

.optimicon {
	margin: auto;
	height: 24px;
	width: 24px;
	background: url('images/icons/star.png');
	background-size: 100% 100%;
}

.spothovertable {
	color: #999999;
}

.w, .white {
	color: #333231;
}
