/* /public/official/Mishap22/Mishap22.css */

:root {	
	color-scheme: dark;
	
}
html {
	width: 100%;
	height: 100%;
	overflow: hidden;
	
}
* {	
	box-sizing: border-box;
	
}
body {	
	width: 100%;
	height: 100%;
	margin: 0;
	background: #050505;
	color: #f2f2f2;
	font-family: Consolas, "Lucida Console", "Courier New", monospace;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: stretch;
	
}
#game {	
	width: min(100vw, 960px);
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	max-height: 100vh;
	max-height: 100dvh;
	margin: 0 auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	
}
#screen {	
	background: #000;
	border: 2px solid #555;
	min-height: 0;
	max-height: none;
	padding: 12px;
	flex: 1 1 0;
	width: 100%;
	min-width: 0;
	height: auto;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	overflow-x: hidden;
	overflow-y: auto;
	white-space: pre-wrap;
	font-variant-ligatures: none;
	line-height: 1.2;
	box-shadow: 0 0 24px #000 inset;
	
}
#screen canvas {
	display: block;
	flex: 0 0 auto;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	image-rendering: -moz-crisp-edges;
	
}
#entry {	
	flex: 0 0 auto;
	display: flex;
	gap: 8px;
	margin-top: 10px;
	
}
#command {	
	flex: 1;
	background: #111;
	color: #fff;
	border: 1px solid #777;
	font: inherit;
	padding: 10px;
	text-transform: uppercase;
	
}
button {	
	background: #222;
	color: #fff;
	border: 1px solid #777;
	font: inherit;
	padding: 10px 14px;
	cursor: pointer;
	
}
button:hover, #command:focus {	
	outline: 1px solid #bbb;
	
}
#hud {	
	flex: 0 0 auto;
	color: #ddd;
	margin: 10px 0 0;
	font-size: 14px;
	
}
#saveLoadPanel {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.72);
	padding: 16px;
}
#saveLoadPanel.hidden {
	display: none;
}
#saveLoadBox {
	width: min(100%, 440px);
	background: #080808;
	border: 2px solid #777;
	box-shadow: 0 0 24px #000;
	padding: 18px;
}
#saveLoadBox h1 {
	margin: 0 0 12px;
	font-size: 20px;
}
#saveLoadStatus {
	min-height: 3.5em;
	margin: 0 0 16px;
	line-height: 1.35;
}
#saveLoadActions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.saveLoadField {
	display: block;
	margin: 10px 0 6px;
	color: #ddd;
}
#saveLoadMode, #saveLoadFile {
	width: 100%;
	background: #111;
	color: #fff;
	border: 1px solid #777;
	font: inherit;
	padding: 10px;
}
#saveLoadFile {
	text-transform: none;
}
#saveLoadActions {
	margin-top: 14px;
}

#saveLoadSlots {
	max-height: 180px;
	overflow: auto;
	background: #050505;
	border: 1px solid #777;
	padding: 6px;
}
.saveLoadSlot {
	display: block;
	width: 100%;
	margin: 0 0 6px;
	padding: 8px 10px;
	text-align: left;
	background: #111;
	color: #fff;
	border: 1px solid #555;
	font: inherit;
	cursor: pointer;
}
.saveLoadSlot:last-child {
	margin-bottom: 0;
}
.saveLoadSlot:hover, .saveLoadSlot:focus {
	background: #1c1c1c;
	border-color: #aaa;
}
.saveLoadSlot.selected {
	outline: 2px solid #ddd;
	outline-offset: -2px;
}
.saveLoadSlotName {
	display: block;
	font-weight: bold;
}
.saveLoadSlotMeta {
	display: block;
	margin-top: 3px;
	color: #bbb;
	font-size: 12px;
}
.saveLoadSlotEmpty {
	color: #bbb;
	padding: 8px 10px;
}

#screen.glyph-buffer-mode {
	overflow-x: hidden;
	overflow-y: auto;
	white-space: normal;
}
#glyphBufferButton {
	flex: 0 0 auto;
	white-space: nowrap;
}
#glyphBufferButton[aria-pressed="true"] {
	border-color: #ddd;
	box-shadow: 0 0 10px #000;
}
