body {
	font-family: Calibri;
	font-size: 12px;
	color: #C1C6CF;
	margin: 3px;
	background-color: rgba(50, 50, 50, 0.8);
	background-image: url("../images/bg.jpg");
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center;
	background-size: cover;
	overflow: hidden;
}

html, body {
	height: 100%;
}

* {
	box-sizing: border-box;
	user-select: none;
}

hr {
	width: calc(100% - 5px);
	border: none;
	background-color: rgba(50,50,50,.80);
	height: 1px;
}

.video-bg {
	position: fixed;
	left: 0;
	top: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

a, a:hover {
	color: #EBEBEB;
}

/* Инвентарь */
.button1 {
	cursor: default;
	padding: 5px;
	color: #8FB93B;
	background-color: rgba(50,50,50,.60);
	position:absolute;
	bottom: 7px;
	right: 7px;
	border-radius: 3px;
}

.button1:hover {
	color: white;
	background: rgba(192,28,0,0.8);
}

.button2 {
	cursor: default;
	padding: 5px;
	color: #FFB000;
	background-color: rgba(50,50,50,.80);
	position: absolute;
	bottom: 7px;
	left: 7px;
	border-radius: 3px;
}

.button2:hover {
	color: white;
	background: rgba(192,28,0,0.8);
}

.product-inventory .description {
	box-sizing: border-box;
	cursor: default;
	position:absolute;
	top:7px;
	text-shadow: black 1px 1px 0px;
	background-color:rgba(50,50,50,.5);
	padding:3px 8px;
}

/* Конец инвентарь */

.menu {
	top: 3px;
	left: 3px;
	width: 170px;
	position: fixed;
}

.menu_item {
	background: rgba(50, 50, 50, 0.60);
	border-radius: 3px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	margin-bottom: 3px;
	display: flex;
	align-items: center;
}

.menu_item img {
	width: 32px;
	height: 32px;
	margin-right: 7px;
}

.menu_item:hover {
	background: rgba(192,28,0,0.8);
	color: #fff;
}

.menu_item.select {
	background: rgba(86,109,130,0.8);
	color: #fff;
}

.content {
	width: calc(100% - 173px);
	float: right;
	overflow: auto;
	height: calc( 100% - 3px);
}

.content.load {
	background-position: center;
    background-repeat: no-repeat;
	background-image: url(../images/loading_no_fon.svg);
}

.product .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: auto;
}

.log {
	position: absolute;
	top: 0;
	left: 0;
	text-align:center;
	display: none;
	cursor: default;
	z-index: 2;
	width: 100%;
	height: 24px;
}

.buy-true:first-letter {
	color: #8FB93B;
}

.buy-true {
	border-bottom: 1px solid #8FB93B;
	background-color: rgba(50,50,50,.75);
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 24px;
}

.buy-false:first-letter {
	color: red;
}

.buy-false .material-icons {
	color: red;
	font-size: 20px;
	position: absolute;
	right: 6px;
	top: 2px;
}

.buy-false {
	border-bottom: 1px solid red;
	background-color: rgba(50,50,50,.75);
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 24px;
}

.product {
	width: calc( 100% / 3 - 3px );
	height: 180px;
	background: rgba(50, 50, 50, 0.60);
	border-radius: 3px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	display: inline-block;
	margin-right:3px;
	margin-bottom:3px;
	position:relative;
	float: left;
	z-index: 1;
	overflow: hidden;
}

.product.shop:hover, .product.inventory:hover{
	background: rgba(192,28,0,0.8);
}

.product.shop:hover video {
	display: block;
}

.gray {
	opacity: 0.8;
	filter: grayscale(100%);
}

