/*----------------genealogy-scroll----------*/

.genealogy-scroll::-webkit-scrollbar {
    width: 5px;
    height: 8px;
}
.genealogy-scroll::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #e4e4e4;
}
.genealogy-scroll::-webkit-scrollbar-thumb {
    background: #212121;
    border-radius: 10px;
    transition: 0.5s;
}
.genealogy-scroll::-webkit-scrollbar-thumb:hover {
    background: #d5b14c;
    transition: 0.5s;
}


/*----------------genealogy-tree----------*/
.genealogy-body{
    white-space: nowrap;
    /* overflow-y: auto; */
    overflow-x: auto;
    /* padding: 50px; */
    min-height: auto;
    /* padding-top: 30px; */
    transition: transform 0.2s ease-in-out;
    text-align: center;
    display: inline-block;
    cursor: grab;
    zoom: 0.8;
    max-width: 100%;
    min-width: 100%;
    min-height: 90vh;
}
.genealogy-body.active {
    background: rgba(255,255,255,0.3);
    cursor: grabbing;
    cursor: -webkit-grabbing;
    transform: scale(1);
  }
.genealogy-tree{
  display: inline-block;
}
.genealogy-tree ul {
    padding-top: 20px; 
    position: relative;
    padding-left: 0px;
    display: flex;
    justify-content: center;
}
.genealogy-tree li {
    float: left; text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
}
.genealogy-tree li::before, .genealogy-tree li::after{
    content: '';
    position: absolute; 
  top: 0; 
  right: 50%;
    border-top: 2px solid #ccc;
    width: 50%; 
  height: 18px;
}
.genealogy-tree li::after{
    right: auto; left: 50%;
    border-left: 2px solid #ccc;
}
.genealogy-tree li:only-child::after, .genealogy-tree li:only-child::before {
    display: none;
}
.genealogy-tree li:only-child{ 
    padding-top: 0;
}
.genealogy-tree li:first-child::before, .genealogy-tree li:last-child::after{
    border: 0 none;
}
.genealogy-tree li:last-child::before{
    border-right: 2px solid #ccc;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}
.genealogy-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;
}
.genealogy-tree ul ul::before{
    content: '';
    position: absolute; 
    top: 0; 
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0; 
    height: 20px;
}
.genealogy-tree li a{
    text-decoration: none;
    /* color: white; */
    font-family: arial, verdana, tahoma;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    /* background: #2c19a7;
    margin: 0 10px; */
}

.member-details h3 {
    text-decoration: none;
    color: #1a223a;
    font-size: 11px;
    display: inline-block;
    width: 100%;
    padding: 5px 20px;
}

.member-details-box h3 {
    text-decoration: none;
    border-radius: 11px;
    color: white;
    font-size: 11px;
    display: inline-block;
    background: #1a223a;
    width: 100%;
    padding: 5px 20px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.member-details-box p:nth-child(2) {
    /* font-weight: 600; */
}

.genealogy-tree li a:hover+ul li::after, 
.genealogy-tree li a:hover+ul li::before, 
.genealogy-tree li a:hover+ul::before, 
.genealogy-tree li a:hover+ul ul::before{
    border-color:  #fbba00;
}

.genealogy-tree > ul > li > a > .member-view-box .member-details-box {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.genealogy-tree > ul > li > a > .member-view-box .member-details-box h3 {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/*--------------memeber-card-design----------*/
.member-view-box{
    padding:0px 20px;
    /* text-align: center; */
    border-radius: 4px;
    position: relative;
}
.member-image{
    /* width: 60px; */
    position: relative;
    min-width: 200px;
}
.member-image img{
    width: 60px;
    height: 60px;
    border-radius: 6px;
  background-color :#000;
  z-index: 1;
}
.member-details h3 {
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: normal;
}
.member-details-box {
    border: 1px solid black;
    border-radius: 14px;
    background: white;
    font-family: "Rubik", sans-serif;
}
.member-details-box p {
    margin: 5px 0px;
    padding: 0px 10px;
    font-weight: normal;
}

.zoom,.zoom-out,.zoom-init {
    float: left;
}
  
  .zoom:hover,.zoom-out:hover,.zoom-init:hover {
    transform: scale(1.5); /* (150% zoom)*/
    transition: transform 0.2s ease-in-out;
  }
  
  .zoom-out {
    bottom: 120px;
    transition: transform 0.2s ease-in-out;
  }
  .zoom-init {
    bottom: 50px;
    transition: transform 0.2s ease-in-out;
  }
