/*** 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 */
    --fontfam: "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular, sans-serif;
    --fontnar: Arial, Helvetica, sans-serif;
    --fonttit: Merriweather, serif;
}
.pathlist {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.pathfound {
    margin: 0.7em 1em 0.7em 0;
}
/* Connections styles for dragging */
.outer {
    position: relative;
    width: 97vw;
    max-width: 1220px; /* ='strona'; max- to have it narrower if possible */
    margin: 0;
    overflow: hidden;
}
.inner {
    position: relative;
    float: left;
    cursor: auto; /* to be changed by jquery */
    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 */
@import url(https://fonts.googleapis.com/css?family=Merriweather); /* font for pseudo-graphics */
#pathlist {
    font-family: 'Merriweather', serif;
    font-size: 12px;
    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;
    font-family: var(--fontfam);
}
#pathlist .paths {
    border: 1px solid grey;
    border-collapse: separate;
    /*background-color: var(--bgr);*/
    border-spacing: 0 10px;
    border-radius: 5px;
    max-width: 100%;
    box-shadow: 4px 4px 4px var(--cl1);
    padding: 0 4px 0 2px;
}
#pathlist .pers {
    min-width: 125px;
    max-width: 250px;
    border: 1px solid black;
    border-radius: 5px;
    text-align: center;
    /*background-color: var(--bg2);*/
    box-shadow: 3px 3px 3px var(--cl1);
    cursor: pointer;
    font-family: var(--fontfam);
}
#pathlist .spantxt {
    display:inline-block;
    min-width: 200px; /* almost pers min*2 */
    padding: 1px 5px 2px 1px;
    border: 1px solid black; /* here is visible border for parent */
    border-radius: 5px;
    /*background-color: var(--bg2);*/
    box-shadow: 3px 3px 3px var(--cl1);
    cursor: pointer;
    font-family: var(--fontfam);
}
#pathlist .pers:hover, #pathlist .spantxt:hover {
    background-color: var(--bgr);
}
#pathlist .colspan {
    vertical-align: bottom;
    border: 1px solid var(--bgr); /* background color to be invisible but take space */
    padding: 0;
    border-top: 0;
    margin-top: 0;
    text-align: center;
}
#pathlist .slashes {
    height: 0.1em;
    font-size: 1em;
    margin-top: -0.2em;
    word-spacing: 140px; /* distance between slashes connecting to chidern */
}
#pathlist img.thumb {
    float: left;
    height: 40px;
    max-width: 70px;
    border-radius: 4px;
}
#pathlist div.nothumb {
    display: inline-block;
    float: left;
    height: 40px;
}
#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;
}
.box-body {padding: 1em 1em;}

.bkmli { margin: 5px 3px 2px 5px; cursor: pointer; }
.bkmli:hover { background-color:#fff }
