@font-face {
	font-family: "cookies";
	src: url("Cookies.woff") format("woff");
}

html, body {
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

* {
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

#wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#playScreen {
    display: none;
}

.playShowing #playScreen {
    position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	background-image: url('images/background.png');
	background-color: #000000;
    display: block;
}

#canvasMap, #canvasMain {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	cursor: default;
}

#coinsAndControls {
	padding-top: var(--sair);
	padding-left: var(--sail);
	position: absolute;
	top: 0px;
	left: 0px;
	background-color: rgba(0,0,0,.2);
	border-bottom-right-radius: 6px;
	border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

#goldReadout {
	margin: 6px;
	font-size: 1.2em;
	font-family: "cookies", sans-serif;
	color: #FFD700;
	text-shadow:
   -1px -1px 0 #000,  
    1px -1px 0 #000,
    -1px 1px 0 #000,
     1px 1px 0 #000;
}

.slimMode #goldReadout {
	margin: 2px;
	font-size: 1.1em;
}

.controlTile {
	display: inline-block;
	height: 48px;
	width: 48px;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	margin: 0px;
	cursor: pointer;
	position: relative;
}

.controlCostIndicator {
	position: absolute;
	bottom: 4px;
	right: 4px;
	font-size: .9em;
	font-family: "cookies", sans-serif;
	color: #ffffff;
	text-shadow:
   -1px -1px 0 #000,  
    1px -1px 0 #000,
    -1px 1px 0 #000,
     1px 1px 0 #000;
}

.slimMode .controlTile {
	display: block;
	margin: 0px auto;
}

.cantAfford {
	opacity: 0.4;
	cursor: no-drop;
}

.cantAfford .controlCostIndicator {
	color: #B71C1C;
}

.controlSelected {
	background-color: rgba(255,200,0,.4);
}

.controlSelected .controlCostIndicator {
	color: #1E88E5;
}

#statusIndicatorScreen {
	width: 80%;
	max-width: 400px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	-webkit-transform: translate(-50%,-50%);
	text-align: center; 
	font-family: "cookies", sans-serif;
	color: #ffffff;
	font-size: 1.3em;
	text-shadow:
   -1px -1px 0 #000,  
    1px -1px 0 #000,
    -1px 1px 0 #000,
     1px 1px 0 #000;
	display: none;
}

#pauseButton {
	height: 60px;
	width: 60px;
	position: absolute;
	bottom: 8px;
	right: 8px;
	bottom: calc(8px + var(--saib));
	right: calc(8px + var(--sair));
	-ms-touch-select: none;
	-ms-touch-action: none;
    touch-action: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: pointer;
}

#mapIntroScreen,#victoryScreen {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	background-color: rgba(0,0,0,.5);
	display: none;
}

#mapIntroCenterWindow {
	position: absolute;
	background-color: #eeeeee;
	color: #000000;
	font-family: "cookies", sans-serif;
	border-radius: 4px;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	padding: 12px;
	width: calc(90% - 24px);
	max-width: 400px;
	max-height: calc(80% - 24px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

#mapIntroCenterWindow::-webkit-scrollbar-track {
	background-color: transparent;
}

#mapIntroCenterWindow::-webkit-scrollbar {
	width: 6px;
	background-color: rgba(100,100,100,0.10);
}

#mapIntroCenterWindow::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: rgba(160,160,160,0.3);
    min-height: 64px;
}

#mapIntroImage {
	border: 1px solid #666666;
	border-radius: 4px;
	margin: 6px;
	background-size: cover;
	background-position: center;
	height: 180px;
}

#mapIntroText {
	margin: 6px;
	font-size: 1.1em;
}

#mapIntroButtonHolder {
	text-align: center;
}

#mapIntroBeginButton {
    padding: 8px 16px;
	cursor: pointer;
	background-color: rgba(0,0,0,.05);
	display: inline-block;
	margin-top: 12px;
	border: 1px solid #666666;
	border-radius: 4px;
}

