/**
 * Description: CSS.
 *
 * CSS version for appearance light.
 *
 * @category   webrtc2-light.css
 * @package    WP-WebRTC2
 * @author     Oleg Klenitskiy <klenitskiy.oleg@mail.ru>
 * @version    1.3.0
 * @license    GPLv2 or later
 */

.webrtc2_container {
	display: flex;
	background-color: transparent;
	height: 100%;
	max-width: 725px;
	border: 1px solid black;
	flex-basis: 100%;
	flex-flow: row wrap;
	justify-content: center;
	padding:1px;
}
.item {
	display: flex;
	border: 1px solid black;
}
.item:nth-child(1) {
	display: flex;
	position: relative;
	background-color:#565656;
	flex-basis: 100%;
	height: auto;
	padding: 0;
	margin-bottom: 2px;
}
.item:nth-child(2) {
	display: flex;
	background-color: transparent;
	flex-basis: 100%;
	flex-flow: row nowrap;
	justify-content: space-between;
	height: auto;
	padding: 0;
	margin-bottom: 2px;
}
.item2subitem:nth-child(1) {
	display: flex;
	background-color:#565656;
	flex-basis: 45%;
}
.item2subitem:nth-child(2) {
	display: flex;
	background-color:#565656;
	justify-content: center;
	flex-basis: 9.5%;
	flex-flow: row wrap;
}
.item2subitem:nth-child(3) {
	display: flex;
	background-color:#565656;
	flex-basis: 45%;
}
.item:nth-child(3) {
	position: relative;
	display: flex;
	background-color: transparent;
	justify-content: center;
	height: 125px;
	flex-basis: 100%;
	margin-bottom: 2px;
}
.item3subitem:nth-child(1) {
	display: flex;
	position:relative;
	background-color: transparent;
	flex-basis: 90.5%;
}
.item3subitem:nth-child(2) {
	display: flex;
	background-color:#565656;
	flex-basis: 9.5%;
	justify-content: center;
	flex-flow: row wrap;
}
.item3subitem:nth-child(3) {
	position: absolute;
	display: flex;
	background-color: transparent;
	flex-basis: 100%;
	justify-content: space-between;
	flex-flow: row nowrap;
	width: 100%;
	height: inherit;
}
.graph_local {
	display: flex;
	flex-flow: row wrap;
	flex-basis: 45%;
	height: 122px;
	background-color:#565656;
}
.graph_cmd {
	display: flex;
	flex-basis: 9.5%;
	flex-flow: row wrap;
	justify-content: center;
	height: 122px;
	background-color:#565656;
}
.graph_remote {
	display: flex;
	flex-flow: row wrap;
	flex-basis: 45%;
	height: 122px;
	background-color:#565656;
}
#graph_title_local, #graph_title_remote {
	color:white;
	font-size: calc(0.6vh + 0.6vw);
	font-weight: normal;
	height: 15px;
}
#graph_legend_local, #graph_legend_remote {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	flex-basis: 100%;
	align-self: flex-end;
	height: 15px;
}
#local_legend1, #local_legend2, #remote_legend1, #remote_legend2 {
	color:white;
	font-size: calc(0.6vh + 0.6vw);
	font-weight: normal;
}
#canvas_local, #canvas_remote {
	width: 100%;
	height: fit-content;
	overflow: hidden;
}
.item:nth-child(4) {
	position: relative;
	display: flex;
	background-color: transparent;
	justify-content: space-between;
	flex-basis: 100%;
	flex-flow: row nowrap;
	padding: 0;
	margin-bottom: 2px;
}
.item4subitem:nth-child(1) {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	height: 200px;
	flex-basis: 49.8%;
	background-color: #565656;
}
.item4subitem:nth-child(2) {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	height: 200px;
	flex-basis: 49.8%;
	background-color: #565656;
}
/* video-chat control panel buttons */
.btn {
	display: inline-block !important;
	font-size: 12px !important;
	height: auto;
	flex-basis : 90%;
	border: 1px solid transparent !important;
	padding:0 !important;
	margin: 2px 0;
	color: white;
	text-shadow: 1px 1px 1px #000;
	border-radius: 0.25rem !important;
	background-color: #767676;
	background-image: linear-gradient(to top left,
	                              rgba(0, 0, 0, .2),
	                              rgba(0, 0, 0, .2) 30%,
	                              rgba(0, 0, 0, 0));
	box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6), inset -2px -2px 3px rgba(0, 0, 0, .6);
	font-size: calc(0.7vh + 0.7vw);
}
.btn:hover {
	background-color: #A5A39D;
	cursor: pointer;
}
.btn:active {
	box-shadow: inset -2px -2px 3px rgba(200, 200, 200, .6), inset 2px 2px 3px rgba(0, 0, 0, .6);
}
.btn:disabled {
	opacity: 0.7;
}
/* countdown timer */
#clockdiv {
	height: auto;
	flex-basis : 90%;
	border: 0;
	padding:0;
	margin-bottom: 2px;
	color: white;
	text-shadow: 1px 1px 1px #000;
	background-color: #767676;
	background-image: linear-gradient(to top left,
	                              rgba(0, 0, 0, .2),
	                              rgba(0, 0, 0, .2) 30%,
	                              rgba(0, 0, 0, 0));
	box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6), inset -2px -2px 3px rgba(0, 0, 0, .6);
	font-size: calc(0.6vh + 0.6vw);
	text-align: center;
	cursor: default;
}
#record {
	display: flex;
	border: 1px solid #000;
	border-radius: 3px;
	box-shadow: inset 0 2px 10px 1px rgba(0,0,0,.3), inset 0 0 0 60px rgba(0,0,0,.3), 0 1px rgba(255,255,255,.08);
	background: linear-gradient(rgb(170,170,170), rgb(120,120,120));
	color: #ccc;
	justify-content: center;
	flex-flow: row wrap;
}
#record_caption {
	font-size: calc(0.6vh + 0.6vw);
	color: brown;
	text-align: center;
	margin: 0;
	padding:0;
	font-weight: bold;
}
#win1_video, #win2_video {
	position:absolute;
	height: 100%;
	width: 100%;
	object-fit: cover;
	z-index: 0;
}
/* webrtc stats */
.stats {
	display: flex;
	flex-basis: 100%;
	justify-content: center;
	font-weight: bold;
	font-size: calc(0.7vh + 0.7vw);
	line-height: normal;
	color: white;
	z-index: 1;
}
#wins1_ticker, #wins2_ticker {
	font-size: calc(0.6vh + 0.6vw);
	margin-bottom: 10px;
	padding:0;
}
/* video-chat window number */
.win_head {
	display: flex;
	flex-flow: row nowrap;
	padding-left: 7px;
	font-size: calc(0.7vh + 0.7vw);
	text-align: center;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50px;
	box-shadow: inset -5px -5px 5px #000, 2px 2px 5px white, inset 0px 0px 5px white;
	z-index: 1;
}
.win_head:hover {
	cursor: pointer;
}
/* pull-down menu for win1_video */
#win1_menu {
	cursor: pointer;
	visibility: hidden;
	text-align: center;
	font-size: calc(0.7vh + 0.7vw);
	padding-left: 10px;
	width: 80px;
	height: 20px;
	border-radius: 10px;
	color: white;
	background-color: transparent;
	z-index: 1;
}
/* video-chat participant name */
.member_head {
	font-size: calc(0.7vh + 0.7vw);
	color: white;
	height: 20px;
	border-radius: 50px;
	z-index: 1;
}
#wins1_bitrate, #wins2_bitrate, #wins1_audio, #wins2_audio {
	width:12px;
	height:51px;
	border:1px solid black;
	z-index: 1;
}
.webrtc2_container .avatar {
	vertical-align: middle;
	border-radius: 50px;
	width:20px;
	height:20px;
}
#wins1_table1 #wins1_thead1 tr, #wins1_table1 #wins1_tbody1 tr,
#wins1_table2 #wins1_thead2 tr, #wins1_table2 #wins1_tbody2 tr {
	display: inline-table;
	width: 100%;
	background-color: #565656;
}
#wins1_table1, #wins1_table2 {
	border:none;
	border-collapse: collapse;
	display: table;
	padding: 0;
	margin: 0;
}
#wins1_table1 tr, #wins1_table2 tr {
	border-bottom: 1px solid black;
}
#wins1_table1 td, #wins1_table2 td {
	border:none !important;
}
.caption_tbl {
	display: table-caption;
	text-align: center;
	caption-side: top;
	height: 23px;
	color: white;
	font-size: calc(0.7vh + 0.7vw);
	background-color: #5D5D5D;
	padding: 0;
	margin: 0;
	border:none;
}
#wins1_thead1, #wins1_thead2 {
	display: block;
	color: white;
}
#wins1_thead1 th, #wins1_tbody1 td, #wins1_tfoot1 td,
#wins1_thead2 th, #wins1_tbody2 td, #wins1_tfoot2 td {
	height: 23px;
	font-size: calc(0.7vh + 0.7vw);
	padding: 0 !important;
	margin: 0 !important;
}
#wins1_tbody1 {
	display: block;
	height: 120px;
	overflow-y: auto;
	font-size: calc(0.7vh + 0.7vw);
  color: white;
  border-bottom: 1px solid black;
}
#wins1_tbody2 {
	display: block;
	height: 48px;
	font-size: calc(0.7vh + 0.7vw);
  color: white;
  border-bottom: 1px solid black;
}
#wins1_tbody1 input[type="checkbox"], #wins1_tbody2 input[type="checkbox"] {
	vertical-align: middle;
	width:16px;
	height:16px;
	padding: 0;
	margin: 0;
}
#wins1_tbody1 img, #wins1_tbody2 img {
	vertical-align: middle;
	padding: 0;
	margin: 0;
	display:inline-block;
}
#img_file_select {
	display: inline-block;
	margin: 0 0 0 5px;
	padding:0;
}
#wins1_tfoot1, #wins1_tfoot2 {
	font-size: calc(0.7vh + 0.7vw);
	color: white;
}
#wins1_tfoot1 td, #wins1_tfoot2 td {
	display: flex;
}
#wins1_tfoot1 tr, #wins1_tfoot2 tr {
	border-bottom: 1px solid black;
}
/* search boxes by name and text message input for text chat */
#fld_search_user, #fld_file_attach, #fld_send_msg {
	display: block;
	color:white;
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	padding: 0;
	margin: 2px 0;
	height:20px;
	min-height:20px;
	width:100%;
	z-index:1;
}
#for_fld_file_attach {
	position: absolute;
	width: 80%;
	display: block;
	color: #ccc;
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	overflow: hidden;
	padding: 0;
	margin: 0;
	height: 20px;
	border: 1px solid black;
	box-shadow: inset 0 2px 10px 1px rgba(0,0,0,.3), inset 0 0 0 60px rgba(0,0,0,.3), 0 1px rgba(255,255,255,.08);
	background: linear-gradient(rgb(170,170,170), rgb(120,120,120));
	text-align: left;
	cursor: pointer;
}
#btn_search_user, #btn_send_file, #btn_send_msg {
	flex-basis: 25%;
	margin:0;
}
#fld_search_user, #fld_send_msg {
	border: 1px solid black;
	border-radius: 3px;
	box-shadow: inset 0 2px 10px 1px rgba(0,0,0,.3), inset 0 0 0 60px rgba(0,0,0,.3), 0 1px rgba(255,255,255,.08);
	background: linear-gradient(rgb(170,170,170), rgb(120,120,120));
	color: #ccc;
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	transition: .5s linear;
}
#fld_search_user:focus, #fld_send_msg:focus {
  outline: none;
  box-shadow: inset 0 1px 3px 1px  rgba(0,0,0,.5), inset 0 0 0 60px rgba(0,0,0,0), 0 1px rgba(255,255,255,.08);
}
.progress_chrome {
	position: absolute;
	visibility: hidden;
	z-index:1;
	width: 79%;

	top:-8px;
	height: 40px;
}
.label_chrome {
	position: absolute;
	visibility: hidden;
	width: 80%;
	text-align: center;
	font-size: calc(0.7vh + 0.7vw);
	color: black;
	z-index:2;

	top: 3px;
	height: 20px;
}
.progress_firefox {
	position: absolute;
	visibility: hidden;
	z-index:1;
	width: 79%;

	top: 3px;
	height: 20px;
}
.label_firefox {
	position: absolute;
	visibility: hidden;
	width: 80%;
	text-align: center;
	font-size: calc(0.7vh + 0.7vw);
	color: black;
	z-index:2;

	top: 3px;
	height: 20px;
}
.progress_opera {
	position: absolute;
	visibility: hidden;
	z-index:1;
	width: 79%;

	height: 25px;
}
.label_opera {
	position: absolute;
	visibility: hidden;
	width: 80%;
	text-align: center;
	font-size: calc(0.7vh + 0.7vw);
	color: black;
	z-index:2;

	top: 3px;
	height: 20px;
}
.progress_edge {
	position: absolute;
	visibility: hidden;
	z-index:1;
	width: 79%;

	top: -6px;
	height: 35px;
}
.label_edge {
	position: absolute;
	visibility: hidden;
	width: 80%;
	text-align: center;
	font-size: calc(0.7vh + 0.7vw);
	color: black;
	z-index:2;

	top: 3px;
	height: 20px;
}
.progress_yandex {
	position: absolute;
	visibility: hidden;
	z-index:1;
	width: 79%;

	top:-8px;
	height: 40px;
}
.label_yandex {
	position: absolute;
	visibility: hidden;
	width: 80%;
	text-align: center;
	font-size: calc(0.7vh + 0.7vw);
	color: black;
	z-index:2;

	top: 3px;
	height: 20px;
}
.slogan {
	background-color: #565656;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, .8), -1px -1px 1px rgba(255, 255, 255, .8), 1px 2px 1px rgba(0, 0, 0, 1);
	color: #aaa;
	font-size: calc(1vh + 1vw);
	font-weight: bold;
}
.item ::-webkit-scrollbar-button {
	width: 16px;
	height: 16px;
	background-color: #232326;
}
/* Цвет дорожки, по которой двигается бегунок прокрутки. */
.item ::-webkit-scrollbar-track {
	background-color: #2A2A2B;
}
/* Цвет бегунка полосы, а так же его закругление. */
.item ::-webkit-scrollbar-thumb {
	background-color: #7D7D7E;
	box-shadow: inset 0 2px 10px 1px rgba(0,0,0,.3), inset 0 0 0 60px rgba(0,0,0,.3), 0 1px rgba(255,255,255,.08);
}
/* Цвет бегунка при наведении на него курсора. */
.item ::-webkit-scrollbar-thumb:hover {
	background-color: #676768;
}
/* Основная ширина полосы прокрутки. */
.item ::-webkit-scrollbar {
	width: 16px;
}
/* video stream window for webcam */
@supports not (-moz-appearance:none) {
	#win1_video, #win2_video {
		transform: scaleX(-1);
		-o-transform: scaleX(-1);
		-ms-transform: scaleX(-1);
		-moz-transform: scaleX(-1);
		-webkit-transform: scaleX(-1);
	}
}
#win1_video::-webkit-media-controls, #win2_video::-webkit-media-controls {
	transform: scaleX(-1);
	-o-transform: scaleX(-1);
	-ms-transform: scaleX(-1);
	-moz-transform: scaleX(-1);
	-webkit-transform: scaleX(-1);
}
/* video stream window for screen share */
#win1_video_screen, #win2_video_screen {
	position:absolute;
	max-width: 100%;
	width: 733px;
	height: 100%;
	left: 0; right: 0; top: 0; bottom:0;
	z-index: 0;
	object-fit: cover;
}
#fld_dump, #fld_chat {
	display: block;
	flex-direction: column;
	justify-content: left;
	position:absolute;
	background-color:#565656;
	overflow-y: auto;
	line-height: 1.5;
	height: 100%;
	width: 100%;
}
#lbl_fld_dump, #lbl_fld_chat {
	width:120px;
	height:20px;
	color:white;
	font-weight:normal;
	white-space: nowrap;
}
/* Progressbar for #fld_dump */
#progress_dump {
	border-bottom: 1px dotted green;
	margin: 0 0 0 -10px !important;
	background-color: #565656 !important;
	height:20px;
	visibility: hidden;
}
.sk-wave {
	width: 6em;
	height: 1.5em;
	margin: auto;
	text-align: center;
	font-size: 1em;
}
.sk-wave .sk-rect {
	background-color: #337ab7;
	height: 100%;
	width: .5em;
	display: inline-block;
	-webkit-animation: sk-wave-stretch-delay 1.2s infinite ease-in-out;
	animation: sk-wave-stretch-delay 1.2s infinite ease-in-out;
}
.sk-wave .sk-rect-1 {
	-webkit-animation-delay: -1.2s;
	    	animation-delay: -1.2s;
}
.sk-wave .sk-rect-2 {
	-webkit-animation-delay: -1.1s;
	    	animation-delay: -1.1s;
}
.sk-wave .sk-rect-3 {
	-webkit-animation-delay: -1s;
	    	animation-delay: -1s;
}
.sk-wave .sk-rect-4 {
	-webkit-animation-delay: -0.9s;
	    	animation-delay: -0.9s;
}
.sk-wave .sk-rect-5 {
	-webkit-animation-delay: -0.8s;
	    	animation-delay: -0.8s;
}

