body {
	font-family: sans-serif;
	margin-top: 30px;
	background: #fff;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.topbar {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 10px;
}

.nav-container {
	display: flex;
	align-items: center;
}

.nav-container a {
	padding: 10px;
	color: #fff;
}

.nav-container span {
	padding: 10px;
	color: #fff;
}

.btn2a {
	background: none;
	border: none;
	padding: 0;
	color: LinkText;
	font: inherit;
	cursor: pointer
}

.btn2a:hover {
	text-decoration: underline;
}

.btn2a:visited {
	color: VisitedText;
}

.title-img {
	height: 60px;
}

.title {
	display: flex;
	justify-content: space-between;
	width: 100%;
	background: #1e7de1;
}

.site-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	max-width: 942px;
	margin: 0 auto;
}

.content {
	flex: 1;
	margin-top: 1em;
}

footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #888
}

.emoji {
	height: 1em;
	width: 1em;
	vertical-align: middle;
}

.warning-box {
	color: orange;
	background: #fff7ee;
	padding: 10px;
	border: 1px solid orange;
	margin-bottom: 15px;
}

.error-box {
	color: red;
	background: #ffeeee;
	padding: 10px;
	border: 1px solid red;
	margin-bottom: 15px;
}

.success-box {
	color: green;
	background: #eeffee;
	padding: 10px;
	border: 1px solid green;
	margin-bottom: 15px;
}

.idk {
	display: flex;
	align-items: center;
	justify-content: right;
	width: 100%;
	gap: 10px;
}

.games {
	width: 100%;
	table-layout: fixed;
}

.game-thumbnail {
	width: 100%;
}

.right-legend {
	padding-inline: 2px;
	position: absolute;
	top: calc(-10px - 0.5em);
	right: 20px;
	background: white;
	unicode-bidi: isolate;
	font-size: 0.9em;
}

.above-title {
	display: flex;
	justify-content: space-between;
	width: calc(100% - 20px);
	align-items: baseline;
}

.my-game-list {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.my-game-list li {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	border-bottom: 1px solid #ccc;
}

.my-game-list li:first-child {
	border-top: 1px solid #ccc;
}

.my-game-image {
	height: 80px;
}

.left-my-game {
	display: flex;
	gap: 10px;
}

.my-game-info {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}

.public-btn {
	border: 0;
	background: limegreen;
	padding: 5px;
	cursor: pointer;
}

.private-btn {
	border: 0;
	background: gray;
	padding: 5px;
	cursor: pointer;
}

form p {
	display: flex;
	gap: 10px
}

textarea {
	width: 100%;
	resize: vertical;
	font-family: inherit;
}

.description-box {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
}

.viewer-box #preview {
	width: 360px;
	object-fit: fill;
	aspect-ratio: 4 / 3;
}

.viewer-box {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.game-creator {
	display: flex;
	gap: 10px;
}

.game-creator img {
	height: 70px;
	aspect-ratio: 1 / 1;
	width: auto;
	border-color: threedface;
	border-style: groove;
	border-width: 2px;
}

.game-article {
	display: flex;
	flex-direction: row;
	gap: 1em;
	margin-top: 0.275em;
}

.game-left, .game-right {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.game-title {
	margin: 0;
	font-size: xx-large;
}

.game-info {
	display: flex;
	flex-direction: column;
}

.cgame-thumbnail {
	width: 480px;
	height: 360px;
	border-color: threedface;
	border-style: groove;
	border-width: 2px;
}

.game-button {
	width: 100%;
	font-size: large;
	flex: 1;
}

.game-desc {
	resize: none;
	flex: 9;
	box-sizing: border-box;
}

.game-stats {
	margin-top: 10px;
	display: flex;
	gap: 10px;
}

.avatar-viewer {
	width: 240px;
	aspect-ratio: 3 / 4;
	background: radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, #00000000 90%);
	border: threedface solid 1px
}

.bg-character-color-1 { background-color: #FF595E; }
.bg-character-color-2 { background-color: #FF924C; }
.bg-character-color-3 { background-color: #FFCA3A; }
.bg-character-color-4 { background-color: #C5CA30; }
.bg-character-color-5 { background-color: #8AC926; }
.bg-character-color-6 { background-color: #52A675; }
.bg-character-color-7 { background-color: #1982C4; }
.bg-character-color-8 { background-color: #4267AC; }
.bg-character-color-9 { background-color: #6A4C93; }
.bg-character-color-10 { background-color: #8E44AD; }
.bg-character-color-11 { background-color: #D81159; }
.bg-character-color-12 { background-color: #FB3640; }
.bg-character-color-13 { background-color: #F2F2F2; }
.bg-character-color-14 { background-color: #8D99AE; }
.bg-character-color-15 { background-color: #4A4E69; }
.bg-character-color-16 { background-color: #22223B; }

.store-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.item-right {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.wear {
	width: 100%;
	aspect-ratio: 1;
}

.popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	justify-content: center;
	align-items: center;
}

.popup-content {
	background: white;
	padding: 20px;
	max-width: 50%;
	max-height: 80vh;
	overflow-y: auto;
}

.thumbnail-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}

.thumbnail-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 calc(25% - 7.5px);
	box-sizing: border-box;
}

.thumbnail-item img {
	width: 100%;
	aspect-ratio: 4/3;
	border: black solid 1px;
}

.thumbnail-item div {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.rangebar {
	width: 200px;
	vertical-align: middle;
}
