﻿JbChat
{
	position: absolute;
	bottom: 250px;
	left: 100px;
	z-index: 100;
	padding: 10px;
	flex-direction: column;
	justify-content: flex-end;
	border-radius: 6px;
	background: none;
	width: 600px;
	font-family: Roboto;
	gap: 10px;
	user-select: all;
	
	max-height: 400px;

	textentry
	{
		opacity: 0;
		color: white;
		border-radius: 4px;
		padding: 5px 10px;
		font-size: 20px;
		flex-shrink: 0;
		flex-grow: 0;
		width: 100%;
		background-color: rgba(0, 0, 0, 0.7);
	}
	
	.chat_canvas
	{
		flex-direction: column;
		overflow: scroll;
	}

	&.open
	{
		background-color: rgba(0, 0, 0, 0.8);
		pointer-events: all;
		backdrop-filter: blur(10px);
		
		textentry
		{
			opacity: 1;
			backdrop-filter: blur( 10px );
		}
	}
}

JbChatMessage
{
	border-radius: 3px;
	color: white;
	transition: all 0.1s ease-out;
	max-height: 200px;
	margin-bottom: 4px;
	flex-shrink: 0;
	flex-grow: 0;
	padding: 12px;
	padding-left: 45px;
	min-height: 47px;
	max-width: 100%;
	
	font-size: 18px;

	&:intro
	{
		opacity: 0;
	}

	&:outro
	{
		opacity: 0;
		transition: all 2s ease-out;
	}

	image
	{
		width: 32px;
		height: 32px;
		min-height: 32px;
		border-radius: 16px;
		position: absolute;
		left: 6px;
		top: 6px;
	}
	
	&.new {
		background-color: rgba(0, 0, 0, 0.6);
		backdrop-filter: blur( 7px );
		border-radius: 6px;
	}

	&.hide {
		opacity: 0;
	}

	.name
	{
		padding-right: 10px;
		font-weight: 600;
		color: #ff7300;
		flex-shrink: 0;
	}

	.message
	{
		color: #ececec;
		flex-grow: 1;
	}

	&.noname .name
	{
		display: none;
	}

	&.noavatar image
	{
		display: none;
	}

	&.is-lobby
	{
		.name
		{
			color: #ff00ad;
		}
	}
}