@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*{
    font-family: 'Open Sans';
}

.tree{
    width: auto;
    height: auto;
    text-align: center;
    zoom: 12%;
    margin-bottom: 200px;
}

.tree h1{
    font-size: 150px;
    font-family: 'Open Sans';
    margin-top: 100px;
    margin-bottom: 100px;
}

.tree ul{
    padding-top: 20px;
    position: relative;
    transition: .5s;
}

.tree li{
    display: inline-table;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 10px;
    transform: .5s;
}

.tree li:before, .tree li:after{
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 5px solid #ccc;
    width: 51%;
    height: 10px;
}

.tree li:after{
    right: auto;
    left: 50%;
    border-left: 5px solid #ccc;
}

.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: 5px solid #ccc;
    border-radius: 0px 5px 0px 0px;
}

.tree li:first-child:after{
    border-radius: 5px 0px 0px 0px;
}

.tree ul ul:before{
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 5px solid #ccc;
    width: 5px;
    height: 20px;
}

.tree a{
    border: 5px solid #ccc;
    padding: 10px;
    display: inline-grid;
    border-radius: 5px;
    text-decoration-line: none;
    border-radius: 5px;
    transition: .5s;
}

.tree a img{
    width: 250px;
    height: 250px;
    margin-bottom: 10px !important;
    border-radius: 100px;
    margin: auto;
}

.tree a span{
    border: 1px solid#ccc;
    border-radius: 5px;
    color: #666;
    padding: 8px;
    font-size: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.tree li a:hover, .tree li a:hover img, .tree li a:hover span, .tree li a:hover+ul li a{
    background: #c8e4f8;
    color: #000;
    border: 1px solid #94a0b4;
    box-shadow: -px -px 8px -5px #5f5f5f;
}

.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;
}