/**
 * Description: CSS.
 *
 * CSS version for appearance dark.
 *
 * @category   webrtc2-dark.css
 * @package    WP-WebRTC2
 * @author     Oleg Klenitskiy <klenitskiy.oleg@mail.ru>
 * @version    1.2.0
 * @license    GPLv2 or later
 */

#win_main ::-webkit-scrollbar-button {
	width: 16px;
	height: 16px;
	background-color: #232326;
}
/* Цвет дорожки, по которой двигается бегунок прокрутки. */
#win_main ::-webkit-scrollbar-track {
	background-color: #2A2A2B;
}
/* Цвет бегунка полосы, а так же его закругление. */
#win_main ::-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);
}
/* Цвет бегунка при наведении на него курсора. */
#win_main ::-webkit-scrollbar-thumb:hover {
	background-color: #676768;
}
/* Основная ширина полосы прокрутки. */
#win_main ::-webkit-scrollbar {
	width: 16px;
}

/* --------------------------------- */
.for-slogan {
	background-color:#333333;
}
.slogan {
	background-color: #333333;
  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;
}
#win_main {
	max-width: 725px;
	width: 100%;
	height: 100%;
	line-height: 1;
	margin: auto;
}
#tbl_main {
	width: 100%;
	height: 100%;
	border-collapse: separate;
	border-spacing: 1px;
	border: 1px solid black;
}
#tbl_main table{
	font-size: calc(0.7vh + 0.7vw);
	table-layout: initial;
}
#tbl_main img {
	vertical-align: middle;
	margin:0;
	padding:0;
	display:inline-block;
}
#tbl_main .avatar {
	border-radius: 50px;
	width:20px;
	height:20px;
}
#tbl_graph label {
	font-size: calc(0.6vh + 0.6vw);
	height: 13px;
}
#tbl_main input[type=checkbox] {
	vertical-align: middle;
	padding:0;
	margin:0;
}
.caption_tbl {
	color: white;
	background-color: black;
	text-align: center;
	margin:0;
	padding:5px 0 0 0;
	height:20px;
}
#tbl_main td {
	margin:0;
	padding:0;
	background-color: #333333;
}
#controls {
	margin:0;
	padding:0;
	background-color: #333333;
	text-align: center;
	vertical-align: middle;
	width:9%;
}
#controls #record {
	display: block;
	margin: 3px 3px 1px 3px;

  box-sizing: border-box;
  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(70,70,70), rgb(120,120,120));
  color: #ccc;
  transition: .5s linear;
}
#record p {
	line-height: 1;
}
/* countdown timer */
#clockdiv {
	width: 90%;
	height: 20px;
	border: 0;
	padding: 3px 0;
	line-height: normal;
	text-align: center;
	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 chat window */
