* {
	scrollbar-color: #98a7e9 #20212f;
	scrollbar-width: thin;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

#bg_svg {
	position: absolute;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	z-index: -9999;
}

html {
	width: 100vw;
	height: 100vh;
	background: rgb(52, 64, 122);
	background: linear-gradient(180deg, rgba(52, 64, 122, 1) 0%, rgba(24, 25, 34, 1) 15%);
}

body {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	width: 100%;
	height: 100%;
	padding: 1%;
	overflow: hidden;
}

p {
	font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

ul {
	list-style: number;
	margin-left: 16px;
}

.btn {
	-webkit-user-select: none;
	/* Safari */
	-ms-user-select: none;
	/* IE 10 and IE 11 */
	user-select: none;
	/* Standard syntax */
	background: #4357af;
	border-radius: 5%;
	border: 1px solid #98a7e9;
}

.btn:hover {
	background: #546cdb;
	cursor: pointer;
}

.by {
	position: absolute;
	display: flex;
	top: 1%;
	left: 1%;
}

.info_btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 24px;
	height: 24px;
	margin-left: 4px;
}

.info_menu {
	position: absolute;
	display: none;
	flex-direction: column;
	max-width: 450px;
	text-align: left;
	font-size: 110%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #131419;
	width: 80%;
	height: fit-content;
	max-height: 80%;
	padding: 1%;
	box-shadow: 0px 0px 15px white;
	z-index: 20;
	overflow: hidden;
	overflow-y: auto;
}

#sim_info_menu p {
	font-family: serif, "Helvetica", "Arial";
}

.enhance_area {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	width: fit-content;
	max-width: calc(100% - 8px);
	height: 100%;
	margin-top: 32px;
	padding: 0% 1%;
	background: #20212f;
	overflow: hidden;
	overflow-y: auto;
	border: 1px solid #98a7e9;
}

.input_block {
	display: flex;
	justify-content: center;
	width: 100%;
	height: fit-content;
	padding: 1% 0%;
}

.input_block > div {
	margin: 0px 8px;
}

.item_slot {
	position: relative;
	justify-content: center;
	align-items: center;
	width: 312px;
	height: 312px;
	cursor: pointer;
	background: #2c2e45;
	border: 1px solid #98a7e9;
	border-radius: 5%;
}

.item_slot_icon {
	width: 100%;
	height: 100%;
}

.item_slot_icon > svg {
	width: 100%;
	height: 100%;
	padding: 10%;
}

.item_slot_wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.bookmark_btn {
	position: absolute;
	top: 6px;
	left: 6px;
	width: 28px;
	height: 28px;
	border: 1px solid #98a7e9;
	border-radius: 50%;
	background: #20212f;
	color: #98a7e9;
	font-size: 18px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	z-index: 3;
  font-size: 26px;
}

.bookmark_btn.active {
	color: #ffd24a;
	border-color: #ffd24a;
	box-shadow: 0 0 6px rgba(255, 210, 74, 0.6);
}

.favorites_bar {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
	grid-auto-rows: 48px;
	gap: 6px;
	margin: 8px 0;
	width: 100%;
	max-width: 312px;
}

.favorite_item_btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #98a7e9;
	border-radius: 6px;
	background: #2c2e45;
	color: white;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.favorite_item_btn:hover {
	background: #3a3d5a;
}

.favorite_item_btn svg {
	width: 90%;
	height: 90%;
}

.sel_item {
	border: 1px solid #98a7e9;
	background-color: #2c2e45;
	color: white;
}

.sel_item_container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin-top: 5px;
	display: none;
	flex-direction: column;
	width: fit-content;
	height: 60vh;
	padding: 6px;
	overflow: hidden;
	border: 1px solid #98a7e9;
	background-color: #131419;
	z-index: 2;
	cursor: default;
}

.close {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	top: 6px;
	right: 6px;
	width: 21px;
	height: 21px;
	background: #4357af;
	border-radius: 5%;
	border: 1px solid #98a7e9;
}

.sel_item_hide_items_checkbox {
  width: 20px;
  height: 20px;
  margin-top: -2px;
  margin-left: 4px;
  margin-right: 4px;
}

.sel_item_filter {
	width: 100%;
	height: 24px;
	margin-top: 4px;
	margin-bottom: 8px;
}

.sel_item_icons {
	display: grid;
	grid-template-columns: repeat(16, 54px);
	grid-auto-rows: 54px;
	grid-gap: 4px;
	width: 100%;
	height: 100%;
	overflow: hidden;
	overflow-y: auto;
}

.sel_item_icons>div {
	background: #2c2e45;
	border-radius: 5%;
}

.sel_item_icons>div:hover {
	border: 1px solid #98a7e9;
	cursor: pointer;
}

.sel_item_icons>div>svg {
	width: 100%;
	height: 100%;
	padding: 15%;
}

.sel_item_div {
	position: relative;
}

.item_stats {
	min-height: 220px;
}

.mat_icon {
	width: 24px;
	height: 24px;
	padding: 0px 4px;
}

.mat_icon>svg {
	width: 100%;
	height: 100%;
}

.btn_icon {
	width: 36px;
	height: 36px;
	padding: 4px;
	background-color: transparent;
	border-radius: 5px;
	border: none;
	margin-bottom: 1px;
	cursor: pointer;
}

