body {
	background-color: #000;
	min-height: 560px;
	min-width: 1000px;
}

body * {
	background: none;
	font-family: sans-serif;
	user-select: none;
}

#discordIcon {
	position: fixed;
	top: 10px;
    right: 5px;
	background: url("gfx/discord.png") no-repeat;
	background-size: contain;
	z-index:0;
	width: 150px;
	height: 150px;
	opacity: 0.5;
}

#discordIcon:hover {
	filter: brightness(2);
}

#tlimg {
	position: fixed;
	bottom: -4px;
    right: -1px;
	background: url("gfx/com-tl.png") no-repeat;
	background-size: contain;
	width: 500px;
	height: 500px;
	z-index:0;
	opacity: 0.5;
}

#brimg {
	top: 0;
	left: 0;
	position: fixed;
	background: url("gfx/com-br.png") no-repeat;
	background-size: contain;
	width: 500px;
	height: 500px;
	z-index:0;
	opacity: 0.5;
}

#titleBar {
	height: 100px;
	content: '';
	position: fixed;
	width: 100%;
}

#mainTitle {
	font-size: 48px;
	text-align: center;
	font-family: 'Kaushan Script', cursive;
	text-shadow: #BBB 0 0 2px, #e9c81655 0 -1px 2px, #e9c81644 0 -3px 2px, rgba(0,0,0,0.8) 0 7px 4px
}

#mainTitle h5 {
	font-size: 10px;
}

#updateTime {
	float: left;
	font-size: 12px;
	text-align: center;
	line-height: 4px;
	color: #fafafa;
	position: fixed;
	left: -15px;
	opacity: 0;
	background: #00000099;
	z-index: 5;
	padding: 0 6px;
	border: 2px solid #5b4f0e;
	box-shadow: 8px 8px 8px #00000066;
	border-radius: 4px;
	top: 100px;
	transition: 0.5s
}

#updateTime h2 {
	color: #e9c816;
	font-size: 12px
}

#updateTime h4 {
	color: #fff;
	font-size: 9px
}

.updateClicker {
	cursor: pointer;
}

#backToTop {
	width: 42px;
    height: 42px;
    position: fixed;
    background-image: url(gfx/icn_greyarrow.svg);
    background-color: #000;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 35px;
    left: 100px;
    bottom: 30px;
    box-shadow: rgba(255, 255, 0, 0.35) 0 0 10px;
    opacity: 0;
	transform: rotate(180deg);
	transition: 0.5s;
}

.disabled {
	visibility: hidden;
}

.featured {
	background-image: url(gfx/bonus.png);
    background-size: 45px 45px;
    background-position: 5px;
    background-repeat: repeat-x;
}

.featured-alt {
	background-image: url(gfx/bonus.png);
    background-size: 45px 45px;
    background-position: 5px;
    background-repeat: repeat-x;
}

#data-headers {
	z-index: 3;
	overflow: hidden;
	top: 100px;
	left: 190px;
    width: 1060px;
    height: 26px;
    position: fixed;
	opacity: 0.9;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	box-shadow: 0px 4px 6px #00000099;
}

	#data-headers * {
		display: inline-block;
		height: 26px;
		float: left;
	}
	
	#data-headers .hdr {
		cursor: pointer;
		font-size: 105%;
		padding-top: 2pt;
	}

	#data-headers .sorted, #data-headers .sorted_reverse {
		font-weight: bold;
		letter-spacing: -0.02em;
	}

	#data-headers .sorted::after {
		content: "▼";
		font-size: 70%;
		vertical-align: center;
	}

	#data-headers .sorted_reverse::after {
		content: "▲";
		font-size: 70%;
		vertical-align: top;
	}


#data-container {
	top: 126px;
	left: 190px;
    width: 1060px;
    position: fixed;
	z-index: 2;
	opacity: 0.8;
	overflow-y: scroll;
	overflow-x:hidden;
	height: 810px;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	background: #00000099;
	box-shadow: 8px 8px 8px #00000066;
}
#data-container::-webkit-scrollbar-thumb, #newsFeed::-webkit-scrollbar-thumb
{
	background-color: #433004;
	border: 1px solid #af9800;
	opacity: 0.5;
	-webkit-box-shadow: inset 0 0 6px rgba(255,255,255,0.3);
	border-radius: 4px;
}
#data-container::-webkit-scrollbar-track, #newsFeed::-webkit-scrollbar-track
{
	background-color: #000;
	border-bottom-right-radius: 8px;
}

