.hv-wrapper h2 {
    text-align: center;
    color: #002677;
    margin: 50px;
}

.hv-wrapper h2 i {
    display: block;
    font-size: 12px;
    font-weight: normal;
}

.hv-wrapper hr {
    margin: 50px 0;
    border: none;
    height: 1px;
    background-color: rgb(120, 159, 172);
}

.hv-wrapper .hv-item-content {
    margin: 0;
    background-color: rgba(120, 159, 172, 0.15);
    color: #002677;
    padding: 10px 15px;
    border-radius: 7px;
    width: 150px;
    text-align: left;
    box-shadow: 0 3px 6px rgba(103, 105, 204, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
}

.hv-wrapper .hv-item-content.current {
    background-color: #002677;
    color: #fff !important;

}

.hv-wrapper .hv-item-content img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.hv-wrapper .hv-item-content .hv-item-actions {
    position: absolute;
    bottom: -45px;
    visibility: hidden;
}

.hv-wrapper .hv-item:hover>.hv-item-parent .hv-item-actions,
.hv-wrapper .hv-item:focus>.hv-item-parent .hv-item-actions,
.hv-wrapper .hv-item:active>.hv-item-parent .hv-item-actions {
    visibility: visible;
}

.hv-wrapper {
    display: flex;
    overflow-x: scroll;
    padding-bottom: 30px;
}

.hv-wrapper .hv-item {
    display: flex;
    flex-direction: column;
    margin: auto;
}

.hv-wrapper .hv-item .hv-item-parent {
    margin-bottom: 50px;
    position: relative;
    display: flex;
    justify-content: center;
}

.hv-wrapper .hv-item .hv-item-parent p {
    font-weight: bold;
    color: #002677;
}

.hv-wrapper .hv-item .hv-item-parent:after {
    position: absolute;
    content: '';
    width: 2px;
    height: 25px;
    bottom: 0;
    left: 50%;
    background-color: rgb(120, 159, 172);
    transform: translateY(100%);
}
.hv-wrapper .hv-item .hv-item-parent.couple.has-children .hv-item-content{
    /* transform: translateX(-95px); */
}

.hv-wrapper .hv-item .hv-item-parent.couple.has-children:after {
    position: absolute;
    content: '';
    width: 2px;
    height: 50px;
    bottom: 27px;
    left: 50%;
    background-color: rgb(120, 159, 172);
    transform: translateY(100%) /* translateX(-95px)*/;
}

.hv-wrapper .hv-item .hv-item-parent.couple:not(.has-children):after {
    display: none;
}

.hv-wrapper .hv-item .hv-item-children {
    display: flex;
    justify-content: center;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child {
    padding: 0 15px;
    position: relative;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child .hv-item .hv-item-children {
    padding: 0 !important;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child:only-child:after {
    display: none;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child:before,
.hv-wrapper .hv-item .hv-item-children .hv-item-child:after {
    content: '';
    position: absolute;
    background-color: rgb(120, 159, 172);
    left: 0;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child:not(.has-couple):before {
    left: 50%;
    top: 0;
    transform: translateY(-100%);
    width: 2px;
    height: 25px;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child:after {
    top: -25px;
    transform: translateY(-100%);
    height: 2px;
    width: 100%;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child:first-child:after {
    left: 50%;
    width: 50%;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child.has-couple:first-child:after {
    left: none;
    right: -25%;
    margin-left: auto;
    width: calc(50% - 5px);
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child:last-child:after {
    width: calc(50% + 1px);
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child.has-couple:last-child:after {
    width: calc(50% - 98px) !important;
}

.hv-wrapper.reverse .hv-item {
    flex-direction: column-reverse;
}

.hv-wrapper.reverse .hv-item .hv-item-parent {
    margin-top: 50px;
    margin-bottom: 0;
}

.hv-wrapper.reverse .hv-item .hv-item-parent:after {
    top: 0;
    transform: translateY(-100%);
}

.hv-wrapper.reverse .hv-item .hv-item-child {
    display: flex;
    align-items: flex-end;
}

.hv-wrapper.reverse .hv-item .hv-item-child:before {
    top: auto;
    bottom: 0;
    transform: translateY(100%);
}

.hv-wrapper.reverse .hv-item .hv-item-child:after {
    top: auto;
    bottom: -25px;
    transform: translateY(100%);
}

.hv-item-child.couple .hv-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
}


.hv-item-parent.couple .hv-item-content:first-child {
    margin-right: 25px;
    position: relative;
}

.hv-item-parent.couple .hv-item-content:first-child:after {
    bottom: 25px;
    transform: translateY(-50%);
    height: 2px;
    width: 25px;
    content: '';
    position: absolute;
    background-color: rgb(120, 159, 172);
    right: -25px;
}

.hv-item-parent.couple .hv-item-content:last-child {
    margin-left: 25px;
    position: relative;
}

.hv-item-parent.couple .hv-item-content:last-child:after {
    bottom: 25px;
    transform: translateY(-50%);
    height: 2px;
    width: 25px;
    content: '';
    position: absolute;
    background-color: rgb(120, 159, 172);
    left: -25px;

}

/* .hv-item-child.couple .hv-item::before {
    top: -25px;
    content: '';
    height: 100%;
    width: 2px;
    position: absolute;
    background-color: rgb(120, 159, 172);
    left: 50%   ;
} */
.hv-item-parent.couple .hv-item-content:last-child:before {
    top: -25px;
    content: '';
    height: 25px;
    width: 2px;
    position: absolute;
    background-color: rgb(120, 159, 172);
    left: 50%;
}

/** ***/
.hv-wrapper .hv-item .hv-item-father:after {
    bottom: 25px;
    transform: translateY(-50%);
    height: 2px;
    width: 10%;
}

.hv-wrapper .hv-item .hv-item-mother:after {
    bottom: 25px;
    transform: translateY(-50%);
    height: 2px;
    width: 10%;
}

.hv-wrapper .hv-item .hv-item-father:after {
    content: '';
    position: absolute;
    background-color: rgb(120, 159, 172);
    right: -5px;
}

.hv-wrapper .hv-item .hv-item-mother:after {
    content: '';
    position: absolute;
    background-color: rgb(120, 159, 172);
    left: -5px;
}

.hv-wrapper .hv-item .hv-item-children .hv-item-child.has-parent:before {
    display: none !important;
}

.hv-wrapper .hv-item .hv-item-parent.has-parents:after {
    height: 50px;
    transform: translateY(50%);
    left: 50%;
}

.public-family-tree .hv-wrapper .hv-item .hv-item-parent.root::after {
    content: none;
}

.hv-item-content span {
    font-size: 14px;
}

.hv-item-child.has-couple:last-child>.hv-item>.hv-item-parent.couple {
    flex-direction: row-reverse;
}

.hv-item-child.has-couple:last-child>.hv-item>.hv-item-parent.couple .hv-item-content:first-child {
    margin-left: 25px;
    margin-right: none;
}

.hv-item-child.has-couple:last-child>.hv-item>.hv-item-parent.couple .hv-item-content:last-child {
    margin-right: 25px;
    margin-left: none;
}

.hv-item-child.has-couple:last-child>.hv-item>.hv-item-parent.couple .hv-item-content:first-child:after {
    bottom: 25px;
    transform: translateY(-50%);
    height: 2px;
    width: 25px;
    content: '';
    position: absolute;
    background-color: rgb(120, 159, 172);
    left: -25px;
    right: unset;
}

.hv-item-child.has-couple:last-child>.hv-item>.hv-item-parent.couple .hv-item-content:last-child:after {
    bottom: 25px;
    transform: translateY(-50%);
    height: 2px;
    width: 25px;
    content: '';
    position: absolute;
    background-color: rgb(120, 159, 172);
    right: -25px;
    left: unset;
}