#victoryMessage {
	position: absolute;
	text-shadow:
   -1px -1px 0 #000,  
    1px -1px 0 #000,
    -1px 1px 0 #000,
     1px 1px 0 #000;
	font-family: "cookies", sans-serif;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	padding: 12px;
	font-size: 2em;
}

#titleScreen {
    display: none;
}

.titleShowing #titleScreen {
    display: grid;
    font-family: "cookies", sans-serif;
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    color: #ffffff;
    text-shadow: 
        1px 1px 0px #000000,
        1px -1px 0px #000000,
        -1px 1px 0px #000000,
        -1px -1px 0px #000000,
        2px 2px 0px #000000;
}

#titleInner {
    display: grid;
    overflow: hidden;
    grid-template-rows: auto 1fr auto 1fr auto;
    margin: 24px;
    user-select: none;
    cursor: default;
}

#titleTopBar {
    grid-row: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

#titleSettingsHolder {
    grid-column: 1;
    cursor: pointer;
    color: #ECEFF1;
    transition: 0.2s;
    font-size: 30px;
    filter: 
		drop-shadow(0px -2px 0px #000000)
		drop-shadow(0px 2px 0px #000000)
		drop-shadow(-2px 0px 0px #000000)
		drop-shadow(2px 0px 0px #000000);
}

#titleSignInArea {
    grid-column: 3;
    cursor: pointer;
}

#titleAccountIcon {
    height: 36px;
    width: 36px;
    border-radius: 36px;
    border: 2px solid #000000;
}

#titleMenuHolder {
    grid-row: 3;
}

#titleLogo {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 120px;
    transition: 0.2s;
}

#titleMenuOptions {
    text-align: center;
    max-width: 480px;
    margin: 24px auto;
}

.titleOption {
    cursor: pointer;
    font-size: 22px;
    transition: 0.2s;
    margin: 6px;
}

.titleOption:hover {
    color: #ECEFF1;
}

#titleFooter {
    grid-row: 5;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
}

#titleFooterLeft {
    grid-column: 1;
}

#titleFooterBuild {
    font-size: 12px;
    opacity: 0.8;
}

#titleFooterCopy {
    font-size: 14px;
    cursor: pointer;
}

#featureHolder {
    grid-column: 3;
}

#featureHolder img {
    cursor: pointer;
    height: 64px;
    width: 64px;
    border-radius: 64px;
}

@media (min-height: 720px) {
    #titleLogo {
        height: 180px;
    }

    .titleOption {
        font-size: 26px;
        margin: 8px;
    }
}

@media (max-height: 400px) {
    #titleLogo {
        height: 80px;
    }

    .titleOption {
        font-size: 20px;
        margin: 2px;
    }

    #mapIntroCenterWindow {
		position: static;
		transform: none;
		margin: 12px auto;
		top: 0px;
		left: 0px;
		max-height: calc(100% - 48px);
	}

	#mapIntroBeginButton {
		z-index: 5;
		background-color: #eeeeee;
	}

	#mapIntroBeginButton:hover {
		background-color: rgba(255,200,0,1);
	}

	.slimMode #goldReadout {
		font-size: 0.9em;
	}

	.slimMode .controlTile {
		height: 48px;
		width: 48px
	}
}


@media (max-height: 340px) {
    #titleInner {
        margin: 12px;
    }

    #titleSettingsHolder {
        font-size: 24px;
    }

    #titleAccountIcon {
        height: 28px;
        width: 28px;
    }

    #titleLogo {
        height: 60px;
    }

    #titleMenuOptions {
        margin: 12px auto;
    }

    .titleOption {
        margin: 0px;
    }
}

@media only screen and (max-width: 500px) {
	.slimMode #goldReadout {
		margin: 1px;
		font-size: 0.8em;
	}


	.slimMode .controlTile {
		height: 40px;
		width: 40px;
	}
}

@media only screen and (min-width: 900px) {
	.slimMode #goldReadout {
		margin: 4px;
	}

	
	.slimMode #controlsHolder {
		width: initial;
	}

	.slimMode .controlTile {
		height: 60px;
		width: 60px;
	}
}