.product video {
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product.shop::before {
	border-radius: 5px;
	color: #FBB000;
	content: attr(data-price);
	font-weight: bold;
	box-sizing: border-box;
	cursor: default;
	position:absolute;
	top:10px;
	left:10px;
	text-shadow: black 1px 1px 0px;
	background-color:rgba(50,50,50,.5);
	padding:3px 10px;
	text-align: center;
	box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
}

.product.shop::after, .inventory:hover::after {
	content: attr(data-title);
	font-weight: bold;
	width: 100%;
	box-sizing: border-box;
	cursor: default;
	position:absolute;
	bottom:0px;
	left:0px;
	text-shadow: black 1px 1px 0px;
	background-color:rgba(50,50,50,.5);
	padding:7px 0;
	text-align: center;
	box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
}

.product img {
    position: absolute;
    margin: auto;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
	max-width: 100%;
	max-height: 100%;
	z-index: -1;
	pointer-events: none;
}

.msg-help {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
}

.msg-help img {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	height: 260px;
    border-radius: 10px;
	opacity: 0.9;
}

.msg-help span {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	text-shadow: black 1px 1px 0px;
	text-align: center;
	background: rgba(50, 50, 50, 0.60);
    border-radius: 10px;
	padding: 15px;
}

.favorites-icon {
	position:absolute;
	bottom:4px;
	right:10px;
	cursor: pointer;
	z-index: 1;
}

.favorites-icon.select {
	color: #FFB000;
}

.blocker {
	position:fixed;
	left:0px;
	top:0px;
	width:100%;
	height:100%;
	z-index:3;
	background-color: rgba(0, 0, 0, 0.85);
	display: flex;
    justify-content: center;
    align-items: center;
}

.info {
	height: 100%;
    min-width: 20%;
    position: fixed;
    top: 0;
    left: -20%;
    z-index: 3;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(50, 50, 50, 0.60);
    padding: 10px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.avatar {
	width: 32px;
	height: 32px;
	margin-right: 7px;
	border: 1px solid #566D82;
}

.user_item {
	color: #8FB93B;
	cursor: default;
	width: 100%;
	background: rgba(50, 50, 50, 0.60);
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	margin-bottom: 3px;
	position: relative;
	line-height: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.user_item span {
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.user_item.current {
	background: rgba(86,109,130,0.8);
}

.user_item:hover .icon-change-rcpt, .info .user_item:hover {
	background: rgba(192,28,0,0.8);
}

.info .user_item {
	padding: 5px;
	border-radius: 5px;
}

.icon-change-rcpt {
	color: #FBB000;
    border-left: 1px solid rgba(50, 50, 50, 1);
    padding: 4px;
}

.hide {
	display:none;
}

.copy {
	width: 180px;
	position: fixed;
	bottom: 5px;
	text-align: center;
}

::-webkit-scrollbar-button {
	background-size: calc(100% - 3px);
	background-position: center center;
	background-repeat: no-repeat;
	height: 12px;
	width: 12px;
}

::-webkit-scrollbar-button:vertical:increment {
	background-image: url(../images/scroll_down.png);
}

::-webkit-scrollbar-button:vertical:decrement {
	background-image: url(../images/scroll_up.png);
}

::-webkit-scrollbar {
	background-color: rgba(50,50,50,.6);
    width: 12px;
}

::-webkit-scrollbar-thumb {
	background-color: rgba(50,50,50,.8);
}

@media ( max-width: 768px ) {
	body {
		margin: 2px;
	}
	
	hr {
		display: none;
	}
	
	.product {
		width: calc(100%/2 - 3px);
	}
	
	.user_item {
		margin-bottom: 2px;
	}
	
	.menu {
		top: 2px;
		left: 2px;
		width: 150px;
	}
	
	.menu_item {
		margin-bottom: 2px;
	}
	
	.content {
		width: calc(100% - 153px);
	}
	
	.msg-help span {
		padding: 10px;
	}
}

@media ( min-width: 1080px ) {
	body {
		font-size: 14px;
	}
}

@media ( min-width: 1440px ) {
	body {
		font-size: 16px;
	}
	
	.product {
		width: calc(100%/4 - 3px);
	}
}
