@import"https://fonts.googleapis.com/css?family=Poppins:200,400,500,600,700";
@import"https://fonts.googleapis.com/css2?family=Open+Sans&display=swap";
body{
    overflow:hidden;
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale
}
code{
    font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace
}

body *,:after,:before{
  font-family:var(--font-family),sans-serif;
}

:root{
  --black: rgba(0, 0, 0, 1);
  --black-40: rgba(0, 0, 0, .4);
  --black-60: rgba(0, 0, 0, .6);
  --black2-10: rgba(2, 2, 2, .1);
  --black2-20: rgba(2, 2, 2, .2);
  --black2-30: rgba(2, 2, 2, .3);
  --black2-40: rgba(2, 2, 2, .4);
  --black2-50: rgba(2, 2, 2, .5);
  --black2-60: rgba(2, 2, 2, .6);
  --black2-70: rgba(2, 2, 2, .7);
  --black2-80: rgba(2, 2, 2, .8);
  --black2-90: rgba(2, 2, 2, .9);
  --black14-85: rgba(14, 14, 14, .85);
  --noir-85: rgba(20, 20, 20, .851);
  --grey: rgb(127, 127, 127);
  --global-main-color-dark-50: rgba(32, 4, 51, .5);
  --global-main-color: rgba(83, 18, 127, 1);
  --global-main-color-10: rgba(83, 18, 127, .1);
  --global-main-color-20: rgba(83, 18, 127, .2);
  --global-main-color-30: rgba(83, 18, 127, .3);
  --global-main-color-40: rgba(83, 18, 127, .4);
  --global-main-color-50: rgba(83, 18, 127, .5);
  --global-main-color-60: rgba(83, 18, 127, .6);
  --global-main-color-70: rgba(83, 18, 127, .7);
  --global-main-color-80: rgba(83, 18, 127, .8);
  --global-main-color-90: rgba(83, 18, 127, .9);
  --orange: #c96e06;
  --light-orange: #b27935;
  --green: #358e75;
  --green2: #2bad6e;
  --green-40: rgba(43, 173, 110, .4);
  --red: #c33131;
  --red-40: rgba(195, 49, 49, .4);
  --blue: #3974c8;
  --blue-40: #3975c83f;
  --dark-blue: rgba(61, 112, 184, .6);
  --dark-blue2: rgba(12, 56, 119, .6);
  --white: rgba(255, 255, 255, 1);
  --white-90: rgba(255, 255, 255, .9);
  --white-80: rgba(255, 255, 255, .8);
  --white-70: rgba(255, 255, 255, .7);
  --white-50: rgba(255, 255, 255, .5);
  --white-30: rgba(255, 255, 255, .3);
  --degrade-violet: linear-gradient(360deg, rgba(83, 18, 127, .15) 0%, rgba(2, 2, 2, 0) 100%, rgba(2, 2, 2, 0) 100%);
  --degrade-violet2: linear-gradient( 360deg, rgba(127, 18, 18, .15) 0%, rgba(2, 2, 2, 0) 100%, rgba(2, 2, 2, 0) 100% );
  --degrade-violet-housebuilding: linear-gradient( 90deg, rgba(83, 18, 127, .36) 0%, rgba(2, 2, 2, .36) 0%, rgba(83, 18, 127, .31) 100% );
  --degrade-rouge: linear-gradient(to right, rgba(2, 2, 2, .4), rgba(171, 27, 27, .31));
  --degrade-bleu: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(36, 48, 62, .31) 100%);
  --degrade-orange: linear-gradient(to right, rgba(2, 2, 2, .36) 0%, rgba(171, 96, 27, .31) 100%);
  --degrade-vert: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(26, 102, 65, 031) 100%);
  --degrade-brown: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(80, 49, 21, .31) 100%);
  --degrade-cyan: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(0, 255, 255, .31) 100%);
  --degrade-gray: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(128, 128, 128, .31) 100%);
  --degrade-pink: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(255, 192, 203, .31) 100%);
  --degrade-purple: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(128, 0, 128, .31) 100%);
  --degrade-violet: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(238, 130, 238, .31) 100%);
  --degrade-white: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(255, 255, 255, .31) 100%);
  --degrade-yellow: linear-gradient(to right, rgba(2, 2, 2, .4) 0%, rgba(255, 193, 7, .31) 100%);
  --font-family: "Poppins";
  --font-family-bold: "Poppins-Bold";
  --font-family-medium: "Poppins-Medium";
  --font-family-regular: "Poppins-Regular"
}

