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

body {
	background: url('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: url('images/backgrounds/newblueb1.png');
	background-size: 100% 100%;
	padding: 7px 12px 7px 12px;
    margin-top: 10px;
    margin-bottom: 5px;
	font-size: 12px;
	color: #e1c190;
	border: 1px ridge #e1c190;
	border-radius: 6px;
	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;
}
#searchwindow {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.3);
	height: 100%;
	width: 100%;
	z-index: 100;
	
}
#actualsearchwindow {
	
	position: relative;
	margin: 40px auto 0 auto;
	height: 510px;
	width: 400px;
}
#layoutaddwindow {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.3);
	height: 100%;
	width: 100%;
	z-index: 100;
}
#layoutwindow {
	
	position: relative;
	margin: 40px auto 0 auto;
	height: 510px;
	width: 400px;
}

#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 {
	
	position: relative;
	margin: 40px auto 0 auto;
	height: 510px;
	width: 400px;
}

.impexptop {
	background: url(images/backgrounds/windowtop.png);
	background-size: 100%;
	width: 100%;
	height: 147px;
}
.searchtop {
	background: url(images/backgrounds/windowtop.png);
	background-size: 100%;
	width: 100%;
	height: 147px;
}
.inputtop {
	background: url(images/backgrounds/windowtop.png);
	background-size: 100%;
	width: 100%;
	height: 90px;
}
.impexpbot {
	background: url(images/backgrounds/windowbott.png);
	background-size: 100% 100%;
	width: 100%;
	margin-bottom: 10px;
	height: 100px;	
}
.searchbot {
	background: url(images/backgrounds/windowbott.png);
	background-size: 100% 100%;
	width: 100%;
	margin-bottom: 10px;
	height: 100px;	
}
.impexpcent {
	background: url(images/backgrounds/windowcent.png);
	background-size: 100% 100%;
	width: 100%;
	height: 60%;	
}
.searchcent {
	background: url(images/backgrounds/windowcent.png);
	background-size: 100% 100%;
	width: 100%;
	height: 60%;	
}
.inputcent {
	background: url(images/backgrounds/windowcent.png);
	background-size: 100% 100%;
	width: 100%;
	height: 80%;	
}

#impexpclose, #errorwindowclose, #layoutclose, #layoutaddclose,#searchclose {
	background: url('images/backgrounds/x.png');
	background-repeat: no-repeat;
	background-size: contain;
	float: right;
	margin: 10px 10px 0 0;
	height: 50px;
	width: 50px;
	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;
	
	text-align: center;
}

.impexp2p {
	font-size: 12px;

	text-align: center;
}

.impexp3p {
	font-size: 12px;
	
	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;
}
#layoutwindow textarea {
	resize: none;
	height: 240px;
    width: 250px;
	text-align: left;
	font-size: 12px;
	overflow-y: auto;
	padding: 4px;
}

#layoutwindow 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('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;
	
}
#noticegfunky{
	text-align: center;
	background: url('images/backgrounds/bluesquare.png');
	background-size: 100% 100%;
	width: 50%;
	margin-left:auto;
	margin-right: auto;
	font-size: 12px;
	color: #ffc7c7;
	font-style: italic;
}
#divfunky{
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	padding: 30px;
}
	
#sidepanel {
	min-width: 375px;
	height: 587px;
	background: url('images/backgrounds/parchmentlong.png');
	background-size: 100% 100%;
	margin-right: 1%;
	text-align: center;
}
#sidepanelhead {
	background: url('images/backgrounds/qmenutop.png');
	background-size: 100% 100%;
	width: 85%;
	margin-left:auto;
	margin-right: auto;
	padding-top: 5px;
	padding-bottom: 5px;
	color: #e1c190;
}
#sidepanelouter{
	
    border-radius: 6px;
    width: 84%;
    margin-left: auto;
    margin-right: auto;
}

#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%;
	height: 75%;
	margin: auto;
	border: 3px ridge #e1c190;
	border-radius: 6px;
	background: url('images/backgrounds/qmenubod.png');
    background-size: 100% 100%
}

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

#selectabuildingmenu p {
	color: #333231;
	text-align: center;
	font-size: 10px;
	
}

.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: 350px;
	margin: 0 auto 50px auto;
	background: url('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;
	overflow: auto;
	font-size:10px;
}


#footer{
	text-align:center;
	color:e1c190;
	
}
.tdbreaker {
	height: 7px;
}

.underneathmenu table {
	
	border-collapse: collapse;
	
	margin-left: auto;
	margin-right: auto;
}

#restab th {
	height: 34px;
}

.leftunderneathrestable {
	width: 33%;
	margin-right: 25px;
	float:left;
}

.rightunderneathrestable {
	width: 33%;
	height: 210px;
	float:right;
}
.centerunderneathrestable {
    border-spacing: 5px;
	
}

.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: url('images/backgrounds/newblueb1.png');
	background-size: 100% 100%;
	padding: 4px 10px 4px 10px;
	font-size: 12px;
	color: #e1c190;
	border: 1px ridge #e1c190;
	border-radius: 6px;
	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;
}




/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 280px;
}

/* The popup form - hidden by default */
.form-popup {
  display: none;

  text-align: center;
  border: 3px ridge #e1c190;
  border-radius:6px;
  z-index: 9;
  
}

/* Add styles to the form container */
.form-container {
  max-width: 30%;
  border-radius:6px;
  height: 50%;
  padding: 10px;
  background-color: #e1c190;
  text-align:center;
}

/* Full-width input fields */
.form-container input[type=text], .form-container input[type=password] {
  width: 50%;
  border: none;
  background: #555;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: #4CAF50;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  
  margin-bottom:10px;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

.w, .white {
	color: #333231;
}
/* unvisited link */
a:link {
  color: #e1c190;
  text-decoration:none;
}

/* visited link */
a:visited {
  color: #e1c190;
   text-decoration:none;
}

/* mouse over link */
a:hover {
  color: #e1c190;
  text-decoration:underline;
}

/* selected link */
a:active {
  color: #e1c190;
  text-decoration:none;
}

