:root {
  --rare0c: #ffffffcc;
  
  --rare1: #49bb10;
  --rare1b: #126c1b;
  --rare1c: #49bb10cc;
  
  --rare2: #39b4fc;
  --rare2b: #0a5dc3;
  --rare2c: #39b4fccc;
  
  --rare3: #e7e700;
  --rare3b: #9c9c00;
  --rare3c: #f7f700cc;
  
  --rare4: #f873df;
  --rare4b: #93076b;
  --rare4c: #f873dfcc;
  
  --itemimagebackground: #101418cc;
  
  --shadowbox: #000C;
  
  
  --boxglow: #ccf;
  --glow: #08f;
  
  --itemdatabox-bg: #051423;
  --itemdatabox-border: #235970;
  
  
  
/*	light mode  */
  
  --light-boxborder: #000c;
  --light-boxborder-head: #eee;
  
  --light-body: #fff;
  --light-bodyborder: #a6a6a6;
  --light-bodyborder-font: #000;
  
  --light-table-odd: #000a;
  --light-table-even: #0009;
  
  --light-table-odd-h: #333a;
  --light-table-even-h: #3339;
  
  --light-font: #000;
  --light-th: #042f5977;
  
  --light-nope: #f66;
  --light-nopebg: #fcc6;
  
  --light-boxglow: #ccf;
  
  
  
/*	dark mode  */
  
  --dark-boxborder: #fff;
  --dark-boxborder-head: #eee;
  
  --dark-body: #000d2f;
  --dark-bodyborder: #042f59;
  --dark-bodyborder-font: #fff;
  
  --dark-table-odd: #042f5922;
  --dark-table-even: #042f5944;
  
  --dark-table-odd-h: #ccf2;
  --dark-table-even-h: #ccf4;
  
  --dark-font: #fff;
  --dark-th: #042f5977;
  
  --dark-nope: #f00;
  --dark-nopebg: #fcc3;
  
  --dark-boxglow: #ccf9;
  
}



body {
	color: #eee;
	font-family: Tahoma;
	font-size: 16px;
	margin: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position-x: center;
	background-position-y: top;
}
a {
	color: #0088cc;
}
a:visited {
	color: #55ccee;
}


div.input_text {
	font-size: 0.8333em;
	line-height: 16px;
	padding: 1px 0px 1px 2px;
}
div.input_text img {
	max-height: 16px;
	margin: -2px 0 -3px 0;
}

.grey1 {
	background-color: #999;
}
.grey2 {
	background-color: #ccc;
}
.grey3 {
	background-color: #eee;
}

table, tr, th, td {
	vertical-align: text-top;
}
th {
	background-color: var(--th);
	text-align: left;
}


div.icon {
	position: relative;
	width: 64px;
	height: 64px;
	float: left;
}

div.icon > img {
	position: absolute;
	max-height: 64px;
}
div.icon > img:nth-child(1) {
	background-color: var(--itemimagebackground);
}
div.icon > img:nth-child(2) {
	max-height: 20px;
	right: 0;
	bottom: 0;
}

div.icon > div.raregrade {
	position: absolute;
	width: 64px;
	height: 64px;
	overflow: hidden;
}

div.icon > div.raregrade > div {
	position: absolute;
	width: 20px;
	height: 40px;
	transform: rotate(45deg);
	left: -4px;
	top: -14px;
}

div.icon.grade0 {
	box-shadow: 0px 0px 5px var(--rare0c);
}
div.icon.grade1 {
	box-shadow: 0px 0px 5px var(--rare1c);
}
div.icon.grade2 {
	box-shadow: 0px 0px 5px var(--rare2c);
}
div.icon.grade3 {
	box-shadow: 0px 0px 5px var(--rare3c);
}
div.icon.grade4 {
	box-shadow: 0px 0px 5px var(--rare4c);
}

div.icon.grade1 > div.raregrade > div {
	background: var(--rare1);
	background: linear-gradient(var(--rare1) 0%, var(--rare1b) 100%);
}
div.icon.grade2 > div.raregrade > div {
	background: var(--rare2);
	background: linear-gradient(var(--rare2) 0%, var(--rare2b) 100%);
}
div.icon.grade3 > div.raregrade > div {
	background: var(--rare3);
	background: linear-gradient(var(--rare3) 0%, var(--rare3b) 100%);
}
div.icon.grade4 > div.raregrade > div {
	background: var(--rare4);
	background: linear-gradient(var(--rare4) 0%, var(--rare4b) 100%);
}