body {
	font-family: Arial, sans-serif;
	background: none;
	user-select: none;
	background-repeat: no-repeat;
	background-size: cover;
}

.crafting-body{
	display: none;
}

.card {
	border: none;
	border-radius: 20px;
	background-color: transparent;
}

#craft-table .progress-container,
#craft-table .progress-bar {
    display: none;
}

.image {
	height: 120px;
	position: absolute;
	top: 22.5%;
}

.right-card {
    width: 47vh; 
    height: 67vh; 
    margin-left: -17.5vh; 
    padding: 25px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    position: relative;
    overflow: hidden;
}

.image_itemselected {
	height: 80px;
}

.image_components {
	height: 60px;
}

.table-responsive {
	height: 564px;
	overflow-x: hidden;
	padding: 3px 10px 5px 10px;
}

.components-responsive {
	max-height: 300px;
	overflow-x: hidden;
}

.table-responsive, .components-responsive, #craft-table {
    direction: rtl;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(80, 0, 133, 1);
    border-radius: 10px;
    transition: .25s;
}

::-webkit-scrollbar-track {
    background-color: rgba(2, 2, 2, .4);
    cursor: pointer;
    transition: .25s;
}

.close-craft-btn {
    position: absolute;
    left: -9.5vh; 
    top: 1.1vh;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.close-craft-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.close-craft-btn img {
    width: 16px;
    height: 16px;
    color: white;
}

.title {
    position: absolute;
    left: 40%; 
    top: 12.8%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    display: none;
    min-width: 200px; 
    text-align: left;
}

.itemslist {
	position: absolute;
	left: 50%;
	top: 52.5%;
	transform: translate(-50%, -50%);
	display: none;
}

.itemslist-card-body {
    display: flex;
    flex-direction: column;
    padding: 15px;
    color: white;
    background-color: rgb(0, 0, 0); 
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0); 
    justify-content: flex-start;
}

.itemrequirements-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background-color: rgba(255, 0, 0, 0); 
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0); 
    color: rgba(211, 211, 211, 1); 
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.itemrequirements-card-body:hover {
    background-color: rgba(0, 0, 0, 0); 
}

.table-responsive {
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0);
}

.ingredients-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 10px; 
    margin-top: 20px;
    justify-items: start;
}

.itemrequirements {
	position: absolute;
	left: 82%;
	transform: translate(-50%, -50%);
	display: none;
	border-radius: 20px;
    top: 50.0%;
}

#craft-button-div {
    width: 50%;
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: -3.2vh; 
    left: -4.85vh;
}
#craft-button {
    position: relative; 
    width: 50%; 
    max-width: 300px; 
}

#craft-button:disabled {
    background-color: grey;
}


#craft-table {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    height: 790px;
    padding: 3px 10px 5px 10px;
    direction: rtl;
    transform: translateX(7vh); 
}

#craft-table > div {
    direction: ltr;
}

.item-card {
    width: 55%;
    height: 110px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #020202b3 0%, #02020200 -15%);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.item-card.crafting {
    opacity: 0.5; 
    cursor: not-allowed; 
}

.item-card.crafting:hover {
    background: none; 
    box-shadow: none; 
    transform: none; 
    border: none; 
}

.item-card.crafting.selected {
    border-width: 0.3px;
    border-style: solid;
    border-image: linear-gradient(to right, rgba(233, 233, 233, 0.815), rgba(255, 255, 255, 0)) 1;
    border-radius: 2px;
}

.item-card.selected.crafting {
    border-width: 0.3px;
    border-style: solid;
    border-image: linear-gradient(to right, rgba(233, 233, 233, 0.815), rgba(255, 255, 255, 0)) 1;
    border-radius: 2px;
}

