/**
================== TREE START
 */
/*Now the CSS*/
.tree * {
    margin: 0;
    padding: 0;
}
.tree ul {
    padding-top: 40px;
    position: relative;
    font-size: 20px;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
}

.tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 40px 10px 0 10px;
    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 li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 1px solid #808080;
    width: 50%;
    height: 40px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 1px solid #808080;
}
/*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: 1px solid #808080;
    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;
}
/*Time to add downward connectors from parents*/

.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 1px solid #808080;
    width: 0;
    height: 40px;
}
.tree ul ul.item-only-child::before {
    height: 80px;
}
.tree ul ul.item-only-child > li {
    width: 100%;
}
.tree li a div,
.tree li a {
    border: 1px solid #808080;
    padding: 5px 10px;
    text-decoration: none;
    color: #000;
    display: inline-block;
    font-size: 16px;
    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;
    min-width: 180px;
    text-transform: capitalize;
    display: inline-block;
}
.tree li a {
    cursor: auto !important;
}
/*Time for some hover effects*/
/*We will apply the hover effect the the lineage of the element also*/

.tree li a div:hover,
    /*.tree li a:hover,*/
.tree li a:hover+ul li a {
    background: #c8e4f8;
    color: #000;
    border: 1px solid #000;
}
/*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: #000;
}
/*Thats all. I hope you enjoyed it.
Thanks :)*/

.tree li > ul {
    display:none;
}

.tree > ul {
    padding-top : 0;
}

.tree {
    margin: 0 auto;
    display: table;
    width: max-content;
    cursor: all-scroll;
}

#mapdivtree {
    overflow: auto;
    width: 100%;
    height: 100vh;
    background-color: #f1f3f3;
}
#mydivtree {
    position: absolute;
    z-index: 0;
    text-align: center;
    /*border: 1px solid #d3d3d3;*/
    background-color: #fff;
    padding: 50px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
.tree li a{
    font-size: 16px;
}
.tree li a div {
    margin-right: 10px;
}
.tree li a div:last-of-type {
    margin-right: 0;
}
.tree li a div img{
    width: 80px;
    height: 80px;
    border-radius: 100%;
}
.tree li a div p{
    line-height: 30px;
}
.tree li a {
    position: relative;
}
.tree li a  i {
    position: absolute;
    bottom: -10px;
    left: 50%;
}

.box-bottom-right {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9;
}
.box-bottom-right > div {
    padding: 10px;
}
.box-bottom-right > div#zip-tree {
    text-align: right;
    display: inline-block;
    float: right;
    background-color: #f1f1f1;
    padding: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.box-bottom-right > div#zip-tree i {
    font-size: 35px;
    cursor: pointer;
}
.box-bottom-right div#zoom-tree {
    display: inline-block;
    background: #f1f1f1;
    padding: 10px;
    float: left;
    margin-right: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.box-bottom-right input {
    cursor: pointer;
    margin-bottom: 0;
}
.tree li a div.bg-male {
    background: #ADD8E6;
}
.tree li a div.bg-female {
    background: #FFC0CB;
}
.tree li a div.bg-normal {
    background: #f2f2f2;
}

.tree li a .item-minus-plus {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(-50%, 0);
    cursor: pointer;

}
.tree li a .item-minus-plus i {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 25px;
}
.tree li a .item-minus-plus i.fa-plus-square {
    color: #999999;
}
.tree li a:hover{
    cursor: unset;
}
.tree li a div {
    cursor: pointer;
}


.tree li a div:hover {
    transform: scale(1.03);
}
.page-template-template-tree footer {
    display: none;
}
/**
================== TREE END
 */