* {
	box-sizing: border-box;
	font-family: Verdana;
	font-size: 11px;
	color: #fff;
}

.displaynone { display: none }

red {color: red}
yellow {color: #ffc107}

.min1900 {
	min-width: 1900px;
}

body {
	margin: 0;
	background: #333;
}

.header {
	height: 100px;
	background: #000;
	background-image: url(img/bg1.png);
	padding: 0 10px 20px 10px;
	display: flex;
	border-bottom: 3px solid #0b0;
}

.logo {
	width: 93px;
	height: 95px;
	margin-right:20px;
}

.logo:hover {
	cursor: pointer;
}


.head_block {
	margin-top: 16px;
	white-space: nowrap;
	
	display: flex;
    align-items: center;
}

.title {
	font-size: 30px;
	color: #0b0;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.state {
	display: flex;
	/* justify-content: center; */
}

.state_title {
	font-size: 20px;
	color: #fff;
}

.state_time {
	font-size: 20px;
	margin-left: 7px;
	color: #0b0;
}

.title2 {
	margin: 10px;
    font-size: 30px;
    color: #FF9800;
}

.top_buttons {
	margin-left: 20px;
	display: flex;
	flex-direction: column;
}

.top_buttons button {
	border: 1px solid #0b0;
	background: #333;
	color: #0b0;
	padding: 2px 25px;
	font-size: 20px;
	text-transform: uppercase;
	margin-bottom: 5px;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.top_buttons button:hover {
	border: 1px solid #ff9800;
	/* color: #ff9800; */
	cursor: pointer;
}

.top_buttons button:active {
	background: #555;
}

.jp {
	text-transform: uppercase;
	text-align: center;
	margin-left: 20px;
}

.jp_title {
	font-size: 30px;
	width: 250px;
	color: #0b0;
}

.jp_summ {
	font-size: 30px;
	width: 250px;
	color: #fff;
}

.head_last_block {
	width: -webkit-fill-available;
	width: -moz-available;
	width: fill-available;
	text-align: right;
}

.head_last_block .logo {
	transform: scale(-1, 1);
}

.t_players_list {
	width: 70%;
}

.theader {
	display: flex;
	min-width: 1900px;
}

.theader_item {
	min-width: 380px;
	padding: 5px 10px;
	background: #ffc107;
	border: 1px solid #777;
}

.theader_item.ended {
	background: #555;
}

.theader_item.active {
	background: #8bc34a;
}

.theader_item.waiting {
	background: #cddc39;
}

.turnir {
	display: flex;
}

.turnir * {
	/* 
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	 */
}

.t16, .t8, .t4, .t2, .tfinal {
	padding: 0 10px;
	opacity: 0.5;
}

.t16.active1, .t8.active1, .t4.active1, .t2.active1, .tfinal.active1 {
	opacity: 1;
	/* background: #efffec; */
}

.t16.active0.s_waiting, .t8.active0.s_waiting, .t4.active0.s_waiting, .t2.active0.s_waiting, .tfinal.active0.s_waiting {
	opacity: 1;
}

.tfinal.s_ended {
	opacity: 1;
}

.g16 {
	height: 60px;
}

.g8 {
	height: 130px;
	
}

.g4 {
	height: 270px;
}

.g2 {
	height: 550px;
}

.gfinal {
	height: 100%;
	margin: 0 !important;
}

.gfinal,
.g2,
.g4,
.g8,
.g16 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 300px;
	margin: 10px 60px 10px 0;
	position: relative;
	
}

.user {
	padding: 1px 10px;
	font-weight: bold;
	border: 1px solid #2196f3;
	background: #eee;
	z-index: 100;
	max-height: 30px;
	/* overflow: hidden; */
	position: relative;
}

.user.winner { background: #adffad; }
.user.looser { background: #ffadad; }

.g16 .user:nth-child(1),
.g8 .user:nth-child(1),
.g4 .user:nth-child(1),
.g2 .user:nth-child(1),
.gfinal .user:nth-child(1) {
	color: #6666CC;
	border-bottom: 1px solid #ccc;
}

.g16 .user:nth-child(1) a,
.g8 .user:nth-child(1) a,
.g4 .user:nth-child(1) a,
.g2 .user:nth-child(1) a,
.gfinal .user:nth-child(1) a {
	color: #6666CC;
	text-decoration: none;
}

.g16 .user:nth-child(2),
.g8 .user:nth-child(2),
.g4 .user:nth-child(2),
.g2 .user:nth-child(2),
.gfinal .user:nth-child(2) {
	color: #B06A00;
	border-top: 1px solid #ccc;
}

.g16 .user:nth-child(2) a,
.g8 .user:nth-child(2) a,
.g4 .user:nth-child(2) a,
.g2 .user:nth-child(2) a,
.gfinal .user:nth-child(2) a {
	color: #B06A00;
	text-decoration: none;
}

.g2:after,
.g4:after,
.g8:after,
.g16:after {
	content: "";
	position: absolute;
	width: 105px;
	right: -105px;
	border-right: 2px solid #0b0;
}

.g2:nth-child(odd):after,
.g4:nth-child(odd):after,
.g8:nth-child(odd):after,
.g16:nth-child(odd):after {

	border-top: 2px solid #0b0;
}

.g2:nth-child(even):after,
.g4:nth-child(even):after,
.g8:nth-child(even):after,
.g16:nth-child(even):after {
	border-bottom: 2px solid #0b0;
}

.active3 .g2:after,
.active3 .g4:after,
.active3 .g8:after,
.active3 .g16:after {
	border-right: 2px solid #0b0;
}

.active3 .g2:nth-child(odd):after,
.active3 .g4:nth-child(odd):after,
.active3 .g8:nth-child(odd):after,
.active3 .g16:nth-child(odd):after {

	border-top: 2px solid #0b0;
}

.active3 .g2:nth-child(even):after,
.active3 .g4:nth-child(even):after,
.active3 .g8:nth-child(even):after,
.active3 .g16:nth-child(even):after {
	border-bottom: 2px solid #0b0;
}

.g16:nth-child(odd):after {
	height: 18px;
	top: 16px;
}

.g16:nth-child(even):after {
    height: 18px;
    top: 24px;
}

.g8:nth-child(odd):after {
	height: 40px;
	top: 64px;
}

.g8:nth-child(even):after {
    height: 40px;
    top: 24px;
}

.g4:nth-child(odd):after {
	height: 110px;
	top: 134px;
}

.g4:nth-child(even):after {
    height: 110px;
    top: 24px;
}

.g2:nth-child(odd):after {
	height: 250px;
	top: 274px;
}

.g2:nth-child(even):after {
    height: 250px;
    top: 24px;
}


.s_active .g8 .user:nth-child(1):before, .s_ended .g8 .user:nth-child(1):before, .s_waiting .g8 .user:nth-child(1):before,
.s_active .g4 .user:nth-child(1):before, .s_ended .g4 .user:nth-child(1):before, .s_waiting .g4 .user:nth-child(1):before, 
.s_active .g2 .user:nth-child(1):before, .s_ended .g2 .user:nth-child(1):before, .s_waiting .g2 .user:nth-child(1):before, 
.s_active .gfinal .user:nth-child(1):before, .s_ended .gfinal .user:nth-child(1):before, .s_waiting .gfinal .user:nth-child(1):before
{
	content: attr(data-summ);
	position: absolute;
	top: -35px;
	left: -75px;
	color: #0b0;
	font-size: 13px;
	
	/* visibility: hidden; */
}

.s_active .g8 .user:nth-child(2):before, .s_ended .g8 .user:nth-child(2):before, .s_waiting .g8 .user:nth-child(2):before, 
.s_active .g4 .user:nth-child(2):before, .s_ended .g4 .user:nth-child(2):before, .s_waiting .g4 .user:nth-child(2):before, 
.s_active .g2 .user:nth-child(2):before, .s_ended .g2 .user:nth-child(2):before, .s_waiting .g2 .user:nth-child(2):before, 
.s_active .gfinal .user:nth-child(2):before, .s_ended .gfinal .user:nth-child(2):before, .s_waiting .gfinal .user:nth-child(2):before
{
	content: attr(data-summ);
	position: absolute;
	bottom: -35px;
	left: -75px;
	color: #0b0;
	font-size: 13px;
	
	/* visibility: hidden; */
}


.s_ended .gfinal .user.winner:nth-child(1):after
{
	content: attr(data-summfinal);
	position: absolute;
	top: -25px;
	left: 125px;
	color: #ff5722;
	font-size: 20px;
	
	/* visibility: hidden; */
}


.s_ended .gfinal .user.winner:nth-child(2):after
{
	content: attr(data-summfinal);
	position: absolute;
	top: 28px;
	left: 125px;
	color: #ff5722;
	font-size: 20px;
	
	/* visibility: hidden; */
}


.class {
	margin-left: 10px;
    color: black;
	font-weight: normal;
	white-space: nowrap;
}

.stagename {
	color: red;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
}

.stageperiod {
	font-size: 13px;
	font-weight: bold;
	text-align: center;
}

.theader_item .stageperiod { color: #000; }
.theader_item.active .stageperiod { color: #000; }
.theader_item.waiting .stageperiod { color: #000; }
.theader_item.ended .stageperiod { color: #fff; }

.green_wins {
    color: #090;
}

.red_wins {
    color: red;
}

.user_login {
	/* text-align: center; */
	color: #0b0;
	line-height: 1.1;
}


.notstarted {
	background: #000;
	margin: 20px 10px;
	border: 1px solid #0b0;
	border-radius: 4px;
	padding: 5px 10px;
}



.ns_title {
	font-size: 20px;
	color: #0b0;
	border-bottom: 1px solid #0b0;
	margin-bottom: 5px;
	padding-bottom: 10px;
}

.showall {
	color: #FFEB3B;
	font-size: 20px;
	text-decoration: none;
}

.showall:hover {
	border-bottom: 2px solid;
}

.active_t_item {
	border-bottom: 1px solid #0b0;
	padding: 5px 0 10px 0;
}


.active_t_item * {
	font-size: 13px;
}

.active_t_item:first-child {
	padding-top: 0px;
}

.active_t_item:last-child {
	border-bottom: 0px;
}

.active_t_item .t_desc {
	display: none;
}

.active_t_item .t_title {
	font-size: 20px;
	background: #555;
	color: #0b0;
    padding: 2px 10px;
	margin-bottom: 15px;
}

.active_t_item .t_title:hover {
	cursor: pointer;
	text-decoration: underline;
	color: #fff;
}

.active_t_item .t_item_info {
	margin-left: 30px;
	margin: 1px 0 1px 30px;
	letter-spacing: 0.3px;
}

.active_t_item .t_item_time {
	color: #0b0;
	font-weight: bold;
}

.active_t_item .t_item_time_orange {
	color: #ff9800;
	font-weight: bold;
}

.active_t_item .t_players {
	display: flex;
}

.active_t_item .t_players_title {
	margin-right: 10px;
	white-space: nowrap;
}

.active_t_item a {
	color: #0b0;
	text-decoration: none;
}


.active_t_item a:hover {
	color: #fff;
	text-decoration: underline;
}


.active_t_item .t_item_buttons {
	margin-top: 10px;
	margin-left: 30px;
}

.active_t_item button {
	border: 1px solid #ff9800;
	background: #333;
	color: #ff9800;
	padding: 2px 25px;
	font-size: 11px;
	text-transform: uppercase;
	margin-bottom: 5px;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.active_t_item button:hover {
	border: 1px solid #fff;
	color: #ffff;
	cursor: pointer;
}

.active_t_item button:active {
	background: #555;
}


.system_box {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1100;
}

.system {
	background: #000;
	color: #fff;
	font-weight: bold;
	padding: 5px 15px;
	border-radius: 3px;
	border: 1px solid #0b0;
	min-width: 100px;
	text-align: center;
	margin-bottom: 10px;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}



.dialog_bg {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0, 0.0) !important;
	width: 100%;
	height: 100%;
	z-index: 1000;
}

.dialog_bg .dialog {
	min-width: 500px;
	max-width: 600px;
	min-height: 110px;
	max-height: 700px;
	width: fit-content;
	height: fit-content;
	position: absolute;
	margin: auto;
	top: 20%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #333;
	border: 2px solid #0b0;
}

.dialog_bg .dialog .dialog_title {
    background: #777;
	color: #fff;
	font-weight: bold;
	padding: 4px 10px;
}

.dialog_bg .dialog .dialog_content {
	padding: 10px;
	flex-grow: 1;
	max-height: 400px;
	overflow: hidden;
	color: #fff;
}

.dialog_bg .dialog .dialog_buttons {
	padding: 10px;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}

.dialog_bg .dialog .dialog_buttons .button {
	margin: 0 5px;
	background: #000;
	min-width: 75px;
	text-align: center;
	padding: 4px 10px;
	border: 1px solid #0b0;
	color: #fff;
	cursor: pointer;
}


.dialog_bg .dialog .dialog_buttons .button:hover {
	background: #555;
	color: #fff;
	cursor: pointer;
}

.dialog_bg .dialog .dialog_buttons .button:active {
	border: 1px solid #fff;
}

.dialog_bg .dialog .dialog_input {
	text-align: center;
}

.dialog_bg .dialog .dialog_input input {
	width: 100%;
	color: #fff;
	background: #555;
	border: 1px solid #0b0;
	padding: 2px 10px;
	margin: 5px 0;
}


.dialog_bg .dialog .dialog_content b {
	color: #0b0;
}

.dialog_bg .dialog .dialog_content .t_regcode {
	font-size: 20px;
	color: #0b0;
	margin: 5px 0;
	text-align: center;
}



.t_ended {
	background: #000;
	margin: 20px 10px;
	border: 1px solid #9e9e9e;
	border-radius: 4px;
	padding: 5px 10px;
}

.t_ended .ns_title {
	color: #9e9e9e;
	border-bottom: 1px solid #9e9e9e;
}

.t_ended .active_t_item {
	border-bottom: 1px solid #9e9e9e;
}

.t_ended .active_t_item:last-child {
	border-bottom: 0px;
}

.t_ended .active_t_item .t_title {
	color: #9e9e9e;
}


absdelta {
	color: #2196F3;
	color: #9c27b0;
}


.top {
	background: #000;
	margin: 20px 10px;
	border: 1px solid #9c27b0;
	border-radius: 4px;
	padding: 5px 10px 10px;

	display: flex;
	flex-wrap: wrap;
}

.top_title {
	font-size: 20px;
	color: #ffeb3b;
	padding-bottom: 5px;
}

.top_block {
	border-right: 1px solid #9c27b0;
	margin-left: 10px;
	padding-right: 10px;
	letter-spacing: 0.4px;
	min-width: 300px;
}

.top_list {
	height: 165px;
	overflow-x: hidden;
	overflow-y: auto;
	padding-right: 10px;
}



.top_list::-webkit-scrollbar {
	width: 8px;

}

.top_list::-webkit-scrollbar-track {
	background: #1a1a1a;
}

.top_list::-webkit-scrollbar-thumb {
	background-color: #FF9800;
	border-radius: 20px;
	border: 0px;
}


.top_winner_item,
.top_bests_item,
.top_role_percent_item,
.top_total_item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1px;
	padding-bottom: 1px;
	border-bottom: 1px solid transparent;
}

.top_winner_item:hover,
.top_bests_item:hover,
.top_role_percent_item:hover,
.top_total_item:hover {
	border-bottom: 1px solid #777;
	cursor: default;
}

.top_datetime {
	margin-right: 20px;
	pointer-events: none;
	/*color: #0b0;*/
}

.top_login {
	white-space: nowrap;
	color: #ff9800;
	pointer-events: none;
}

.top_value {
	margin-left: 20px;
	/*color: #0b0;*/
	pointer-events: none;
}




.footer {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
}

.footer a.tg {
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
}

.footer a.tg img {
	width: 20px;
	margin: 0 5px;
}

.footer a.tg div {
	font-size: 13px;
	color: #03A9F4;
}
