.item-card.crafting:not(.selected):hover {
    border-width: 0; 
    box-shadow: none; 
    transform: none; 
}

.item-card.selected {
    border-width: 0.3px;
    border-style: solid;
    border-image: linear-gradient(to right, var(--global-main-color), rgba(255, 255, 255, 0)) 1;
    border-radius: 2px;
}

.item-card:hover {
    border-width: 0.3px;
    border-style: solid;
    border-image: linear-gradient(to right, var(--global-main-color), rgba(255, 255, 255, 0)) 1;
    border-radius: 2px;
}

.item-card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    position: relative;
    justify-content: flex-start;
    
}

.item-card-body .item-timer,
.item-card-body .item-success-rate {
    position: absolute;
    left: 5px;
    color: rgb(211, 211, 211);
    font-size: 10.5px;
    background-color: rgb(80, 0, 133);
    padding: 2px 2vh; 
    border-radius: 2px;
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 2px;
    width: 45px; 
    height: 23px;
    justify-content: center;
    white-space: nowrap; 
}

.item-card-body .item-timer {
    top: 5px;
}

.item-card-body .item-success-rate {
    top: 32px;
}

.item-card-body img {
    height: 60px;
    margin-left: 6vh;
}
.item-card-body .item-title {
    font-weight: 600;
    color: white;
    margin-left: 13.5vh;
    transform: translate(0%, 50%);
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.item-card-body .item-details {
    margin-left: 13.5vh;
    font-weight: 400;
    transform: translate(0%, 50%);
    display: flex;
    margin-bottom: 8px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: rgb(211, 211, 211);
    font-size: 15px;
}
.item-card-body .item-id {
    font-weight: 400;
    color: rgb(211, 211, 211);
    font-size: 14px; 
}

.item-card-body .item-quantity {
    font-weight: 400;
    margin-bottom: 2px;
    color: rgb(211, 211, 211);
    font-size: 10px; 
}
.item-card.selected {
    border-width: 0.3px;
    border-style: solid;
    border-image: linear-gradient(to right, rgba(233, 233, 233, 0.815), rgba(255, 255, 255, 0)) 1;
    border-radius: 2px;
}

.card-body {
	background: linear-gradient(to right, #020202b3 20%, #02020200 100%);
	color: rgba(110, 113, 121, 1);	
	font-size: 15px;
	font-weight: 500;
	border-radius: 2px;
}

.item-title {
	color: #fff;
	font-weight: 600;
	position: absolute; 
	top: 8%;
}


.btn {
    position: relative;
	font-weight: 500;
    width: 150px; 
    max-width: 100%;
	font-size: 18px;
	padding: 9px 0px;
	border: none;
	-webkit-border-radius: 2px;
	-webkit-background-clip: padding-box;
	-moz-border-radius: 2px;
	-moz-background-clip: padding;
	border-radius: 2px;
	background-clip: padding-box;
    display: inline-block; 
	transition: color 0.2s linear, background-color 0.2s linear;
	letter-spacing: 0.2px;
}

.btn.btn-blue {
	background-color: var(--global-main-color);
	color: #ffffff;
}

.btn.btn-blue:hover {
	background-color: rgb(68, 14, 104);
	color: #e6e6e6;
}
.btn-red {
    background-color: #c33131 !important;
    color: #ffffff !important;
}

.btn-red:hover {
    background-color: #a62828 !important;
}

.craft-input {
    width: 7.2vh;
    height: 40px;
    text-align: center;
    color: white;
    background-color: var(--black-40);
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 5px;
    position: absolute;
    border: none; 
    outline: none; 
    top: -41px; 
    left: 50%;  
    font-family:inherit;
    font-size:inherit;
    transform: translateX(-50%);   
}

.craft-input:focus {
    border: none; 
    outline: none; 
    user-select: none !important; 
}

.craft-input::selection {
    background-color: transparent; 
    color: white; 
}

.btn:focus {
	box-shadow: none;
}

hr {
    display: none;
}

.timer {
	position: fixed;
	right: 1.5%;
	bottom: 5%;
	font-size: 45px;
	display: none;
}

.timer-card-body {
	background-color: rgba(80, 0, 133, 1);
	font-weight: 600 !important;
	color: #fff !important;
	font-size: 20px !important;
	box-shadow: 0px 0px 5px 0px rgba(10, 10, 10, 0.45);
}

#time {
	position: absolute;
	top: 10px;
	left: 0px;
    font-size: 11px;
	color: #fff;
    justify-content: center; 
    align-items: center; 
	background-color: rgba(80, 0, 133, 1);
	box-shadow: 0px 0px 5px 0px rgba(10, 10, 10, 0.45);
	border-radius: 2px;
	padding: 5px;
    white-space: nowrap; 
}

#percentage {
	position: absolute;
	top: 50px;
	left: 0px;
    font-size: 11px;
	color: #fff;
    justify-content: center; 
    align-items: center; 
	background-color: rgba(80, 0, 133, 1);
	box-shadow: 0px 0px 5px 0px rgba(10, 10, 10, 0.45);
	border-radius: 2px;
	padding: 5px;
    white-space: nowrap; 
}