.btn_icon_selected {
	width: 36px;
	height: 36px;
	padding: 4px;
	background-color: transparent;
	border-radius: 5px;
	border: 1px solid white;
}

.btn_icon:hover {
	background-color: #4357af;
	;
}

.btn_icon>svg {
	width: 100%;
	height: 100%;
}

.btn_icon_selected>svg {
	width: 100%;
	height: 100%;
}

.top_divider {
	border-top: 1px solid #98a7e9;
	margin: 4px;
}

.result {
	position: relative;
	display: flex;
	flex-shrink: 0;
	width: 100%;
	height: fit-content;
	padding: 1% 0%;
	border-top: 1px solid #98a7e9;
	font-size: 120%;
	white-space: nowrap;
	overflow-x: auto;
}

#sim_wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: fit-content;
	padding: 1% 0%;
	border-top: 1px solid #98a7e9;
}


#sim_result_wrapper {
	position: relative;
	display: block;
	width: 100%;
	height: fit-content;
}

#sim_result_wrapper > h1 {
	font-size: 150%;
	text-align: center;
}

.sim_result {
	display: flex;
	font-size: 120%;
	flex-shrink: 0;
	white-space: nowrap;
	overflow-x: auto;
}

.result>p {
	margin: 0% 2%;
}

.results_table {
	border-collapse: collapse;
	margin: 8px auto;
	border-top: 1px solid #404b79;
	border-bottom: 1px solid #404b79;
}

.results_header_icon_cell {
	width: 24px;
	height: 24px;
	border-left: 1px #404b79 solid;
	border-right: 1px #404b79 solid;
	border-bottom: 1px #404b79 solid;
}

.results_header_icon_cell>svg {
	width: 100%;
	height: 100%;
}

.sim_results_header_icon_cell {
	width: 32px;
	height: 24px;
	border-left: 1px #404b79 solid;
	border-right: 1px #404b79 solid;
	border-bottom: 1px #404b79 solid;
}

.sim_results_header_icon_cell>svg {
	width: 24px;
	height: 100%;
}

.results_header_cells {
	border-left: 1px #404b79 solid;
	border-right: 1px #404b79 solid;
	border-bottom: 1px #404b79 solid;
	padding-left: 15px;
	padding-right: 15px;
}

.results_data_cells {
	border-left: 1px #404b79 solid;
	border-right: 1px #404b79 solid;
	padding-left: 15px;
	padding-right: 10px;
	text-align: right;
}

.results_sim_cells {
	border-left: 1px #404b79 solid;
	border-right: 1px #404b79 solid;
	padding-left: 15px;
	padding-right: 15px;
	text-align: center;
}

.results_empty_cell {
	width: 1px;
	height: 1px;
}

.btns {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 48px;
	padding: 1%;
	padding-bottom: 0%;
}

.button {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 74px;
	height: 38px;
	margin: 0% 1%;
}

input[type=number] {
	width: 100px;
	padding: 2px 2px;
	margin: 0px 8px;
	box-sizing: border-box;
	text-align: right;
}

.enhancer_stats_check_box {
	width: 20px;
	height: 20px;
	margin: 0px 8px 0px 8px;
}

input[type=number]::-webkit-inner-spin-button {
	opacity: 1
}

.protect_icons>* {
	display: inline-block;
}

.enhancer_stats_item {
	margin-left: auto;
	margin-right: 0;
}

/* sim button */
.sim_btn {
  appearance: none;
  background: linear-gradient(180deg, #FAFBFC 0%, #F3F4F6 100%);
  border: 2px solid rgba(27, 31, 35, 0.15);
  border-radius: 8px;
  box-shadow: 
    rgba(27, 31, 35, 0.1) 0 2px 4px,
    rgba(255, 255, 255, 0.4) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292E;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 600;
  letter-spacing: 0.5px;
  list-style: none;
  margin: 8px 0;
  padding: 6px 12px;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}
.sim_btn:hover {
  background-color: #F3F4F6;
  text-decoration: none;
  transition-duration: 0.1s;
}
.sim_btn:disabled {
  background-color: #FAFBFC;
  border-color: rgba(27, 31, 35, 0.15);
  color: #959DA5;
  cursor: default;
}
.sim_btn:active {
  background-color: #EDEFF2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}
.sim_btn:focus {
  outline: 1px transparent;
}
.sim_btn:before {
  display: none;
}
.sim_btn:-webkit-details-marker {
  display: none;
}

/* mobile / tablets*/
@media screen and (max-width: 1024px) {

	.input_block {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.input_block > div {
		margin: 8px 0px;
	}

	.item_slot {
		width: 124px;
		height: 124px;
	}

	.sel_item_icons {
		grid-template-columns: repeat(5, 54px);
	}

	.enhance_area {
		margin-top: 48px;
	}
}

/* Overlay styles */
#overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	z-index: 9999;
}

/* Progress bar container */
#progress-container {
width: 80%;
height: 30px;
background-color: #ddd;
border-radius: 5px;
overflow: hidden;
}

/* Actual progress bar */
#progress-bar {
width: 0%;
height: 100%;
background-color: #4caf50;
transition: width 0.3s ease;
}

#progress-text {
color: white;
margin-top: 10px;
font-size: 18px;
}