section.header {
	width: 100vw;
	height: 70px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2;
}
section.header > img:nth-child(1) {
	margin: 10px 0 0 50px;
	max-height: 110px;
}
section.header > a:nth-child(2) > img {
	margin: 10px 0 0 -150px;
	position: absolute;
	left: 50%;
	max-height: 50px;
	max-width: 20%;
}
section.header > div:nth-child(3) {
	position: absolute;
	right: 75px;
	top: 10px;
	width: 250px;
	height: 50px;
}
body.maintenance section.header > div:nth-child(3) {
	display: none;
}
section.header > div > input {
	top: 0;
	left: 0;
	position: absolute;
	width: 220px;
}
section.header > div > img {
	top: 0;
	right: 0;
	height: 20px;
	width: 20px;
	position: absolute;
	cursor: pointer;
}
section.header > div > div {
	white-space: nowrap;	
}
section.header > div > div > a > img {
	height: 20px;
	margin: 4px 4px 0 0;
	opacity: 0.75;
	float: left;
}
section.header > div > div > a > img.active {
	opacity: 1;
	box-shadow: 0px 0px 5px var(--boxglow);
	background-color: var(--boxglow);
}
section.header > div > div > div {
	width: 1px;
	height: 24px;
	display: flex;
	position: relative;
}
section.header > div > div > div > div {
	width: 24px;
	height: 24px;
	cursor: pointer;
	position: absolute;
}
section.header > div > div > div > div  > div {
	border-radius: 50%;
	width: 24px;
	height: 24px;
}

section.header ul.database {
	position: relative;
	margin: 4px 4px 0 0;
	padding: 0;
	float: left;
}

section.header ul.database li,
section.content ul.mylist li {
	list-style: none;
	white-space: nowrap;
	position: relative;
	height: 20px;
	width: 200px;
}

section.header ul.database li > span,
section.content ul.mylist li > span {
	position: absolute;
}
section.header ul.database li > span {
	left: 4px;
}

section.header ul.database ul,
section.content ul.mylist ul {
	position: absolute;
	display: none;
	padding: 0;
	box-shadow: 0px 0px 5px var(--shadowbox);
}

section.header ul.database ul {
	margin: -23px 0 0 -205px;
	text-align: right;
	left: 0;
}

section.header ul.database > li > ul > li {
	width: 300px;
}

section.header ul.database li:hover > ul,
section.content ul.mylist li:hover > ul {
	display: block;
}

section.header ul.database ul li,
section.content ul.mylist li {
	padding: 4px;
}

section.header ul.database > li > ul {
	margin: 0 0 0 -30px;
	z-index: 3;
}

section.header ul.database > li > ul > li > ul {
	z-index: 4;
}
section.header ul.database > li > ul > li > ul > li > ul {
	z-index: 5;
}
section.header ul.database > li > ul > li > ul > li > ul > li > ul {
	z-index: 6;
}

section.header ul.database img {
	max-height: 16px;
}

section.header ul.database li.entry,
section.content ul.mylist li.entry {
	cursor: pointer;
}

section.header ul.database,
section.header ul.database > li {
	width: 100px;
}




section.content {
	
}

section.content div.searchmessage {
	border-width: 3px 3px 3px 9px;
	border-style: solid;
	border-radius: 15px;
	margin: 150px auto 0 auto;
	width: 350px;
	padding: 36px;
	font-size: 21px;
}
body.maintenance section.content div.searchmessage {
	width: 500px;
}

section.content #contentbox {
	box-shadow: 0px 0px 5px var(--shadowbox);
	margin: 0 auto;
	width: calc(100vw - 670px);
}

section.content #contentbox > div {
	padding: 90px 25px 90px 25px;
	overflow: auto;
}

section.content > div.navpoint {
	position: absolute;
	right: 100px;
	top: 100px;
	height: 800px;
	width: 292px;
	background-size: contain;
}
body.maintenance section.content > div.navpoint {
	right: 50%;
	margin-right: 250px;
}
section.content table > tr > td {
	vertical-align: top;
}

