:root {
	/* https://gothub.libre.tw/sakuraisayeki/vanilla-amoled-theme */
	--bg_h: #000;
	--bg: #000;
	--bg_s: #080808;
	--bg1: #111;
	--bg2: #333;
	--bg3: #363636;
	--bg4: #4a4a4a;

	--fg: #fff;
	--fg1: #bbb;
	--fg2: #bbb;
	--fg3: #fff;
	--fg4: #666;

	--red: #fb464c;
	--green: #44cf6e;
	--yellow: #e0de71;
	--blue: #8b6cef;
	--purple: #a882ff;
	--aqua: #53dfdd;
	--gray: #888;
	--orange: #e9973f;

	--red-dim: #ce393e;
	--green-dim: #38aa5a;
	--yellow-dim: #b8b65d;
	--blue-dim: #a882ff;
	--purple-dim: #8a6bd1;
	--aqua-dim: #44b7b5;
	--gray-dim: #999;
	--orange-dim: #bf7c34;
}

@font-face {
	font-family: InterVariable;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/-/assets/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
	font-family: InterVariable;
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("/-/assets/fonts/InterVariable-Italic.woff2") format("woff2");
}

html {
	font-family: "InterVariable", "Roboto", sans-serif;
	background: var(--bg_h);
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
}

body {
	height: 100%;
	margin: 0;
}

h1 {
	font-size: 68px;
	text-align: center;
	margin: 20px;
	max-width: 100%;
	overflow-wrap: break-word;
}

p,
h1,
h2,
h3,
h4,
h5 {
	color: var(--fg3);
}

a {
	color: var(--fg3);
}

hr {
	border-color: var(--bg4);
}

a[href] {
	text-decoration: none;
	color: var(--blue);
}

a[href]:hover {
	text-decoration: underline;
	color: var(--blue-dim);
}

fieldset {
	border: none;
}

.img {
	max-width: 100%;
	height: auto;
	display: block;
}

.navbar {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.8rem;
}

@media (max-width: 720px) {
	.navbar {
		gap: 0.5rem;
	}
}

@media (max-width: 410px) {
	.navbar {
		flex-direction: column;
		gap: 0;
	}
}

.navbar > .end-of-flex {
	margin-left: auto;
}

.site-info {
	text-align: center;
	font-size: 1.2rem;
}

.footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.bottom {
	font-size: 0.9rem;
	flex: 1;
	text-align: center;
}

.bottom > p {
	margin: 10px 0px;
}

.percent {
	color: var(--fg1);
	align-content: center;
}

.storage-usage {
	font-family: monospace;
	font-size: 0.9rem;
}

.fork-notice {
	color: var(--fg3);
}

.speed {
	color: var(--fg1);
	align-content: center;
	font-size: 0.9rem;
	opacity: 0.8;
}

.container {
	padding-top: 10px;
	padding-left: 10px;
	padding-right: 10px;
	max-width: 800px;
	margin: auto;
}

.media-container {
	padding-top: 10px;
	padding-left: 10px;
	padding-right: 10px;
	/* overflow: auto; */
}

.media {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 10px;
	height: 100vh;
	height: calc(var(--vh, 1vh) * 100);
	max-height: 85vh;
}

.media > .content {
	max-height: 100%;
	max-width: 100%;
	height: auto;
	width: auto;
}

.media > .file-no-display {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.media > .media-audio-img {
	max-width: 100%;
	max-height: 50%;
}

.drop-area {
	text-align: center;
	position: relative;
	width: fit-content;
	margin: 0 auto;
	display: block;
	background: var(--bg1);
	border: 1px solid var(--bg2);
	border-radius: 2px;
	cursor: pointer;
	padding: 28px 32px;
}

form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

input[type="file"] {
	background-color: var(--gray-dim);
	border: 1px solid var(--gray);
	border-radius: 2px;
	padding: 1rem;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
}

input[type="file"]:hover {
	background-color: var(--gray);
}

input[type="submit"] {
	background-color: var(--gray-dim);
	border-radius: 2px;
	border: none;
	padding: 0.75rem 1rem;
	font-weight: bold;
	cursor: pointer;
}

input[type="submit"]:hover {
	background-color: var(--gray);
}

.button {
	color: var(--white);
	display: inline-block;
	padding: 10px 20px;
	border-radius: 2px;
	cursor: pointer;
}

nav a,
nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.upload-status-container {
	margin: 10px 0px 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.upload-status {
	background: var(--bg1);
	border: 1px solid var(--bg2);
	display: flex;
	border-radius: 2px;
	flex-direction: row;
	justify-content: space-between;
	padding: 8px;
	gap: 6px;
}

.upload-status .buttons-container {
	display: flex;
}

.link-container {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.button {
	display: inline;
	border: none;
	border-radius: 2px;
	padding: 4px 10px;
	cursor: pointer;
	font-weight: bold;
}

.copy-button {
	background-color: var(--purple);
}

.copy-button:hover {
	background-color: var(--purple-dim);
}

.delete-button {
	background-color: var(--yellow);
}

.delete-button:hover {
	background-color: var(--yellow-dim);
}

.cancel-upload-button {
	background-color: var(--green);
}

.cancel-upload-button:hover {
	background-color: var(--green-dim);
}

.status {
	color: var(--orange);
	align-content: center;
	text-align: center;
}

.file-history {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 10px;
}

.file-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 auto;
	background: var(--bg1);
	border: 1px solid var(--bg2);
	border-radius: 2px;
	padding: 20px 20px;
}

.file-info > .img {
	max-width: 100%;
	max-height: 25vh;
	display: block;
	margin: auto;
}

.file-info-box {
	display: flex;
	flex-direction: column;
}

.select-box {
	background: var(--bg1);
	color: var(--fg3);
	border: 1px solid var(--bg2);
	border-radius: 2px;
}

.label {
	margin-right: 20px;
	color: var(--fg3);
}

.user-settings-fields {
	display: flex;
	flex-direction: column;
	row-gap: 0.5em;
}

.user-settings-description-box {
	width: 350px;
	padding-left: 10px;
	display: inline-block;
	vertical-align: top;
	color: var(--fg3);
}

.user-settings-description-elements {
	display: flex;
	flex-direction: column;
}

input[type="number"] {
	background: var(--bg1);
	color: var(--fg3);
	border: 1px solid var(--bg2);
	border-radius: 2px;
}

.infobox {
	text-align: center;
	position: relative;
	width: fit-content;
	margin: 8px auto;
	display: block;
	background: var(--bg1);
	border: 1px solid var(--bg2);
	border-radius: 2px;
	cursor: pointer;
	padding: 8px;
}

.mascot {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: min(38vh, 360px);
    width: auto;
    max-width: 40vw;
    object-fit: contain;
    object-position: right bottom;
    opacity: 0.95;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 720px), (max-height: 520px) {
    .mascot {
        display: none;
    }
}

@media print {
    .mascot {
        display: none;
      
    }
}
