/*** Connections styles for the list of results ***/
#pathlist {
    --bgr: #e8dccb; /* background color of the diagram ( and invisible box border) */
    --bg1: #fff; /* background of person box on hover */
    --bg2: #dcc9ae; /* background color for boxes */
    --cl1: #bba28c; /* box shadow */
    --cl2: #504030; /* text inside box */
    /* fonts used for textual descriptions and inside boxes */
}
.pathlist {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.pathfound {
    margin: 0.7em 1em 0.7em 0;
}
/* Connections styles for dragging */
.outer {
    position: relative;
    margin: 0;
    overflow: hidden;
}
.inner {
    position: relative;
    float: left;
    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}
.draginfo {
    position: absolute;
    text-align: left;
    z-index:100;
    color: #bbb;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px #777;
    opacity: 0.4;
    filter:alpha(opacity=40); /* for <= IE 8 */
    /* prevent draginfo text select */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    /*-khtml-user-select: none; !* Konqueror HTML *!*/
    user-select: none;
    /* apply bouncing */
    -moz-animation: draginfo 4s infinite alternate;
    -webkit-animation: draginfo 4s infinite alternate;
    animation: draginfo 4s infinite alternate;
}
/* bounce draginfo text */
@-moz-keyframes draginfo {
    from { -moz-transform: translateX(calc(97vw - 12em)); }
    to { -moz-transform: translateX(0); }
}
@-webkit-keyframes draginfo { /* IOS */
    from { -webkit-transform: translate3d(calc(97vw - 12em), 0, 0); }
    to { -webkit-transform: translate3d(0,0,0); }
}
@keyframes draginfo {
    from {
        -moz-transform: translate3d(calc(97vw - 12em), 0, 0); /* Firefox bug fix */
        -webkit-transform: translate3d(calc(97vw - 12em), 0, 0); /* IOS/Firefox bug fix */
        transform: translate3d(calc(97vw - 12em), 0, 0);
    }
    to {
        -moz-transform: translateX(0); /* Firefox bug fix */
        -webkit-transform: translate3d(0,0,0); /* IOS/Firefox bug fix */
        transform: translateX(0);
    }
}
/* Connections styles for table containing pseudo-graphics */
#pathlist {
    font-size: 11pt;
    font-weight: normal;
}
#pathlist a:link, a:visited {
    text-decoration: none;
    color: var(--cl2);
}
#pathlist a:active, a:hover {
    background-color: var(--bgr);
}
#pathlist .pathnames {
    margin: 0.6em 1em 0.6em 0;
}
#pathlist .paths {
    border-collapse: separate;
    border-spacing: 0 12px;
    border-radius: 10px;
    max-width: 100%;
    margin: 0 10px 10px 0;
}
#pathlist .pers {
    min-width: 250px;
    max-width: 250px;
    border: 1px solid black;
    border-radius: 10px;
    text-align: center;
    /*background-color: var(--bg2);*/
    box-shadow: 3px 3px 3px #999;
    cursor: pointer;
    padding: 5px;
    display: flex;
    vertical-align: top;
    position: relative;
}
.ptext {
    margin: auto;
    padding: 0px 8px 0px 8px;
}
#pathlist .spantxt {
    min-width: 250px; /* almost pers min*2 */
    max-width: 250px;
    padding: 5px;
    border: 1px solid black; /* here is visible border for parent */
    border-radius: 10px;
    /*background-color: var(--bg2);*/
    box-shadow: 3px 3px 3px #999;
    cursor: pointer;
    position: relative;
    display: flex;
    margin: auto;
}
#pathlist .pers:hover, #pathlist .spantxt:hover {
    background-color: var(--bgr);
}
#pathlist .colspan {
    vertical-align: bottom;
    padding: 0;
    border-top: 0;
    margin-top: 0;
    text-align: center;
}
#pathlist .slashes, #pathlist .upline, #pathlist .downline {
    height: 0.1em;
    font-size: 1.0em;
    margin-top: -0.2em;
    word-spacing: 140px; /* distance between slashes connecting to chidern */
    position: absolute;
}
#pathlist .upline {
    bottom: 0px;
    left: 135px; 
    line-height: 1.1em;
}
#pathlist .downline {
    top: -13px;
    left: 135px; 
    line-height: 1.1em;
}
#pathlist .slashes {
    font-size: 1.2em;
    bottom: 1px;
    left: 56px;
    line-height: 1.2em;
}
#pathlist img.thumb {
    float: left;
    border-radius: 4px;
    height: 65px;
}
#pathlist div.nothumb {
    float: left;
    height: 100%;
}
#pathlist .spouse {
    text-align: center;
    padding: 0;
}

/* Styles bor modal box in connections-form */
.curtain { /* cover the whole page when box displayed */
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    /*padding-top: 100px; !* Location of the box *!*/
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 1000px;
    overflow: auto; /* Enable scroll if needed */
    background-color: darkgrey; /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
#box {
    position: absolute;
    /*background-color: #dcc9ae; ---is taken from .titlebox instead */
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    max-width: 97vw;
    max-height: 300px;
    overflow: auto;
}
.close {
    color: white;
    float: right;
    font-size: 1.5em;
    font-weight: bold;
}
.close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.box-header {
    height: 1.7em;
    line-height: 1.7em;
    padding: 0 5px;
    /*background-color: #bba28c;*/
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}
.box-body {padding: 1em 1em;}

.bkmli { margin: 5px 3px 2px 5px; cursor: pointer; }
.bkmli:hover { background-color:#fff }
