/* General stylesheet */
/* Fonts */
/* Various palette colors */
/* Controls */
/* Modal */
/* Panels */
/* Windows */
/* Buttons */
/* Tabs */
/* Tables */
/* Progress Bars */
/* Notifications */
/* Tips */
/* Images */
/* Game animations */
.scale {
	animation: scale-frames linear 1s;
	animation-iteration-count: 1;
	transform-origin: 50% 50%;
}

@keyframes scale-frames {
	0% {
		transform: rotate(0deg) scaleX(1) scaleY(1);
	}
	10% {
		transform: rotate(-3deg) scaleX(0.9) scaleY(0.9);
	}
	20% {
		transform: rotate(-3deg) scaleX(0.8) scaleY(0.8);
	}
	30% {
		transform: rotate(3deg) scaleX(0.7) scaleY(0.7);
	}
	40% {
		transform: rotate(-3deg) scaleX(0.6) scaleY(0.6);
	}
	50% {
		transform: rotate(3deg) scaleX(0.5) scaleY(0.5);
	}
	60% {
		transform: rotate(-3deg) scaleX(0.5) scaleY(0.5);
	}
	70% {
		transform: rotate(3deg) scaleX(0.6) scaleY(0.6);
	}
	80% {
		transform: rotate(-3deg) scaleX(0.7) scaleY(0.7);
	}
	90% {
		transform: rotate(3deg) scaleX(0.8) scaleY(0.8);
	}
	100% {
		transform: rotate(0deg) scaleX(0.9) scaleY(0.9);
	}
}
.poof {
	animation: poof-frames linear 1s;
	animation-iteration-count: 1;
	transform-origin: 50% 50%;
}

@keyframes poof-frames {
	0% {
		transform: rotate(0deg) scaleX(1) scaleY(1);
	}
	10% {
		transform: rotate(-3deg) scaleX(0.9) scaleY(0.9);
	}
	20% {
		transform: rotate(-3deg) scaleX(0.8) scaleY(0.8);
	}
	30% {
		transform: rotate(3deg) scaleX(0.7) scaleY(0.7);
	}
	40% {
		transform: rotate(-3deg) scaleX(0.6) scaleY(0.6);
	}
	50% {
		transform: rotate(3deg) scaleX(0.5) scaleY(0.5);
	}
	60% {
		transform: rotate(-3deg) scaleX(0.4) scaleY(0.4);
	}
	70% {
		transform: rotate(3deg) scaleX(0.3) scaleY(0.3);
	}
	80% {
		transform: rotate(-3deg) scaleX(0.2) scaleY(0.2);
	}
	90% {
		transform: rotate(3deg) scaleX(0.1) scaleY(0.1);
	}
	100% {
		transform: rotate(0deg) scaleX(0) scaleY(0);
	}
}
/* Main rules */
@font-face {
	font-family: "Lumberjack";
	src: url("fonts/lumberjack.woff2") format("woff2"), url("fonts/lumberjack.woff") format("woff");
	font-weight: normal;
	font-style: normal;
}
* {
	user-select: none;
	font-family: Lumberjack;
}

a {
	color: white;
	text-decoration: none;
}

body {
	margin: 0;
	padding: 0;
	font-style: normal;
	font-weight: 400;
	overflow: hidden;
	background-color: black;
	font-size: 14px;
}

body > p {
	display: none;
}

ul,
li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.clearfix {
	clear: both;
}

:focus {
	outline: none;
}

::-moz-focus-inner {
	border: 0;
}

p {
	margin-top: 0;
}

input[type=range] {
	width: 100%;
	margin: 10px 0 0 0;
}

input[type=range]:focus {
	outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 8px;
	cursor: pointer;
	background-color: #9b6b46;
	border-radius: 2px;
	border: 1px solid #9b6b46;
}

input[type=range]::-webkit-slider-thumb {
	height: 16px;
	width: 16px;
	border: 1px solid #442813;
	border-radius: 100%;
	background-color: #000;
	cursor: pointer;
	margin-top: -5px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
	background-color: #9b6b46;
}

input[type=range]::-moz-range-track {
	width: 100%;
	height: 14px;
	cursor: pointer;
	background-color: #9b6b46;
	border-radius: 2px;
	border: 1px solid #9b6b46;
}

input[type=range]::-moz-range-thumb {
	height: 16px;
	width: 16px;
	border: 1px solid #442813;
	border-radius: 100%;
	background: #442813;
	cursor: pointer;
}

input[type=range]:focus::-moz-slider-runnable-track {
	background: #9b6b46;
}

input[type=number].small,
input[type=password].small,
input[type=text].small {
	width: 70px;
}

input[type=text],
input[type=number],
select {
	border: 1px solid #C0A582;
	background: #C0A582;
	color: #000;
	padding: 2px 6px;
	font-size: 12px;
	border-radius: 0;
}

.ui {
	width: 100%;
	height: 100%;
	position: relative;
}
.ui > header {
	width: 100%;
	height: 48px;
	left: 0;
	z-index: 9999;
	top: 0;
	position: fixed;
	box-sizing: border-box;
}
.ui > header .resource-panel {
	width: 65%;
	position: absolute;
	top: 0;
	right: 0;
	padding: 8px 12px 14px 0;
	font-size: 16px;
}
.ui > header .resource-panel .resource {
	float: right;
}
.ui > header .resource-panel .resource .amount {
	color: #bababa;
	padding: 0 2px 0 4px;
}
.ui > header .resource-panel img {
	height: 24px;
	width: 24px;
	display: inline-block;
	vertical-align: middle;
	line-height: 24px;
	text-align: center;
	margin-right: 6px;
}
.ui > header .top-panel {
	width: 30%;
	position: absolute;
	top: 0;
	left: 0;
	padding: 8px 0 14px 12px;
	color: #bababa;
	font-size: 16px;
	text-align: left;
}
.ui > header .top-panel .resource {
	float: left;
}
.ui > header .top-panel .resource .amount {
	color: #bababa;
	padding: 0 2px 0 4px;
}
.ui > header .top-panel img {
	height: 24px;
	width: 24px;
	display: inline-block;
	vertical-align: middle;
	line-height: 24px;
	text-align: center;
	margin-right: 6px;
}
.ui > footer {
	background-color: transparent;
	position: fixed;
	bottom: 0;
	z-index: 9999;
}
.ui > footer > a {
	width: 52px;
	height: 52px;
	margin: 0 5px 0 0;
	cursor: pointer;
	float: left;
	background-size: 52px;
	background-repeat: no-repeat;
	background-color: transparent;
}
.ui .game {
	position: relative;
	z-index: 99;
	width: 1920px;
	height: 1080px;
	overflow: hidden;
}
.ui .game .building {
	width: 100px;
	height: 100px;
	cursor: pointer;
	position: absolute;
	background-size: 100px;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
}
.ui .game .building.large {
	width: 200px;
	height: 200px;
	background-size: 200px;
}
.ui .game .building .notification {
	width: 46px;
	height: 46px;
	position: absolute;
	top: 45%;
	left: 45%;
}
.ui dd img {
	vertical-align: middle;
	margin-left: 4px;
}
.ui dt img {
	vertical-align: middle;
}
.ui a.disabled {
	background-color: #878787;
	color: #4e2c12;
	cursor: default;
}
.ui .hidden,
.ui .espionage-rel {
	display: none;
}
.ui .range-combo input[type=range],
.ui .select-combo select {
	float: left;
	width: 60% !important;
	padding: 4px 0;
}
.ui .range-combo input[type=text],
.ui .select-combo input[type=number] {
	float: right;
	width: 40px;
	text-align: center;
	padding: 4px 0;
}
.ui .select-combo input[type=button] {
	float: right;
	border: 1px solid #C0A582;
	border-left: 1px solid #000;
	background-color: #C0A582;
	padding: 4px;
	font-size: 12px;
	cursor: pointer;
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}
.ui .range-combo input[type=text].espionage-chance {
	width: 26px;
	border-right: 0;
}
.ui .range-combo input[type=text].espionage-value {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}
.ui span.green {
	color: #008a0b;
}
.ui span.red {
	color: #f00000;
}
.ui span.blue {
	color: #5d5def;
}
.ui span.yellow {
	color: #ffd000;
}
.ui span.magenta {
	color: #ec187f;
}
.ui .viewport {
	top: 48px;
	position: relative;
	overflow: hidden;
}

