* {
	box-sizing: border-box;
	overflow-x: hidden;
	background-size: 100% 100%;
}

html, body {
	overscroll-behavior: none;
}

body {
	padding: 0px;
	margin: 0px;
	padding-top: 100vh;
	position: relative;
	background-color: black;

	font-family: Black Ops One;
	color: gray;

	animation: none;
	image-rendering: pixelated;
}

@keyframes quake {
	0% {
		transform: translateX(10px);
	}
	
	50% {
		transform: translateX(-10px);
	}
	
	100% {
		transform: translateX(0px);
	}
}

@keyframes quake2 {
	0% {
		transform: translateX(10px);
	}
	
	50% {
		transform: translateX(-10px);
	}
	
	100% {
		transform: translateX(0px);
	}
}

.quake-1 > * {
	animation: quake 0.2s;
	animation-repeat: 10;
}

.quake-2 > * {
	animation: quake2 0.2s;
	animation-repeat: 10;
}

.base, .status {
	position: relative;
	min-height: 50vh;
	border-top: 1px solid gray;
	background-image: url(./img/dashboard.png);
	background-size: auto 100%;
	z-index: 4;
	padding: 0.4em;
}

.status {
	position: fixed;
	top: 0px;
	min-height: 8vh;
	width: 100%;
	background-image: none;
	background-size: 100% auto;
	z-index: 1;
}

@keyframes cloud {
	0% {
		background-position: 0% var(--bg-y), 0% var(--bg2-y);
	}

	49% {
		filter: invert(1);
	}
	
	50% {
		filter: invert(0.5);
		background-position: 50% var(--bg-y), 200% var(--bg2-y);
	}

	55% {
		filter: invert(1);
	}

	100% {
		background-position: 100% var(--bg-y), 400% var(--bg2-y);
	}
}

canvas.main, .city-canvas {
	position: fixed;
	top: 0px;
	left: 0px;

	filter: invert(1);
	z-index: 2;
	background-image: url(./img/cloud.png), url(./img/cloud.png);
	background-size: 128px 128px;
	
	--bg-y: 30%;
	--bg2-y: 10%;
	background-position: 0 10%, 0 30%;
	background-repeat: repeat-x;
	animation: cloud 100s infinite linear;
	z-index: -1;
}

.city-canvas {
	position: fixed;
	animation: none;
	background-image: none;
	position: absolute;
	width: 40rem;
	height: 40rem;
	top: 100%;
	transform: translateY(-100%);
	z-index: 2;
	pointer-events: none;
}

.balance::before {
	display: inline-block;
	width: 1.5em;
	height: 2em;

	content: '$';
	line-height: 2em;
}

.missile, .settings {
	line-height: 2em;
}

.settings {
	position: absolute;
	left: 99%;
	top: 1em;
	transform: translateX(-100%);
	filter: unset;
}

.settings::before, .missile::before {
	display: inline-block;
	width: 2em;
	height: 2em;
	content: " ";

	filter: invert(1);
	background-image: url(./img/missile.png);
	background-size: 2em 2em;
	vertical-align: middle;
	opacity: 0.4;
}

.settings::before {
	background-image: url(./icon/fix.png);
	filter: saturate(0) brightness(12);
	font-size: 1.2em;
}

button {
	background-color: inherit;
	border: 1px solid gray;
	border-top-width: 1px;
	border-bottom-width: 3px;
	font-family: inherit;
	display: inline-block;
	vertical-align: top;
	background-size: auto 100%;
	filter: invert(0.6);
	min-height: 3em;
}

button.disabled {
	opacity: 0.2;
}

.builds button {
	width: 3em;
	height: 3em;
}

button.active, button:active {
	border-top-width: 3px;
	border-bottom-width: 1px;
}

button.active {
	filter: invert(0.6) brightness(1.2);
}