#fld {
	font-size: calc(0.7vh + 0.7vw);
	font-weight: normal;
	text-transform: none !important;
	text-align: left;
	padding:0;
	background-color: #333333;
	border: 1px solid black;
	width: 100%;
}
#fld #fld_dump, #fld #fld_chat, #fld #tbl_graph {
	color: white;
	float:left;
	padding: 3px;
	width:91%;
	overflow-y: scroll;
	height: 130px;
	line-height: 1.5;
}
#fld #fld_dump th {
	padding: 0 !important;
	margin: 0 !important;
	background: #333333;
}
#fld #fld_chat {
	margin-top: -130px;
	margin-bottom: 0;
}
/* graph chat window */
#fld #tbl_graph {
	font-size: calc(0.6vh + 0.6vw) !important;
	margin-top: -130px;
	margin-bottom: 0;
	width: 100%;
	padding:0;
	line-height: 1;
}
#graph_title_local, #local_legend1, #local_legend2,
#graph_title_remote, #remote_legend1, #remote_legend2 {
	color: white;
	font-weight: normal;
	text-transform: none;
	margin-bottom:0;
}
#graph_local, #graph_remote {
	display: initial;
	height: auto;
	width: auto;
	border: 0;
}
#canvas_local, #canvas_remote {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#graph_title_local, #graph_title_remote {
	vertical-align:top;
	height: 100%;
}
#graph_legend_local, #graph_legend_remote {
	display: contents;
	vertical-align:bottom;
	height: auto;
}
#graph_cmd {
	vertical-align: middle;
	height:100%;
	width: 9%;
	border-left: 1px solid black;
	border-right: 1px solid black;
}
/* video-chat control panel buttons */
.btn {
	height: 20px !important;
	border: 0 !important;
	padding:0 !important;

	text-align: center !important;
	color: white;
	text-shadow: 1px 1px 1px #000 !important;
	border-radius: 10px !important;
	background-color: #767676 !important;
	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) !important;
	text-transform: none !important;
	font-weight: normal !important;
	line-height: initial !important;
}
.btn:hover {
	background-color: #A5A39D !important;
	cursor: pointer;
}
.btn:active {
	box-shadow: inset -2px -2px 3px rgba(200, 200, 200, .6),
              inset 2px 2px 3px rgba(0, 0, 0, .6) !important;
}
.blinking{
	animation:blinkingText 0.8s infinite;
}
@keyframes blinkingText{
	50%{	color: lightgreen;	}
	100%{	color: green;	}
}
/* search boxes by name and text message input for text chat */
#fld_search_user, #fld_send_msg, #fld_file_attach, #progress_file {
  position: relative;
  width: 79%;
  height: 20px !important;
  float: left;
  z-index:3;
  padding:0 !important;
  font-size: calc(0.7vh + 0.7vw) !important;
	margin-left: 3px;
}
#fld_file_attach {
	top:2px;
	color:green;
}
#fld_search_user, #fld_send_msg {
	display: block;
  box-sizing: border-box;
  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(70,70,70), rgb(120,120,120));
  color: #ccc;
  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_caption {
	position: relative;
	width: 80%;
	height: 20px;
	text-align: center;
	font-size: 10pt;
	color: black;
	float: left;
	margin-top: -18px;
	z-index:2;
}
/* site users window */
#wins1_table1 {
	line-height: 1;
	table-layout: auto;
	width: 100%;
	color: white;
	background-color: #333333;
	margin-bottom: 0;
	border:0;
	padding:0;
	margin:0;
}
#wins1_table1 #wins1_tbody1 {
	display: block;
	overflow-y: auto;
	height: 120px !important;
}
/* video-chat participants window */
#wins1_table2 {
	line-height: 1;
	table-layout: auto;
	width: 100%;
	color: white;
	background-color: #333333;
	margin-bottom: 0;
	border:0;
	padding:0;
	margin:0;
}
#wins1_table2 #wins1_tbody2 {
	display: block;
	height: 50px !important;
	border-bottom: 1px solid black;
}
#wins1_table1 #wins1_thead1 tr, #wins1_table1 #wins1_tbody1 tr, #wins1_table1 #wins1_tfoot1 tr,
#wins1_table2 #wins1_thead2 tr, #wins1_table2 #wins1_tbody2 tr, #wins1_table2 #wins1_tfoot2 tr {
	display: inline-table;
	width: 100%;
	background-color: #333333;
}
#wins1_table1 #wins1_thead1 th, #wins1_table1 #wins1_tbody1 td, #wins1_table1 #wins1_tfoot1 td,
#wins1_table2 #wins1_thead2 th, #wins1_table2 #wins1_tbody2 td, #wins1_table2 #wins1_tfoot2 td {
	color: white;
	background-color: #333333;
	height: 23px;
	padding: 0;
	text-align: left;
	border-top:0;
	border-left:0;
	border-right:0;
	border-bottom: 1px solid black;
}
@-moz-document url-prefix() {
	#wins1_table1 #wins1_thead1 th, #wins1_table1 #wins1_tbody1 td, #wins1_table1 #wins1_tfoot1 td,
	#wins1_table2 #wins1_thead2 th, #wins1_table2 #wins1_tbody2 td, #wins1_table2 #wins1_tfoot2 td {
		border: 1px solid black;
	}
}
/* video-chat participant window */
#win1, #win2 {
	position: relative;
	border: 1px solid black;
	background-color: #333333;
	width: 49.8%;
	height: 203px;
	padding: 0;
	margin:0;
	z-index: 2;
}
/* video stream window for webcam */
#win1_video, #win2_video {
	position:absolute;
	max-width: 100%;
	width: 733px;
	height: 100%;
	left: 0; right: 0; top: 0; bottom:0;
	z-index: 1;
	object-fit: cover !important;
}
@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: 1;
	object-fit: cover !important;
}
#wins1_vu_audio, #wins2_vu_audio {
	position: absolute;
	background-color: transparent;
	border: 1px solid black;
	z-index: 2;
}
#wins1_bitrate, #wins2_bitrate, #wins1_audio, #wins2_audio {
	position:absolute;
	width:12px;
	height:51px;
	bottom: 2px;
	border:1px solid black;
	z-index: 2;
}
/* collapse and expand text in the message box */
/* hide checkboxes and content blocks */
.hide {
	display: none !important;
}
.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;
	color: white;
}
/* make label text */
#fld_dump span, #fld_chat span {
	font-size: calc(0.7vh + 0.7vw) !important;
	color: blue;
	float: left;
	margin-right: 5px;
}
#fld_dump label {
	font-size: calc(0.7vh + 0.7vw) !important;
	margin:0;
}
.hide + label {
	font-size: calc(0.7vh + 0.7vw) !important;
	border-bottom: 1px dotted green;
	padding: 0;
	color: green;
	cursor: pointer;
	display: inline-block;
	width: 84%;
}
.msg {
	font-size: calc(0.7vh + 0.7vw) !important;
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: green;
	cursor: pointer;
	display: inline-block;
	width: 100%;
}
.autoresponder {
	font-size: calc(0.7vh + 0.7vw) !important;
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: lime;
	cursor: pointer;
	display: inline-block;
	width: 100%;
}
.err {
	font-size: calc(0.7vh + 0.7vw) !important;
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: brown;
	cursor: pointer;
	display: inline-block;
	width: 100%;
}
.mod {
	font-size: calc(0.7vh + 0.7vw) !important;
	font-weight: normal;
	border-bottom: 1px dotted green;
	padding: 0;
	margin:0;
	color: Silver;
	cursor: pointer;
	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 {
	color: white;
	font-size: calc(0.6vh + 0.6vw) !important;
	word-wrap: break-word;
	width: 100%;
	display: inline-table;
	background: #333333;
	-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;
}
/* when the checkbox is active, we show the blocks with the content */
.hide:checked + label + #sdp {
	color: white;
	font-size: calc(0.6vh + 0.6vw) !important;
	word-wrap: break-word;
	width: 100%;
	display: inline-table;
	background: #333333;
	-webkit-box-shadow: inset 3px 3px 10px #000000;
	box-shadow: inset 3px 3px 10px #000000;
	padding: 10px;
	/* 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-size: 10px;*/
	font-weight: bold;
	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";
}
/* pull-down menu for win1 */
#win1_menu {
	cursor: pointer;
	position: absolute;
	visibility: hidden;
	text-align: center;
	font-size: calc(0.7vh + 0.7vw) !important;
	width: 80px;
	height: 20px;
	margin: 20px 0 0 20px;
	border-radius: 10px;
	color: white;
	background-color: #333333;
	z-index: 3;
}
/* video-chat window number */
.win_head {
	font-size: calc(0.7vh + 0.7vw);
	position:absolute;
	text-align: center;
	margin: 20px 0 0 3px;
	color: white;
	width: 20px;
	height: 20px;
	-webkit-border-radius: 50px;
	border-radius: 50px;
	box-shadow: inset -5px -5px 5px #000, 2px 2px 5px white, inset 0px 0px 5px white;
	z-index:3;
}
.win_head:hover {
	cursor: pointer;
}
/* webrtc stats */
@-webkit-keyframes scroll {
	0% {
		-webkit-transform: translate(0, 0);
		transform: translate(0, 0);
	}
	100% {
		-webkit-transform: translate(-100%, 0);
		transform: translate(-100%, 0)
	}
}
@-moz-keyframes scroll {
	0% {
		-moz-transform: translate(0, 0);
		transform: translate(0, 0);
	}
	100% {
		-moz-transform: translate(-100%, 0);
		transform: translate(-100%, 0)
	}
}
@keyframes scroll {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0)
  }
}
.stats span {
	display: inline-block;
	padding-left: 100%;
	-webkit-animation: scroll 7s infinite linear;
	-moz-animation: scroll 7s infinite linear;
	animation: scroll 7s infinite linear;
}
.stats {
	display: block;
	width: 100%;
	margin:0 0 0 3px;
	white-space: nowrap;
	overflow: hidden;
	position: absolute;
	text-align: center;
	font-weight: bold;
	font-size: calc(0.7vh + 0.7vw) !important;
	line-height: normal;
	color: white;
	z-index: 2;
}
/* video-chat participant name */
.member_head {
	font-size: calc(0.7vh + 0.7vw);
	position:relative;
	float:right;
	color: white;
	height: 20px;
	border-radius: 50px;
	margin: 20px 0 0 3px;
	padding:0;
	z-index: 2;
}
.smoothie-chart-tooltip {
	background: #444;
	padding: 1em;
	margin-top: 20px;
	font-family: consolas;
	color: white;
	font-size: calc(0.6vh + 0.6vw);
	pointer-events: none;
}
/* Progressbar for #fld_dump */
#progress_dump {
	visibility: hidden;
	margin-left: -10px;
	float:left;
	flex: 1 1 25%;
}
.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);
	}
}
#lbl_fld_dump {
	width:120px;
	color:white;
	float:left;
	font-weight:normal;
}