/* Others */
.loading {
	display: none;
	position: fixed;
	top: 10px;
	right: 10px;
	background-color: black;
	height: 46px;
	width: 46px;
	z-index: 99999999;
}

.hr {
	border-top: 1px solid #cccccc;
	padding-top: 5px;
	margin-top: 5px;
	clear: both;
	height: 0;
}

.float-left {
	float: left;
}

.float-right {
	float: right;
}

img.avatar {
	border-radius: 100%;
	border: 0;
	padding: 0;
	width: 90px;
	height: 90px;
}
img.avatar.small {
	width: 64px;
	height: 64px;
}
img.avatar.right {
	float: right;
	margin: 0 10px 0 0;
}
img.small {
	width: 20px;
	height: 20px;
}

p.title,
p span.title {
	font-size: 14px;
}

p.description,
p span.description {
	font-size: 12px;
}

dl.nomg {
	margin: 0 !important;
}

td.icon {
	width: 60px;
}

a.wikipedia {
	width: 20px;
	height: 20px;
	display: inline-block;
}

.ui > footer {
	padding: 8px 8px 0 8px;
	position: fixed;
	bottom: 0;
}

.ui > footer a {
	display: inline-block;
	text-indent: -999em;
}

.ui > header {
	color: #fff;
	padding: 5px 10 16px;
}

.character-info {
	position: fixed;
	top: 48px;
	left: 0px;
	padding: 15px;
	z-index: 999;
	font-size: 28px;
	text-shadow: -1px -1px #201106;
	color: #fff;
	white-space: nowrap;
}

.character-info small {
	font-size: 18px;
	display: block;
}

.avatar-banner {
	float: left;
	margin-right: 10px;
	width: 86px;
	height: 86px;
	padding: 9px;
	border-radius: 50%;
}

.avatar-banner span {
	width: 86px;
	height: 86px;
	display: block;
	background-size: cover;
	border-radius: 50%;
}

.character-info:after {
	content: "";
	width: 104px;
	height: 108px;
	position: absolute;
	left: 15px;
	margin-top: 10px;
	z-index: -1;
	filter: hue-rotate(0deg);
}

.character-info.right {
	left: auto;
	right: 0px;
	text-align: right;
}

.character-info.right .avatar-banner {
	float: right;
	margin-right: 0px;
	margin-left: 10px;
}

.character-info.right:after {
	right: 15px;
	left: auto;
}

.ui .cityavatar {
	cursor: pointer;
}

