.tree * {margin: 0; padding: 0;}

.tree ul {
	position: relative;
	padding-left:15px;
	margin-left:25px;
	list-style-type: none;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.tree ul ul:before{
	content: '';
	width: 30px;
	position: absolute; 
	border-top: 2px solid #ccc;
	left: -40px;
	top: 50%;
	margin-top: 1px;
}

.tree ol {
	position: relative;
	padding-left:15px;
	margin-left:25px;
	list-style-type: none;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.tree ol ul:before{
	content: '';
	width: 50px;
	position: absolute; 
	border-top: 2px solid #ccc;
	left: -65px;
	top: 50%;
	margin-top: 1px;
}

.tree li {
	position: relative;
    text-align: center;
    padding-left:220px;
	min-height: 60px;
	list-style-type: none;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}



/*We will use :before and :after to draw the connectors*/

.tree ul li:before{
	content: '';
	height: 100%;
	border-left: 2px solid #ccc;
	position: absolute;
	left:-32px;	
}

.tree ul li:after{
	content: "";
	width: 30px;
	border-top: 2px solid #ccc;
	position: absolute;
	left: -30px;
	top: 50%;
    margin-top:1px
}


/* Special curve border */

.tree li:only-child::before, .tree li:only-child::after {
	border: 0 none;
}



.tree li:first-child:before {
  width: 10px;
  height: 50%;
  top: 50%;
  margin-top: 2px;
  border-radius: 10px 0 0 0;  
}
.tree li:last-child:after {
  height: 10px;
  border-top: none;
  border-bottom: 2px solid #ccc;
  border-radius: 0 0 0 10px;
  margin-top: -7px;
}

.tree li:first-child:after {
  height: 10px;
  border-radius: 10px 0 0 0;
}
.tree li:last-child:before {
  width: 10px;
  height: 50%;
  border-radius: 0 0 0 10px;
}

.tree li a{
	border: 1px solid #ccc;
	min-width: 180px;
	padding: 5px 10px;
	text-decoration: none;
	color: #666;
	font-family: verdana, arial, tahoma;
	font-size: 11px;
	font-weight:bold;
	display: inline-block;
	background: #94CCF2;

	line-height: 15px;
	left: 0;
	top: 50%;
	margin-top: -15px;
	text-align: center;
	position: absolute;	
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

/*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 a {
	background: #CCC0DC ; color: #000; border: 2px solid #94a0b4;
}
/*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:  #94a0b4;
}


/* Index Page tree */

.indextree ul {
    display:table-row;
}
.indextree ul li
{
    display: table-cell;
    height: 40px;
    list-style-type: none;
    margin: 10px;
    vertical-align: middle;
}
.indextree ul li a {
    display:table-cell;
    vertical-align: middle;
    border: 1px solid #ccc;
	min-width: 200px;
	padding: 5px 10px;
	text-decoration: none;
	color: #666;
	font-family: verdana, arial, tahoma;
	font-size: 11px;
	font-weight:bold;
	display: inline-block;
	background: #94CCF2;

	line-height: 15px;
	top: 50%;
	margin-top: -15px;
	text-align: center;
	position: relative;	
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.indextree li a:hover {
	background: #CCC0DC ; color: #000; border: 2px solid #94a0b4;