#data-container::-webkit-scrollbar, #newsFeed::-webkit-scrollbar
{
	width: 8px;
	background-color: transparent;
}

#dataTable {
	width: 100%;
	border: none;
	border-collapse: collapse;
	margin: 0;
	padding: 0;
	font-size: 95%;
	transition: 1s;
	opacity: 0;
}

#dataTable * {
	margin: 0;
	padding: 0;
}

#dataTable td * {
	vertical-align: middle;
}

#dataTable td {
	height: 50px;
}

#dataTable img.icon32 {
	display: inline-block;
	max-width: 32px;
	max-height: 48px;
	padding-left: 4px;
	padding-right: 4px
}

#dataTable td:nth-child(2), #dataTable td:nth-child(5) {
	overflow: hidden;
	letter-spacing: -0.02em;
	word-spacing: -0.1em;
	text-align: right;
}

#data-headers div:nth-child(1) {
	width: 22%;
	margin-right: 5%;
    text-align: right;
    margin-left: 2%
}

#dataTable td:nth-child(1) {
	width: 4%;
	margin-left: 10%;
}
#dataTable td:nth-child(2) {
	width: 20%;
}

#dataTable td:nth-child(3), #data-headers div:nth-child(2) {
	width: 8%;
	text-align: center;
}
#data-headers div:nth-child(2) {
	margin-left: 1.2%;
}

#dataTable td:nth-child(4), #data-headers div:nth-child(3) {
	width: 8%;
}

#dataTable td:nth-child(5), #data-headers div:nth-child(4) {
	width: 25%;
	text-align: center;
}

#data-headers div:nth-child(4) {
	margin-left: 4%;
}

#dataTable td:nth-child(6), #data-headers div:nth-child(5) {
	width:  8%;
	text-align: center;
}

#data-headers div:nth-child(5) {
	margin-left: 5%;
}

#dataTable td:nth-child(7),  #data-headers div:nth-child(6) {
	 width: 8%;
	 text-align: center;
}

 #data-headers div:nth-child(6) {
	margin-left: 2%;
}
    

#data-headers div:nth-child(8) {
	 width: 8%;
	 text-align: center;
}


/* ------------------------------------*/
/* ----------- Side panel ------------ */
/* ------------------------------------*/

#rFloater {
	position: fixed;
    top: 390px;
    right: 350px;
    z-index: 3;
    padding: 2px;
    width: 300px;
    height: 540px;
    font-size: 90%;
}

#filters {
	z-index: 3;
}

#filtersTitle {
	font-size: 20px;
	text-align: center;
}

#filters * {
	margin: 0;
	padding: 0;
	z-index: 4;	
	border: none;
	outline: none;
	height: 20px;
}

#filters>* {
	border-bottom: #000 1px solid;
	letter-spacing: -0.03em;
}

#filters .spacer {
	height: 8px;
	border: 0 none !important;
}


#filterGoods, #filterPrice, #filterBonuses,
#filterInfo, #filterTrader {
	width: 298px;
}

#filterQmin, #filterQmax, #filterLmin, #filterLmax, #filterPQmin, #filterPQmax, #filterPAMTmin, #filterPAMTmax { 
	width: 70px;
}

#filterLmin, #filterPAMTmin {
	margin-left: 6px;
}

#filters .button_halfwide {
	width: 48%;
	display: inline-block;
	text-align: center;
	height: 22px;
	cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #a9910f;
    background: #433004;
	line-height: 22px;
	font-size: 18px;
    text-shadow: 3px 1px #00000088;
	box-shadow: 3px 3px 4px #00000099;
	margin-top: 5px;
	transition: 0.25s ease-in-out;
}