/* Modal Windows */
.modal-overlay {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	display: none;
	z-index: 999998;
	background-position: 0 0;
	background-repeat: repeat;
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNiOAMAANUAz5n+TlUAAAAASUVORK5CYII=);
}
.modal-overlay .modal {
	width: 500px;
	margin-left: auto;
	margin-right: auto;
	z-index: 999999;
	position: absolute;
	color: #666666;
	display: none;
	box-shadow: 0 0 5px black;
}
.modal-overlay .modal > header {
	background-image: linear-gradient(to bottom, #9b6b46, #6a4324);
	color: white;
	font-size: 18px;
	padding: 4px 10px;
	text-align: left;
	text-transform: uppercase;
}
.modal-overlay .modal > section {
	background-color: white;
	border-bottom: 1px solid #cccccc;
	min-height: 50px;
	padding: 20px;
	text-align: left;
}
.modal-overlay .modal > footer {
	background-color: #f0f0f0;
	padding: 10px;
}
.modal-overlay .modal .btn {
	border-radius: 3px;
	padding: 4px 10px;
	color: white !important;
	text-transform: uppercase;
	text-align: center;
	font-size: 14px;
	display: inline-block;
	border: 1px solid #6a4324;
	background-image: linear-gradient(to bottom, #9b6b46, #6a4324);
	color: white;
}
.modal-overlay .modal .btn:hover {
	border: 1px solid #442813;
	background-image: linear-gradient(to bottom, #6a4324, #442813);
	color: white;
}

/* Notifications */
.notifications {
	position: fixed;
	top: 50px;
	right: 10px;
	width: 360px;
	z-index: 99999;
}

.achievements-notifications {
	position: fixed;
	bottom: 70px;
	width: 340px;
	z-index: 99998;
}

.notifications .notty,
.achievements-notifications .notty,
.achievement {
	padding: 10px;
	margin-bottom: 10px;
	color: #454545;
	font-size: 14px;
	background-color: #DCDCE6;
	box-shadow: 0 0 2px #000;
	position: relative;
	overflow: hidden;
	opacity: 0.9;
}

.achievement.has {
	border-radius: 4px;
	background-color: #c6c438;
	background-image: linear-gradient(to bottom, #f5f36b, #c6c438);
}

.achievement {
	opacity: 1;
}

.achievements-list .achievement {
	width: 350px;
	float: left;
	margin-right: 10px;
	min-height: 70px;
	max-height: 80px;
	border-radius: 4px;
}

.achievements-list .achievement:nth-child(even) {
	margin-right: 0;
}

.achievements-list {
	padding: 10px 0;
	max-height: 420px;
	overflow: auto;
}

.achievement {
	border-radius: 60px;
	background: linear-gradient(to bottom, #e5e5e5 0%, #8e8e8e 100%);
}

.achievements-notifications .notty {
	border-radius: 60px;
	background-image: linear-gradient(to bottom, #e0e000, #c7c538);
	box-shadow: 0 0 2px #000;
}

.notifications .notty.error {
	background-color: #e194a0;
}

.notifications .notty.event {
	background-color: #76bce5;
}

.notifications .notty.research {
	background-color: #78e2d1;
}

.notifications .notty.religion {
	background-color: #c79bfd;
}

.notifications .notty .hide,
.achievements-notifications .notty .hide {
	position: absolute;
	display: inline-block;
	height: 24px;
	width: 24px;
	right: 0;
	top: 0;
	padding: 0;
	cursor: pointer;
	display: none;
	margin: 6px;
}

.achievements-notifications .notty .hide {
	top: 14px;
	right: 6px;
}

.notifications .notty .right,
.achievements-notifications .notty .right,
.achievement div.right {
	width: 79%;
	height: 100%;
	float: left;
	display: block !important;
}

.notifications .notty .left,
.achievements-notifications .notty .left,
.achievement div.left {
	height: 100%;
	float: left;
	display: block !important;
}

.notifications .notty .time-ago,
.achievement .time-ago {
	font-size: 9px;
	position: relative;
	float: right;
}

.notifications .notty .right .time-ago,
.achievement .right .time-ago {
	margin-right: 10px;
}

.notifications .notty .left,
.achievements-notifications .notty .left,
.achievement .left {
	width: 20%;
}

.notifications .notty .right .inner,
.achievements-notifications .notty .right .inner,
.achievement .right .inner {
	padding-left: 10px;
	font-size: 12px;
}

.notifications .notty .left .img:after {
	content: "";
	background: #000;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.6), transparent);
	width: 1px;
	height: 50px;
	position: absolute;
	right: -10px;
}

.notifications .notty .left .img,
.achievements-notifications .notty .left .img,
.achievement .left .img {
	width: 46px;
	background-size: auto 100%;
	height: 46px;
	position: relative;
}

.achievement .left .img {
	margin: 0 auto;
}

.achievement .left .points {
	font-size: 14px;
	text-align: center;
}

.notifications .notty:after,
.achievements-notifications .notty:after,
.achievement:after {
	content: ".";
	visibility: hidden;
	display: block;
	clear: both;
	height: 0;
	font-size: 0;
}

.notifications .notty h2,
.achievements-notifications .notty h2,
.achievement h2 {
	margin: 0 0 5px 0;
	font-size: 18px;
	color: #454545;
	text-transform: uppercase;
}

/* Progress bars */
.ui .progress {
	border: 1px solid #878787;
	background: #a8a8a8;
	line-height: 100%;
	display: inline-block;
	position: relative;
	padding: 0;
	padding: 7px 10px;
	height: 48px;
	border: none;
	width: 100% !important;
	box-sizing: border-box;
}
.ui .progress.small {
	width: 200px;
	padding: 4px 5px;
	height: 25px;
}
.ui .progress.big {
	width: 400px;
}
.ui .progress.large {
	width: 400px;
	margin: 0 auto;
	display: block;
}
.ui .progress.small .bar {
	height: 17px;
	line-height: 17px;
	font-size: 13px;
	border-radius: 2px;
}
.ui .progress.large .bar p {
	height: 40px;
	font-size: 20px;
}
.ui .progress .bar {
	background-color: #6a4324;
	height: 34px;
	line-height: 34px;
	font-size: 20px;
	border-radius: 4px;
	border: none;
}
.ui .progress .bar p {
	position: absolute;
	text-align: center;
	width: 100%;
	margin: 0;
	text-shadow: 1px 1px 2px black;
	color: white;
	line-height: inherit;
	font-size: inherit;
}
.ui .progress .bar.good {
	background-color: #008a0b;
}
.ui .progress .bar.bad {
	background-color: #d19900;
}
.ui .progress .bar.vbad {
	background-color: #f00000;
}
.ui .progress .bar.ubad {
	background-color: #8a0000;
}
.ui .progress .bar.vgood {
	background-color: #0091ad;
}
.ui .progress .bar.ugood {
	background-color: #5d5def;
}

/* Bottom panel with game actions */
footer a[data-panel=trades] {
	background-image: url(images/assets/ui/toolbar/trades.png);
}

footer a[data-panel=storage] {
	background-image: url(images/assets/ui/toolbar/storage.png);
}

footer a[data-panel=buildings] {
	background-image: url(images/assets/ui/toolbar/build.png);
}

footer a[data-panel=council] {
	background-image: url(images/assets/ui/toolbar/council.png);
}

footer a[data-panel=world] {
	background-image: url(images/assets/ui/toolbar/worldmap.png);
}

footer a[data-panel=ranks] {
	background-image: url(images/assets/ui/toolbar/ranks.png);
}

footer a[data-panel=debug] {
	background-image: url(images/assets/ui/toolbar/debug.png);
}

footer a[data-panel=help] {
	background-image: url(images/assets/ui/toolbar/help.png);
}

/* Panel footer icons */
.panel header .close {
	background: transparent url(images/ui/close.png) no-repeat;
}

.panel footer .attack span {
	background: transparent url(images/assets/ui/icons/attack.png) no-repeat;
}

.panel footer .spy span {
	background: transparent url(images/assets/ui/icons/spy.png) no-repeat;
}

.panel footer .scout span {
	background: transparent url(images/assets/ui/icons/spy.png) no-repeat;
}

.panel footer .ceasefire span {
	background: transparent url(images/assets/ui/icons/sign.png) no-repeat;
}

.panel footer .claim span {
	background: transparent url(images/assets/ui/icons/upgrade.png) no-repeat;
}

.panel footer .unclaim span {
	background: transparent url(images/assets/ui/icons/downgrade.png) no-repeat;
}

.panel footer .caravan span {
	background: transparent url(images/assets/ui/icons/caravan.png) no-repeat;
}

.panel footer .join span {
	background: transparent url(images/assets/ui/icons/home.png) no-repeat;
}

.panel footer .alliance span {
	background: transparent url(images/assets/ui/icons/alliance.png) no-repeat;
}

.panel footer .pact span {
	background: transparent url(images/assets/ui/icons/pact.png) no-repeat;
}

.panel footer .start span {
	background: transparent url(images/assets/ui/icons/start.png) no-repeat;
}

.panel footer .pause span {
	background: transparent url(images/assets/ui/icons/stop.png) no-repeat;
}

.panel footer .demolish span {
	background: transparent url(images/assets/ui/icons/demolish.png) no-repeat;
}

.panel footer .war span {
	background: transparent url(images/assets/ui/icons/war.png) no-repeat;
}

.panel footer .upgrade span {
	background: transparent url(images/assets/ui/icons/upgrade.png) no-repeat;
}

.panel footer .downgrade span {
	background: transparent url(images/assets/ui/icons/downgrade.png) no-repeat;
}

/* Building notifications */
.game .building .notification.error {
	background: transparent url(images/assets/ui/icons/notify-error.png) no-repeat;
}

.game .building .notification.paused {
	background: transparent url(images/assets/ui/icons/notify-pause.png) no-repeat;
}

.game .building .notification.requirements {
	background: transparent url(images/assets/ui/icons/notify-missing.png) no-repeat;
}

/* Others */
.ach.img {
	background: transparent url(images/assets/ui/icon_achievement.png) no-repeat;
}

.loading {
	background: transparent url(images/ui/loading.svg) no-repeat;
}

.notifications .notty .hide,
.achievements-notifications .notty .hide {
	background: transparent url(images/ui/close.png) no-repeat;
}

.panel ul.advices li {
	background: transparent url(images/ui/check.png) no-repeat left top;
}

.religion-list .religion {
	background: transparent url(images/assets/ui/religion.png) no-repeat center;
}

.game {
	background: black url(images/city/map.jpg) no-repeat;
}

.panel td a.sbtn.start {
	background: transparent url(images/assets/ui/icons/start.png) no-repeat;
}

.panel td a.sbtn.pause {
	background: transparent url(images/assets/ui/icons/stop.png) no-repeat;
}

/*
#window-battle .battleground {
	background: transparent url(images/battle/bg2.png) no-repeat;
}

a.wikipedia {
	background: transparent url(images/ui/wikipedia.png) no-repeat;
}
*/
.window .avatar-select-top {
	background: url(images/ui/avatar-background.png) no-repeat center center;
}

.window fieldset {
	background: url(images/ui/border-top-left.png) no-repeat left top, url(images/ui/border-top-right.png) no-repeat right top, url(images/ui/border-bottom-right.png) no-repeat right bottom, url(images/ui/border-bottom-left.png) no-repeat left bottom, url(images/ui/border-top.png) repeat-x left top, url(images/ui/border-right.png) repeat-y right bottom, url(images/ui/border-bottom.png) repeat-x right bottom, url(images/ui/border-left.png) repeat-y left bottom, url(images/ui/panel-background.png) repeat left top;
}

.window .button {
	background: url(images/ui/buttons-bg-corners.png) no-repeat -219px 0px, url(images/ui/buttons-bg-corners.png) no-repeat calc(100% + 131px) 0, url(images/ui/buttons-bg.png) repeat-x 0 0;
}

.window .button.highlight {
	background: url(images/ui/buttons-bg-corners.png) no-repeat -219px -106px, url(images/ui/buttons-bg-corners.png) no-repeat calc(100% + 131px) -106px, url(images/ui/buttons-bg.png) repeat-x 0 -106px;
}

.window .button.button-gray {
	background: url(images/ui/buttons-bg-corners.png) no-repeat -219px -159px, url(images/ui/buttons-bg-corners.png) no-repeat calc(100% + 131px) -159px, url(images/ui/buttons-bg.png) repeat-x 0 -159px;
}

.window .button.button-green {
	background: url(images/ui/buttons-bg-corners.png) no-repeat -219px -212px, url(images/ui/buttons-bg-corners.png) no-repeat calc(100% + 131px) -212px, url(images/ui/buttons-bg.png) repeat-x 0 -212px;
}

.window .button.button-blue {
	background: url(images/ui/buttons-bg-corners.png) no-repeat -219px -265px, url(images/ui/buttons-bg-corners.png) no-repeat calc(100% + 131px) -265px, url(images/ui/buttons-bg.png) repeat-x 0 -265px;
}

.window .button:hover {
	background: url(images/ui/buttons-bg-corners.png) no-repeat -219px -53px, url(images/ui/buttons-bg-corners.png) no-repeat calc(100% + 131px) -53px, url(images/ui/buttons-bg.png) repeat-x 0 -53px !important;
}

.ui > footer {
	background: url(images/ui/border-top-left.png) no-repeat left top, url(images/ui/border-top-right.png) no-repeat right top, url(images/ui/border-top.png) repeat-x left top, url(images/ui/border-right.png) repeat-y right bottom, url(images/ui/border-left.png) repeat-y left bottom, url(images/ui/panel-background.png) repeat left top;
}

.ui > header {
	background: url(images/ui/border-bottom.png) repeat-x right bottom, url(images/ui/panel-background.png) repeat left top;
}

.avatar-banner {
	background: url(images/ui/avatar-banner-circle.png) no-repeat;
}

.character-info:after {
	background: url(images/ui/avatar-banner-flag.png) no-repeat;
}

.ui .progress {
	background: url(images/ui/progress-bar-corners-big.png) no-repeat -50px 0px, url(images/ui/progress-bar-corners-big.png) no-repeat calc(100% + 50px) 0, url(images/ui/progress-bar-big.png) repeat-x 0 0;
}

.ui .progress.small {
	background: url(images/ui/progress-bar-corners-small.png) no-repeat -25px 0px, url(images/ui/progress-bar-corners-small.png) no-repeat calc(100% + 25px) 0, url(images/ui/progress-bar-small.png) repeat-x 0 0;
}

.ui .panel footer a {
	background: url(images/ui/button-bg.png) no-repeat 0 0;
}

.ui .panel header .close {
	background: url(images/ui/panel-close.png) no-repeat left top;
}

.ui .panel footer a.light-link {
	background: url(images/ui/button-bg.png) no-repeat -100px 0;
}

.ui .panel footer a.green-link {
	background: url(images/ui/button-bg.png) no-repeat -150px 0;
}

.ui .panel footer a.red-link {
	background: url(images/ui/button-bg.png) no-repeat -200px 0;
}

.ui .panel footer a.blue-link {
	background: url(images/ui/button-bg.png) no-repeat -250px 0;
}

.ui .panel footer a.indigo-link {
	background: url(images/ui/button-bg.png) no-repeat -300px 0;
}

.ui .panel footer a.orange-link {
	background: url(images/ui/button-bg.png) no-repeat -350px 0;
}

.ui .panel footer a:hover {
	background: url(images/ui/button-bg.png) no-repeat -50px 0 !important;
}

.ui .panel {
	background: url(images/ui/border-top-left.png) no-repeat left top, url(images/ui/border-top-right.png) no-repeat right top, url(images/ui/border-bottom-right.png) no-repeat right bottom, url(images/ui/border-bottom-left.png) no-repeat left bottom, url(images/ui/border-top.png) repeat-x left top, url(images/ui/border-right.png) repeat-y right bottom, url(images/ui/border-bottom.png) repeat-x right bottom, url(images/ui/border-left.png) repeat-y left bottom, url(images/ui/panel-background.png) repeat left top;
}

.ui > aside {
	background: url(images/ui/border-left.png) repeat-y left bottom, url(images/ui/panel-background.png) repeat left top;
}

.ui .btn,
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
	background: url(images/ui/tab-bg-corners.png) no-repeat -36px 0px, url(images/ui/tab-bg-corners.png) no-repeat calc(100% + 42px) 0, url(images/ui/tab-bg.png) repeat-x 0 0;
}

.ui .btn.gray,
.ui-tabs .ui-tabs-nav li.gray .ui-tabs-anchor {
	background: url(images/ui/tab-bg-corners.png) no-repeat -36px -108px, url(images/ui/tab-bg-corners.png) no-repeat calc(100% + 42px) -108px, url(images/ui/tab-bg.png) repeat-x 0 -108px;
}

.ui .btn.green,
.ui-tabs .ui-tabs-nav li.green .ui-tabs-anchor {
	background: url(images/ui/tab-bg-corners.png) no-repeat -36px -144px, url(images/ui/tab-bg-corners.png) no-repeat calc(100% + 42px) -144px, url(images/ui/tab-bg.png) repeat-x 0 -144px;
}

#window-battle .decorated,
.ui .btn.blue,
.ui-tabs .ui-tabs-nav li.blue .ui-tabs-anchor {
	background: url(images/ui/tab-bg-corners.png) no-repeat -36px -180px, url(images/ui/tab-bg-corners.png) no-repeat calc(100% + 42px) -180px, url(images/ui/tab-bg.png) repeat-x 0 -180px;
}

.ui .btn:hover,
.ui-tabs .ui-tabs-nav .ui-tabs-anchor:hover {
	background: url(images/ui/tab-bg-corners.png) no-repeat -36px -36px, url(images/ui/tab-bg-corners.png) no-repeat calc(100% + 42px) -36px, url(images/ui/tab-bg.png) repeat-x 0 -36px !important;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
	background: url(images/ui/tab-bg-corners.png) no-repeat -36px -72px, url(images/ui/tab-bg-corners.png) no-repeat calc(100% + 42px) -72px, url(images/ui/tab-bg.png) repeat-x 0 -72px !important;
}

#window-battle .battleground .cell[data-soldier=bowman] {
	fill: url(images/assets/army/bowman.png);
}

/* Tables */
table {
	width: 100%;
	padding: 0;
	border-spacing: 1px;
	border-collapse: separate;
}
table td {
	text-align: left;
	vertical-align: middle;
	padding: 10px;
}
table thead td,
table tfoot td {
	padding: 10px;
}
table tr.notify {
	background-color: #8a0000;
}
table td.center {
	text-align: center;
}
table td img {
	vertical-align: middle;
}
table tbody tr:hover {
	background-color: rgba(149, 96, 35, 0.4);
	color: white;
	opacity: 1;
}
table tr:hover td:first-child a {
	color: white;
}
table tr td:last-child a {
	border-radius: 3px;
	padding: 4px 10px;
	color: white !important;
	text-transform: uppercase;
	text-align: center;
	font-size: 14px;
	text-decoration: none !important;
	display: inline-block;
}
table tr td a.disabled {
	display: none;
}
table tr td.large {
	width: 45%;
}
table tr td.medium {
	width: 25%;
}
table td a.sbtn {
	width: 28px;
	height: 28px;
	padding: 0 !important;
	border: 0 !important;
	background-size: contain !important;
}
table thead td,
table tfoot td {
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
}
table tr td:last-child a {
	border: 1px solid #6a4324;
	background-image: linear-gradient(to bottom, #9b6b46, #6a4324);
	color: white;
}
table tr td:last-child a:hover {
	border: 1px solid #442813;
	background-image: linear-gradient(to bottom, #6a4324, #442813);
	color: white;
}

/* Tabs */
.tabs > ul > li {
	float: left;
}

.tabs > ul > li > a {
	color: #454545;
	text-decoration: none;
	padding: 6px 8px;
	display: block;
}

.tabs ul li.ui-tabs-active a {
	color: white !important;
}

.tabs ul li.ui-tabs-active {
	background-image: linear-gradient(to bottom, #9b6b46, #6a4324);
	color: white;
}

.ui-tabs-panel > p,
.ui-tabs-panel > div > p {
	margin-top: 10px;
}

.ui-tabs-panel .contents {
	max-height: 340px;
	overflow: auto;
}

.ui-tabs-panel:after,
.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
	content: "";
	display: table;
	border-collapse: collapse;
}

.ui-tabs-panel:after,
.ui-helper-clearfix:after {
	clear: both;
}

.ui-helper-clearfix {
	min-height: 0;
}

.ui-tabs-panel {
	position: relative;
	margin-top: 10px;
}

.ui-tabs-panel > span {
	display: inline-block;
	padding: 4px 10px;
}

.ui-tabs .ui-tabs-nav li {
	position: relative;
	margin-right: 2px;
}

/*
.ui-tabs .ui-tabs-nav li:before {
	display: block;
	position: absolute;
	content: " ";
	width: 40px;
	height: 36px;
	left: 0;
	top: 0;
	background: url(images/ui/tab-bg-corners.png) no-repeat -36px 0px;
}
*/
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
	font-size: 14px;
	color: #fff;
	text-decoration: none;
	text-shadow: -1px -1px #201106;
	font-weight: 300;
	position: relative;
	padding: 8px 20px;
}

/* Tipsy */
.tipsy {
	font-size: 12px;
	position: absolute;
	padding: 5px;
	z-index: 100000;
}

.tipsy-inner {
	background-color: white;
	color: black;
	max-width: 280px;
	padding: 10px;
	text-align: left;
}

.tipsy-inner {
	border-radius: 3px;
}

.tipsy-inner {
	box-shadow: 0 0 5px #bababa;
}

.tipsy-arrow {
	position: absolute;
	width: 0;
	height: 0;
	line-height: 0;
	border: 5px dashed white;
}

.tipsy-arrow-n {
	border-bottom-color: white;
}

.tipsy-arrow-s {
	border-top-color: white;
}

.tipsy-arrow-e {
	border-left-color: white;
}

.tipsy-arrow-w {
	border-right-color: white;
}

.tipsy-n .tipsy-arrow {
	top: 0;
	left: 50%;
	margin-left: -5px;
	border-bottom-style: solid;
	border-top: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-nw .tipsy-arrow {
	top: 0;
	left: 10px;
	border-bottom-style: solid;
	border-top: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-ne .tipsy-arrow {
	top: 0;
	right: 10px;
	border-bottom-style: solid;
	border-top: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-s .tipsy-arrow {
	bottom: 0;
	left: 50%;
	margin-left: -5px;
	border-top-style: solid;
	border-bottom: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-sw .tipsy-arrow {
	bottom: 0;
	left: 10px;
	border-top-style: solid;
	border-bottom: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-se .tipsy-arrow {
	bottom: 0;
	right: 10px;
	border-top-style: solid;
	border-bottom: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-e .tipsy-arrow {
	right: 0;
	top: 50%;
	margin-top: -5px;
	border-left-style: solid;
	border-right: none;
	border-top-color: transparent;
	border-bottom-color: transparent;
}

.tipsy-w .tipsy-arrow {
	left: 0;
	top: 50%;
	margin-top: -5px;
	border-right-style: solid;
	border-left: none;
	border-top-color: transparent;
	border-bottom-color: transparent;
}

.tipsy.item .tipsy-inner {
	background-color: black;
	opacity: 0.99;
	color: white;
	box-shadow: 0 0 5px black;
}

.tipsy.item .tipsy-arrow {
	border: 5px dashed black;
}

.tipsy.item .tipsy-arrow-n {
	border-bottom-color: black;
}

.tipsy.item .tipsy-arrow-s {
	border-top-color: black;
}

.tipsy.item .tipsy-arrow-e {
	border-left-color: black;
}

.tipsy.item .tipsy-arrow-w {
	border-right-color: black;
}

.tipsy.item h4 {
	font-size: 14px;
	padding: 0;
	margin: 0 0 10px 0;
}

.tipsy.item span.flavour {
	font-style: italic;
	color: #ffd000;
}

/* Panels */
/* Panels */
.ui .panel {
	position: fixed;
	top: 30%;
	left: 30%;
	z-index: 99997;
	background-color: #150f0c;
	min-width: 220px;
	max-width: 360px;
	min-height: 100px;
	max-height: 460px;
	color: #fff;
	padding: 20px;
	box-shadow: 0 0 10px black;
	/*
		.section {
			padding: 10px;
		}
	*/
}
.ui .panel header {
	text-transform: uppercase;
	margin-bottom: 10px;
	cursor: move;
	font-size: 18px;
	text-shadow: -1px -1px #201106;
	font-weight: 300;
	padding: 0;
}
.ui .panel header a {
	width: 24px;
	height: 24px;
	display: block;
	float: right;
	cursor: pointer;
}
.ui .panel section {
	font-size: 12px;
}
.ui .panel section dl {
	margin: 10px auto;
}
.ui .panel section dt {
	float: left;
	text-align: right;
	width: 45%;
	line-height: 20px;
	margin-bottom: 5px;
}
.ui .panel section dd {
	margin-left: 50%;
	line-height: 20px;
	margin-bottom: 5px;
}
.ui .panel section .buildings.left {
	width: 680px;
	float: left;
	position: relative;
}
.ui .panel section .buildings-info.right {
	display: none;
	float: left;
	width: 440px;
	margin-left: 10px;
}
.ui .panel footer {
	clear: both;
	border: 1px solid #6e5036;
	border-top: none;
	background-color: #150f0c;
	padding: 0 10px 10px 10px;
	margin-top: -2px;
}
.ui .panel footer a {
	width: 46px;
	height: 46px;
	display: inline-block;
	cursor: pointer;
	margin-right: 8px;
	border-radius: 10px;
}
.ui .panel footer a:hover {
	background-color: #a1805e;
}
.ui .panel .toolbar {
	margin-top: 10px;
	clear: both;
	font-size: 14px;
}
.ui .panel .toolbar .btn {
	font-size: 14px;
	color: #fff;
	text-decoration: none;
	text-shadow: -1px -1px #201106;
	font-weight: 300;
	position: relative;
	padding: 8px 20px;
	text-transform: uppercase;
	text-align: center;
	display: inline-block;
	cursor: pointer;
	text-decoration: none;
}
.ui .panel .toolbar .btn.iblock {
	display: inline-block;
	width: auto;
	margin-right: 4px;
}
.ui .panel a {
	color: white;
	text-decoration: underline;
}
.ui .panel .section {
	padding: 20px;
}
.ui .panel fieldset {
	border: 1px solid #6e5036;
	margin-bottom: 10px;
}
.ui .panel fieldset legend {
	padding: 0 10px;
	margin: auto;
}
.ui .panel fieldset select {
	width: 100%;
	border: 1px solid #ababab;
	padding: 4px 0;
}
.ui .panel fieldset p {
	margin: 10px 0 0 0;
}
.ui .panel .b-name {
	font-size: 26px;
	margin: 0 0 10px 0;
}
.ui .panel .army-item-inc,
.ui .panel .army-item-dec,
.ui .panel .navy-item-inc,
.ui .panel .navy-item-dec {
	width: 20px;
	height: 20px;
	border: 1px solid #ababab;
	position: absolute;
	text-decoration: none;
}
.ui .panel .army-item-inc,
.ui .panel .navy-item-inc {
	left: 0;
	top: 0;
	background-color: #008a0b;
	border-bottom-right-radius: 20px;
}
.ui .panel .army-item-dec,
.ui .panel .navy-item-dec {
	right: 0;
	top: 0;
	background-color: #f00000;
	border-bottom-left-radius: 20px;
}
.ui .panel .army-recruiter,
.ui .panel .navy-recruiter {
	width: 630px;
	float: right;
	padding: 10px 0 0 0;
	max-height: 410px;
	overflow: auto;
}
.ui .panel .navy-item,
.ui .panel .army-item,
.ui .panel .storage-item {
	width: 75px;
	height: 75px;
	float: left;
	text-align: center;
	margin: 0 4px 4px 0;
	position: relative;
	box-shadow: inset 0 0 30px 0 #4e2c12;
	border-radius: 4px;
	font-size: 11px;
}
.ui .panel .storage-item:hover {
	box-shadow: inset 0 0 30px 0 rgba(78, 44, 18, 0.3);
}
.ui .panel .navy-item,
.ui .panel .army-item {
	width: 65px;
	height: 65px;
	font-size: 11px;
	position: relative;
}
.ui .panel .storage-item.small {
	width: 46px;
	height: 46px;
	font-size: 11px;
	padding: 4px;
	float: none;
	display: inline-block;
}
.ui .panel .storage-item .title {
	width: 100%;
	display: inline-block;
	width: 100%;
	padding-top: 4px;
	font-size: 12px;
}
.ui .panel .navy-item span.amount,
.ui .panel .army-item span.amount,
.ui .panel .storage-item span.amount {
	position: absolute;
	bottom: 0;
	right: 4px;
}
.ui .panel .navy-item img {
	margin: 8px auto 0 auto;
}
.ui .panel .army-item img {
	margin: 15px auto 0 auto;
}
.ui .panel .storage-item.small img {
	margin: 4px auto 0 auto;
	width: 32px;
	height: 32px;
}
.ui .panel .storage-item img {
	width: 32px;
}
.ui .panel .settlements-list {
	overflow: auto;
	max-height: 415px;
}
.ui .panel .column {
	width: 290px;
	float: left;
}
.ui .panel .column-small {
	width: 215px;
	float: left;
}
.ui .panel .column-full {
	width: 440px;
	clear: both;
}
.ui .panel .column-small:nth-child(2) {
	margin-left: 10px;
}
.ui .panel .column:last-of-type {
	margin-left: 10px;
}
.ui .panel .army-list,
.ui .panel .navy-list {
	float: left;
	width: 140px;
	padding: 10px 0 0 0;
}
.ui .panel .army-recruiter fieldset,
.ui .panel .navy-recruiter fieldset {
	display: block;
	float: left;
	margin: 0 10px 10px 0;
	width: 176px;
	position: relative;
}
.ui .panel .army-recruiter fieldset:nth-child(3n) {
	margin-right: 0 !important;
}
.ui .panel .army-recruiter fieldset > img,
.ui .panel .navy-recruiter fieldset > img {
	float: right;
	cursor: pointer;
	bottom: 10px;
	right: 10px;
	position: absolute;
}
.ui .panel .army-recruiter fieldset .info,
.ui .panel .navy-recruiter fieldset .info {
	float: right;
	width: 100px;
	margin-left: 10px;
}
.ui .panel .army-recruiter fieldset .cost,
.ui .panel .navy-recruiter fieldset .cost {
	float: left;
	width: 60px;
}
.ui .panel ul.advices {
	max-height: 300px;
	display: block;
	margin: 0;
	padding: 10px 0 0 0;
	overflow: auto;
}
.ui .panel ul.advices li {
	line-height: 30px;
	padding-left: 50px;
}
.ui .panel .hired-mercenaries-list {
	max-height: 370px;
	overflow: auto;
}

.ui .panel header .close {
	display: block;
	float: right;
	height: 24px;
	width: 24px;
	display: block;
	overflow: hidden;
	text-indent: -9999em;
}

.ui .panel header .close:hover {
	background-position: left bottom;
}

.ui .panel section {
	border: 1px solid #6e5036;
	background-color: #150f0c;
	padding: 8px;
}

.ui .panel footer a {
	display: inline-block;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	padding: 9px;
}

.ui .panel footer a span {
	width: 32px;
	height: 32px;
	line-height: 32px;
	display: block;
	background-size: cover;
}

.ui .panel footer a + a {
	margin-right: 10px;
}

.ui .panel footer a img {
	display: block;
}

.ui .panel .column.preview-image img {
	max-width: 200px;
}

.ui .panel section:after {
	clear: both;
}

.ui .panel .preview-image {
	height: 200px;
	position: relative;
}

.ui .panel .preview-image img {
	max-width: 100%;
	max-height: 200px;
	width: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Other panels */
#panel-new-spy,
#panel-new-scout,
#panel-new-caravan {
	max-width: 660px;
	max-height: 600px;
	width: 280px;
}

#panel-new-army {
	max-width: 660px;
	max-height: 600px;
}

#panel-academy {
	max-height: 800px;
	max-width: 620px;
	width: 620px;
}

#panel-academy .column-left {
	width: 290px;
	max-height: 400px;
	overflow: auto;
	margin-top: 10px;
	float: left;
}

#panel-academy .column-right {
	width: 298px;
	float: left;
	margin-left: 10px;
}

#panel-hero {
	max-height: 800px;
	max-width: 440px;
	width: 420px;
}

#panel-hero .silhouette {
	background-image: url(images/ui/hero.png);
	width: 250px;
	height: 600px;
	margin: 0 80px;
}

#panel-hero #tab-gear .slot {
	width: 46px;
	height: 50px;
	font-size: 11px;
	text-align: center;
	margin: 0;
	position: absolute;
	box-shadow: inset 0 0 3px 0 #878787;
	font-size: 34px;
}

#panel-hero #tab-gear .slot-1 {
	top: 214px;
	left: 180px;
}

#panel-hero #tab-gear .slot-2 {
	top: 150px;
	left: 180px;
}

#panel-hero #tab-gear .slot-3 {
	top: 370px;
	left: 260px;
}

#panel-hero #tab-gear .slot-4 {
	top: 230px;
	left: 130px;
}

