* {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
body {
	font-family: 'IBM Plex Mono', monospace;
	margin: 0;
	background-color: #333;
	background-image: url("../images/bg.jpg");
	background-repeat: repeat;
	background-position: top left;
	background-attachment: fixed;
}
html {
	font-family: 'IBM Plex Mono', monospace;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}
label[for] {
	cursor: pointer;
}
input[type="checkbox"] {
	display: none;
}
.lightbox {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	min-height: 100%;
	z-index: 1;
	overflow: auto;
	-webkit-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
	-webkit-transition: -webkit-transform .75s ease-out;
	transition: transform .75s ease-out;
}
.lightbox img {
	position: fixed;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	max-width: 96%;
	max-height: 96%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
input[type="checkbox"]:checked + .lightbox {
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
input[type="checkbox"]:checked ~ .grid {
	opacity: .125;
}
.grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px;
	display: grid;
	grid-template-columns: repeat(3, minmax(280px, 1fr));
	gap: 24px;
	text-align: center;
	position: relative;
	z-index: 0;
	transition: opacity .75s;
	grid-auto-rows: 170px;
}
.grid .grid-item {
	height: 100%;
	display: block;
	cursor: crosshair;
	opacity: .75;
	transition: opacity 0.5s;
}
.grid .grid-item .flip-card {
	width: 100%;
	height: 100%;
}
.grid .grid-item:hover {
	opacity: 0.55;
}
@media (max-width: 980px) {
.grid {
	grid-template-columns: repeat(2, minmax(260px, 1fr));
}
}
@media (max-width: 560px) {
.grid {
	grid-template-columns: 1fr;
}
}
.grid img {
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
[hidden], template {
	display: none;
}
a {
	background: transparent;
}
a:active, a:hover {
	outline: 0;
}
sub, sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	top: -0.5em;
}
sub {
	bottom: -0.25em;
}
img {
	border: 0;
}
button, input, optgroup, select, textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}
button {
	overflow: visible;
}
button, select {
	text-transform: none;
}
button, html input[type="button"], input[type="reset"], input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}
button[disabled], html input[disabled] {
	cursor: default;
}
button::-moz-focus-inner, input::-moz-focus-inner {
	border: 0;
	padding: 0;
}
input {
	line-height: normal;
}
.flip-card {
	width: 100%;
	aspect-ratio: 4/3;
	perspective: 1000px;
	position: relative;
	border-radius: 10px;
}
.flip-card-inner {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform 0.8s;
	transform-style: preserve-3d;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.50);
	border-radius: 10px;
	will-change: transform;
	-webkit-transform: translateZ(0);
}
.flip-card.is-flipped .flip-card-inner {
	transform: rotateY(180deg);
}
.flip-card-front {
	background-image: url("../images/bg-item.png");
	background-repeat: repeat;
	background-size: auto;
	background-color: #1c1f22;
}
.flip-card-front,  .flip-card-back {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 10px;
	overflow: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.flip-card-front img:not(.card-icon) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.flip-card-back {
	background: #111;
	color: #fff;
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px;
	text-align: center;
	font-size: 16px;
	line-height: 1.35;
}
.flip-card-back p {
	position: relative;
}
.flip-card-back h3 {
	margin: 0 0 8px 0;
	font-weight: 600;
}
.cursor {
	display: inline-block;
	width: 0.6em;
	height: 1em;
	margin-left: 4px;
	background: #e6e6e6;
	vertical-align: -0.15em;
	opacity: 0;
}
.flip-card.is-flipped .cursor {
	animation: cursor-blink 1s steps(2, start) infinite;
	opacity: 1;
}
@keyframes cursor-blink {
0%, 49% {
	opacity: 1;
}
50%, 100% {
	opacity: 0;
}
}
.card-front-content {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px;
	text-align: left;
}
.card-icon {
	width: 80px;
	height: 80px;
	min-width: 80px;
	min-height: 80px;
	flex: 0 0 80px;
	object-fit: contain;
	opacity: 0.9;
	box-shadow: none;
	max-width: none;
	max-height: none;
	display: block;
}
.card-text h3,  .flip-card-back h3 {
	margin: 0 0 4px 0;
	font-size: 17px;
	font-weight: 600;
	font-family: 'IBM Plex Mono', monospace;
	color: #e6e6e6;
}
.flip-card-back h3 {
	margin-bottom: 6px;
}
.card-text p {
	margin: 0;
	font-size: 14px;
	color: #b5b5b5;
}
.mono-link {
	font-family: 'IBM Plex Mono', Consolas, monospace;
	font-size: 14px;
	text-decoration: none;
	color: #e6e6e6;
}
.mono-link .dim {
	color: #888;
}
.mono-link .accent {
	color: #A6E22E;
}
.modal .btn-primary {
	background-color: #A6E22E;
	border-color: #A6E22E;
	color: #111;
}
.modal .btn-primary:hover {
	background-color: #8BC220;
	border-color: #8BC220;
	color: #111;
}
.modal .btn-secondary {
	background-color: #444;
	border-color: #444;
	color: #e6e6e6;
}
.modal .btn-secondary:hover {
	background-color: #555;
	border-color: #555;
}
.btn-modal-trigger {
	background-color: #333;
	border-color: #333;
	color: #e6e6e6;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 14px;
}
.btn-modal-trigger:hover {
	background-color: #444;
	border-color: #444;
	color: #fff;
}
.alert {
	display: inline-block;
	margin: 5px auto;
	padding: 2px 5px;
	background-color: #f44336;
	color: white;
	opacity: 1;
	transition: opacity 0.6s;
	max-width: 100%;
	border-radius: 5px;
}
.alert a {
	color: white;
	text-decoration: underline;
}
.alert a:hover {
	color: white;
	text-decoration: none;
}
.alert.success {
	background-color: #04AA6D;
}
.alert.info {
	background-color: #2196F3;
}
.alert.warning {
	background-color: #ff9800;
}