*
{
	box-sizing:border-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: sans-serif;
	color: #f0f0f0;
	font-size:16px;
}

html
{
	background-color: #000000;
}

#header
{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 24px;
    background-color: #404040;
    z-index: 50;
}

#header:hover
{
    height: 72px;
}

#title
{
    position: absolute;
    width: 200px;
    left: calc(50% - 100px);
    /* top: 2px; */
    text-align: center;
}

#menu
{
    position: absolute;
    width: 16px;
    height: 16px;
    right: 4px;
    top: 4px;
    background-image: url("pics/icons/menu.png");
    background-repeat: no-repeat;
}

.tabselect
{
    position: relative;
    float:left;
    top: 24px;
    width: calc(100% / 6);
    height: 48px;
    text-align: center;
    background-color: #404040;
    cursor: pointer;
}
.tabselect:hover
{
    background-color: #606060;
}
.tabselect > a
{
    position: relative;
    top: 14px;
}
.tabselect > img
{
    margin: auto;
}

#imglib
{
	display:none;
}

.tab
{
    display:none;
}

.showtab
{
    display:block;
}

#banner
{
    display: block;
    width: 100%;
    /* height: 40%; */
    position: absolute;
    top: 40%;
    left: 0;
    background-color: #202020;
    overflow: visible;
    /*
    border-color: rgb(212, 212, 124);
    border-style: solid;
    border-width: 8px 0 8px 0;
    */
}

#banner > div
{
    width: 100%;
    height: 40px;
    background-color: #202020;
}

#banner > div:hover
{
    background-color: #404040;
}

#banner > div > *
{
    margin:auto;
}

#collapse
{
    display: block;
    width: 100%;
    height: 40px;
    position: absolute;
    top: -40px;
    left: 0;
}

#retry
{
    width: 100%;
}

#collapse:hover
{
    background-color: #404040;
}

canvas 
{
    image-rendering: pixelated;
    /*
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -o-crisp-edges;
    image-rendering: crisp-edges;*/
}

#canvas
{
	width: 100vw;
	height: 100vh;
}

#infopanel
{
	background: transparent;
	position: fixed;
	width: 300px;
	bottom: 0px;
	left: 0px;
	display: flex;
	flex-wrap: wrap;
}

#infopanel > div
{
	background: rgba(0, 0, 0, 0.8);
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}

#infopanel > div:nth-last-child(2n)
{
	background: rgba(16, 16, 16, 0.8);
}

#infopanel > div > a
{
	/* flex: 1; */
	padding-left: 4px;
	padding-right: 4px;
	width: 25%;
}

#settingpanel
{
	background: rgba(0, 0, 0, 0.5);
	position: fixed;
	width: 200px;
	height: 18px;
	top: 24px;
	left: 0px;
	display: flex;
	flex-wrap: wrap;
}

#settingpanel:hover
{
	height: auto;
}

#settingpanel > a
{
	/* flex: 1; */
	padding-left: 4px;
	padding-right: 4px;
	width: 50%;
}

.w50
{
	width: 50% !important;
}

.w75
{
	width: 75% !important;
}

.w100
{
	text-align:center;
	width: 100% !important;
}

.phy
{
	color: #ff0000;
}

.mag
{
	color: #0080ff;
}

.sou
{
	color: #ffff00;
}

.voi
{
	color: #aa00ff;
}

div.neu
{
	border-left:2px solid #808080;
}

div.phy
{
	border-left:2px solid #ff0000;
}

div.mag
{
	border-left:2px solid #0080ff;
}

div.sou
{
	border-left:2px solid #ffff00;
}

div.sou
{
	border-left:2px solid #aa00ff;
}

div.equipped
{
	border-right:2px solid #ffffff;
}

.smallicon
{
	display:inline-block;
	width: 16px;
	height: 16px;
	position: relative;
	top: 2px;
}

span.element
{
	display:inline-block;
	width: 16px;
	height: 16px;
	position: relative;
	top: 2px;
}

span.element.neu
{
	width: 0px;
}

span.element.phy
{
	background-image: url("../pics/fir.png");
}

span.element.mag
{
	background-image: url("../pics/ice.png");
}

span.element.sou
{
	background-image: url("../pics/thu.png");
}

span.element.voi
{
	background-image: url("../pics/dar.png");
}

span.rarity
{
	display:inline-block;
	width: 16px;
	height: 16px;
	position: relative;
	top: 2px;
}

span.rarity.rarity0
{
	width: 0px;
}

span.rarity.rarity1
{
	background-image: url("../pics/1.png");
}

span.rarity.rarity2
{
	background-image: url("../pics/2.png");
}

