/* http://thecodeplayer.com/walkthrough/css3-family-tree */
* {margin: 0; padding: 0;}

.tree {
	margin-bottom: 30px;
}

.after-header .tree {
	margin-bottom: 0;
}

.tree.border {
	margin-bottom: 30px;
	border: 5px solid #CBCBCB;
	background-color: #EEE;
	background-color: #778A99;

}

.tree.panzoom-container {
	border: 10px solid #666;
	background-color: #F7F7F7;
}

/*.tree .panzoom {
	display: inline-block;
}*/

/*.tree .panzoom > ul {
	display: inline-block;
}*/

/*.tree .box > ul {
	display: inline-block;
}*/

/*
.tree .panzoom .box {
	display: inline-block;
}*/

.entry-content .tree ul  {
	margin: 0 auto;
}

.tree ul {
	padding: 20px 0;
	position: relative;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;

	/*overflow: hidden;*/
	margin: 0;

/*	display: -webkit-flex;  Safari
	display: flex;*/

	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;     /* NEW - Chrome */
	display: flex;

    -moz-box-pack: center;
    -webkit-box-pack: center; /* justify-content */
	-webkit-justify-content: center; /* Safari 6.1+ */
	justify-content: center;

}

.after-header .tree > ul {
	padding: 0;
}

.entry-content .tree ul > li  {
	list-style-type: none;
}

.tree li {
	float: left; text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;

	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	font-size: 20px;
	font-size: 2.0rem;
}

/*.tree ul.children li {
	max-width: 150px;
}*/

/*We will use ::before and ::after to draw the connectors*/

.tree li::before, .tree li::after{
	content: '';
	position: absolute; top: 0; right: 50%;
	border-top: 5px solid #CBCBCB;
	width: 50%; height: 20px;
}
.tree li::after{
	right: auto; left: 50%;
	border-left: 5px solid #CBCBCB;
}

/*We need to remove left-right connectors from elements without
any siblings*/
.tree li:only-child::after, .tree li:only-child::before {
	display: none;
}

/*Remove space from the top of single children*/
.tree li:only-child{ padding-top: 0;}

/*Remove left connector from first child and
right connector from last child*/
.tree li:first-child::before, .tree li:last-child::after{
	border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before{
	border-right: 5px solid #CBCBCB;
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0;

	border-radius: 0 0 0 0;
	-webkit-border-radius: 0 0 0 0;
	-moz-border-radius: 0 0 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;

	border-radius: 0 0 0 0;
	-webkit-border-radius: 0 0 0 0;
	-moz-border-radius: 0 0 0 0;
}

/*Time to add downward connectors from parents*/
.tree ul ul::before{
	content: '';
	position: absolute; top: 0; left: 50%;
	border-left: 5px solid #CBCBCB;
	width: 0; height: 20px;
}

.tree ul ul.cat-none::before{
	border-left: none;
	width: 0; height: 0;
}

.tree li a{
	border: 5px solid #CBCBCB;
	padding: 5px 10px;
	text-decoration: none;
	color: #666;
	color: #0B6EBF;
	background-color: #FFF;
	font-family: Roboto, sans-serif;
	font-weight: 700;
	font-size: 16px;
	font-size: 1.6rem;
	display: inline-block;

	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;

	border-radius: 0px;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;

	max-width: 150px;
	line-height: 1.5;
}

.tree li.case_category > a,
.tree li.non_us_case_category > a,
.tree li.non_us_principal_law > a,
.tree li.jurisdiction > a {
	max-width: inherit;
	font-size: 20px;
	font-size: 2.0rem;
	text-transform: uppercase;
}

/*Time for some hover effects*/
/*We will apply the hover effect the the lineage of the element also*/
.tree li a:hover/*, .tree li a:hover+ul li:not(.current-cat) a*/ {
	background: #0B6EBF; color: #FFF; border: 5px solid #CBCBCB;
}

/*.tree li a:hover+ul li.current-cat a {
	background: #FFF; color: #222; border: 5px solid #CBCBCB;
}

*/
/*Connector styles on hover*/
.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:  #CBCBCB;
}

.tree .cat-item-none,
.tree .cat-none {
	display: none;
}

.tree li.current-cat > a,
.tree li.current-cat > a:hover {
	background: #FFF;
	color: #222;
	font-size: 36px;
	font-size: 3.6rem;
	width: 100%;
	max-width: 600px;
	padding: 20px;
	cursor: default;
}

.tree .instructions {
	font-style: italic;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 16px;
	font-size: 1.6rem;
	font-weight: 300;
	text-transform: uppercase;
	color: #FFF;
	background-color: #8BBF0B;
	padding: 8px;
	z-index: 1000;
	position: absolute;
}

.buttons {
	text-align: right;
}

.buttons button {
	height: 45px;
}

.buttons .zoom-range {
	vertical-align: bottom;
}

.tree .record-count {
	display: block;
	font-size: 11px;
	font-size: 1.1rem;
	font-weight: 400;
	color: #76A0C3;
	white-space: nowrap;
}

@media only screen and (max-width: 1040px) {

	.tree li.current-cat li a{
		font-size: 15px;
		font-size: 1.5rem;
		max-width: 130px;
		padding: 5px;
	}

}


@media only screen and (max-width: 880px) {

	.tree li.current-cat li {
		padding: 20px 2px 0;
	}


	.tree li.current-cat li a{
		font-size: 12px;
		font-size: 1.2rem;
		max-width: 100px;
		padding: 5px 2px;
	}

}

@media only screen and (max-width: 680px) {

	.tree li.current-cat ul,
	.tree li.case_category ul,
	.tree li.non_us_case_category ul {

		display: block;      /* OLD - iOS 6-, Safari 3.1-6 */
		display: block;         /* OLD - Firefox 19- (buggy but mostly works) */
		display: block;      /* TWEENER - IE 10 */
		display: block;     /* NEW - Chrome */
		display: block;

	}

	.tree li.current-cat li,
	.tree li.case_category li,
	.tree li.non_us_case_category li {
		float: none;
		padding: 20px 5px 0;
	}

	.tree li.current-cat li:only-child,
	.tree li.case_category li:only-child,
	.tree li.non_us_case_category li:only-child {
		padding-top: 0;
	}

	.tree li.current-cat li::before,
	.tree li.current-cat li::after,
	.tree li.case_category li::before,
	.tree li.case_category li::after,
	.tree li.non_us_case_category li::before,
	.tree li.non_us_case_category li::after {
		border-top: none;
	}

	.tree li.current-cat li a,
	.tree li.case_category li a,
	.tree li.non_us_case_category li a {
		font-size: 16px;
		font-size: 1.6rem;
		max-width: 100%;
		padding: 10px 5px;
	}


}
