.chatroom-wrapper {
	width: 100%;
	height: 100vh;
	background: #000;
	padding: 12px;
	box-sizing: border-box;
}

.chatroom-sidebar img{
	max-width: 100%;
	height: auto;
}

.chatroom-inner {
	display: flex;
	position: relative;
	background-image: url(../img/ui-border-top.png), url(../img/ui-border-right.png), url(../img/ui-border-bottom.png), url(../img/ui-border-left.png), url(../img/ui-bg-01.jpg);
	background-size: auto 6px, 6px auto, auto 6px, 6px auto, 540px auto;
	background-position: left top, right top, left bottom, left top, center;
	background-repeat: repeat-x, repeat-y, repeat-x, repeat-y, repeat;
	height: 100%;
}

/*
.logged-in .chatroom-wrapper {
	height: calc(100vh - 32px);
}
*/


.chatroom-sidebar {
	width: 320px;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.chatroom-chat {
	background-image: url(../img/ui-chat-top.png;);
	background-size: 100% auto;
	background-position: top left;
	background-repeat: no-repeat;
	flex-grow: 1;
	position: relative;
}

.chatroom-chat_bottom {
	position: absolute;
	bottom: 0;
	left: 0;
}

.chatroom-chat_send {
	margin-top: 14px;
}

.chatroom-main {
	flex-grow:1;
	height:100%;
	width: calc(100% - 320px);
	box-sizing: border-box;
	padding: 20px 20px 20px 0;
	position: relative;
}

.chatroom-main_inner {
	position: relative;
	height: calc(100% - 52px);
	margin-top: 52px;
	box-sizing: border-box;
	padding: 20px;
	background: #000;
	background-image: url(../img/ui-border2-top.png), url(../img/ui-border2-right.png), url(../img/ui-border2-bottom.png), url(../img/ui-border2-left.png);
	background-size: auto 12px, 12px auto, auto 12px, 12px auto;
	background-position: left top, right top, left bottom, left top;
	background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
}

.chatroom-map {
	width: 100%;
	height: 100%;
	overflow: auto;
	background: #000;
}

.chatroom-map.store__open {
	opacity: 0.25;
}

.chatroom-main_container {
	display:inline-block;
	position: relative;
	font-size: 0;
	overflow: hidden;
}

.restricted {
	position: absolute;
	top: 0;
	left: 0;
	z-index:10;
	background: red;
	opacity: 0;
}

.restricted:hover {
	opacity: 0;
}


.chatroom-ui_corner_lt {
	position: absolute;
	top: 0;
	left: 0;
	width: 12px;
	height: auto;
}

.chatroom-ui_corner_rt {
	position: absolute;
	top: 0;
	right: 0;
	width: 13px;
	height: auto;
}

.chatroom-ui_corner_lb {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 12px;
	height: auto;
}

.chatroom-ui_corner_rb {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 13px;
	height: auto;
}

.chatroom-ui_corner2_lt {
	position: absolute;
	top: 0;
	left: 0;
	width: 80px;
	height: auto;
}

.chatroom-ui_corner2_rt {
	position: absolute;
	top: 0;
	right: 0;
	width: 80px;
	height: auto;
}

.chatroom-ui_corner2_lb {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 80px;
	height: auto;
}

.chatroom-ui_corner2_rb {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 80px;
	height: auto;
}


/*======================= STATS ======================*/

.chatroom-stats {
	position: absolute;
	top: 20px;
	left: 0;
	width: 100%;
	height: 45px;
}

.chatroom-energy img{
	width: 201px;
	height: auto;
}

.chatroom-energy_text {
	position: absolute;
	height: 40px;
	display: flex;
	align-items: center;
	top: 0;
	left: 0;
	padding-left: 20px;
	font-family: Neucha;
	line-height: 1;
	color: #fff;
	font-size: 15px;
	letter-spacing: 0.5px;
}

.chatroom-rubies {
	position: absolute;
	top: -6px;
	right: 22px;
}

.chatroom-rubies_frame {
	height: 50px;
	width: auto;
}

.chatroom-rubies_shadows {
	height: 50px;
	width: auto;
	position: absolute;
	right: 0;
	top: 0;
}

.chatroom-rubies_labels {
	position: absolute;
	left: 18px;
	top: 46%;
	transform: translatey(-50%);
	color: #fff;
	font-size: 15px;
	font-family: Neucha;
	letter-spacing: 0.5px;
}

.chatroom-ruby {
	position: absolute;
	width: 33px;
	height: auto;
	top: 10px;
}

.chatroom-ruby.ruby__1 {
	left: 86px;
}

.chatroom-ruby.ruby__2 {
	left: 135px;
}

.chatroom-ruby.ruby__3 {
	left: 180px;
}

.chatroom-ruby.ruby__4 {
	left: 224px;
}

.chatroom-ruby.ruby__5 {
	left: 269px;
}

.chatroom-ruby_count {
	position: absolute;
	color: #fff;
	font-size: 12px;
	font-family: 'Neucha';
	bottom: 10px;
	z-index: 20;
	margin-left: 32px;
}


.chatroom-ruby_count.count__1 {
	left: 86px;
}

.chatroom-ruby_count.count__2 {
	left: 135px;
}

.chatroom-ruby_count.count__3 {
	left: 180px;
}

.chatroom-ruby_count.count__4 {
	left: 224px;
}

.chatroom-ruby_count.count__5 {
	left: 269px;
}




.chatroom-inventory {
	position: absolute;
	left: 20px;
	bottom: 60px;
	z-index: 99;
	margin: 20px;
}

.chatroom-inventory_backpack {
	width: 100px;
	height: auto;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 99;
}

.chatroom-inventory_bar {
	height: 50px;
	padding: 0 20px 0 80px;
	background-image: url(../img/ui_inventory_bar.png);
	background-size: auto 100%;
	background-position: top right;
	position: absolute;
	left: 30px;
	bottom: 20px;
	margin: 0;
	display: flex;
	flex-direction:row;
	align-items: center;
	list-style: none;
}

.chatroom-inventory_image {
	width: 42px;
	height: 42px;
	margin-right: 10px;
	object-fit: contain;
	cursor: pointer;
	transition: all 0.3s ease;
}

.chatroom-inventory_image:hover {
	filter: drop-shadow(0 0 6px rgba(255,255,255,0.85));
	transform: translatey(-6px);
	transition: all 0.3s ease;
}

.chatroom-inventory_image.disable {opacity: 0.5;}

/* ====================== GOBLINS ====================*/

.map-goblin {
	position: absolute;
	transform: translate(-50%, -100%);
	z-index: 20;
	cursor: pointer;
}

.map-goblin_image {
	width: auto;
	height: 180px;
}

.map-goblin_name {
	position: absolute;
	left: 50%;
	bottom: 100%;
	background: #fff;
	font-family: neucha;
	transform: translate(-50%,-50%);
	padding: 2px 8px;
	letter-spacing: 2px;
	border: 1px solid gray;
	font-size: 18px;
}


.map-goblin_description {
	width: 300%;
	position: absolute;
	top: 0;
	left: 100%;
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-family: neucha;
	padding: 10px 20px 20px 20px;
	margin-left: 20px;
	opacity: 0;
	transform: translatex(-100%) scale(0.1,1);
	transition: all 0.6s ease;
	z-index: 0;
	font-size: 14px;
}

.show_info .map-goblin_description {
	opacity: 1;
	transform: translatex(0)  scale(1,1);
	transition: all 0.6s ease;
	z-index: 30;
}



.map-item {
	position: absolute;
	width: 60px;
	height: 60px;
	transform: translate(-50%, -100%);
	z-index: 1;
	cursor: pointer;
}

.map-item_image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}





