@font-face {
    font-family: MyFont;
    src: url(../webfonts/myfont.ttf);
 }
 .level{
    display: inline-block;
    text-align: center;
    width: 28px;
    height: 28px;
    background-color: red;
    color:white;
    border-radius: 18px;
 }
body {
    font-family:MyFont;
    margin-bottom: 10px;
    margin-top: 5px;
    font-size: 1.2em;
    /* word-spacing: -3px; */
    /* letter-spacing: -1px; */
}
#helpme,#dieday,#searchname{
    font-size:20px
}
.detail-body h6{
    color:white;
    padding: 5px;
    margin-top: 5px;
    background-color: gray;
    border-bottom: solid 2px rgba(72, 74, 76, 0.82);
}
#familyTitle{
    font-weight: 500;
    text-transform: uppercase;
    background-color: rgba(25, 26, 27, 0.82);
    color:white;
    padding: 5px;
    padding-top: 8px;
    border-bottom: solid 2px rgb(39, 39, 39);
}
#tree_family {
    margin: 5px;
    min-width: 600px;
}
.detail-body{
    margin: 5px;
    min-width: 600px;
}
#tree_family #tree_title {
    font-size: 1em;
    font-weight: bold;
    background-color: rgba(9, 54, 105, 0.82);
    color: white;
    display: block;
    padding: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.person-icon{
    float: left;
    margin-right: 5px;
    margin-top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 5px;
}
summary .node-child {
    font-weight: bold;
    line-height: 1em;
    margin-top: 0px;
    margin-bottom: 2px;
}

summary .node-marry {
    font-weight: 500!important;
    line-height: 1.05em;
    color: black;
    font-size: 16px;
}

ul {
    list-style: none;
    line-height: 2em;
    margin-left: -15px;
}

ul summary {
    padding-bottom: 0px;
}

ul summary::marker,
ul summary::-webkit-details-marker {
    display: none;
    content: "";
}

ul li {
    cursor: pointer;
    position: relative;
    padding-top: 6px;
    padding-left: 8px;
    padding-bottom: 2px;
    font-weight: bold;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

ul li::after {
    position: absolute;
    left: -10px;
    bottom: 0px;
    content: "";
    width: 8px;
    height: 100%;
}

ul li:last-child::after {
    display: none;
}

ul summary::before {
    position: absolute;
    left: -1.5em;
    top: 0.85em;
    content: attr(data-before);
    display: block;
    width: 28px;
    height: 20px;
    border-radius: 10em;
    background-color:  rgba(9, 54, 105, 0.82);
    z-index: 999;
    text-align: center;
    line-height: 1.2em;
    color: white;
    font-weight: 100;
    font-size: 16px;
}

ul details[open]>summary::before {
    position: absolute;
    left: -1.5em;
    top: 0.85em;
    content: attr(data-after);
    display: block;
    width: 28px;
    height: 20px;
    border-radius: 10em;
    background-color: rgba(9, 54, 105, 0.82);
    z-index: 999;
    text-align: center;
    line-height: 1.2em;
    color: white;
    font-weight: 100;
    font-size: 16px;
}
.notchild::before{
    position: absolute;
    left: -1.5em;
    top: 0.85em;
    content: attr(data-before);
    display: block;
    width: 28px;
    height: 20px;
    border-radius: 10em;
    background-color: rgba(9, 54, 105, 0.82);
    z-index: 999;
    text-align: center;
    line-height: 1.2em;
    color: white;
    font-weight: 100;
    font-size: 16px;
}
#top{
    position: fixed;
            bottom: 10px; /* Distance from the bottom */
            right: 10px; /* Distance from the right */
            padding: 10px 15px;
            background-color: red;
            color: white;
            border: none;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s, transform 0.3s;
}
#top:hover {
    transform: translateY(-2px);
}
#top:active {
    transform: translateY(1px);
}
@media (max-width: 600px) {
    #top {
       display: none;
    }
}

@media (max-width: 400px) {
    #top {
        display: none;
    }
}