:root {
	--font-reg: 'titilliumWeb';
	--font-btn: 'titilliumWeb';
	--font-title: 'titilliumWeb';
	--font-light: 'titilliumWeb';

	--bg-pri: #ffffff;
	--bg-sec: #2a2b2f;

	--clr-pri: #000000;
	--clr-sec: #ffffff;

	--clr-twr1: #ff0000;
	--clr-twr2: #00ff00;
	--clr-twr3: #0000ff;
}
html {
	margin: 0;
	padding: 0;
	font-family: var(--font-reg), 'Helvetica';
	font-size: 14px;
	line-height: 16px;
	width: 100%;
	height: 100%;

	color: var(--clr-pri);
}
body {
	margin: 0;
	padding: 0;
	background: var(--bg-pri);
	width: 100%;
	height: 100%;
	user-select: none;
	-webkit-user-select: none; /* webkit (safari, chrome) browsers */
	-moz-user-select: none; /* mozilla browsers */
	-khtml-user-select: none; /* webkit (konqueror) browsers */
	-ms-user-select: none; /* IE10+ */
}

#mainContainer {
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0 auto;
}
#mainContent {
	position: relative;
	margin: 0 auto;
	width: 100%;
	height: 100%;
}
#gameContent {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: url('../images/floor_pattern.png');
	background: url('../images/floor_pattern2.png');
	background: url('../images/floor_pattern_yellow.png');
}
.animation-holder {
	position: relative;
	width: 100%;
	height: 100%;
}
#animations-attach-point {
	position: absolute;
	width: 100%;
	height: 100%;
}
#staticCanvas, #mainCanvas, #coverCanvas {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
#gameUI {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#gameUI .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/*pointer-events: none;*/
}
/* START common class overrides*/
.disabled{
	pointer-events: none;
	opacity: 0.8;
}
.not-displayed {
	display: none !important;
}
.hidden {
	opacity: 0;
	pointer-events: none;
}
.not-available {
	display: none !important;
}
.force-in-front {
	z-index: 999 !important;
}
.no-pointer-events {
	pointer-events: none !important;
}
.over-basic-ui {
	z-index: 99;
}
.no-margin {
	margin: 0 !important;
}
.flex-holder {
	display: flex;
}
.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}
.flex-holder-column {
	display: flex;
	flex-direction: column;
}
/* END common class overrides*/
/* START BUTTONS */
.btn {
	display: inline-block;
	text-align: center;
	padding: 0 5px;

	cursor: pointer;

	font-family: var(--font-title);
}
.btn-primary {
	color: var(--clr-pri);
	background: var(--clr-sec);
}
.btn-clean { /*has no BG, i.e. for menus */
	display: block;
	width: max-content;
	color: var(--clr-pri);
	background: none;
}
.btn-simple-boxy {
	padding: 3px 10px;
	color: var(--clr-pri);
	border: 1px solid var(--clr-pri);
}
.btn:not(.active):hover {
	transform: scale(1.05);
	transition: transform 200ms;
}
/* END BUTTONS */
/* START LOADING */
#loading {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;

	z-index: 999;
	background: black;
	background-size: 40% auto;
}
#loading .loading-info {
	position: absolute;
	top: 42%;
	right: 0;
	left: 0;
	width: 500px;
	max-width: 80%;
	margin: 0 auto;
}
#loading .description {
	margin: 0 auto;
	font: 20px/25px var(--font-reg);
	color: #a09d9f;
	text-align: center;
}
#loading .progress {
	margin: 10px auto 20px auto;
	height: 20px;
	text-align: center;
	background: linear-gradient(to right, #676767 0%, #ffffff 20%, #ffffff 65%, #676767 100%);
	overflow: hidden;
}
#loading .progress:before {
	background: linear-gradient(to right, #882900 0%, #d85a17 20%, #d85a17 65%, #882900 100%);
	border-radius: 0;
}
#loading .loading-progress {
	text-align: center;
	font: 16px/20px var(--font-reg);
	color: #a09d9f;
}
/* END LOADING*/
/* START UI-HOLDERS */
#gameUI .overlay .ui-holder {
	position: absolute;

	/* this is optional, just testings*/
	display: flex;
	justify-content: center;
}
#gameUI .overlay .ui-holder.top {
	top: 0;
	left: 0;
	right: 0;

	z-index: 1; /* TODO is this fine or it should bechnaged?*/

}
#gameUI .overlay .ui-holder.right {
	top: 0;
	right: 0;
	bottom: 0;

	flex-direction: column;
}
#gameUI .overlay .ui-holder.bottom {
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1; /* TODO is this fine or it should bechnaged?*/
}
#gameUI .overlay .ui-holder.left {
	top: 0;
	bottom: 0;
	left: 0;

	flex-direction: column;
}
#gameUI .overlay .ui-holder .ui-slots {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: space-between;
}
#gameUI .overlay .ui-holder.left .ui-slots,
#gameUI .overlay .ui-holder.right .ui-slots {
	width: auto;
	height: 100%;
	flex-direction: column;
}
/* END UI-HOLDERS */
/* START POPUPS */