span.rarity.rarity3
{
	background-image: url("../pics/3.png");
}

img.neu
{
	background-image: url("../pics/b_neu.png");
}

img.phy
{
	background-image: url("../pics/b_fir.png");
}

img.mag
{
	background-image: url("../pics/b_ice.png");
}

img.sou
{
	background-image: url("../pics/b_thu.png");
}

img.voi
{
	background-image: url("../pics/b_dar.png");
}

.sec
{
	color: #808080;
}

.hpd, .hpd10
{
	display:inline-block;
	width: 2px;
	height: 10px;
	margin: 1px;
	background: #ffffff;
}

.hpe, .hpe10
{
	display:inline-block;
	width: 2px;
	height: 10px;
	margin: 1px;
	background: #808080;
}

.hpd10, .hpe10
{
	height: 14px;
}

.invisible
{
	display: none !important;
}

input
{
	width: 100%;
}

button
{
	width: 100%;
	background: #202020;
	border: solid 1px #101010;
}

button:hover
{
	cursor: pointer;
	background: #404040;
	border: solid 1px #101010;
}

/*************************************************************************************************************************/
/******************************************************** EDITOR *********************************************************/
/*************************************************************************************************************************/

#editor, #editor > *, #list, #list > *
{
    overflow: auto;
}

#editor
{
    padding-top: 24px;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 300px;
    height: 100%;
}

#list
{
    padding-top: 24px;
    position: absolute;
    right: 0px;
    top: 0px;
    width: calc(100% - 300px);
    height: 100%;
}

.set
{
    position: relative;
    border: 1px solid #808080;
    margin: 8px;
    padding: 8px;
}

.set > div
{
    position: relative;
    height: 20px;
}

.selected
{
    background-color: rgba(255, 255, 0, 0.5);
}

.item
{
    padding-left: 20px;
}

.modify, .delete
{
    position: absolute;
    top: 0px;
    right: 20px;
    float: right;
    /* display: inline-block; */
    width: calc(100% - 20px);
    height: 20px;
    border: 1px outset #40658320;
    background-color: #40658320;
    background-image: url("../pics/icons/plus.png");
    background-position: top 2px right -2px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.delete
{
    background-image: url("../pics/icons/minus.png");
    width: 20px;
    right: 0px;
}

#addset
{
    height: 48px;
    border: 1px solid #00ff00;
    background-color: #00ff00;
    background-image: url("../pics/icons/plus.png");
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;

}

.removeset
{
    position: absolute !important;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 20px !important;
    transition: width 0.25s;
    background-color: #ff0000;
    overflow:hidden;
}

.removeset:hover
{
    width: 100%;
}

.removeset > a
{
    margin-left: 20px;
    background-color: #ff0000;
}

.removesetbutton
{
    margin-left: 0px;
    position: absolute;
    bottom: 0px;
    right: 20px;
    padding: 2px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    background-image: url("../pics/icons/minus.png");
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.removesetbutton:hover
{
    background-color: rgba(255, 255, 255, 0.5);
}

input
{
    background-color: transparent;
    border: 0px;
    color: #ffffff;
}

td:hover > .tooltip, th:hover > .tooltip
{
    display: block;
}
.tooltip
{
    color: #b0b0b0;
    top: 20px;
    left: 20px;
    width: 100%;
    min-width: 150px;
    position: absolute;
    display: none;
    background-color: #000000;
    padding:2px;
    border: 1px solid #b0b0b0;
    z-index:10;
}
table
{
    width: 100%;
    border-collapse: collapse;
}
td, th
{
    overflow: visible;
    position: relative;
    font-weight: normal;
    /* padding: 1px; */
    /* border: 1px solid #404040; */
}
tr
{
    background-color: #000000;
}
/* tr:nth-child(2n)
{
    background-color: #080808;
} */
tr:hover
{
    background-color: #202020;
}
th
{
    font-size:10px;
    color: #b0b0b0;
    background-color: #000000;
    border-bottom: 2px solid #ffffff;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
}
h1
{
    margin: 16px;
}
.i
{
    display: none;
}
.yes { color:#00f000; }
.no { color:#404040; }
.range{
    display: flex;
    flex-wrap: wrap;
}
.r_n{flex-basis: 100%; flex-grow: 1;}
.r_e, .r_t, .r_p 
{
    display: block;
    margin: 1px;
    padding: 0;
    font-size: 0px;
    background-color: #000000;
    width:6px;
    height:6px;
    background-position: center;
}
.r_t{background-color: #ce49ff;}
.r_p{background-image: url("../pics/mark.png");}