@-webkit-keyframes sk-wave-stretch-delay {
	0%, 40%, 100% {
	-webkit-transform: scaleY(0.4);
	        transform: scaleY(0.4);
	}
	20% {
	-webkit-transform: scaleY(1);
	        transform: scaleY(1);
	}
}

@keyframes sk-wave-stretch-delay {
	0%, 40%, 100% {
	-webkit-transform: scaleY(0.4);
	        transform: scaleY(0.4);
	}
	20% {
	-webkit-transform: scaleY(1);
	        transform: scaleY(1);
	}
}
/* prime msg for protocol of dump */
.prime_msg{
	display: flex;
	height:20px;
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	width:100%;
}
.childs_msg {
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: black;
	width:100%;
}
.err {
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: yellow;
	width:100%;
}
.msg {
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: black;
	width:100%;
}
.mod {
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: Silver;
	width:100%;
}
/* collapse and expand text in the message box */
/* hide checkboxes and content blocks */
.hide {
	display: none;
}
.hide + label + #sdp, .hide + label + #ice, .hide + label + #con_stats{
	display: none;
}
#ice th, #ice td, #con_stats th, #con_stats td {
	border: 1px dotted green !important;
	color: white;
}
/* make label text */
#fld_dump span, #fld_chat span {
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	color: blue;
	float: left;
	margin-right: 5px;
}
#fld_dump label, #fld_chat label {
	font-size: calc(0.7vh + 0.7vw);
	margin:0;
}
.hide + label {
	font-size: calc(0.7vh + 0.7vw);
	padding: 0;
	color: black;
	cursor: pointer;
	display: inline-block;
	width: 84%;
}
.autoresponder {
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: lime;
	display: inline-block;
	width: 100%;
}
/* label text view when radio button is active */
.hide:checked + label {
	color: red;
	border-bottom: 0;
}
/* when the checkbox is active, we show the blocks with the content */
.hide:checked + label + #ice, .hide:checked + label + #con_stats, .hide:checked + label + #sdp {
	color: white;
	font-size: calc(0.6vh + 0.6vw);
	word-wrap: break-word;
	width: 100%;
	display: inline-table;
	background: #565656;
	-webkit-box-shadow: inset 3px 3px 10px #000000;
	box-shadow: inset 3px 3px 10px #000000;
	margin: 0;
	border: 0;
	/* a little animation when */
	-webkit-animation:fade ease-in 0.5s;
	-moz-animation:fade ease-in 0.5s;
	animation:fade ease-in 0.5s;
}
/* animation when hidden blocks appear */
@-moz-keyframes fade {
	from { opacity: 0; }
	to { opacity: 1 }
}
@-webkit-keyframes fade {
	from { opacity: 0; }
	to { opacity: 1 }
}
@keyframes fade {
	from { opacity: 0; }
	to { opacity: 1 }
}
.hide + label:before {
	background-color: #1e90ff;
	color: #fff;
	content: "\002B";
	display: block;
	float: left;
	font-weight:normal;
	height: 14px;
	line-height: 14px;
	margin: 0;
	padding: 0;
	text-align: center;
	width: 14px;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	margin: 2px 2px 0 0;
}
.hide:checked + label:before {
	content: "\2212";
}
.smoothie-chart-tooltip {
	background: #565656;
	padding: 1em;
	margin-top: 20px;
	font-family: consolas;
	color: white;
	font-size: calc(0.6vh + 0.6vw);
	pointer-events: none;
}
.blinking{
	animation:blinkingText 0.8s infinite;
}
@keyframes blinkingText{
	50%{	color: lightgreen;	}
	100%{	color: green;	}
}
