/*
This is the stylesheet for the inventory's gui
*/

.INVS_back {
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	font-family: 'Century Gothic', sans-serif;
	font-size: 1.75vh;
	color: white;
}
.INVS_back * {
	box-sizing: border-box;
}

.INVS_main {
	width: 119vh;
	max-width: 100%;
	height: 100%;

	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

/*------------------------------Inventory GUI--------*/
.INVS_main_inventory {
	top: 0;
	width: 70%;
	margin: 0.2vh;
	margin-bottom: var(--INVS_desc_heigth);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-right: 2vh;
}
.INVS_consumeDRoot_item_div:has(img) {
	background-image: none !important;
}
.INVS_main_inventory_background {
	width: calc(100% + 10vh);
	height: calc(100% + 27vh);
	margin: 0.2vh;
	margin-bottom: var(--INVS_desc_heigth);
	position: absolute;
	background-image: url("../../ressources/maingui/ui/inventory.png");
	background-size: 100% 100%;
	margin-top: -6vh;
	top: 0;
	z-index: 2;
}
.INVS_main_inventory_out {
	height: 60vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 2.2em 2.2em 0 0;
	padding-bottom: 0.2em;
	z-index: 3;
}
.INVS_title_cont {
	position: relative;
	margin-top: 0;
	width: 100%;
	min-height: 4em;
	display: grid;
	grid-template-areas: 'title exit exit' 'title sort sort';
	background-color: rgba(0, 0, 0, 0.4);
	border-radius: 2.2em 2.2em 0.5em 0.5em;
	z-index: 1;
}
.INVS_title {
	grid-area: title;
	width: 100%;
	height: 100%;
	color: var(--INVS_Font_Color);
	font-size: 2em;
	font-weight: bold;
	display: flex;
	align-items: center;
	padding-left: 2.6em;
}
.INVS_sort_cont {
	grid-area: sort;
	height: 100%;
	align-self: flex-end;
	color: var(--INVS_Font_Color);
	cursor: pointer;
	display: flex;
	justify-content: right;
	padding-right: 1em;
	align-items: center;
	white-space: nowrap
}
.INVS_sort {
	background-color: rgba(255, 255, 255, 0.10);
	padding: 0.1em 0.2em;
	border-radius: 0.5em;
	transition: all 0.1s ease-in-out;
	min-width: 4em;
    text-align: center;
}
.INVS_sort:hover {
	background-color: rgba(0, 0, 0, 0);
	cursor: pointer;
	transform: scale(1.05);
}
.INVS_inventory_item_cont {
	margin-top: 0;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	flex: 1;
	margin-top: 0.3vh;
}


[inv_type] item, .INVS_equip_item_div {
    outline: 2px solid rgba(76, 175, 80, 0);
    outline-offset: -2px;
    box-shadow: 0 0 0px rgba(76, 175, 80, 0);
    transition: all 0.3s ease;
    opacity: 1;
}

[inv_type] item > *, .INVS_equip_item_div > *{
	pointer-events: none;
}

/* Active valid slot styling */
[inv_type] item.valid-slot, .INVS_equip_item_div.valid-slot {
    outline: 2px solid rgba(76, 175, 80, 1);
    outline-offset: -2px;
    box-shadow: 0 0 5px rgba(76, 175, 80, 1);
    position: relative;
    z-index: 1;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.8);
        outline-color: rgba(76, 175, 80, 0.8);
    }
    50% {
        box-shadow: 0 0 15px rgba(76, 175, 80, 1);
        outline-color: rgba(76, 175, 80, 1);
    }
    100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.8);
        outline-color: rgba(76, 175, 80, 0.8);
    }
}