section.content table > tr > td:nth-child(1),
section.content table > tr > td:nth-child(2),
section.content table > tr > td:nth-child(5) {
	width: 64px;
}
section.content table > tr > td:nth-child(3) {
	width: 160px;
}
section.content table > tr > td:nth-child(6),
section.content table > tr > td:nth-child(7) {
	width: 120px;
}

div.detaildata > div > table {
	margin: 0 0 20px 0;
}

div.detaildata td.langbox > div,
section.content table > tr > td:nth-child(4) {
	max-height: 120px;
	overflow: auto;
	display: block;
	font-size: 12px;
}

section.content ul.mylist ul {
	left: 154px;
	top: 0;
}
section.content ul.mylist ul li {
	width: 200px;
}

section.content ul.mylist li > span {
	right: 4px;
}

section.content table > tr > td:nth-child(1),
section.content table > tr > td:nth-child(2),
section.content table > tr > td:nth-child(3),
section.content table > tr > td:nth-child(4) {
	cursor: pointer;
}

section.content table > tr > td:nth-child(6) img,
section.content table > tr > td:nth-child(7) img ,
section.content div#shadowbox div.quickinfo img {
	max-height: 24px;
}

section.content table > tr > td:nth-child(6) img,
section.content div#shadowbox div.quickinfo img {
	margin: 0 4px 0 0;
}
section.content table > tr > td:nth-child(6) img.on,
section.content div#shadowbox div.quickinfo img.on {
	filter: sepia(100%);
}
section.content table > tr > td:nth-child(6) img.off,
section.content div#shadowbox div.quickinfo img.off {
	filter: brightness(0.35);
}
section.content table > tr > td:nth-child(6) img.my_list,
section.content div#shadowbox div.quickinfo img.my_list {
	cursor: pointer;
	filter: sepia(10%);
	filter: brightness(0.75);
}
section.content table > tr > td:nth-child(6) img.my_list:hover,
section.content div#shadowbox div.quickinfo img.my_list:hover {
	filter: sepia(100%);
	filter: brightness(1);
}



div.loadingjif {
	position: absolute;
	left: 50%;
	margin-left: -126px;
	margin-top: 250px;
	width: 252px !important;
	height: 144px !important;
	padding: 0 !important;
}


section.content div#shadowbox {
	width: 100vw;
	height: 100vh;
	background-color: var(--shadowbox);
	position: fixed;
	left: 0;
	top: 0;
	display: none;
	padding: 70px 0 70px 0;
	z-index: 1;
}
section.content > div#shadowbox > img#closebutton {
	height: 20px;
	background-color: var(--shadowbox);
	position: absolute;
	right: 90px;
	top: 90px;
	cursor: pointer;
}
section.content div#shadowbox > div {
	padding: 0 350px 70px 350px;
}
section.content div#shadowbox > div#closezone-l,
section.content div#shadowbox > div#closezone-r {
	padding: 0;
	position: fixed;
	top: 0;
	width: 325px;
	height: 100vh;
}
section.content div#shadowbox > div#closezone-l {
	left: 0;
}
section.content div#shadowbox > div#closezone-r {
	right: 0;
}


div.detaildata {
	width: calc(100vw - 1220px);
	height: calc(100vh - 120px);
	overflow: auto;
}
div.detaildata > div {
	width: calc(100vw - 1250px);
}
div.detaildata > div > table {
	width: calc(100vw - 1250px);
}
div.detaildata img.langflag {
	max-height: 16px;
	margin-right: 4px;
}
div.detaildata td.money img {
	max-height: 16px;
	margin-right: 4px;
}



