body {
	--font: 'Tahoma', sans-serif;
	font-family: var(--font);
	background-color: #999;
	color: #333;
}

input {
	font-family: var(--font);
}

a {
	color: #00f;
}

a.sort {
	text-decoration: none;
}

a.sort.active, a:hover {
	text-decoration: underline;
	cursor: pointer;
}

.box {
	display: block;
	background-color: #eee;
	border: 1px outset #ccc;
	width: 300px;
	padding-bottom: 4px;
}

.wide {
	width: 90%;
}

.title {
	padding: 12px;
	font-weight: bold;
	background-color: #fcf;
	background-image: url('/static/alphathing.png');
	background-position: top right;
	background-repeat: repeat-y;
	image-rendering: pixelated;
}

.title.blue {
	background-color: #ccf;
}

.title.miku {
	background-color: #7dfff8;
}

.title.orange {
	background-color: #fba;
}

.title.gray {
	background-color: #ddd;
}

.title > a {
	margin: 0px 4px;
}

.subtle {
	font-size: 11px;
}

.mubtle {
	font-size: 14px;
}

.page-form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin: 8px;
}

.error {
	color: #f44;
}

.file-upload {
	margin: 4px;
}

.filename-options {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.filename-options div {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.custom-filename {
	width: 128px;
}

.submit-button {
	margin: 6px 4px;
	padding: 8px;
	border: 1px groove #ccc;
	border-radius: 0;
	box-shadow: #ddd 2px 2px 0;
	background-color: #eee;
	cursor: pointer;
}

.submit-button:disabled {
	cursor: default;
}

.submit-button:hover:not(:disabled) {
	border-color: #999;
	box-shadow: #aaa 2px 2px 0;
}

::file-selector-button {
	font-family: var(--font);
	margin: 0px 12px 2px 0px;
	padding: 4px 8px;

	border: 1px groove #ccc;
	border-radius: 0;
	box-shadow: #ddd 2px 2px 0;
	background-color: #eee;
	cursor: pointer;
}

::file-selector-button:hover {
	border-color: #999;
	box-shadow: #aaa 2px 2px 0;
}

.hidden {
	display: none;
}

.mx-4 {
	margin-left: 4px;
	margin-right: 4px;
}

.my-4 {
	margin-top: 4px;
	margin-bottom: 4px;
}

.my-8 {
	margin-top: 8px;
	margin-bottom: 4px;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	padding: 16px;
	gap: 16px;
}

.gallery-item a {
	text-decoration: none;
}

.gallery-item a:hover {
	text-decoration: underline;
}

.gallery-title {
	padding-top: 4px;
	text-align: center;
	width: 120px;
	word-break: break-word;
	line-height: 1;
}

.gallery-subtitle {
	margin-top: 4px;
	text-align: center;
	width: 120px;
	font-size: 11px;
	font-weight: bold;
}

.gallery-upload {
	padding: 0 10px;
	height: 100px;
	width: 100px;
	text-align: center;
	line-height: 100px;
	font-size: 20px;
}

.gallery .imagebox {
	padding: 0 12px;
	height: 100px;
	width: 100px;
}

.details .imagebox {
	padding: 0;
	height: 100px;
	width: 100px;
}

.imagebox img {
	width: 100%;
	height: 100%;
	object-fit: scale-down;
}

.priv {
	font-size: 11px;
	font-weight: bold;
	text-decoration: none;
	color: #f44;
	word-break: keep-all;
}

.details {
	padding: 16px;
}

.details table {
	margin-top: 4px;
}

.details td {
	word-break: break-all;
	vertical-align: top;
}

.details .buttons {
	display: flex;
	gap: 8px;
	flex-direction: row;
	justify-content: right;
	margin-top: 12px;
}

form.compact {
	display: inline-block;
	margin: 0;
}

input[type=checkbox] {
	margin: 0;
}

.compact-button {
	width: 90px;
	margin: 0;
	padding: 4px;
	border: 1px groove #ccc;
	border-radius: 0;
	box-shadow: #ddd 2px 2px 0;
	background-color: #eee;
	cursor: pointer;
}
.compact-button.danger {
	color: #a61212;
}

.fake-link-form {
	display: inline;
	margin: 0;
}

.fake-link-form input[type="submit"], 
.fake-link-form button {
	display: inline;
	font-size: inherit;
	color: #00f;

	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.fake-link-form input[type="submit"] {
	font-size: 11px;
	font-weight: bold;
}

.fake-link-form input[type="submit"]:hover,
.fake-link-form button:hover {
	text-decoration: underline;
}

.fake-link-form.danger input[type="submit"]:hover {
	color: #a61212;
}

.public:after, .private:after {
	content:'';
	width: 6px;
	height: 6px;
	margin-top: 3px;
	margin-left: 2px;
	display: inline-block;
	vertical-align:text-top;
	border-radius: 999px;
}
.public:after {
	background: rgb(4, 192, 51);
}
.private:after {
	background: #f44;
}
.subtle .public:after, .subtle .private:after {
	width: 4px;
	height: 4px;
	margin-left: 1px;
}

.auth {
	float: right;
}
.auth:not(:hover):before {
	content: 'hi '
}
.auth .logout {
	display: none;
}
.auth:hover .logout {
	display: inline;
	padding: 1em 0;
}

.edit-tag * {
	margin-right: 4px;
	/* text-decoration-color: var(--tag) !important; */
}

.taglist {
	margin-top: 4px;
	margin-left: 12px;
}

.taglist a, .tag {
	text-decoration-line: underline;
	text-decoration-skip-ink: none;
	text-decoration-style: double;
	text-decoration-color: var(--tag);
}

.color-swatch {
	display: inline-block;
	box-sizing: border-box;
	height: 16px;
	width: 16px;
	margin-right: 4px;
	border-radius: 999px;
	background-color: var(--color);
	cursor: pointer;
}

hr {
	margin-top: 16px;
	margin-bottom: 10px;
	border:0;
	border-top: 1px solid #bbb;
}

.dotdotdot {
	overflow: clip;
	text-overflow: ellipsis;
	display: block;
}