/*basic style*/

body{
	background-image: url("/upload/34pltms.jpg");
	background-color: #FFF7F4;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	font-size: 2px;
	font-family: MS sans serif, sans-serif;
}

h1{ 
    display: block;
    font-size: 28px;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: normal;
	text-decoration: italics;
	font-family: Lucinda Sans Unicode, sans-serif;
}

h2{
	font-size: 17px;
	font-family: Lucinda Sans Unicode, sans-serif;
	font-weight: normal;
	text-decoration: underline;
	margin: 0.5em auto;

}

a {
	color: #54632C;
	}

a:hover{
	color: #768256;
}


/*button styles*/

button.village {
	width:110px;
	height:100px;
	border-style:solid;
	border-width:2px;
	border-color:#964514;
	background-color:#EEE9E9;
	margin-right:10px;
	padding:0.1em;
	font-size: 14px;
	font-weight:500;
	font-family: MS sans serif, sans-serif;
}

button.village:hover{
	background-color:#e3dbdb;
}

button.forest {
	width:110px;
	height:100px;
	border-style:solid;
	border-width:2px;
	border-color:#54632C;
	background-color:#E8F1D4;
	margin-right:10px;
	padding:0.1em;
	font-size: 14px;
	font-weight:500;
	font-family: MS sans serif, sans-serif;
}

button.forest:hover{
	background-color:#deebc1;
}

button.shoptab {
	width:65px;
	height:20px;
	border-style:solid;
	border-width:1px;
	border-color:#000;
	background-color:#fff;
	margin-right:10px;
	font-size: 14px;
	font-weight:500;
	font-family: MS sans serif, sans-serif;
}

button.shoptab:hover{
	background-color:#d2d2d2;
}

button.selected{
	background-color:#d2d2d2;
}

button.newupgrade {
	border-color:#000;
	background-color:#E8F1D4;
	font-color:#000;	
}


/*table styles*/

table {						
	table-layout:fixed;		/*this is for my forest text wrapping*/
	border-spacing: 8px;
    border-collapse: separate;
	font-size: 14;
	font-family: MS sans serif, sans-serif;
	
}
	
td.default {
	border-style: solid;
	border-width: 1px;
	border-color: #964514;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	width: 230px;
	height: 550px;
	position: relative;
	background: #fff;
}

td.forest {
	border-style: solid;
	border-width: 1px;
	border-color: #964514;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	overflow:hidden;		/*this is for my forest text wrapping*/
	white-space: nowrap;	/*this is for my forest text wrapping*/ 
	width: 230px;
	height: 550px;
	position: relative;
	background-color: #fff;
}


/*div styles*/

div.kingdom_status {
	width:110px;
	height:93px;
	border-style:solid;
	border-width:2px;
	border-color:#964514;
	margin-right:10px;
	padding:0.1em;
	font-size: 14px;
	font-weight:500;
	font-family: MS sans serif, sans-serif;
	}

div.parent_shoptab{
	position: relative;
	height: 1px;
}
	
div.child_shoptab{
	position: absolute;
    bottom: 0px;
	left: 0px;
	width: 100%;
	padding-bottom: 10px;
}

div.parent_fade{
	height: 1px;
}
	
div.child_fade{
	position: absolute;
    bottom: 0px;
	left: 0px;
	width: 100%;
	height: 300px;
	z-index: 99;
	background: url("/upload/23woggi.jpg") no-repeat left bottom;
}


/*placeholders and display*/

.worker_display, .resource_display, .shop_display {
	display: none;
}
	
#shop_placeholder {
  display: none;
}

#castle_placeholder {
	display: none;
}

/*alert css*/

.dialog::before {
  background: rgba(0, 0, 0, 0.5);
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  height: 100vh;
  width: 100vw;
  transform: translate(-50vw, -50vh);
  z-index: -2;
}

.dialog {
  display: none;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 3em;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  height: 230px;
  line-height: 30px;
  font-family: MS sans serif;
  font-size: 19px;
}

.dialog--open {
  display: block;
}

.dialog::after {
  background: white;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

.dialog-text {
  margin-bottom: 0.5em;
}

button.alert {
    border-style:solid;
	border-width:2px;
	border-color:#964514;
	background-color:#EEE9E9;
    width: 90px;
    height: 40px;
    font-family: MS sans serif;
    font-size: 22px;
}