/* Style scrollbar elements */

::-webkit-scrollbar,
.iScrollHorizontalScrollbar,
.iScrollVerticalScrollbar
{
	height: 12px;
	width: 12px;
	background: transparent;
	overflow: visible;
}


::selection
{
	background: rgb(84, 165, 212);
	text-shadow: 1px 1px 2px #000000aa;
	color: #fff;
}

/*::-webkit-scrollbar-track
{
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}*/

.iScrollHorizontalScrollbar
{
	position: absolute;
	left: 2px;
	right: 2px;
	bottom: 2px;
	width: 100%;
}

.iScrollVerticalScrollbar
{
	position: absolute;
	bottom: 2px;
	top: 2px;
	right: 2px;
	height: 100%;
}

::-webkit-scrollbar-thumb,
.iScrollIndicator
{
	background: #373B42;
	border-radius: 2px;
	margin: 4px;

	/*box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, .25);*/
}

::-webkit-scrollbar-thumb
{
	min-height: 32px;
	min-width: 32px;
}

.iScrollIndicator
{
	width: 8px;
	margin: 1px;
	position: absolute;
}

::-webkit-scrollbar-thumb:hover,
.iScrollIndicator:hover
{
	background: #4E5157;
}

::-webkit-scrollbar-corner
{
	background: #202020;
}

.contextMenu
{
	position: absolute;

	background: radial-gradient(ellipse farthest-corner at 50% 0%, rgb(60, 64, 71) 0%, rgb(60, 64, 71) 50%, rgb(51, 54, 61) 100%);
	box-shadow: 0 10px 32px 0px #000000ab;
	opacity: 1.0;

	transition: opacity 200ms;

	z-index: 200;
	user-select: none;
	padding: 4px;
}

.web_chat_frame .contextMenu
{
	max-height: calc( 100% - 128px ) ;
	overflow-y: auto;
	overflow-x: hidden;
}

html.ContextMenuPopup .contextMenu
{
	position: static;
	box-shadow: none;
	display: inline-block;
	padding: 0;
}

html.ContextMenuPopup .contextMenu .contextMenuContents
{
	padding: 4px;
}

html.ContextMenuPopup .contextMenu .contextMenuItem
{
	min-width: fit-content;

}

.contextMenuItem
{
	min-width: 120px;
}

.contextMenuItem.noPermission
{
	opacity: .4;
	cursor: default;
	pointer-events: none;
	user-select: none;
}

.contextMenuItem.noPermission .SVGIcon_Lock
{
	width: 12px;
	height: 12px;
	margin-right: 4px;
	margin-bottom: -1px;
}

.ContextMenuFocusContainer:focus
{
	outline: none;
}

.contextMenuContents
{
	display: flex;
	flex-direction: column;
	padding: 0px;
	font-size: 14px;
	-webkit-app-region: no-drag;
}

.contextMenu:not(.visible)
{
	opacity: 0;
	pointer-events: none;
}

.contextMenuContents .contextMenuGameName
{
	color: #cbdde4;
}

.contextMenu .contextMenuItem {
	padding: 4px 6px;
	line-height: 20px;
	color: #9ca4a7;
	border-top: 0.5px solid rgba(80, 87, 94, 0.5);
	border-bottom: 0.5px solid rgba( 80, 87, 94, 0);
	cursor: default;
	position: relative;
}

.contextMenuContents .contextMenuItem:first-child
{
	border-top: 0.5px solid rgba( 80, 87, 94, 0);
}

.contextMenu .contextMenuItem:hover,
.contextMenu .contextMenuItem.active
 {
	background: rgb(90, 96, 105);
	color: #b8c5c9;
}

.contextMenu .contextMenuItem.contextMenuUnselectable:hover {
	background: rgba(0, 0, 0, 0);
	color: #9ca4a7;
}

.contextMenu .contextMenuItem.disabled {
	background: none;
	color: #6b7072;
	cursor: default;
	pointer-events: none;
}

.contextMenu .contextMenuItem.disabled:hover {
	background: none;
	color: #6b7072;
	cursor: default;
}

.contextMenuItem.menuChecked
{
	color: rgb(109, 207, 246);
}

.contextMenuCheckMark
{
	width: 4px;
	height: 18px;
	background-color: rgb(109, 207, 246);
	min-height: 1px;
	display: inline-block;
	position: absolute;
	left: -4px;
	margin-top: 0px;
	display: none;
}

.contextMenuItem.menuChecked .contextMenuCheckMark
{
	display: block;
}

.contextMenuSectionHeader
{
	max-width: 190px;
	line-height: 20px;
	-webkit-mask: linear-gradient( to right, rgba( 0, 0, 0, 1 ) 85%,rgba( 0, 0, 0, 0 ) 100% );
	mask: linear-gradient( to right, rgba( 0, 0, 0, 1 ) 85%,rgba( 0, 0, 0, 0 ) 100% );
	white-space: nowrap;
}

.contextMenuSectionContent
{
	display: flex;
	flex-direction: column;
}

.contextMenuSectionContent .contextMenuItem
{
	border-top: none;
	display: block;
}

.contextMenuContents .contextMenuLabel
{
	font-size: 12px;
	line-height: 25px;
	padding-left: 6px;
}

.contextMenuContents .contextMenuLabel.contextMenuNotAFriend
{
	text-transform: uppercase;
	font-size: 12px;
	color: rgba( 184, 156, 80, .75 );
}

.contextMenuContents .recentName
{
	margin: 4px;
	color: #ccc;
}

.contextMenuContents .contextMenuItem.notFriends.disabled
{
	color: #666;
	border-color: transparent;
}

.flexRow
{
	display: flex;
	flex-direction: row;
}

.flexRowCentered
{
	display: flex;
	flex-direction: row;
	align-items: center;
}



.flexColumn
{
	display: flex;
	flex-direction: column;
}

.ContextMenuMouseOverlay {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	z-index: 199;
}

.scrollMaskVertical
{
	-webkit-mask: linear-gradient( 0deg, rgba( 0, 0, 0, 0 ) 0px, rgba( 0, 0, 0, 1 ) 16px, rgba( 0, 0, 0, 1 ) calc( 100% - 8px), rgba( 0, 0, 0, 0 ) 100% );
	mask: linear-gradient( 0deg, rgba( 0, 0, 0, 0 ) 0px, rgba( 0, 0, 0, 1 ) 16px, rgba( 0, 0, 0, 1 ) calc( 100% - 8px), rgba( 0, 0, 0, 0 ) 100% );
}

.SVGIcon_Button
{
	fill: #ffffff;
	overflow: visible;
	width: 100%;
	height: 100%;
	max-width: 320px;
	max-height: 320px;
}

.crossfade
{
	position: relative;
	overflow: hidden;
}

.crossfade-anim-exit
{
	opacity: 1;
	transition-timing-function: linear;
	transition-property: opacity;
}

.crossfade-anim-exit-active
{
	opacity: 0.01;
}

.crossfade-img
{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;

	background-size: cover;
}

