*{
	padding: 0px;
	margin: 0px;
	box-sizing: border-box;
	font-family: sans-serif;
	color: #888;
}
body{
	background: #111;
}
.main{
	max-width: 906px;
	margin: 0 auto;
}
.recipe{
	padding: 8px;
	padding-top: 0px;
	border-radius: 8px;
	width: max-content;
	background-color: #FFFFFF10;
}
.recipe h1{
	color: #FFF;
	font-size: 16px;
	width: 100%;
	text-align: center;
	line-height: 32px;
}
.recipe-form{
	position: relative;
}
.recipe-form > .cell{
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
}
.recipe-form > .cell > div{
	background-color: #FFFFFF10;
	border-radius: 4px;
	width: 50px;
	height: 50px;
}
.recipe-form > .cell > div:hover{
	background-color: #FFFFFF20;
}
.item{
	position: relative;
	display: flex;
	width: 50px;
	height: 50px;
	justify-content: center;
	align-items: center;
}
.item .amount{
	display: block;
	width: 10px;
	text-align: center;
	position: absolute;
	right: 0px;
	bottom: 0px;
	color: #FFF;
}
.item .chance{
	display: block;
	width: 10px;
	text-align: center;
	position: absolute;
	top: 0px;
	left: 0px;
	color: #FFF;
}
.wrapper{
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.nodraw{
	background-color: transparent !important;
	background-position:center;
	background-repeat: no-repeat;
}
.recipe .cell h1{
	line-height: 56px;
}
.cell img{
	image-rendering: pixelated;
}
.inventory{
	display: flex;
	flex-wrap: wrap;
}
.inventory .cell{
	position: inherit;
}
nav{
	display: flex;
	gap: 4px;
	margin-bottom: 4px;
}
nav button{
	cursor: pointer;
	color: #999;
	padding: 0px 10px;
	height: 32px;
	border-radius: 8px;
	background-color: #FFFFFF08;
	border: unset;
}
nav button.selected{
	color: #FFF;
	background-color: #FFFFFF10;
}
p{
	display: block;
	flex-grow: 1;
	width: 100%;
}
table{
	width: 100%;
	flex-grow: 1;
}
table td{
	border-right: 1px solid #FFFFFF20;
	border-bottom: 1px solid #FFFFFF20;
}
img{
	image-rendering: pixelated;
}
.item-popup{
	position: absolute;
	width: auto;
	min-width: 250px;
	height: auto;
	top: 64px;
	left: 64px;
	z-index: 1000;
	background-color: #170817;
	border: 2px solid #4600AF;
	box-shadow: 0px 0px 0px 2px #170817;
	border-radius: 6px;
	color: #fff;
	padding: 4px;
	  padding-left: 4px;
	padding-left: 6px;
}