.INVS_inventory_item_div {
	position: relative;
	width: 24%;
	aspect-ratio: 4/5;
	margin-right: 1%;
	margin-top: 0.5%;
	margin-bottom: 0.5%;
	margin-left: 0;
	padding: 0.2em;
	border-radius: 0.8vh;
	border: solid 0.15em rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.4);
	cursor: pointer;
}
.INVS_item_img {
	width: 100%;
	aspect-ratio: 1/1;
	/*object-fit: cover;*/ /*Very cool, Chrome rasterize wtf why*/
	border-radius: 15%;
}
.INVS_item_text {
	width: 100%;
	display: inline-block;
	text-align: center;
	margin: auto 0;
	color: var(--INVS_Font_Color);
	font-size: 1em;
	font-weight: bold;
	text-align: center;
	word-wrap: break-word;
}
.INVS_inventory_item_div INVS-qty {
	border-radius: 0 0.8vh 0 0;
}
.INVS_item_break {
	margin: 0.2em;
	padding: 0.2em;
	padding-left: 1em;
	border-radius: 0.3em;
	display: flex;
	flex-direction: column;
	align-items: start;

	background-color: rgba(0, 0, 0, 0.3);
	flex-basis: 100%;
	color: white;
	font-size: 1.3em;
	font-weight: bold;
}
.INVS_main_inventory_desc {
	position: absolute;
	bottom: 0;
	transform: translateY(100%);
	background-color: rgba(0, 0, 0, 0.4);
	min-height: var(--INVS_desc_heigth);
	width: 100%;
	padding: 0.7em;
	border-radius: 0 0 2.2em 2.2em;
	font-weight: 500;
	font-size: 1em;
	color: var(--INVS_Font_Color);
	z-index: 3;
}
.INVS_main_inventory_desc hr {
	width: 100%;
	height: 0.1em;
	margin: 0.2em 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
}
.INVS_main_inventory_desc > .topInfo {
	height: 1.3em;
	padding-bottom: 0.5em;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.INVS_main_inventory_desc rarity {
	text-shadow: 0 0 0.2em rgba(0, 0, 0, 0.8);
	/* background-color: rgba(0, 0, 0, 0.5);
	border-radius: 0.2em;
	padding: 0.1em 0.5em; */
	font-size: 1em;
	font-weight: bold;
}

.INVS_main_inventory_desc .imgCont {
	/* height: 1em; */
	height: 100%;
	aspect-ratio: 1/1;
	padding: 0 2em;
	position: relative;
}

.INVS_main_inventory_desc .imgCont > img {
	height: 300%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.INVS_main_inventory_desc .bonusInfo qty {
	background-color: rgba(0, 0, 0, 0.5);
	border: solid 0.1em rgba(0, 0, 0, 0.8);
	padding: 0.075em 0.5em;
	padding-top: 0.05em;
	border-radius: 0.5em;
	margin: 0 0.15em;
	font-weight: bold;
}
.INVS_main_inventory_desc .bonusInfo qty.get {
	background-color: rgba(150, 150, 0, 0.5);
	border-color: rgba(150, 150, 0, 0.8);
}
.INVS_main_inventory_desc .bonusInfo qty.set {
	background-color: rgba(0, 120, 0, 0.5);
	border-color: rgba(0, 120, 0, 0.8);
}

.INVS_exit_button_cont {
	position: absolute;
	z-index: 5;
	width: 170vh;
	max-width: 100%;
	top: 0;
	margin-left: 26vh;

	pointer-events: none;

	transition: margin-left 0.3s ease;
}
#ui-bar.stowed ~ #story .INVS_exit_button_cont {
	margin-left: 0;
}
.INVS_exit_button {
	height: 10vh;
	width: 10vh;
	margin: 4vh;
	font-size: 2.5vh;
	font-weight: bold;
	color: var(--INVS_Font_Color);
	background-color: #834730;
	border-radius: 0.7em;
	border: 0.7vh solid #daa43e;
	
	display: flex;
	justify-content: center;
	align-items: center;

	pointer-events: all;
	
	cursor: pointer;
	transition: opacity 0.1s ease-out;
}
.INVS_exit_button:hover {
	opacity: 0.8;
}

/*------------------------------Equipment GUI--------*/
.INVS_main_equipment {
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 1em;
	top: 0;
	width: 50%;
	margin: 0.2vh;

	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-left: 5vh;
}
.INVS_main_equipment_background {
	width: calc(100% + 8vh);
	height: calc(100% + 8vh);
	background-image: url("../../ressources/maingui/ui/equipment.png");
	background-size: 100% 100%;
	position: absolute;
	z-index: 0;
}
.INVS_equipment_item_cont {
	margin-top: 0;
	width: 100%;

	border-radius: 0 0 2.2em 2.2em;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex: 1;
	overflow-x: hidden;
	flex-wrap: wrap;
	z-index: 1;
}
.INVS_equipment_item_cont .INVS_equip_item_div:first-child {
	margin-right: 25%;
	margin-left: 25%;
	background-image: url("../../ressources/maingui/ui/head.png");
	background-size: 100% 100%;
	padding: 1vh;
	background-origin: content-box, padding-box;
    background-repeat: no-repeat;
}
.INVS_equipment_item_cont .INVS_equip_item_div:nth-child(2) {
    background-image: url("../../ressources/maingui/ui/left-arm.png");
	background-size: 100% 100%;
	padding: 1vh;
	background-origin: content-box, padding-box;
    background-repeat: no-repeat;
}
.INVS_equipment_item_cont .INVS_equip_item_div:nth-child(3) {
    background-image: url("../../ressources/maingui/ui/torso.png");
	background-size: 100% 100%;
	padding: 1vh;
	background-origin: content-box, padding-box;
    background-repeat: no-repeat;
}
.INVS_equipment_item_cont .INVS_equip_item_div:nth-child(4) {
    background-image: url("../../ressources/maingui/ui/right-arm.png");
	background-size: 100% 100%;
	padding: 1vh;
	background-origin: content-box, padding-box;
    background-repeat: no-repeat;
}
.INVS_equipment_item_cont .INVS_equip_item_div:nth-child(5) {
    background-image: url("../../ressources/maingui/ui/legs.png");
	background-size: 100% 100%;
	padding: 1vh;
	background-origin: content-box, padding-box;
    background-repeat: no-repeat;
}
.INVS_equip_item_div {
	position: relative;
	width: 30%;
	aspect-ratio: 1/1;
	margin: 0.5%;
	border-radius: 1em;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.INVS_equip_item_div:has(img) {
	background-image: none !important;
}
.INVS_equip_bonus_cont {
	width: 95%;
	height: 23vh;
	margin-bottom: 0.8vh;
	color: var(--INVS_Font_Color);
	background-color: rgba(0, 0, 0, 0);
	font-size: 2em;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	z-index: 1;
}
.INVS_equip_bonus_cont > boost {
	width: 98%;
	height: 6vh;
	padding: 0.5vh;
	margin: 0.5vh 0;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 0.3em;
}
.INVS_equip_bonus_cont > boost img {
	height: 100%;
	border-radius: 15%;
	aspect-ratio: 1/1;
	margin-right: 1vh;
	object-fit: contain;
}
.INVS_equip_bonus_cont > boost > div {
	text-align: left;
	font-size: 0.5em;
	line-height: 1.4;
}
.INVS_equip_bonus_cont > boost qty {
	background-color: rgba(0, 0, 0, 0.5);
	border: solid 0.1em rgba(0, 0, 0, 0.8);
	padding: 0.075em 0.5em;
	padding-top: 0.05em;
	border-radius: 0.5em;
	margin: 0 0.15em;
	font-weight: bold;
}
.INVS_equip_bonus_cont > boost qty.get {
	background-color: rgba(150, 150, 0, 0.5);
	border-color: rgba(150, 150, 0, 0.8);
}
.INVS_equip_bonus_cont > boost qty.set {
	background-color: rgba(0, 120, 0, 0.5);
	border-color: rgba(0, 120, 0, 0.8);
}

/*------------------------------Bank GUI--------*/
/*
almost the same as inventory
*/
.INVS_main_bank {
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 1em;
	top: 0;
	width: 50%;
	height: 75%;
	margin: 0.2vh;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
	justify-content: center;
	align-items: center;
	margin-left: 5.4vh;
}
.INVS_main_bank_background {
	width: calc(100% + 9vh);
	height: calc(100% + 9vh);
	background-image: url("../../ressources/maingui/ui/bank.png");
	background-size: 100% 100%;
	position: absolute;
	z-index: 0;
}
.INVS_bank_item_cont {
	margin-top: 0;
	width: 100%;
	height: 70vh;
	border-radius: 0 0 1em 1em;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: flex-start;
	border-radius: 1em 1em 0 0;
	z-index: 1;

}
.INVS_bank_item_cont .INVS_item_text {
	font-size: 0.9em;
	z-index: 1;
}

/*------------------------------Food GUI--------*/
.INVS_main_food {
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 1em;
	top: 0;
	height: 75%;
	width: 50%;
	margin: 0.2vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-left: 5.4vh;
}

.INVS_main_food_background {
		width: calc(100% + 9vh);
		height: calc(100% + 9vh);
		background-image: url("../../ressources/maingui/ui/fridge.png");
		background-size: 100% 100%;
		position: absolute;
		z-index: 0;
}
.INVS_food_item_cont {
	margin-top: 0;
	width: 100%;
	z-index: 1;
	border-radius: 0 0 1em 1em;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex: 1;
	overflow-x: hidden;
	flex-wrap: wrap;
}
.INVS_food_item_div {
	position: relative;
	width: 30%;
	aspect-ratio: 1/1;
	margin: 0.5%;
	border-radius: 1em;
	background-color: rgba(0, 0, 0, 0.4);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 1;
}
.INVS_food_item_div INVS-qty {
	border-radius: 0 0.8vh 0 0;
}
.INVS_food_info_cont {
	width: 95%;
	margin-bottom: 1.5vh;
	color: black;
	background-color: rgba(0, 0, 0, 0);
	font-size: 1.5em;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	z-index: 1;
	font-weight: bold;
	text-transform: uppercase;
}
.INVS_food_info_cont div {
	width: 100%;
	margin: 0.5vh 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}
.INVS_food_info_cont img {
	height: 5vh;
	margin: 0 1vh;
	aspect-ratio: 1/1;
	object-fit: contain;
}

/*------------------------------Furnace GUI--------*/
.INVS_main_furnace {
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 1em;
	top: 0;
	width: 50%;
	margin: 0.2vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-left: 5.4vh;
}
.INVS_main_furnace_background {
	width: calc(100% + 9vh);
	height: calc(100% + 9vh);
	background-image: url("../../ressources/maingui/ui/forge.png");
	background-size: 100% 100%;
	position: absolute;
	z-index: 0;
}
.INVS_furnace_item_cont {
	margin-top: 1vh;
	width: 100%;
	/* min-height: 15vh; */

	border-radius: 0 0 1em 1em;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex: 1;
	overflow-x: hidden;
	flex-wrap: wrap;
	z-index: 1;
}
.INVS_furnace_button {
	width: 95%;
	margin: 1vh;
	text-align: center;
	padding: 0.3em 0.5em;
	background-color: rgba(0, 0, 0, 0.5);
	color: var(--INVS_Font_Color);
	font-size: 1.7em;
	font-weight: bold;
	border-radius: 1em;
	cursor: pointer;
	z-index: 1;
	transition: background-color 0.3s, transform 0.1s;
}
.INVS_furnace_button:hover {
	background-color: rgba(0, 0, 0, 0.8);
	transform: scale(1.05);
}
.INVS_furnace_item_div {
	position: relative;
	width: 30%;
	aspect-ratio: 1/1;
	margin: 0.5%;
	border-radius: 1em;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 1;
}
.INVS_furnace_itemGain_cont {
	width: 95%;
	height: 22vh;
	margin-bottom: 0.8vh;
	color: var(--INVS_Font_Color);
	background-color: rgba(0, 0, 0, 0);
	font-size: 2em;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	z-index: 1;
}
.INVS_furnace_itemGain_cont > item {
	width: 98%;
	height: 6vh;
	padding: 0.5vh;
	margin: 0.5vh 0;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 0.3em;
}
.INVS_furnace_itemGain_cont > item img {
	height: 100%;
	border-radius: 15%;
	aspect-ratio: 1/1;
	margin-right: 1vh;
	object-fit: contain;
}
.INVS_furnace_itemGain_cont > item > div {
	text-align: left;
	font-size: 0.5em;
	line-height: 1.4;
}
/* .INVS_furnace_itemGain_cont > item name {
	font-size: 1.2em;
	font-weight: bold;
} */
.INVS_furnace_itemGain_cont > item qty {
	background-color: rgba(0, 0, 0, 0.5);
	border: solid 0.1em rgba(0, 0, 0, 0.8);
	padding: 0.075em 0.5em;
	padding-top: 0.05em;
	border-radius: 0.5em;
	margin: 0 0.15em;
	font-weight: bold;
	z-index: 1;
}

/*------------------------------Crafting GUI--------*/
.INVS_main_crafting {
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 1em;
	top: 0;
	width: 50%;
	margin: 0.2vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-left: 4vh;
	margin-right: 8vh;
}
.INVS_main_crafting_background {
	background-image: url("../../ressources/maingui/ui/crafting.png");
	background-size: 100% 100%;
	position: absolute;
	z-index: 0;
	width: calc(100% + 9vh);
	height: calc(100% + 9vh);
}




.INVS_crafting_item_cont {
	margin-top: 0.5vh;
	width: 27vh;
	max-width: 100%;
	/* min-height: 15vh; */

	border-radius: 0 0 1em 1em;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex: 1;
	overflow-x: hidden;
	flex-wrap: wrap;
	z-index: 1;
}
/*.INVS_crafting_item_cont > item*/
item.INVS_crafting_item_div {
	position: relative;
	width: 45%;
	aspect-ratio: 1 / 1;
	margin: 2%;
	border-radius: 1em;
	background-color: rgba(0, 0, 0, 0.4);
	
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
item.INVS_crafting_item_div[disable] > img {
	filter: grayscale(100%);
}
item.INVS_craftingResult_item_div {
	position: relative;
    /* width: 35%; */
	height: 100%;
    aspect-ratio: 1 / 1;
    margin: 2%;
    border-radius: 1em;
    background-color: rgba(0, 0, 0, 0.4);
	
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.INVS_craftman_requirement {
	position: relative;
	width: 95%;
	padding-right: 3vh;
	font-weight: bold;
	margin-top: 0.5vh;

	display: flex;
	justify-content: center;
	align-items: center;
}
.INVS_craftman_requirement > img {
	height: 3vh;
	border-radius: 15%;
	aspect-ratio: 1/1;
	object-fit: contain;
}
.INVS_craftman_requirement > name {
	width: min-content;
	margin: 0 1vh;
	text-align: center;
}
.INVS_craftman_requirement > craft {
	height: 4vh;
	background-color: #FB8741;
	display: flex;
	align-items: center;
	border-radius: 2vh;
}
.INVS_craftman_requirement > craft::before {
	content: ':';
    position: absolute;
    transform: translateX(-0.5em);
}
.INVS_craftman_requirement > craft > img {
	height: 100%;
	border-radius: 15%;
	aspect-ratio: 1/1;
	object-fit: contain;
}
.INVS_craftman_requirement > craft > qty {
	margin-left: 0.3em;
	margin-right: 0.7em;
	font-size: 1.3em;
	font-weight: bold;
	color: black;
}
.INVS_craftman_requirement > .INVS_craftman_requirementInfo {
	position: absolute;
	right: 0;
	border: #FB8741 solid 0.1em;
	color: #FB8741;
	height: 3vh;
	width: 3vh;
	border-radius: 2vh;
	display: flex;
	justify-content: center;
	align-items: center;

	cursor: pointer;
}
.INVS_craftman_requirement > .INVS_craftman_requirementInfoDiv {
	position: absolute;
	z-index: 2;
	pointer-events: none;
	bottom: -1vh;
	right: 1vh;
	transform: translateY(100%);
	max-width: 25vh;
	padding: 0.5em;
	background-color: rgba(0, 0, 0, 0.8);
	border-radius: 0.5em;

	opacity: 0;
	transition: opacity 0.2s;
}
.INVS_craftman_requirementInfo:hover ~ .INVS_craftman_requirementInfoDiv {
	opacity: 1;
}
.INVS_crafting_arrowDown {
	width: 100%;
	height: 6vh;
	display: flex;
    justify-content: center;
}
.INVS_crafting_arrowDown img {
	height: 100%;
	transform: rotate(90deg);
}
.INVS_crafting_cookCont {
	height: 13vh;
	display: flex;
    align-items: center;
    justify-content: space-evenly;
	margin-bottom: 1vh;
	z-index: 1;
}
.INVS_crafting_cookCont > .INVS_crafting_button {
	padding: 0.5em 1em;
	border: black solid 0.2em;
	border-radius: 0.5em;
	font-size: 1.5em;
	font-weight: bold;

	background-color: rgba(0, 0, 0, 0.5);
	color: var(--INVS_Font_Color);

	cursor: pointer;
	transition: transform 0.2s;
}
.INVS_crafting_cookCont > .INVS_crafting_button:not([disable]):hover {
	transform: scale(1.1);
}
.INVS_crafting_cookCont > .INVS_crafting_button[disable] {
	background-color: rgba(0, 0, 0, 0.5);
	color: rgba(255, 255, 255, 0.5);
	cursor: not-allowed;
}

/*------------------------------CraftDic GUI--------*/
.INVS_main_craftDic {
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 1em;
	top: 0;
	width: 60%;
	margin: 0.2vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 1;
}

.INVS_search_cont {
	position: absolute;
    display: flex;
	flex-direction: column;
    gap: 2px;
	right: 1vh;
	bottom: 0.5vh;
	color: white;
	font-size: 1.4vh;
}
.INVS_search_contLeft {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 2px;
	left: 1vh;
	bottom: 0.5vh;
	color: white;
	font-size: 1.4vh;
}
.INVS_search_input {
    flex: 1;
    padding: 0.4vh;
    border: 1px solid #ccc;
    border-radius: 4px;
	width: 12vh;
	background-color: rgba(0, 0, 0, 0.4);
}
.INVS_filter_select {
    padding: 0.4vh;
    border: 1px solid #ccc;
    border-radius: 4px;
	background-color: rgba(0, 0, 0, 0.4);
	width: 12vh;
}


.INVS_main_craftDic_background {
	width: calc(100% + 11vh);
	height: calc(100% + 20vh);
	background-image: url("../../ressources/maingui/ui/scroll.png");
	background-size: 100% 100%;
	position: absolute;
	z-index: -1;
}
.INVS_craftDic_item_cont {
    width: 100%;
	height: 60vh;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    margin-top: 0.3vh;
}
.INVS_craftDic_item_div {
	width: 100%;
	height: 10vh;
	padding: 0.5vh;
	border-radius: 0.5vh;

	display: flex;
    justify-content: space-between;
    align-items: center;

	cursor: pointer;
	transition: box-shadow 0.3s, background-color 0.3s;
}
.INVS_craftDic_item_div:not([disable]) {
	box-shadow: inset 0 0 0.5em 0.2em rgba(0, 255, 0, 0.4);
}
.INVS_craftDic_item_div[disable] {
	box-shadow: inset 0 0 0.5em 0.2em rgba(255, 0, 0, 0.4);
	cursor: not-allowed;
}
.INVS_craftDic_item_div:not([disable]):hover {
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 0 0.5em 0.3em rgba(0, 255, 18, 0.5);
}
.INVS_craftDic_item_div > item {
	pointer-events: none;
	height: 95%;
	border-radius: 15%;
	aspect-ratio: 1/1;
	object-fit: contain;
	border: solid 0.1em black;
}
.INVS_craftDic_item_div:not([disable]) > item {
	filter: grayscale(20%);
}
.INVS_craftDic_item_divMiddle {
	pointer-events: none;
	width: 100%; /* fills the rest */
	height: 100%;
	display: flex;
    flex-direction: column;
	align-items: flex-start;
}
.INVS_craftDic_item_divMiddle > name {
	width: 100%; /* fills the rest */
	height: 100%; /* fills the rest */
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}
.INVS_craftDic_item_divMiddle > craft {
	height: 3vh;
	background-color: #FB8741;
	display: flex;
	align-items: center;
	border-radius: 1em;
}
.INVS_craftDic_item_divMiddle > craft[disable] {
	filter: grayscale(100%);
}
.INVS_craftDic_item_divMiddle > craft > img {
	height: 100%;
	border-radius: 15%;
	aspect-ratio: 1/1;
	object-fit: contain;
}
.INVS_craftDic_item_divMiddle > craft > qty {
	margin-left: 0.3em;
	margin-right: 0.7em;
	font-weight: bold;
	color: black;
}

.INVS_craftDic_item_divQuad {
	height: 100%;
	margin-left: 0.2vh;
	aspect-ratio: 1/1;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: space-between;
}
.INVS_craftDic_item_divQuad > item {
	position: relative;
	height: 48%;
    width: 48%;
	overflow: hidden;
    border-radius: 15%;
    background-color: rgba(0, 0, 0, 0.4);
}
.INVS_craftDic_item_divQuad > item:not([disable]) {
	box-shadow: inset 0 0 0.5em 0.2em rgba(0, 255, 0, 0.4);
}
.INVS_craftDic_item_divQuad > item[disable] {
	/* filter: grayscale(100%); */
	box-shadow: inset 0 0 0.5em 0.2em rgba(255, 0, 0, 0.4);
}
.INVS_craftDic_item_divQuad > item img {
	pointer-events: none;
	height: 100%;
	border-radius: 15%;
	aspect-ratio: 1/1;
	object-fit: contain;
}
.INVS_craftDic_item_divQuad > item[disable] > img {
	filter: grayscale(100%);
}
.INVS_craftDic_item_divQuad > item qty {
	pointer-events: none;
	position: absolute;

	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	
	display: flex;
	justify-content: center;
	align-items: center;
	
	opacity: 0;
	transition: opacity 0.3s;
}
.INVS_craftDic_item_div:hover .INVS_craftDic_item_divQuad > item qty {
	opacity: 1;
}

/*------------------------------Consume D-Root GUI--------*/
.INVS_main_consumeDRoot {
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 1em;
	top: 0;
	width: 25%;
	margin: 0.2vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-right: 4vh;
}
.INVS_consumeDRoot_background {
	position: absolute;
	width: calc(100% + 8vh);
	height: calc(100% + 8vh);
	z-index: 0;
	background-size: 100% 100%;
	background-image: url("../../ressources/maingui/ui/consume.png");
}
.INVS_consumeDRoot_item_cont {
	margin-top: 0;
	width: 100%;

	margin-top: 1vh;
	border-radius: 0 0 1em 1em;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex: 1;
	flex-wrap: wrap;
	z-index: 1;
}
.INVS_consumeDRoot_item_div {
	position: relative;
	width: 60%;
	aspect-ratio: 1/1;
	margin: 0.5%;
	border-radius: 1em;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-size: 100% 100%;
	padding: 1vh;
	background-image: url("../../ressources/maingui/ui/droot.png");
	background-origin: content-box, padding-box;
	background-repeat: no-repeat;
}
.INVS_consumeDRoot_button {
	max-width: 100%;
	margin: 1vh;
	text-align: center;
	padding: 0.1em 0.5em;
	background-color: rgba(0, 0, 0, 0.5);
	color: var(--INVS_Font_Color);
	font-size: 1.5em;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	border-radius: 1em;
	z-index: 1;
	transition: background-color 0.3s, transform 0.1s;
}
.INVS_consumeDRoot_button:hover {
	background-color: rgba(0, 0, 0, 0.8);
	transform: scale(1.05);
}

/*------------------------------Mouse GUI--------*/
.INVS_mouse_item_cont {
	position: absolute;
	pointer-events: none;
	top: 0;
	left: 0;
	height: 10%;
	aspect-ratio: 1/1;
	z-index: 5;
}
.INVS_mouse_item_cont img {
	width: 100%;
	height: 100%;
	border-radius: 1.5vh;
}
.INVS_mouse_item_cont INVS-qty {
	border-radius: 0 1.5vh 0 0;

}

/*------------------------------MIXED--------*/
.INVS__separation {
	width: 95%;
	height: 0.6vh;
	border-radius: 0.2em;
	background-color: rgba(0, 0, 0, 0.4);
	margin: 0.5em 0;
	z-index: 1;
}

/*------------------------------OTHER--------*/
INVS-qty {
	position: absolute;
	top: 0;
	right: 0;
	background-color: rgba(0, 0, 0, 0.8);
	border: solid black;
	border-width: 0.2em 0.2em 0 0;
	color: var(--INVS_Font_Color);
	padding: 0.1em 0.4em;
	font-size: 1.2em;
}
INVS-tier {
	font-size: 0.8em;
	height: 4em;
	position: absolute;
	top: -0.7em;
	left: -0.7em;
	display: flex;
	justify-content: center;
	align-items: center;
	/* min-width: 2em;
	max-width: 2.5em; */
	padding: 0 0.1em;
	/* aspect-ratio: 1; */
	font-family: 'Verdana';
	/* background-color: rgba(60, 60, 60, 0.85); */
	color: var(--INVS_Font_Color);
	/* border: solid black; */
	border-width: 0.15em;
}
INVS-tier img {
	height: 100%;
	filter: drop-shadow(0 0 0.7em rgba(0, 0, 0, 1));
}
INVS-equip {
	position: absolute;
	bottom: 0.3em;
    right: 0.1em;
    top: 0.3em;
	gap: 0.1em;
	display: flex;
	justify-content: center;
	flex-direction: column-reverse;
}
INVS-equip blob {
	height: 1em;
    aspect-ratio: 1;
	background-color: rgba(0, 85, 255, 0.3);
	border-radius: 50%;
	border: solid 1px rgb(0, 40, 121);
}
INVS-equip blob[enable] {
	background-color: rgb(0, 85, 255);
}
.INVS_scroll {
	overflow-Y: scroll;
	overflow-x: hidden;
	scrollbar-width: thin; /*mozilla*/
	scrollbar-color: rgba(255, 255, 255, 0.145) rgba(0, 0, 0, 0.4); /*mozilla*/
}
.INVS_scroll::-webkit-scrollbar {
	width: 1vh;
}
.INVS_scroll::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.4);
	border-radius: 0.5vh;
}
.INVS_scroll::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.145);
}