html, body {
	padding: 0;
	margin: 0;
}
body {
	display: flex;
	flex-direction: column;
	background: #110022;
	color: #fff;
	font-family: 'Carter One', 'Kanit', Verdana, sans-serif;
	text-align: center;
	overflow: hidden;
}

#page {
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	align-items: stretch;
	height: 100vh;
	overflow: hidden;
}
#page > footer {
	font-size: 80%;
	padding: 0.5em 1em;
	background: rgba(0,0,0,0.7);
	color: #967;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
}

button {
	font-size: 150%;
	padding: 0.5em;
	border: 0.2em solid #33f;
	font-family: inherit;
	background: rgba(255,255,255,0.8);
	color: #111;
	cursor: pointer;
	font-weight: bold;
}
button:hover {
	background: #fff;
}
h1 {
	color: #967;
	font-size: 300%;
}
a {
	color: #33f;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

.dialog {
	display: none;
	position: absolute;
	box-sizing: border-box;
	z-index: 2;
	text-align: center;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	font-size: 100%;
	padding: 2em 1em;
	background-color: rgba(0,0,0,0.7);
	border: solid #000;
	border-width: 1px 0;
	text-shadow: 0 0.2em 0 rgba(0, 0, 0, 0.5);
}
.dialog ul {
	max-width: 20em;
	margin: 0 auto;
	text-align: left;
}

#page.game-over {
	border: 10px solid #c11;
}
.game-over-message {
	color: #c11;
}
.game-over-message h1 {
	color: #c11;
}
#page.game-over .game-over-message {
	display: block;
}
#page.game-over #space,
#page.game-win #space {
	filter: blur(10px);
}

#page.game-win .game-win-message {
	display: block;
}

/* Notifications */

#notifications {
	position: absolute;
	top: 5%;
	width: 100%;
}
#page.game-over #notifications,
#page.game-win #notifications {
	display: none;
}

/* Intro */
#intro {
	position: absolute;
}
#intro button {
	min-width: 14em;
}
#intro h1 {
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

#space {
	position: relative;
	perspective: 600px;
	overflow: hidden;
    width: 100%;
	height: 100%;
	background-image: url('../images/stars1.png'), url('../images/stars2.png');
	background-position: 0 0, 0 0;
}

#ship {
	position: absolute;
	left: 200px;
	top: 100px;
	transform: scale(3) rotate3d(1,0.1,0,20deg);
	transition: all 1s;
}

.block,
.character {
	position: absolute;
	box-sizing: border-box;
	font-size: 6px;
	min-width: 2px;
	min-height: 2px;
	cursor: pointer;
	transition: border-color 0.1s;
	text-align: center;
	font-family: Verdana, sans-serif;
}

.character {
	background-color: #699;
	border-radius: 2em;
	border: solid 1px #6ff;
	border-bottom: 0;
	padding-top: 3px;
	color: rgba(0,0,0,0.9);
	box-shadow: 0px 3px 2px rgba(0,0,0,0.4);
	transition: 0.2s all;
}
	.character:hover {
		
	}
	.character::after { /* body/legs */
		content: "";
		display: block;
		box-sizing: border-box;
		width: 10px;
		height: 4px;
		border-radius: 1px;
		background-color: transparent;
		margin: 2px auto;
		border: 2px solid #699;
		border-bottom: 0;
	}
.hurt {
	color: #c11;
}
.hurt::after {
	
}
.dead {
	background-color: #666;
	border-color: #777;
	color: #222;
	opacity: 0.8;
}
.dead::after {
	border-color: #666;
}

.type-wall,
.type-doorLock {
	background-color: #967;
}
.type-doorLock::after {
	content: "⟟";
	display: block;
	color: rgba(0,0,0,0.9);
	width: 50%;
	height: 50%;
	margin: 25%;
	background-color: rgba(255,255,255,0.1);
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.type-oxygenMonitor {
	background-color: #115;
	border: 3px solid #967;
	font-size: 3.5px;

}
.type-oxygenMonitor::before {

}
.type-oxygenMonitor::after {
	
}

.type-structure {
	background-color: #745;
}
.type-structure::after {
	content: "";
	display: block;
	width: 50%;
	height: 50%;
	margin: 25%;
	background-color: rgba(0,0,0,0.25);
}

.type-floor,
.type-container,
.type-terminal,
.type-airlock,
.type-scannerTerminal,
.type-laserTerminal {
	background-color: #324;
	border: solid 1px rgba(0,0,0,0.1);
}
.type-container::after {
	content: "";
	display: block;
	width: 80%;
	height: 40%;
	margin: 10%;
	border-radius: 15%;
	background-color: #956;
	box-shadow: 0 1px 3px rgba(0,0,0,0.5);
	border-bottom: 6px solid #845;
}
.type-terminal::after,
.type-airlock::after,
.type-scannerTerminal::after,
.type-laserTerminal::after {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 10%;
	border: 2px solid #898;
	border-radius: 10% 10% 5% 5%;
	background-color: #111;
	box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.type-terminal::after {
	height: 5px;
	margin: 10%;
	border: 2px solid #898;
	border-bottom-width: 5px;	
}
.type-airlock::after {
	content: "⏏"; /* ⚠ */
	display: block;
	width: 8px;
	height: 7px;
	margin: 10%;
	border: 2px solid #898;
	border-bottom-width: 3px;
	border-radius: 10% 10% 5% 5%;
	background-color: #939;
	box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.type-scannerTerminal::after {
	content: '☄';
	background-color: #483;
}
.type-laserTerminal::after {
	content: '⚙';
	background-color: #663;
}

.type-door {
	background-color: #324;
	border: 0 solid #33f;
	border-width: 1px 7px 1px 8px;
	transition: all 0.4s;
}
	.type-door.open {
		background-color: #324;
		border-width: 0 2px;
		opacity: 1;
	}

.type-cargoDoor {
	background-color: #939;
}
.type-cargoDoor::before {
	content: "≣";
	font-size: 200%;
	color: rgba(0,0,0,0.25);
	transition: all 0.5s;
}
.type-cargoDoor.open {
	transform: scale(0.6);
}

.type-exhaust {
	background-color: #f99;
}
.type-exhaust::before {
	content: "✹";
	font-size: 200%;
	color: #fcc;
}

.type-door.locked {
	border-color: #e33;
	border-width: 3px 7px 3px 8px;
}

.open {
	opacity: 0.5;
}

/* ☢ ⚕ ⚛ ☥ ✉ ♺ ▩ ▦ ☼ ⬡ ♫ ☣ ✇ ⚱ ⚙ ⸭ ⌨ ✺ */



.block:active,
.character:active {
	border: solid 1px rgba(255, 255, 255, 0.5);
}

.pc {
	background-color: #ffc;
	border-color: #ffe;
}
.pc::after {
	border-color: #ffc;
}

#credits > * {
	max-width: 40em;
	margin: 1em auto;
}

pre {
	white-space: pre-wrap;
}


@media screen and (max-width: 800px) {
	h1 {
		font-size: 200%;
		margin: 0.5em 0;
	}
	#intro,
	#credits {
		font-size: 80%;
		padding: 0.1em 1em;
	}
	#intro h1,
	#credits h1 {
		font-size: 200%;
		margin: 0.1em 0;
	}
	#page > footer {
		font-size: 60%;
	}
}