div.itemdatabox {
	width: 530px;
	overflow: auto;
	height: calc(100vh - 160px);
	position: absolute;
	right: 330px;
	top: 70px;
	padding: 20px 0 20px 0;
}
div.itemdatabox div.hr {
	background: linear-gradient(90deg, #051423 0%, #2f3841 15%, #2f3841 85%, #051423 100%);
	height: 2px;
	margin: 10px;
}
div.itemdatabox > div.quickinfo {
	width: 500px;
	height: 100px;
}
div.itemdatabox > div.itemdatainfobox {
	width: 500px;
	background-color: var(--itemdatabox-bg);
}
div.itemdatabox > div.itemdatainfobox > div {
	border: 3px solid var(--itemdatabox-border);
	padding: 3px 14px 14px 14px;
	font-size: 15px;
}
div.itemdatabox > div.itemdatainfobox > div > div > span {
	font-size: 18px;
}
div.itemdatabox > div.itemdatainfobox > div > div > span.grade1 {
	color: var(--rare1);
}
div.itemdatabox > div.itemdatainfobox > div > div > span.grade2 {
	color: var(--rare2);
}
div.itemdatabox > div.itemdatainfobox > div > div > span.grade3 {
	color: var(--rare3);
}
div.itemdatabox > div.itemdatainfobox > div > div > span.grade4 {
	color: var(--rare4);
}
div.itemdatabox > div.itemdatainfobox > div > div > div:nth-child(2) {
	min-height: 64px;
	margin: 26px 0px 8px -4px;
	position: relative;
}
div.itemdatabox > div.itemdatainfobox > div > div > div:nth-child(2) > div:nth-child(2) {
	position: absolute;
	left: 76px;
	top: -4px;
	width: 390px;
}
div.itemdatabox > div.itemdatainfobox > div > div > div:nth-child(2) > div:nth-child(2) span.nopelist {
	color: #ff0000;
}



section.content div.itemsperpage {
	text-align: right;
	margin: 6px 0;
}
section.content div.itemsperpage span {
	font-size: 9px;
	padding: 0 2px;
	margin: 0 1px;
}

section.content div.navbar {
	text-align: center;
	margin: 6px 0;
}
section.content div.navbar span {
	padding: 2px 6px;
	margin: 0 2px;
}

section.content div.itemsperpage span,
section.content div.navbar span {
	opacity: 0.25;
}
section.content div.itemsperpage span.navpoint,
section.content div.navbar span.navpoint {
	cursor: pointer;
	opacity: 0.75;
}
section.content div.itemsperpage span.active,
section.content div.navbar span.active {
	opacity: 1;
	box-shadow: 0px 0px 5px var(--boxglow);
}

section.content table {
	width: 100%;
}
section.content table tr.hr {
	height: 8px;
}




section.footer {
	width: 100vw;
	height: 50px;
	position: fixed;
	bottom: 0;
	left: 0;
	font-size: 11px;
	text-align: center;
	z-index: 2;
	font-size: 9px
}



/*	light mode  */

body.lightmode {
	background-color: var(--light-body);
	background-image: url('../img/bg_light.png');
}
body.lightmode div.loadingjif {
	background-image: url('../img/loading-light.gif');
}
body.lightmode section.content > div.navpoint {
	background-image: url('../img/navpoint_light.png');
}
body.lightmode input[type=text],
body.lightmode input[type=number],
body.lightmode textarea,
body.lightmode div.input_text {
	background-color: 1px solid var(--light-bodyborder);
	color: var(--light-font);
	border: 1px solid var(--light-boxborder-head);
}
body.lightmode section.header {
	background-color: var(--light-bodyborder);
}
body.lightmode section.header ul.database li,
body.lightmode section.content ul.mylist li {
	background-color: var(--light-bodyborder);
}
body.lightmode section.content div.searchmessage {
	box-shadow: 0px 0px 5px var(--light-nope);
	color: var(--light-nope);
	border-color: var(--light-nope);
	background-color: var(--light-nopebg);
}
body.lightmode section.content div.itemsperpage span,
body.lightmode section.content div.navbar span {
	border: 1px solid var(--light-boxborder);
	color: var(--light-boxborder);
}
body.lightmode section.content table tr:nth-child(odd) {
	background: var(--light-table-odd);
}
body.lightmode section.content table tr:nth-child(even) {
	background: var(--light-table-even);
}
body.lightmode section.content #contentinner > table tr:nth-child(odd):hover {
	background: var(--light-table-odd-h);
	box-shadow: 0px 0px 5px var(--light-table-odd-h);
}
body.lightmode section.content #contentinner > table tr:nth-child(even):hover {
	background: var(--light-table-even-h);
	box-shadow: 0px 0px 5px var(--light-table-even-h);
}
body.lightmode section.footer {
	background-color: var(--light-bodyborder);
	color: var(--light-bodyborder-font);
}
body.lightmode section.header > div > div > div > div > div {
	box-shadow: -5px 5px 0 0 #ff0;
	margin: -5px 0 0 5px;
}
body.lightmode section.content div.itemsperpage span.active,
body.lightmode section.content div.navbar span.active {
	background-color: var(--light-boxglow);
}