#panel-hero #tab-gear .slot-5 {
	top: 268px;
	left: 180px;
}

#panel-hero #tab-gear .slot-6 {
	top: 380px;
	left: 180px;
}

#panel-hero #tab-gear .slot-7 {
	top: 284px;
	left: 80px;
}

#panel-hero #tab-gear .slot-8 {
	top: 322px;
	left: 180px;
}

#panel-hero #tab-gear .slot-9 {
	top: 540px;
	left: 250px;
}

#panel-hero #tab-gear .slot-10 {
	top: 80px;
	left: 100px;
}

#panel-hero #tab-gear .slot-11 {
	top: 180px;
	left: 240px;
}

#panel-academy .technology {
	cursor: pointer;
	float: left;
	margin: 4px;
}

#panel-academy .technology.selected {
	opacity: 1;
}

#panel-academy .technology.selected img {
	box-shadow: inset 0 0 30px 0 #008a0b;
}

#panel-academy .technology.has img {
	box-shadow: inset 0 0 10px 0 #f00000;
}

#panel-academy .technology img {
	width: 46px;
	height: 46px;
	border-radius: 100%;
	padding: 10px;
	box-shadow: inset 0 0 10px 0 #008a0b;
}

#panel-church h2,
#panel-embassy h2,
#panel-academy h2 {
	text-align: center;
}

