html, body {
	background-color: #c1c7cb;
	font-family: 'Roboto';
	color: #333333;
	height: 100vh;
}

* {
	box-sizing: border-box;
	/* border: 1px solid red; */
}

btn:hover, .btn:focus { outline: none; text-decoration: none; } .btn { outline: none; text-decoration: none; }

.root {
	background: #f0f0f0;
	height: 100vh;
	color: #666666;
	text-align: center;
}

.root .cnt {
	width: 250px;
	padding-top: 10%;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
}

.root .cnt .btn {
	margin: 20px auto;
	width: 100%;
}

#wrapper{
	width: 100%;
	height: 100vh;
	display: grid;
	grid-template-columns: auto minmax(250px, 20%);
	grid-template-rows: 50px auto;
	grid-template-areas:
		"header header"
		"main side";
}

/*
	HEADER
*/
.header {
	grid-area: header;
	background: #343a40;
	border-bottom: 1px solid #7d8995;
	padding: 0px 10px;
}

.logo {
	display: block;
	text-align: center;
	filter: invert(100%);
}

/*
	MAIN
*/
.main {
	position: relative;
	grid-area: main;
	height: calc(100vh - 50px);
	overflow: auto;
	/* border-top: 1px solid #d1d6d9; */
	display: inline-grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	justify-items: center;
	align-items: center;
	background: rgba(160, 160, 160, 0.5);
}

.main .wait {
	position: absolute;
	display: flex;
	flex-direction: column;
	text-align: center;
	color: rgba(160, 160, 160, 1);
	text-shadow: 1px 1px 0px rgba(80, 80, 80, 0.6);
}

.main .wait i {
	font-size: 4rem;
}
.main .wait label {
	font-size: 2rem;
}

.main .toolbar {
	position: absolute;
	bottom: 10px;
	min-width: 40%;
	max-width: 60%;
	height: 60px;
	background: rgba(52, 58, 64, 0.7);
	border-radius: 20px;
	list-style: none;
	padding: 10px 20px;
	margin: 0px;
	z-index: 110;
}
.main .toolbar ul.actions {
	margin: 0px;
	padding: 0px;
}
.main .toolbar ul.actions > li {
	display: inline;
	margin: 0px 5px;
}
.main .toolbar ul.actions > li:last-child {
	float: right;
}

/*
	SIDE
*/
.side {
	grid-area: side;
	height: calc(100vh - 50px);
	padding: 5px;
}

.side .chat-cnt {
	display: block;
	padding: 10px;
	height: calc(100vh - 100px - 70px - 10px);
	background: rgba(52, 58, 64, 0.7);
}

/*
	VIDEO
*/
.video-container {
	width: 100%;
	z-index: 20;
}

#canvas {
	width: 100%;
	height: calc(100vh - 55px);
	position: absolute;
	top: 0px;
	left: 0px;
	border: 1px solid red;
}

.full-video {
	width: 100%;
	max-width: 100%;
	height: calc(100vh - 55px);
	display: block;
	overflow: hidden;
}

#cnt-mini-video {
	position: absolute;
	left: 10px;
	top: 5px;
	width: 160px;
	height: calc(100vh - 65px);
	display: flex;
	flex-direction: column-reverse;
}
.mini-video {
	/* position: absolute;
	left: 10px;
	bottom: 10px; */
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	overflow: hidden;
	background: rgba(160, 160, 160, 0.5);
	border: 2px solid rgba(160, 160, 160, 0.7);
	width: 160px;
	height: 120px;
	margin-top: 2px;
	display: block;
	opacity: 0.7;
	z-index: 20;
}

.full-video {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
}

.full-video  video,
.mini-video video {
		height: 100%;
		left: 0;
		object-fit: cover;
		top: 0;
		width: 100%;
}
.mini-video video {
	z-index: 10;
}

.mirror-mode{
	-ms-transform: scaleX(-1);
	-moz-transform: scaleX(-1);
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
}

#mnuColors .dropdown-item:hover {
	background: none;
}

#colorDivs {
	padding: 0px 10px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: auto;
	column-gap: 10px;
	row-gap: 10px;
	margin: 0px;
	justify-content: center;
}

/*
	CHAT
*/
#chat-container {
	position: relative;
	overflow: hidden
}
.chat-cnt {
	/* overflow-y: scroll; */
	max-width: 100%;
}
.chat-cnt .messages {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto;
	justify-items: start;
	max-width: 100%;
}

.chat-cnt .info {
	justify-self: center;
}

.chat-cnt .message.mine {
	justify-self: end;
}
.chat-cnt .info,
.chat-cnt .message {
	border-radius: 5px;
	padding: 5px 10px;
}
.chat-cnt .message {
	background: #007bff;
	text-align: left;
	max-width: 90%;
}
.chat-cnt .message.mine {
	background: #28a745;
	text-align: right;
}
.chat-cnt .message .text {
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.chat-cnt .message .time {
	font-size: 0.8rem;
}
.chat-cnt .message.image {
	padding: 0px;
	overflow: hidden;
}
.chat-cnt .message.image img {
	max-width: 100%;
	width: 100%;
}

.chat-cnt .message.file {
	text-align: center;
}

.chat-cnt .message.file .file-name {
	color: #ffffff;
	margin-top: 5px;
	margin-bottom: 5px;
}

.btn-file-icon {
	position: relative;
	overflow: hidden;
}

.btn-file-icon	input[type=file] {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 100%;
	min-height: 100%;
	font-size: 100px;
	text-align: right;
	filter: alpha(opacity=0);
	opacity: 0;
	outline: none;
	cursor: inherit;
	display: block;
}

#enable-translations {
	color: rgb(108, 117, 125);
	text-decoration:  none;
}
#enable-translations span:last-of-type {
	display: none;
}
#enable-translations.trans-enabled  {
	color: rgb(13, 110, 253)
}
#enable-translations.trans-enabled span:first-of-type {
	display: none;
}
#enable-translations.trans-enabled span:last-of-type {
	display: inline-block;
}


/*
	MISC
*/
.info-message {
	font-size: 2rem;
	color: rgba(90, 90, 90, 1);
	text-shadow: 1px 1px 0px rgba(80, 80, 80, 0.6);
}

.info-message a {
	text-decoration: none;
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
	.main .toolbar {
		width: 50%;
	}
}

.color-menu-item {
	width: 40px;
	height: 40px;
	border-radius: 20px;
	margin-bottom: 5px;
	margin-left: 2px;
	margin-right: 2px;
	display: flex;
	align-items: center;
}

.color-menu-item > i {
	color: white;
}