#dynamicDOM .popup-holder {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;

	width: 100%;
	height: 100%;
	opacity: 1;
	transition: opacity 0.4s ease-in-out;

	z-index: 1;
}
/*#dynamicDOM .popup-holder.fadein-holder {
	opacity: 0;
	pointer-events: none;
}*/
#dynamicDOM .popup-holder:not(.full-viewport):last-child {
	background: rgba(0,0,0,0.5);
}
#dynamicDOM .popup-holder .popup-content-holder {
	position: absolute;
	left: 0;
	right: 0;
	top: 10%;
	width: 70%;
	max-height: 80%;

	min-width: 350px;
	max-width: 1000px;

	margin: 0 auto;

	display: flex;
	flex-direction: column;

	pointer-events: auto;

	box-shadow: 2px 2px 2px #c79b1e, -2px 2px 2px #c79b1e, 2px -2px 2px #c79b1e, -2px -2px 2px #c79b1e;
	box-shadow: 2px 2px 2px #CCCCCC, -2px 2px 2px #CCCCCC, 2px -2px 2px #CCCCCC, -2px -2px 2px #CCCCCC;
}
#dynamicDOM .popup-holder .popup-content {
	height: calc(100% - 70px);
	padding: 40px;
	color: var(--clr-pri);

	background: var(--bg-pri);
	background-size: 100% 100%;
	max-height: clamp(200px, 775px, calc(95vh - 20px));
}
#dynamicDOM .popup-holder .header {
	position: relative;
	padding: 5px 20px;

	font: 700 30px/35px var(--font-title);
	background: var(--bg-sec);
	color: var(--clr-sec);
}
#dynamicDOM .popup-holder .header .title {
}
#dynamicDOM .popup-holder .header .close {
	position: absolute;
	top: 0;
	right: 20px;
	bottom: 0;

	margin: auto 0;

	height: 30px;
	font-size: 30px;
	line-height: 30px;

	cursor: pointer;
}
#dynamicDOM .popup-holder .header .close:hover {
	transform: scale(1.1);
}
/* END POPUPS */
/* START QUICK POPUPS*/
#dynamicDOM .quick-popup-holder {
	position: absolute;
	min-width: 250px;
	max-width: calc(100% - 40px);
	/*background: rgba(0, 125, 182, 0.9);*/
	background: var(--bg-pri);
	background-size: 100% 100%;

	border: 1px solid var(--clr-pri);
}
/*modular*/
#dynamicDOM .quick-popup-holder .popup-content {
	color: var(--clr-pri);
	padding: 20px;
}
/*modular*/
#dynamicDOM .quick-popup-holder .header {
	position: relative;
	background: var(--bg-sec);
	padding: 5px 20px;
	color: var(--clr-sec);
	font: 14px/18px var(--font-title);
	text-transform: uppercase;
}
/*modular*/
#dynamicDOM .quick-popup-holder .header .close {
	position: absolute;
	right: 20px;
	top: 5px;
	font-size: 20px;
}
/*modular*/
#dynamicDOM .quick-popup-holder .header .close:hover {
	color: var(--clr-pri);
}
#dynamicDOM .quick-popup-holder .header.transparent-header {
	background: none;
}
/*END QUICK POPUPS */
/* START TOOLTIPS */
#popup-tooltip {
	position: absolute;
	display: none;

	background: var(--bg-pri);
	min-width: 100px;
	max-width: 250px;
	padding: 5px;

	font: 12px/14px var(--font-reg);
	color: var(--clr-pri);
	box-shadow: 0 -1px 2px rgba(0,0,0, 0.5), 0 1px 2px rgba(0,0,0, 0.5);
	border: 1px solid var(--clr-pri);
	z-index: 3;

	pointer-events: none; /* prevents moving over a tooltip and not firing events */
}
#popup-tooltip.generic {
	max-width: 400px;
}
#popup-tooltip.shown {
	display: block;
}
#popup-tooltip .name {
	font: 700 14px/14px var(--font-title);
	margin-bottom: 5px;
}
#popup-tooltip .desc {
	margin-bottom: 5px;
	font: 12px/14px var(--font-reg)
}
#popup-tooltip .green-desc {
	color: green;
	display: inline-block;
}
#popup-tooltip .extra-desc {
	color: green;
	margin-top: 10px;
}
#popup-tooltip .extra-desc ul {
	padding-left: 0;
	list-style-type: none;
}
#popup-tooltip .extra-desc ul span {

	display: inline-block;
	float: right;
	text-align: left;
	min-width: 100px;
}
#popup-tooltip .desc-red {
	color: red;
	margin-top: 10px;
}
/* END TOOLTIPS */
/* START ICONS */
.icon {
	display: inline-block;
	width: 30px;
	height: 30px;
	vertical-align: middle;
	outline: 1px solid black;
}
.icon.extra-large {
	width: 80px;
	height: 80px;
}
.icon.large {
	width: 60px;
	height: 60px;
}
.icon.big {
	width: 40px;
	height: 40px;
}
.icon.small {
	width: 20px;
	height: 20px;
}
.icon.smaller {
	width: 15px;
	height: 15px;
}
.icon.red {
	background: var(--clr-twr1);
}
.icon.green {
	background: var(--clr-twr2);
}
.icon.blue {
	background: var(--clr-twr3);
}
/* END ICONS */