html,
body,
#canvas {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Make sure everything covers the full screen */
html,
body {
	margin: 0;
	height: 100%;
	overflow: hidden;
}

/* Background stars that tile */
.background-layer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('bg.png');
	background-repeat: repeat;
	background-position: center;
	z-index: 5;
	animation: scroll-stars 60s linear infinite;
}

@keyframes scroll-stars {
	0% {
		background-position: 0 0;
	}

	100% {
		background-position: 100px 100px;
	}
}

/* Semi-transparent dark overlay */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000db;
	/* 85% opaque black */
	z-index: 1;
}

#canvas {
	display: block;
	z-index:222;
}

#canvas:focus {
	outline: none;
}

#status,
#status-splash,
#status-progress {
	position: absolute;
	left: 0;
	right: 0;
}

#status,
#status-splash {
	top: 0;
	bottom: 0;
}

#status {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	visibility: hidden;
}

#status-splash {
	max-height: 100%;
	max-width: 100%;
	margin: auto;
}

#status-splash.show-image--false {
	display: none;
}

#status-splash.fullsize--true {
	height: 100%;
	width: 100%;
	object-fit: contain;
}

#status-splash.use-filter--false {
	image-rendering: pixelated;
}

#status-progress,
#status-notice {
	display: none;
}

#status-progress {
	bottom: 10%;
	width: 50%;
	margin: 0 auto;
}

#status-notice {
	background-color: #5b3943;
	border-radius: 0.5rem;
	border: 1px solid #9b3943;
	color: #e0e0e0;
	font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
	line-height: 1.3;
	margin: 0 2rem;
	overflow: hidden;
	padding: 1rem;
	text-align: center;
	z-index: 1;
}



/* Foreground content */
.content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.island {
	max-width: 100%;
	height: auto;
	z-index: 10;
}


/* Floating animation */
.floating {
	animation: float 4s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-15px);
	}

	100% {
		transform: translateY(0);
	}
}