#attrib {
	bottom: 0;
	left: 0;
	position: fixed;
	font-size: 10px;
	background: #00000066;
	padding: 3px 3px;
	border-top-right-radius: 8px;
	border: 1px solid #a9910f99;
	border-bottom: none;
	border-left: none;
}

.button_halfwide:hover {
	background: #272D67;
    transform: scale(1.05);	
}

#lot {
	top: 100px;
	position: fixed;
	right: 25px;
	z-index: 5;
	font-size: 95%;
	border-radius: 6px;
	min-width: 310px;
	min-height: 220px;
	text-align: center;
	max-width: 310px;
	border: 2px solid #5b4f0e;
	box-shadow: 8px 8px 8px #00000066;
	background-color: #00000099;
	color: #D7CDAD;
	transition: 0.5s;
}

#featuredTag {
	z-index: 3;
	top: 75px;
	right: 80px;
	font-size: 36px;
	position: fixed;
	text-align: center;
	font-family: 'Kaushan Script', cursive;
	text-shadow: #BBB 0 0 2px, #e9c81655 0 -1px 2px, #e9c81644 0 -3px 2px, rgba(0,0,0,0.8) 0 7px 4px;
	transition: 0.5s;
	opacity: 0;
}

#lot * {
	margin: 0;
	padding: 0;
}

	#lot-details {
		min-height: 20px;
		overflow-x: hidden;
		overflow-y: auto;
	}
	
	#lot-price {
		text-align: center;
		position: absolute;
		bottom: -2px;
		width: 100%;
		white-space: nowrap;
		overflow: hidden;
	}
	
	#lot-details {
		margin-top: 3%;
		padding-bottom: 15px;
	}

	#lot dl {
		margin-bottom: 1ex !important;
		list-style-type: none;
	}

	#lot dl.single {
		margin-bottom: 0.3ex !important;
	}	

		#lot-details * {
			line-height: 99.0%;
		}
	
		#lot dl dt {
			letter-spacing: -0.015em;
			word-spacing: -0.075em;
			margin-right: 0.3em;
			font-weight: bold;
			display: inline-block;
			text-align: center;
			width: 58% !important;
			vertical-align: top;
		}

		#lot dl dd {
			display: inline-block;
			width: 38% !important;
			text-align: left;
		}
	
	#lot h1 {
		font-size: 120%;
	}

	#lot h3 {
		margin-top: 1px;
		font-size: 90%;
		font-weight: normal;
		margin-bottom: 2px;
		color: #d4a409;
	}

	#lot h4 {
		font-weight: normal;
		font-size: 90%;
		margin-top: 1px;
		margin-bottom: 1px;
	}
	
	#lot-id {
		position: absolute;
		left: 1%;
		bottom: 10%;
		color: #f3be07;
		font-size: 70% !important;
		opacity: 0.25;
	}

	#lot-itemnum {
		position: absolute;
		right: 1%;
		bottom: 10%;
		color: #f3be07;
		font-size: 70% !important;
		opacity: 0.25;
	}
	
#mapContainer {
	position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    width: 300px;
    height: 300px;
    opacity: 0.5;
}

#spinner {
	z-index: 8;
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 55%;
    left: 38%;
    width: 60px;
    height: 60px;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 50%;
    border-top: 6px solid #af9800;
	border-right: 6px solid transparent;
    animation: spinner .6s linear infinite;
	opacity: 0.55;
	transition: 1s;
}
#spinnerText {
	z-index: 8;
    content: '';
    box-sizing: border-box;
    position: absolute;
	text-align: center;
    top: 57.25%;
    left: 35.75%;
    width: 150px;
    margin-top: -20px;
    margin-left: -20px;
	opacity: 0.55;
	transition: 1s;
}

@keyframes spinner {
  to {transform: rotate(360deg);}
}

#marketName {
	font-family: 'Kaushan Script', cursive;
	opacity: 0.8;
	display: inline-block;
	text-align: center;
	width: 100%;
	margin-top: 8%;
	font-size: 180%;
	text-shadow: #BBB 0 0 2px, #e9c81655 0 -1px 2px, #e9c81644 0 -3px 2px, rgba(0,0,0,0.8) 5px 7px 4px
}