#panel-tavern {
	max-height: 700px;
	max-width: 640px;
	width: 640px;
}

#panel-embassy {
	max-height: 600px;
	max-width: 720px;
	width: 720px;
}

#panel-church {
	max-height: 600px;
	max-width: 620px;
	width: 620px;
}

#panel-help .ui-tabs-panel li > a,
#panel-help p > a {
	text-decoration: underline;
}

#panel-ranks {
	width: 300px;
}

#panel-ranks .ranks-list {
	height: 300px;
	overflow: auto;
}

#panel-church .religion-list {
	padding: 20px;
}

#panel-church .religion-list .religion:nth-child(4),
#panel-church .religion-list .religion:nth-child(8) {
	margin-right: 0;
}

#panel-church .religion-list .religion {
	border-radius: 100%;
	width: 128px;
	height: 128px;
	margin: 0 10px 10px 0;
	float: left;
	box-shadow: inset 0 0 10px 0 #008a0b;
	position: relative;
	cursor: pointer;
}

#panel-church .religion-list .religion.selected {
	box-shadow: inset 0 0 30px 0 #008a0b;
}

#panel-church .religion-list .religion span {
	position: absolute;
	bottom: 0;
	padding-bottom: 20px;
	width: 128px;
	text-align: center;
}

#panel-new-caravan .caravan-resources {
	overflow: auto;
	max-height: 200px;
}

