@font-face {
	font-family: "Minecraft";
	src: url("https://cdn.jsdelivr.net/gh/KyoriPowered/adventure-webui@main/src/commonMain/resources/web/font/1_Minecraft-Regular.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Minecraft";
	src: url("https://cdn.jsdelivr.net/gh/KyoriPowered/adventure-webui@main/src/commonMain/resources/web/font/2_Minecraft-Italic.woff") format("woff");
	font-weight: normal;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Minecraft";
	src: url("https://cdn.jsdelivr.net/gh/KyoriPowered/adventure-webui@main/src/commonMain/resources/web/font/3_Minecraft-Bold.woff") format("woff");
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Minecraft";
	src: url("https://cdn.jsdelivr.net/gh/KyoriPowered/adventure-webui@main/src/commonMain/resources/web/font/4_Minecraft-BoldItalic.woff") format("woff");
	font-weight: bold;
	font-style: italic;
	font-display: swap;
}

.invslot-item {
	position: relative;
	display: inline-block;
	background: #8B8B8B no-repeat center center / 36px 36px;
	border: 2px solid;
	border-color: #373737 #FFF #FFF #373737;
	width: 36px;
	height: 36px;
	font-size: 16px;
	line-height: 1;
	text-align: left;
	vertical-align: bottom;
	margin: 0;
	padding: 0;

	a:first-child {
		position: relative;
		display: block;
		width: 32px;
		height: 32px;
	}

	img {
		image-rendering: pixelated;
		width: 32px;
		height: 32px;
	}

	.quantity {
		position: absolute;
		bottom: -2px;
		right: 0;
		color: white;
		font-size: 18px;
		font-family: Minecraft, monospace;
		text-shadow: 2px 2px black;
		cursor: default;
	}
}

.tooltips {
	background-color: #C6C6C6;
	border: 4px solid;
	border-color: #FFF #555 #555 #FFF;
	border-radius: 4px;
	box-shadow: 0 0 0 1px #000;
	font-family: "Minecraft", monospace;
	padding: 6px;
	margin: 0;
}

.format-bold {
	font-weight: bold;
}

.format-strikethrough {
	text-decoration: line-through 3px;
}

.format-underline {
	text-decoration: underline 3px;
	text-decoration-skip-ink: none;
}

.format-italic {
	font-style: italic;
}

.crafting-table {
	> img {
		width: 100%;
		height: auto;
		image-rendering: pixelated;
	}
	padding: 16px 36px;
	display: grid;
	grid-template-columns: repeat(3, 36px) 72px 36px;
	grid-template-areas:
	"slot1 slot2 slot3 . shapeless"
	"slot4 slot5 slot6 arrow slot0"
	"slot7 slot8 slot9 . .";
}

.furnace {
	> img {
		width: 100%;
		height: auto;
		image-rendering: pixelated;
	}
	
	padding: 16px 36px;
	display: grid;
	grid-template-columns: 36px 72px 36px;
	grid-template-areas: 
	"slot1 . ."
	"fire arrow slot0"
	"slot2 exp exp";
}

.smithing {
	> img {
		width: 100%;
		height: auto;
		image-rendering: pixelated;
	}
	
	padding: 16px 36px;
	display: grid;
	grid-template-columns: repeat(3, 36px) 72px 36px;
	grid-template-areas: "slot1 slot2 slot3 arrow slot0";
}

.arrow {
	grid-area: arrow;
}

.shapeless {
	grid-area: shapeless;
	height: 32px;
	width: auto;
}

.fire {
	grid-area: fire;
	height: 32px !important;
	width: auto;
}

.exp {
	grid-area: exp;
	color: #555555;
	text-align: right;
	font-size: .7rem;
}

.slot0 {
	grid-area: slot0;
}

.slot1 {
	grid-area: slot1;
}

.slot2 {
	grid-area: slot2;
}

.slot3 {
	grid-area: slot3;
}

.slot4 {
	grid-area: slot4;
}

.slot5 {
	grid-area: slot5;
}

.slot6 {
	grid-area: slot6;
}

.slot7 {
	grid-area: slot7;
}

.slot8 {
	grid-area: slot8;
}

.slot9 {
	grid-area: slot9;
}

#minetip-tooltip {
	color: #FBFBFB;
	text-shadow: 0.175em 0.175em 0 color-mix(in srgb, currentColor 25%, #000 75%);
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(16, 0, 16, 0.9);
	padding: 0.375em;
	font-family: Minecraft, monospace;
	font-size: 1.75em;
	line-height: 1.1em;
	white-space: nowrap;
	margin: 0.125em 0.25em;
	pointer-events: none;
	z-index: 9999;
}

#minetip-tooltip::before {
	content: "";
	position: absolute;
	top: 0.125em;
	right: -0.125em;
	bottom: 0.125em;
	left: -0.125em;
	border-style: none solid;
	border-color: rgba(16, 0, 16, 0.9);
}

#minetip-tooltip::after {
	content: "";
	position: absolute;
	top: 0.125em;
	right: 0;
	bottom: 0.125em;
	left: 0;
	border: 0.125em solid #2D0A63;
	border-image: -webkit-linear-gradient(rgba(80, 0, 255, 0.3), rgba(40, 0, 127, 0.3)) 1;
	border-image: linear-gradient(rgba(80, 0, 255, 0.3), rgba(40, 0, 127, 0.3)) 1;
}

#minetip-tooltip > .minetip-description {
	display: block;
	margin-top: 0.25em;
}
