@font-face {
    font-family: "Shattered";
    src: url("../assets/pixel_font.ttf") format("truetype");
}

* {
	font-family: "Shattered", sans-serif;
}

body {
	background-color: black;
	color: white;
	color-scheme: dark;
	-webkit-text-stroke: 0.2px black;

	padding: 0;
	margin: 0;

	display: flex;
    justify-content: center;
    /* align-items: center; */
}

.icon {
	width: 1.35em;
	image-rendering: pixelated;
	vertical-align: middle;
}

.mediumicon {
	width: 2em;
}

.bigicon {
	width: 2.5em;
}

/* Background code */

.background {
	image-rendering: pixelated;
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: -1;
}

#background_small {
	background-image: url("../assets/images/background_small.png");
	background-size: 6em;
	background-position-x: 0.5vw;
}

#background_big {
	background-image: url("../assets/images/background_big.png");
	background-size: 12em;
	background-position-x: 2em;
}

#background_gradient {
	background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0, 0, 0, 0.781) 80%);
}

/* Main */

#main {
	background-color: rgba(0, 0, 0, 0.788);
	width: 50em;
	max-width: 95%;
	padding: 1em;
	font-size: 1.1em;
}

#musicflip {
	color: #2b2b2b;
	user-select: none;
	position: fixed;
	bottom: 0;
	left: 0;
}

#error_text {
	color: red;
	font-size: 1.5em;
	vertical-align: middle;
}

#warning_text {
	color: #e6bf00;
	font-size: 1.25em;
	vertical-align: middle;
}

#warning {
	display: none;
}


/* Form */

.rightbuttons {
	float: right;
}

.noupload_overlay_enable > input {
	filter: blur(0.075em);
	opacity: 0.5;
	pointer-events: none;
	user-select: none;
}

.smaller {
	width: 4em;
}

#form_file {
	/* Clever hack to hide the text (ie: "No file selected" or "game.dat) next to the button, but not hide the button itself */
	color: transparent;
	width: 6em;
}

.form_inventory_button {
	float: right;
	font-size: 1em;
}

table, th, td {
	border: 1px solid rgb(255, 255, 255);
}

.form_inventory_container {
	display: block;
	max-width: 100%;
	overflow-y: scroll;
}

th, td {
	padding: 0.5rem;
	text-transform: capitalize;
	position: relative;
}

.form_inventory_generic_enchant {
	width: 100%;
}

.item_icon {
	background-image: url("../assets/images/items.png");
	image-rendering: pixelated;

	width: 16px;
	height: 16px;
	transform: scale(2);

	display: block;
    margin-left: auto;
    margin-right: auto;
}

.item_small_icon {
	background-image: url("../assets/images/item_icons.png");
	image-rendering: pixelated;

	position: absolute;
	top: 0.3rem;
	right: 0.25rem;
	width: 8px;
	height: 8px;
	scale: 2;
}