#panel-tavern .hero-list {
	width: 70px;
	padding: 10px 20px;
}

#panel-tavern .hero-info {
	width: 300px;
	padding: 20px;
}

#panel-tavern .hero-items {
	width: 160px;
	padding: 0;
}

#panel-tavern #tab-items .slot,
#panel-hero #tab-backpack .slot,
#panel-tavern .hero-items .slot {
	width: 46px;
	height: 50px;
	font-size: 11px;
	float: left;
	text-align: center;
	margin: 0 4px 4px 0;
	position: relative;
	box-shadow: inset 0 0 3px 0 white;
	font-size: 34px;
}

#panel-tavern .hero-info h3 {
	margin: 0 0 10px 0;
}

#panel-campaign {
	min-width: 400px;
}

#panel-place {
	width: 490px;
	max-width: 490px;
	max-height: 600px;
	height: auto;
}

#panel-barracks,
#panel-shipyard {
	width: 790px;
	max-width: 790px;
	height: auto;
	max-height: 600px;
}

#panel-council section dd,
#panel-barracks section dd,
#panel-shipyard section dd {
	width: auto;
}

/* City Builder panel */
#panel-buildings {
	max-width: 1190px;
	max-height: 650px;
	height: auto;
	width: 690px;
}

#panel-buildings .b-desc {
	margin-bottom: 10px;
}

