* {margin: 0; padding: 0;}

.tree{

    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #f5f6fa;
    border: none;
    border-radius: 4px;
    height: auto;
    overflow-x:scroll;
    scroll-behavior: smooth;
}

.tree ul.child-ul {
    white-space:nowrap;
    padding-top: 20px; position: relative;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;

}

.tree li.child-li {
    display:inline-block;
    vertical-align:top;
    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;
}
/*We will use ::before and ::after to draw the connectors*/

.tree li.child-li::before, .tree li.child-li::after{
    content: '';
    position: absolute; top: 0; right: 50%;
    border-top: 3px solid #222f3e;
    width: 55%; height: 20px;
}
.tree li.child-li::after{
    right: auto; left: 50%;
    border-left: 3px solid #222f3e;
}

/*We need to remove left-right connectors from elements without
any siblings*/
.tree li.child-li:only-child::after, .tree li.child-li:only-child::before {
    display: none;
}

/*Remove space from the top of single children*/
.tree li.child-li:only-child{ padding-top: 0;}

/*Remove left connector from first child and
right connector from last child*/
.tree li.child-li:first-child::before, .tree li.child-li:last-child::after{
    border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.tree li.child-li:last-child::before{
    border-right: 3px solid #222f3e;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}
.tree li.child-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.child-ul ul.child-ul::before{
    content: '';
    position: absolute; top: 0; left: 50%;
    border-left: 3px solid #222f3e;
    width: 0; height: 20px;
}

.tree li.child-li .expand span{
    border: 1px solid #9b59b6;
    padding: 5px 10px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    display: inline-block;
    background-color: #ecf0f1;

    box-shadow: 7px 7px 1px 1px rgba(0, 0, 255, .2);
    border-radius: 9px;
    -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.child-li a span:hover, .tree li.child-li a span:hover+ul.child-ul li.child-li{
    background: #c8e4f8; color: #000; border: 1px solid #94a0b4;

}
/*Connector styles on hover*/
.tree li.child-li a span:hover+ul.child-ul li.child-li::after,
.tree li.child-li a span:hover+ul.child-ul li.child-li::before,
.tree li.child-li a span:hover+ul.child-ul::before,
.tree li.child-li a span:hover+ul.child-ul ul.child-ul::before{
    background: #c8e4f8; color: #000; border: 1px solid #94a0b4;
}
.chart{
    border: none;
    min-height: 550px;
    width: auto;
    padding: 10px 3px;
    background:#54a0ff;
}
.t{
    padding-left: 150px !important;
    margin:auto;
}


@media(max-width: 1050px ){

    .t{
        padding-left: 50px !important;
    }
}

@media(max-width: 700px ){
    .t{
        padding-left:0; !important;;
    }
}