/* ================   STORE   =============== */

.chatroom-store_wrapper {
	position: absolute;
	top: 85px;
	left: 16px;
	width: calc(100% - 51px);
	height: calc(100% - 120px);
	box-sizing: border-box;
	z-index: 99;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	background: rgba(0,0,0,0.6);
	display: none;
}

.chatroom-store_wrapper.open {
	display: flex;
}

.chatroom-store_toggle {
	position: absolute;
	top: 13px;
	left: 250px;
	font-family: Neucha;
	line-height: 1;
	color: #fff;
	font-size: 15px;
	letter-spacing: 0.5px;
	border-bottom: 1px dashed #fff;
}

.chatroom-store {
	display: none;
	width: 670px;
	height: 450px;
	background-image: url(../img/store-bg.png);
	background-size: contain;
	position: relative;
	z-index: 9999;
	padding: 50px 30px 10px 30px;;
	box-sizing: border-box;
}

.chatroom-store_wrapper.open .chatroom-store {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.chatroom-store_title {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	text-align: center;
	font-size: 32px;
	line-height: 1;
	margin: 0;
	padding: 6px 0 0 0;
	font-weight: bold;
	color: #fff;
	font-family: Neucha;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.6);
}

.store-item {
	width: 106px;
	height: 113px;
	background-image: url(../img/store-slot.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: 7px 20px;
	position: relative;
}

.store-item_image {
	position: absolute;
	left: 30px;
	top: 24px;
	width: calc(100% - 60px);
	height: calc(100% - 60px);
	object-fit: contain;
}

.low__energy .store-item_image {
	opacity: 0.25;
}

.store-item_price {
	position: absolute;
	bottom: 3px;
	left: 50%;
	transform: ranslatex(-50%);
	color: #fff;
	font-family: Neucha;
	font-size: 14px;
}

.store-item_buy {
	background: rgba(0,0,0,0.8);
	border-radius: 6px;
	color: #fff;
	display: inline-block;
	padding: 6px 12px;
	width: 60%;
	position: absolute;
	transition: all 0.3s ease;
	opacity: 0;
	top: 60%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: Neucha;
	text-align: center;
	cursor: pointer;
}

.store-item:hover .store-item_buy {
	opacity: 1;
	top: 90%;
}

.low__energy .store-item_buy {
	display: none;
}




/*===================== Interior Items =============================*/

.interior-item {
	position: absolute;
	transition: opacity 0.6s ease;
	opacity: 1;
	z-index: 9999;
}

.interior-item:hover {
	transition: all 0.6s ease;
	opacity: 0.2;
}

.interior-item.on__back {
	z-index: 50;
}

.origin {
	position: absolute;
	z-index: 55;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: yellow;
}



/*=======================================*/

.ui-goblins {
	position: absolute;
	z-index: 999;
	top: 90px;
	left: 20px;
	overflow: hidden;
	padding: 8px;
}

.ui-goblin {
	width: 72px;
	position: relative;
	float: left;
	margin-right: 12px;
}

.ui-goblin_frame {
	max-width: 100%;
	height: auto;
	position: absolute;
}

.ui-goblin_image {
	max-width: 86%;
	height: auto;
	margin: 7%;
}

.ui-goblin_count {position: absolute; bottom: 0; right: 0; display: none;}
.ui-goblin_count span {background-color: #fff; padding: 1px 5px; border-radius: 5px;}