.city {
	transform: translateX(-50%);
	left: 50%;
	position: relative;
	font-size: 0px;
	z-index: 4;
	overflow-x: scroll;
	max-width: 100%;
	display: inline-block;
	white-space: nowrap;
	max-height: 40rem;
	overflow-y: hidden;
}

.city .slot {
	display: inline-block;
	width: 4rem;
	height: 4rem;
	margin: 0px;
	border: 1px dashed rgba(255, 255, 255, 0.1);
	white-space: pre;
}

.city.select .slot {

}

@keyframes notif0 {
	0% {
		opacity: 0.5;
	}

	90% {
		opacity: 0,5;
	}

	100% {
		opacity: 0.05;
	}
}

@keyframes notif1 {
	0% {
		opacity: 0.5;
	}

	90% {
		opacity: 0,5;
	}

	100% {
		opacity: 0.05;
	}
}

.notif {
	position: fixed;
	left: 5%;
	top: 50%;
	transform: translateY(-50%);
	max-height: 50%;
	padding-right: 5%;
	overflow-y: scroll;
	width: 100%;
	text-align: right;
	pointer-events: none;
	opacity: 1;
}

.notif > * {
	opacity: 0.05;
}

@keyframes highlight {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 0.5;
	}
}

.highlight {
	border: 1px solid white;
	width: var(--w, 0px);
	height: var(--h, 0px);
	left: var(--x, 0px);
	top: var(--y, 0px);
	position: fixed;
	animation: highlight 0.5s alternate infinite;
	z-index: 999;
	transition: width 1s, height 1s, left 1s, top 1s;
	box-sizing: content-box;
	transform: scale(1.2);
	pointer-events: none;
}

.prompt {
	position: fixed;
	left: var(--x, 50%);
	top: var(--y, 50%);
	animation: highlight 1s forwards;
	z-index: 999;
	transition: width 1s, height 1s, left 1s, top 1s;
	font-size: 1.5em;
	transform: translateX(-50%);
	pointer-events: none;
}

.prompt.left {

}

.background {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	filter: invert(1);
}

@keyframes background {
	0% {
		left: var(--min-l);
	}

	100% {
		left: var(--min-r);;
	}
}

.background .slot {
	position: absolute;
	width: 30%;
	padding-top: 20%;
	left: 0px;
	top: 50%;
	background-image: url(./img/zep.png);
	background-size: 100% 100%;
	opacity: 0.2;
	animation: background 1200s infinite;
	--min-l: -500%;
	--min-r: 500%;
}

.background .slot.s2 {
	position: absolute;
	width: 30%;
	padding-top: 20%;
	left: 0px;
	top: 50%;
	background-image: url(./img/zep.png);
	background-size: 100% 100%;
	opacity: 0.2;
	animation: background 1200s infinite;
	--min-l: -500%;
	--min-r: 500%;

	transform: translate(50vh, -50vw) scale(0.6);
}

.background .slot.s3 {
	position: absolute;
	width: 30%;
	padding-top: 20%;
	left: 0px;
	top: 50%;
	background-image: url(./img/zep.png);
	background-size: 100% 100%;
	opacity: 0.2;
	animation: background 1200s infinite;
	--min-l: -500%;
	--min-r: 500%;
	transform: translate(30vh, 30vw) scale(1.2);
}

*::-webkit-scrollbar {
	width: 12px;
	background-color: transparent;
}

*::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 6px;
}

*::-webkit-scrollbar-track {
	background-color: transparent;
}

*::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0, 0, 0, 0.4);
}

.moonsole {
	max-width: 80vw;
	word-break: break-all;
}

.interface .name {
	font-size: 0.7em;
	text-align: center;
}

.interface .right {
	position: absolute;
	left: 99%;
	display: inline-block;
	transform: translateX(-100%);
	width: fit-content;
}

.interface > * {
	min-height: 1em;
}

.interface > button {
	min-height: 3em;
	min-width: 3em;
}
