@charset "utf-8";

.tree * {
	margin: 0;
	padding: 0
}

.tree ul {
	padding-top: 30px;
	position: relative;
	transition: all .5s;
	-webkit-transition: all .5s;
	-moz-transition: all .5s
}

.tree li {
	float: left;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 30px 8px 0 8px;
	margin: 0;
	transition: all .5s;
	-webkit-transition: all .5s;
	-moz-transition: all .5s
}

.tree li::before,
.tree li::after {
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	border-top:
		3px solid #787878;
	width: 50%;
	height: 30px
}

.tree li::after {
	right: auto;
	left: 50%;
	border-left: 3px solid #787878
}

.tree li:only-child::after,
.tree li:only-child::before {
	display: none
}

.tree li:only-child {
	padding-top: 0
}

.tree li:first-child::before,
.tree li:last-child::after {
	border: 0 none
}

.tree li:last-child::before {
	border-right:
		3px solid #787878;
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0
}

.tree li:first-child::after {
	border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0
}

.tree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50.2%;
	border-left: 3px solid #787878;
	width: 0;
	height: 30px
}

.tree li a {
	border: 3px solid #787878;
	font-weight: 600;
	letter-spacing: 3px;
	padding: 1.2em .75em;
	text-decoration: none;
	color: #666767;
	font-family: arial, verdana, tahoma;
	border-radius: 5px;
	font-size: 1.2em;
	display: inline-block;
	transition: all .5s;
	-webkit-transition: all .5s;
	-moz-transition: all .5s
}

.tree ul.vertical,
ul.vertical ul {
	padding-top: 0;
	left: 50%;
        z-index: 999;

}

.tree ul ul.vertical::before {
	display: none
}

.tree ul.vertical li {
	float: none;
	text-align: left
}

.tree ul.vertical li::before {
	right: auto;
	border: 0
}

.tree ul.vertical li::after {
	display: none
}

.tree ul.vertical li a {
	padding: 1em;
	margin-left: 5px;
	background: #2c70ae;
	color: white;
	border-color: #2c70ae;
}

.tree ul.vertical li::before {
	top: -50px;
	left: 0;
	border-bottom: 3px solid #787878;
	border-left: 3px solid #787878;
	width: 20px;
	height: 106px;
        z-index: -1;
}

.tree ul.vertical li:first-child::before {
	top: 0;
	height: 55px
}

div.tree>ul>li>ul>li>a {
	width: 16em;
	background: #eaad00;
	color: white;
	border-color: #eaad00;
}

div.tree>ul>li>a {
	font-size: 1em;
	font-weight: bold
}

.tree li a:hover,
.tree li a:hover+ul li a {
	background: #8dc63f;
	color: white;
	border-color: #8dc63f;
}

div.tree>ul>li>a.scc:hover {
	background: #8dc63f;
	color: white;
	border-color: #8dc63f;
}

.tree li a:hover+ul li::after,
.tree li a:hover+ul li::before,
.tree li a:hover+ul::before,
.tree li a:hover+ul ul::before {
	border-color: #8dc63f;
}

div.tree>ul>li>a.scc {
	padding: 1em 2.7em;
	font-size: 1.3em;
	background: #49646e;
	color: white;
	border-color: #49646e;
}



@media (max-width:1124px) {
	.tree li.sub-scc {
		width: 30%;
		font-size: 12px
	}

	.tree ul.vertical li::before {
		top: -126px;
	}

	div.tree>ul>li>a.scc {
		font-size: 14px;
		left: -18px;
		position: relative;
	}

	div.tree>ul>li>ul>li>a {
		width: 16em;
		z-index: 9999;
		position: relative;
	}

	.tree ul.vertical li::before {
		height: 180px;
	}

	.tree ul ul::before {
		left: 45%;
	}
}

@media (max-width:820px) {
  div.tree>ul>li>ul>li>a{
    width: 12em;
  }
}

@media (max-width:767px) {
	.tree li.sub-scc {
		width: 30%;
		font-size: 8px
	}

	.tree ul.vertical li::before {
		top: -126px;
	}

	div.tree>ul>li>a.scc {
		font-size: 14px;
		left: -18px;
		position: relative;
	}

	div.tree>ul>li>ul>li>a {
		width: 9em;
		z-index: 9998;
		position: relative;
	}

	.tree ul.vertical li::before {
		height: 180px;
	}

	.tree ul ul::before {
		left: 45%;
	}
}

@media (max-width:280px) {
	.tree li.sub-scc {
		width: 32%;
		font-size: 7px;
	}

	.tree ul.vertical li::before {
		top: -124px;
		height: 180px;
	}

	div.tree>ul>li>a.scc {
		left: 0;
	}

	.tree ul ul::before {
		left: 48%;
	}

	div.tree>ul>li>ul>li>a {
		width: 7em;
	}
}