#havenMap {
	border: 2px solid #5b4f0e;
	position: absolute;
	width: 280px;
	height: 280px;
	left: 320px;
	top: 250px;
	border-radius: 8px;
	box-shadow: 8px 8px 8px #00000066;
	opacity: 0.85;
	background: #00000099;
	padding: 4px;
}

.fadeOut {
	opacity: 0;
}

.fadeIn {
	opacity: 1;
}

#pageContainer {
	text-align: center;
	display: inline-block;
	font-size: 110%;
    margin-top: 4px;
}

#paginationBar {
	z-index: 3;
	overflow: hidden;
    width: 105%;
    height: 26px;
	background: #000;
	text-align: center;
	position: sticky;
    bottom: 0;
	opacity: 0;
	transition: 0.5s;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

#btnPrevious, #btnNext, #per1, #per2, #per3 {
	position:absolute;
	width: 10%;
	display: inline-block;
	text-align: center;
	height: 18px;
	cursor: pointer;
	font-weight: bold;
	border-radius: 5px;
	border: 2px solid #a9910f;
	background: #433004;
	line-height: 19px;
	font-size: 16px;
	text-shadow: 3px 1px #00000088;
	box-shadow: 3px 3px 4px #00000099;
	transition: 0.25s ease-in-out;
	top: 10%;
}

#perText {
	font-size: 12px;
	position: absolute;
	right: 16%;
	top: 22%;
}

#per1, #per2, #per3 {
	font-size: 10px;
	width: 3%;
	height: 12px;
	line-height: 12px;
	top: 22%;
}

#per1 {
	right: 12.5%;
}

#per2 {
	right: 8.75%;
}

#per3 {
	right: 5%;
}
#totalOffers {
	position: absolute;
	left: 1%;
	top: 24%;
	font-size: 12px;
}

#btnPrevious {
	left: 25%;
}

#btnNext {
	right: 25%;
}

#returnToFull {
	width: 90%;
	display: inline-block;
	text-align: center;
	height: 18px;
	cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #a9910f;
    background: #433004;
	line-height: 19px;
	font-size: 12px;
    text-shadow: 3px 1px #00000088;
	box-shadow: 3px 3px 4px #00000099;
	transition: 0.25s ease-in-out;
	right: 25%;
	top: 10%;
}

#returnToFull:hover {
	background: #272D67;
    transform: scale(1.05);	
}

.disableButton {
	cursor: default !important;
	opacity: 0.2;
}

#newsFeed {
	padding: 5px;
	text-align: center;
	width: 290px; 
	height:250px;
	position: fixed;
	right: 350px;
	top: 100px;
	background: #00000099;
	border: 2px solid #5b4f0e;
	box-shadow: 8px 8px 8px #00000066;
	border-radius: 6px;
	overflow-y: scroll;
	font-size: 16px;
	font-weight: bold;
}

#newsFeed h3 {
	font-size: 16px;
	color: #e9c816;
	line-height: 12px;
}

#newsFeed h4 {
	font-size: 10px;
	color: #a9910f;
	line-height: 0;
}

#newsFeed h5 {
	font-size: 12px;
	line-height: 13px;
}

#amenities {
	padding-top: 5px;
	text-align: center;
	width: 250px;
	height: 100px;
	position: absolute;
	right: 65px;
	bottom: 220px;
	background: #00000099;
	border: 2px solid #5b4f0e;
	box-shadow: 8px 8px 8px #00000066;
	border-radius: 6px;
	opacity: 0;
	transition: 0.75s;
}

#mapSVG {
	width: 100%;
	height: 100%;
	z-index: 3;
}
	
#mapSVG .SVGmarker {
	stroke-width:2.9;
}

#smelter, #kiln, #anvil {
	width: 50px;
	height: 50px;
	background-color: #fff;
	display: inline-block;
	margin-right: 5px;
	margin-left: 5px;
	font-size: 18px;
	line-height: 120px;
	margin-top: 5px;
}

#smelter {
	background: url('gfx/amenities/smelter.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position:center;
}

#kiln {
	background: url('gfx/amenities/Kiln.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position:center;
}

#anvil {
	background: url('gfx/amenities/Anvil.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position:center;
}