#panel-buildings.expanded {
	width: 1150px !important;
}

#panel-buildings .building-item {
	width: 160px;
	height: 160px;
	float: left;
	text-align: center;
	margin: 0 10px 10px 0;
	position: relative;
	background-color: #eccfb6;
	border-radius: 8px;
	cursor: pointer;
	border-top-right-radius: 0;
}

#panel-buildings .building-item:nth-child(4n) {
	margin-right: 0;
}

#panel-buildings .building-item:after {
	display: block;
	background: transparent;
	border: 10px solid #008a0b;
	border-bottom: 10px solid transparent;
	border-left: 10px solid transparent;
	content: "";
	position: absolute;
	top: 0;
	right: 0;
}

#panel-buildings .building-item.disabled:after {
	display: block;
	background: transparent;
	border: 10px solid #8a0000;
	border-bottom: 10px solid transparent;
	border-left: 10px solid transparent;
	content: "";
	position: absolute;
	top: 0;
	right: 0;
}

#panel-buildings .building-item.disabled img {
	filter: grayscale(1);
	opacity: 0.6;
}

#panel-buildings .building-item.active {
	box-shadow: inset 0 0 30px 0 #008a0b;
}

#panel-buildings .building-item.disabled {
	/*box-shadow: $box-shadow-disabled;*/
}

#panel-buildings .building-item .title {
	padding-top: 6px;
	display: inline-block;
	color: #4e2c12;
	font-size: 14px;
}

#panel-buildings .building-item img.building {
	width: 130px;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, -10px);
}

#panel-buildings .bldg-tabs {
	padding: 10px 0 0 0;
	overflow: auto;
	max-height: 534px;
}

/* City Council panel */
#panel-council {
	width: 770px;
	max-width: 770px;
	height: auto;
	max-height: 550px;
}

#tab-production {
	overflow: auto;
	max-height: 460px;
}

/* Debug panel */
#panel-debug {
	max-width: 600px;
	width: 600px;
	height: auto;
	max-height: 420px;
}

#panel-debug .console {
	overflow: auto;
	max-height: 300px;
}

#panel-debug .console p {
	padding: 2px 5px;
	margin: 2px 0 0 0;
	line-height: 26px;
}

#panel-debug .console span {
	padding: 2px 6px;
	margin-right: 6px;
	border-radius: 6px;
}

#panel-debug .console span.error {
	background-color: #f00000;
	color: white;
}

#panel-debug .console span.error-message {
	background-color: #f00000;
	color: white;
}

#panel-debug .console span.log-message {
	color: #454545;
	background-color: white;
}

#panel-debug .console span.date {
	background-color: #0091ad;
}

#panel-debug .console span.namespace {
	background-color: #f00000;
	color: white;
}

#panel-debug .console span.namespace.game-ui {
	background-color: #b293fb;
	color: #454545;
}

#panel-debug .console span.namespace.game-world {
	background-color: #5d5def;
}

#panel-debug .console span.namespace.game-achievement {
	background-color: #008a0b;
}

#panel-debug .console span.namespace.game-event {
	background-color: #0091ad;
	color: #454545;
}

#panel-debug textarea {
	width: 100%;
	height: 200px;
	padding: 5px;
	border: 0;
	box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 0.75);
	font-size: 10px;
	resize: none !important;
	box-sizing: border-box;
}

/* Help panel */
#panel-help {
	max-width: 800px;
	width: 800px;
	height: auto;
	max-height: 620px;
}

#panel-help fieldset {
	float: right;
	width: 200px;
	margin: 20px;
}

#panel-help fieldset li {
	font-size: 14px;
	line-height: 24px;
}

#panel-help .ui-tabs-panel {
	max-height: 510px;
	overflow: auto;
}

#panel-help .ui-tabs-panel p,
#panel-help .ui-tabs-panel li {
	font-size: 13px;
	line-height: 20px;
}

#panel-help img.help {
	width: 200px;
}

#panel-help h3 {
	font-size: 20px;
}

/* Settlement info panel */
#panel-settlement {
	width: 600px;
	max-width: 600px;
	max-height: 600px;
	height: auto;
}

#panel-building {
	max-height: 600px;
	max-width: 1400px;
}

#panel-place footer a.claim,
#panel-place footer a.unclaim,
#panel-place footer a.scout,
#panel-place footer a.caravan,
#panel-settlement footer a.attack,
#panel-settlement footer a.caravan,
#panel-settlement footer a.spy,
#panel-settlement footer a.alliance,
#panel-settlement footer a.pact,
#panel-settlement footer a.join,
#panel-settlement footer a.war,
#panel-settlement footer a.ceasefire {
	display: none;
}

/* Sidebar */
.ui > aside {
	color: #fff;
	position: absolute;
	padding: 0 0 0 10px;
	position: fixed;
	top: 48px;
	right: 0;
	bottom: 0;
	z-index: 999;
	background-color: #150f0c;
	height: 100%;
	box-sizing: border-box;
}
.ui > aside .panel {
	position: static;
	top: 0;
	left: 0;
	z-index: 99997;
	background-color: #eccfb6;
	padding: 10px;
	box-shadow: 0 0 0 transparent;
	width: 300px;
	background: none;
	max-height: 100%;
}
.ui > aside .panel header {
	cursor: default;
	padding: 0;
}
.ui > aside .panel section {
	height: calc(100% - 81px);
}
.ui > aside .panel section p {
	text-align: justify;
}
.ui > aside .panel .column {
	border-bottom: 1px solid #6e5036;
	margin-bottom: 10px;
	width: 100% !important;
	float: none;
}
.ui > aside .panel .column:last-of-type {
	margin-left: 0 !important;
}

.ui > aside:empty {
	display: none;
}

/* City Storage panel */
#panel-storage {
	max-width: 650px;
	width: 650px;
	max-height: 700px;
	height: auto;
}

#panel-storage .storage-board {
	width: 640px;
	height: 100%;
}