/*	dark mode  */

body.darkmode {
	background-color: var(--dark-body);
	background-image: url('../img/bg_dark.png');
}
body.darkmode div.loadingjif {
	background-image: url('../img/loading-dark.gif');
}
body.darkmode section.content > div.navpoint {
	background-image: url('../img/navpoint_dark.png');
}
body.darkmode input[type=text],
body.darkmode input[type=number],
body.darkmode textarea,
body.darkmode div.input_text {
	background-color: 1px solid var(--dark-bodyborder);
	color: var(--dark-font);
	border: 1px solid var(--dark-boxborder-head);
}
body.darkmode section.header {
	background-color: var(--dark-bodyborder);
}
body.darkmode section.content div.searchmessage {
	box-shadow: 0px 0px 5px var(--dark-nope);
	color: var(--dark-nope);
	border-color: var(--dark-nope);
	background-color: var(--dark-nopebg);
}
body.darkmode section.header ul.database li,
body.darkmode section.content ul.mylist li {
	background-color: var(--dark-bodyborder);
}
body.darkmode section.content div.itemsperpage span,
body.darkmode section.content div.navbar span {
	border: 1px solid var(--dark-boxborder);
	color: var(--dark-boxborder);
}
body.darkmode section.content table tr:nth-child(odd) {
	background: var(--dark-table-odd);
}
body.darkmode section.content table tr:nth-child(even) {
	background: var(--dark-table-even);
}
body.darkmode section.content #contentinner > table tr:nth-child(odd):hover {
	background: var(--dark-table-odd-h);
	box-shadow: 0px 0px 5px var(--dark-table-odd-h);
}
body.darkmode section.content #contentinner > table tr:nth-child(even):hover {
	background: var(--dark-table-even-h);
	box-shadow: 0px 0px 5px var(--dark-table-even-h);
}
body.darkmode section.footer {
	background-color: var(--dark-bodyborder);
	color: var(--dark-bodyborder-font);
}
body.darkmode section.header > div > div > div > div > div {
	background: #ff0;
}
body.darkmode section.content div.itemsperpage span.active,
body.darkmode section.content div.navbar span.active {
	background-color: var(--dark-boxglow);
}





body.lightmode section.header ul.database li:hover,
body.lightmode section.content ul.mylist li:hover,
body.darkmode section.header ul.database li:hover,
body.darkmode section.content ul.mylist li:hover {
	background-color: var(--glow);
	box-shadow: 0px 0px 5px var(--glow);
}

@media screen and (max-width: 1800px) {
	/*	shwdowboxcontent 1st  */
	section.content > div#shadowbox > img#closebutton {
		right: 30px;
	}
	section.content div#shadowbox > div {
		padding: 30px 15px 110px 15px;
	}
	div.detaildata {
		width: calc(100vw - 620px);
	}
	div.detaildata > div {
		width: calc(100vw - 660px);
	}
	div.detaildata > div > table {
		width: calc(100vw - 600px);
	}
	div.itemdatabox {
		right: 60px;
	}
	div#closezone-l,
	div#closezone-r {
		display: none;
	}
}

@media screen and (max-width: 1600px) {
	/*	shwdowboxcontent 2nd  */
	section.content div#shadowbox > div {
		padding: 30px 15px 110px 15px;
		overflow: auto;
		position: relative;
		height: calc(100vh - 260px);
		width: calc(100vw - 90px);
	}
	div.detaildata,
	div.itemdatabox {
		position: inherit;
		overflow: visible;
		height: inherit;
		right: inherit;
		left: inherit;
		top: inherit;
	}
	div.detaildata {
		width: calc(100vw - 100px);
	}
	div.detaildata > div > table {
		width: calc(100vw - 100px);
	}
	/*	maincontent  */
	section.content {
		margin: 0;
	}
	section.content div#contentbox {
		width: inherit;
	}
	
	div.itemdatabox {
		display: none;
	}
}