/*----------------genealogy-tree----------*/
.genealogy-body {
    white-space: nowrap;
    overflow-y: hidden;
    padding: 50px;
    min-height: 500px;
    padding-top: 10px;
    text-align: center;
}
.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.spouse:first-child::before, .genealogy-tree li.spouse: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 ul .spouse::before, .genealogy-tree ul .ex-spouse::before {
    border-left: 2px dashed #ccc;
}
.genealogy-tree li a {
    text-decoration: none;
    color: #666;
    font-family: arial, verdana, tahoma;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

.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;
}

/*--------------member-card-design----------*/
.member-view-box {
    padding: 0px 20px;
    text-align: center;
    border-radius: 4px;
    position: relative;
}
.member-image {
    width: 100px;
    height: 75px;
    background-size: cover;
    background-position: top left;
    z-index: 1;
    margin-left: 20px;
}
#john-doe {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}
#jane-doe {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}
#member-1 {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}
#member-1-1 {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}
#member-1-2 {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}
#member-1-3 {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}
#member-2 {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}
#member-3 {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}
#member-4 {
    background-image: url('https://socket.abyssal-interactive.com/avatars/3_1_sd.png');
}

.spouse-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.spouse-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 2px dashed #ccc;
    z-index: -1;
}

/* Add these styles for child container */
.child-container {
    position: relative;
    display: flex;
    justify-content: center;
}
.child-container::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0;
    height: 18px;
}

/* Add deceased member styling */
.member-deceased {
    filter: grayscale(100%);
}