.black-box {
    background-color: rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    border-radius: 4px;
    height: 235px;
}

.progress-container {
    width: 100%;
    height: 4px;
    margin-top: -19px; 
    background-color: #00000000; 
    border-radius: 0 0 5px 5px;
    overflow: hidden; 
}

.progress-bar {
    width: 0%; 
    height: 100%;
    background-color: rgba(80, 0, 133, 1); 
    border-radius: 0 0 .4vh .4vh; 
    transition: width linear; 
}

.black-box-title {
    color: white;
    font-weight: 800;
    font-size: 30px;
    padding: 10px 0;
}

.black-box-image {
    padding: 10px 0;
    font-size: 22px;
}

.black-box-image img {
    width: 100%;  
    height: auto;  
    max-height: 120px;  
    max-width: 120px;   
}

.craft-info-container {
    position: relative;
}

.timer-percentage {
    position: absolute;
    top: -4px;
    left: 5px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#time, #percentage {
    display: block;
    width: 58px; 
    height: 30px; 
    text-align: center;
    color: #fff;
    background-color: rgba(80, 0, 133, 1);
    box-shadow: 0px 0px 5px 0px rgba(10, 10, 10, 0.45);
    border-radius: 2px;
    padding: 6px;
    margin-bottom: 5px; 
}

#percentage {
    margin-top: -5px; 
}

#time {
    display: block;
}

.ingredients-title {
    display: flex;
    align-items: center;
    font-size: 22px; 
    font-weight: 400;
    color: white;
    margin-left: 2vh;
    margin-top: 25vh; 
}

.ingredients-title:before {
    content: '|';
    color: rgba(80, 0, 133, 1);
    margin-left: -1vh;
    margin-right: 9px;
    margin-bottom: 1px;
    width: 10px;
    font-size: 25px;
    font-weight: 600;
}

.ingredient-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    grid-auto-flow: dense; 
    gap: 6px; 
    margin-top: 21.3vh; 
    margin-left: -14.0vh;
    justify-items: start;
}

.ingredient-box.two-rows{
    margin-top: 13.4vh; 
}

.ingredient-box.three-rows {
    margin-top: 5.5vh; 
}

.ingredient-item {
    background-color: rgba(0, 0, 0, 0.4); 
    border-radius: 2px;
    width: 80px; 
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible; 
    transition: 0.25s;
}

.ingredient-item::before {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

.ingredient-item:hover::before {
    opacity: 1 !important;
    visibility: visible;
}

.ingredient-item img {
    max-width: 50px; 
    max-height: 50px;
    margin-bottom: 5px; 
}

.ingredient-item .quantity {
    position: absolute;
    bottom: 1px;
    right: 4px;
    font-size: 9px;
    font-weight: 400;
    color: white;
}

.ingredient-item.red {
    background-color: rgba(255, 0, 0, 0.280);
}

.ingredient-item.red img {
    opacity: 0.5;
}
