@font-face {
	font-family: departure;
	src: url('DepartureMono-Regular.otf');
	font-display: swap;
}
html, body {
	margin: 0;
	padding: 0;
}

body {
	background-color: #779999;
	background-image: url('/assets/tile.png');
  	background-repeat: repeat;
	background-size: 128px 128px;
	image-rendering: pixelated;
	height: 100%;
	width: 100%;
}

.content {
	line-height: calc(1ex / 0.32);

	margin: 16px auto;
	padding: 16px 32px;
	font-family: departure;
	font-size: 16px;
	background-color: #ffffea;
	max-width: 1028px;
	box-sizing: border-box;
	border: 2px solid #557777;
	box-shadow:
		inset 2px 2px 0 0 #557777,
		2px 2px 0 0 #ffffff;
}



button {
	display: inline-block;
	background-color: #d9d9d9;
	color: #000000;
	font-family: departure;
	font-size: 14px;
	padding: 6px 12px;
	cursor: url('cursors/sight.png') 0 0, pointer;
	outline: none;
	text-decoration: none;
	
	border: 2px solid #ffffff;
	border-right-color: #555555;
	border-bottom-color: #555555;
	box-shadow: 
		1px 1px 0 0 #000000,
		inset 1px 1px 0 0 #ffffff;
}


input[type="text"] {
	background-color: #ffffff;
	color: #000000;
	font-family: departure;
	font-size: 14px;
	padding: 6px 8px;
	outline: none;

	border: 2px solid #555555;
	border-right-color: #ffffff;
	border-bottom-color: #ffffff;
	box-shadow: 
		inset 1px 1px 0 0 #000000,
		1px 1px 0 0 #ffffff;
}

a {
	font-family: departure;
	color: #1133aa;
	text-decoration: none;
	cursor: url('cursors/sight.png') 0 0, pointer;
}

a:hover {
	color: #0044cc;
}

a:active {
	position: relative;
	top: 1px;
	left: 1px;
}
section {
    margin-bottom: 80px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
	
	image-rendering: pixelated; 
	
}
.row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}
.app {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border: 2px solid #555;
	box-shadow: 
		inset 1px 1px 0 0 #000000,
		1px 1px 0 0 #ffffff;
}
.app-content {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	justify-content: center;

	
}
.app-platform {
		align-items: center;
		display: flex;
		justify-content: center;
		width: 256px;
		flex-direction: column;
	}
.grid {
	gap: 32px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: start;
	div {
		max-width: 256px;
	
	}
}
.tk-img {

	border: 2px solid #555555;
	border-right-color: #ffffff;
	border-bottom-color: #ffffff;
	box-shadow: 
		inset 1px 1px 0 0 #000000,
		1px 1px 0 0 #ffffff;
}
.bloat-meter-container {
  margin: 2rem 0;
  padding: 1.2rem;
  border: 1px solid #779999;
  background-color: rgba(119, 153, 153, 0.05);
  border-radius: 4px;
  max-width: 480px;
}

.bloat-meter-container h3 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #779999;
}

.bloat-row {
  display: grid;
  grid-template-columns: 75px 1fr 75px;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.bloat-row:last-child {
  margin-bottom: 0;
}

.bloat-row .label {
  font-weight: bold;
}

.bloat-row .value {
  text-align: right;
  font-family: monospace;
  font-size: 0.85rem;
  color: #555;
}

.meter-bar {
  height: 8px;
  background-color: #e4ecec;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 12px;
}

.fill {
  height: 100%;
  border-radius: 2px;
}


.fill.kryon {
  width: 2%; 
  background-color: #2d4444;
}

.fill.uxntal {
  width: 6%; 
  background-color: #446666;
}

.fill.raylib {
  width: 12%; 
  background-color: #557788;
}

.fill.love2d {
  width: 28%; 
  background-color: #778899;
}

.fill.flutter {
  width: 60%; 
  background-color: #a37777;
}

.fill.godot {
  width: 100%; 
  background-color: #b35555;
}





/* Custom Plan9 Cursors */
body {
	cursor: url('cursors/arrow.png') 0 0, auto;
}

a {
	cursor: url('cursors/sight.png') 0 0, pointer;
}

button {
	cursor: url('cursors/sight.png') 0 0, pointer;
}
.crosshair {
	cursor: url('cursors/cross.png') 8 8, crosshair;
}
.help {
	cursor: url('cursors/query.png') 8 8, help;
}
input[type="text"] {
	cursor: url('cursors/reading.png') 8 8, text;
}
.move {
	cursor: url('cursors/box.png') 8 8, move;
}
.wait {
	cursor: url('cursors/deadmouse.png') 8 8, wait;
}

.life-timeline {
	margin: 2rem 0;
	padding: 1rem;
}

.life-timeline h3 {
	margin-bottom: 1rem;
	color: #557777;
}

.life-grid {
	display: grid;
	grid-template-columns: repeat(48, 1fr);
	gap: 1px;
	background-color: #557777;
	padding: 2px;
	border: 2px solid #557777;
	border-right-color: #ffffff;
	border-bottom-color: #ffffff;
	box-shadow:
		inset 1px 1px 0 0 #000000,
		1px 1px 0 0 #ffffff;
	margin-bottom: 1.5rem;
}

.life-cell {
	aspect-ratio: 1;
	border: 1px solid #557777;
	background-color: #ffffea;
}

.life-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.life-legend-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.life-legend-color {
	width: 16px;
	height: 16px;
	border: 1px solid #557777;
	border-right-color: #ffffff;
	border-bottom-color: #ffffff;
	box-shadow:
		inset 1px 1px 0 0 #000000,
		1px 1px 0 0 #ffffff;
}

.life-legend-text {
	font-family: departure;
	font-size: 14px;
}

@media (max-width: 768px) {
	.life-grid {
		grid-template-columns: repeat(24, 1fr);
	}
}




#display {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	touch-action: none;
	display: block;
	margin: 0 auto;
	cursor: none;
}

#metadata {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-content: start;
}

#metadata ul {
	margin-left: 25px;
	padding: 0;
	float: left;
	line-height: 24px;
	margin-bottom: 45px;
}

#metadata ul li {
	list-style-type: none;
}

#metadata button {
	display: inline-block;
	border: 0;
	font-size: 12px;
	border-radius: 30px;
	padding: 2px 10px;
	line-height: 20px;
	margin-bottom: 1px;
	vertical-align: center;
}

#metadata kbd {
	border: 0;
	font-size: 11px;
	font-weight: bold;
	padding: 2px 2px;
	border-radius: 30px;
}

#console {
	position: relative;
}

#console > * {
	border: 0;
	font-family: mono;
	font-size: 12px;
	line-height: 20px;
	margin: 0;
	padding: 0;
	width: 100%;
}

div.noscript {
	display: block;
	padding: 15px;
	margin: 30px auto;
	max-width: 400px;
}

div.noscript img {
	float: left;
	margin-right: 15px;
}

div.noscript a {
	text-decoration: underline;
	font-weight: bold;
}

