table {
        width: 100%;
        border-collapse: collapse;
        vertical-align: middle;
        align-items: center;
    }

tr {
    display: flex;
    width: 100%;
    vertical-align: middle;
    }

td {
    flex: 1;
    border: 0;
    padding: 1px;
    align-content: center;
    width: 5%;
    }

p {
    margin: 2px;
    font-size: 8px;
}

/*分割线样式*/
hr {
    border: none;
    height: 1px;
    background-color: #ccc;
    width: 100%;
    margin: 3px auto;
}

#add_member, #modify_member, #calculate_relation, #family_select_table, #my_frame {
    display: flex;
    width: 99%;
    line-height: 3px;
    white-space: pre-wrap;
    border: black;
    border-collapse: inherit;
    /*overflow: hidden;*/
    table-layout: fixed;
    align-items: center;
    background-color: #e9eae7;
    font-size: xx-small;
    margin: auto;
}

#tree_container {
    position: relative;
    background-color: #e9eae7;
    overflow: auto;
}

#d3_container {
    position: absolute;
}

.text_left {
    text-align: right;
    align-items: center;
    font-size: xx-small;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: 25px;
}

.text_right {
    text-align: left;
    align-items: center;
    font-size: xx-small;
}

/*foot样式*/
.foot {
    text-align: center;
    align-items: center;
    font-size: xx-small;
}

.my_input{
    width: 100px;
}

.my_desc{
    width: 320%;
}

/*小标题样式*/
.myTitle1{
    font-size: 12px;
}

/*小标题备注样式*/
.myTitle2{
    font-size: 9px;
}


/* 为必填字段的标签添加红色星号 */
label[for]:required::before {
    content: " *";
    color: red;
}

/* 为必填输入框添加红色边框 */
input:required {
    border: 1px solid red;
}

select:required {
    border: 1px solid red;
}

/* 当输入框获得焦点时，改变边框颜色 */
input:required:focus {
    border: 1px solid blue;
}


/*族谱图样式*/
.node circle {
    fill: #fff;
    stroke: springgreen;
    stroke-width: 1px;
}

.node text {
    font: 10px sans-serif;
}

.link {
    fill: none;
    stroke: #ccc;
    stroke-width: 1px;
}

/* 悬浮窗样式 */
.floating-window {
    position: absolute;
    display: none;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 4px 5px 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 999;
}

/* 悬浮窗关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 0;
    right: 4px;
    cursor: pointer;
}