#tree {
    display: inline-block;
    padding: 0px;
}

#tree * {
    box-sizing: border-box;
}

#tree .branch {
    padding: 5px 0 5px 20px;
}

#tree .branch:not(:first-child) {
    margin-left: 336px;
}

#tree .branch:not(:first-child):after {
    content: "";
    width: 26px;
    border-top: 1px solid #ccc;
    position: absolute;
    left: 310px;
    top: 50%;
    margin-top: 1px;
}

.entry {
    position: relative;
    min-height: 52px;
    display: block;
}

.entry:before {
    content: "";
    height: 100%;
    border-left: 1px solid #ccc;
    position: absolute;
    left: -20px;
}

.entry:first-child:after {
    height: 10px;
    border-radius: 10px 0 0 0;
}

.entry:first-child:before {
    width: 10px;
    height: 50%;
    top: 50%;
    margin-top: 1px;
    border-radius: 10px 0 0 0;
}

.entry:after {
    content: "";
    width: 20px;
    transition: border 0.5s;
    border-top: 1px solid #ccc;
    position: absolute;
    left: -20px;
    top: 50%;
    margin-top: 1px;
}

.entry-first:after {
    position: absolute;
    left: -20px;
    top: 50%;
}

.entry:last-child:before {
    width: 10px;
    height: 50%;
    border-radius: 0 0 0 10px;
}

.entry:last-child:after {
    height: 10px;
    border-top: none;
    transition: border 0.5s;
    border-bottom: 1px solid #ccc;
    border-radius: 0 0 0 10px;
    margin-top: -9px;
}

.entry:only-child:after {
    width: 10px;
    height: 0px;
    margin-top: 1px;
    border-radius: 0px;
    display: none;
}

.entry:only-child:before {
    display: none;
}

.entry span {
    border: 1px solid #ccc;
    display: block;
    min-width: 150px;
    padding: 5px 10px;
    line-height: 20px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -15px;
    color: #666;
    font-family: arial, verdana, tahoma;
    font-size: 14px;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.5s;
}

.entry input {
    border: 1px solid #ccc;
    display: block;
    width: 15vw;
    min-width: 310px;
    padding: 5px 10px;
    line-height: 20px;
    max-width: 12px;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -15px;
    color: #666;
    font-family: arial, verdana, tahoma;
    font-size: 14px;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.5s;
}

.entry span:hover,
.entry span:hover + .branch .entry span {
    background: #e6e6e6;
    color: #000;
    border-color: #a6a6a6;
}

.entry input:hover,
.entry input:hover + .branch .entry span {
    background: #e6e6e6;
    color: #000;
    border-color: #a6a6a6;
}

.entry span:hover + .branch .entry::after,
.entry span:hover + .branch .entry::before,
.entry span:hover + .branch::before,
.entry span:hover + .branch .branch::before {
    border-color: #a6a6a6;
}

.entry input:hover + .branch .entry::after,
.entry input:hover + .branch .entry::before,
.entry input:hover + .branch::before,
.entry input:hover + .branch .branch::before {
    border-color: #a6a6a6;
}


.bisa {
    position: relative;
    top: -4px;
    left: 7px;
}

.avo {
    position: relative;
    top: 34px;
    left: 7px;
}

.inicio {
    position: relative;
    top: 110px;
    left: 7px;
}

@media only screen and (max-width: 960px)
{
    .entry input {
        min-width: 240px;
    }

    #tree .branch:not(:first-child):after{
        left: 240px;
        width: 18px;
    }

    #tree .branch:not(:first-child){
        margin-left: 258px;
    }
}
@media only screen and (max-width: 	1397px)
{
    .entry input {
        min-width: 280px;
    }

    #tree .branch:not(:first-child):after{
        left: 280px;
        width: 18px;
    }

    #tree .branch:not(:first-child){
        margin-left: 298px;
    }
}

@media only screen and (max-width: 	1131px)
{
    .entry input {
        min-width: 250px;
    }

    #tree .branch:not(:first-child):after{
        left: 250px;
        width: 8px;
    }

    #tree .branch:not(:first-child){
        margin-left: 258px;
    }
}