#panel-storage .total-storage,
#panel-storage .used-storage {
	font-weight: bold;
}

#panel-storage p {
	margin-top: 10px;
}

/* World Trades panel */
#panel-trades {
	width: 800px;
	max-width: 800px;
	max-height: 500px;
	height: auto;
}

#panel-trades table.mercenaries td:nth-child(3) {
	width: 20%;
	text-align: right;
}

/* Worldmap panel */
#panel-world {
	max-width: 1020px;
	max-height: 600px;
	width: 1020px;
	height: 600px;
	box-sizing: border-box;
}

#panel-world .worldmap {
	width: 960px;
	height: 510px;
	background-size: auto 100%;
	position: relative;
	overflow: hidden;
}

#panel-world .worldmap .ruins,
#panel-world .worldmap .settlement,
#panel-world .worldmap .troop {
	width: 40px;
	height: 40px;
	position: absolute;
	cursor: pointer;
}

#panel-world .w-t-p {
	opacity: 0.3;
}

/*
#panel-world .worldmap > img {
	pointer-events: none;
}
*/
/* Windows */
/* Windows */
.window {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	color: white;
	z-index: 99999;
	background: radial-gradient(ellipse at center, #46494e 0%, black 100%);
}
.window .logo {
	margin: 3% auto 0 auto;
	width: 300px;
	text-align: center;
	font-size: 62px;
}
.window fieldset {
	margin: 20px auto 0 auto;
	border: 0;
	color: #fff;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 460px;
	font-size: 18px;
	padding: 40px;
}
.window fieldset > p {
	font-size: 14px;
}
.window ul {
	margin-left: 20px;
}
.window .about-game,
.window .options-game {
	position: relative;
	display: none;
	padding: 10px 0;
	margin: 0;
}
.window li > a,
.window p > a {
	text-decoration: underline;
}
.window .ui-tabs-panel > div {
	padding: 20px;
}
.window .tabs ul li a {
	text-decoration: none;
}
.window input[type=password],
.window input[type=text],
.window select {
	border: 1px solid #918d69;
	background: transparent;
	color: white;
	padding: 5px 10px;
	font-size: 14px;
}
.window select option {
	color: black;
}
.window select {
	width: 122px;
}
.window input[type=password],
.window input[type=text] {
	width: 100px;
}
.window .button {
	display: block;
	margin-top: 5px;
	border-radius: 3px;
	padding: 10px;
	text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
	color: white;
	font-size: 18px;
	text-transform: uppercase;
	text-align: center;
}
.window .avatar-select {
	width: 100%;
	height: 180px;
	overflow: auto;
	padding: 0;
	margin: 0;
}
.window .avatar-select img.avatar {
	cursor: pointer;
	border-radius: 100%;
	border: 0;
	padding: 0;
	margin: 0;
	width: 90px;
	height: 90px;
	float: left;
}
.window .avatar-select img.avatar.selected {
	box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.75);
}
.window dt {
	line-height: 20px;
	float: left;
	text-align: right;
	width: 45%;
	margin-bottom: 5px;
}
.window dl {
	width: 360px;
	margin: 10px auto;
}
.window dd {
	margin-left: 50%;
	line-height: 20px;
	margin-bottom: 5px;
}
.window .button.highlight,
.window .toolbar a {
	color: white;
}
.window .toolbar a:hover,
.window .button.highlight:hover {
	color: white;
}
.window .ui-control {
	border-radius: 3px;
	padding: 2px 10px;
	color: black;
	font-size: 14px;
}
.window .ui-control.on {
	background-color: #008a0b;
	box-shadow: 0 0 5px #008a0b;
}
.window .ui-control.off {
	background-color: #f00000;
	box-shadow: 0 0 5px #f00000;
}

.window fieldset .error,
.window fieldset .options,
.window fieldset .new-game {
	border: 1px solid #6e5036;
	background-color: #150f0c;
	padding: 20px;
}

.window .new-game dd input,
.window .new-game dd select {
	border: 1px solid #563a25;
	box-shadow: inset 0px 0px 2px #1e0f05;
	background: #201106;
	border-radius: 5px;
	height: 33px;
	box-sizing: border-box;
	font-size: 18px;
	color: #fff;
	padding: 0 8px !important;
	margin: 0 0 10px;
	width: 240px;
}

.window .new-game dl {
	width: 100%;
}

.window .new-game dd {
	margin-left: 38%;
}

.window .new-game dt {
	line-height: 33px;
	width: 35%;
}

.hr {
	padding: 0;
	margin: 5px 0 15px;
	border-top: 1px solid #251b13;
}

.window .button {
	font-size: 30px;
	margin-top: 10px;
	padding: 7px 10px !important;
	border: none !important;
}

.window .button:hover {
	font-size: 30px;
	padding: 7px 10px;
	border: none;
}

.window .new-game dl {
	margin: 20px auto;
}

.window .avatar-select-top {
	position: absolute;
	top: 50%;
	left: 0%;
	transform: translate(-50%, -67%);
	width: 128px;
	height: 128px;
	background-size: cover;
	padding: 13px;
	border-radius: 50%;
	z-index: 2;
	cursor: pointer;
}

.window .avatar-select {
	display: none;
	height: 320px;
	position: absolute;
	top: 61px;
	left: 61px;
	right: 61px;
	width: auto;
	background: #150f0c;
}

.window .avatar-select img.avatar {
	width: 100px;
	height: 100px;
	margin: 2px;
}

.window fieldset .about-game {
	border-top: none;
}

/* Battleground window */
#window-battle .battleground {
	width: 840px;
	height: 436px;
	line-height: 1.3;
	position: relative;
}

#window-battle .battleground .svg-grid,
#window-battle .battleground .canvas-zone-map {
	position: absolute;
	top: 0;
	left: 0;
}

#window-battle .attack,
#window-battle .defense {
	font-size: 14px;
	position: absolute;
	top: 5px;
	padding: 4px 0;
	color: white;
}

#window-battle .attack {
	left: 40px;
}

#window-battle .defense {
	right: 40px;
}

#window-battle .status {
	height: 60px;
	overflow: auto;
	margin: 10px 0;
}

#window-battle .status p {
	color: white;
	font-size: 12px;
}

#window-battle .battleground .cell .amount {
	color: white;
	position: absolute;
	font-size: 10px;
	right: 16px;
	bottom: 2px;
	background-color: black;
	border-radius: 100%;
	transform: rotate(90deg);
	padding: 4px;
	z-index: 2;
}

#window-battle .turns {
	font-size: 26px;
	position: absolute;
	top: 2px;
	right: 49%;
	color: white;
	z-index: 2;
}

.window .toolbar a {
	border-radius: 3px;
	padding: 10px;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
}

#window-battle .battleground .cell .moves {
	width: 10px;
	height: 10px;
	display: block;
	border-radius: 100%;
	background-color: #c53636;
	position: absolute;
	top: 42px;
	box-shadow: 0 0 2px black;
	right: 0;
	z-index: 2;
}

#window-battle .battleground .cell .moves.has {
	background-color: #298719;
}

#window-battle .battleground .cell {
	fill: transparent;
	stroke-width: 2px;
}

#window-battle .battleground .cell:hover {
	stroke: black;
}

#window-battle .battleground .cell.selected {
	stroke: black;
}

#window-battle .battleground .cell.attackto {
	fill: #fe9466;
	opacity: 0.5;
}

#window-battle .battleground .cell.hasmoved {
	stroke: #f00000;
}

#window-battle .battleground .cell.moveto {
	fill: #80bc50;
	opacity: 0.5;
}

#window-battle .decorated {
	margin-bottom: 10px;
	height: 36px;
	position: relative;
}

/* Error window */
#window-error .error-message,
#window-error .error-code {
	font-size: 14px;
	color: #f00000;
}