/**/
/*@import url(https://fonts.googleapis.com/css?family=Merriweather);*/
/*@import url(https://fonts.googleapis.com/css?family=Biryani);*/
#pathlist {
    --bgr: #e8dccb; /* background color of the diagram ( and invisible box border) */
    --bg1: #e0c2a6; /* background of person box on hover */
    --bg2: #dcc9ae; /* background color for boxes */
    --cl1: #bba28c; /* box shadow */
    --cl2: #504030; /* text inside box */
    /*--fontfam: Merriweather, "Trebuchet MS", Arial, sans-serif;*/
    /*font used for connectors between boxes*/
    --fontbar: Biryani, Arial, sans-serif;
}
.pathlist {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.pathfound {
    margin: 0.7em 1em 0.7em 0;
}
/* Paths 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);
    }
}
/* Styles for diagrams */
.markl {
    font-size: 10px;
    font-weight: 900;
    color: black;   
}
#pathlist {
    /*font-family: var(--fontfam);*/
    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;
}
#pathlist .relinfo {
    font-size: larger;
    font-weight: bold;
}
#pathlist .paths {
    max-width: 100%;
    border: 1px solid grey;
    border-collapse: separate;
    border-spacing: 0;
    padding: 10px 4px 10px 2px;
    border-radius: 5px;
    box-shadow: 4px 4px 4px var(--cl1);
    margin-bottom: 4px;
}
#pathlist .pers {
    min-width: 125px;
    max-width: 200px;
    min-height: 45px;
    max-height: 70px;
    overflow: clip;
    border: 1px solid black;
    border-radius: 5px;
    text-align: center;
    box-shadow: 3px 3px 3px var(--cl1);
    cursor: pointer;
}
#pathlist tr:nth-child(even) { /* bars between persoos */
    line-height: 7px;
    overflow: hidden;
    text-align: center;
    border: none;
    font-family: var(--fontbar);
    font-size: 12px;
}
#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;
    box-shadow: 3px 3px 3px var(--cl1);
    cursor: pointer;
}
#pathlist .pers:hover, #pathlist .spantxt:hover {
    background-color: var(--bgr);
}
#pathlist .colspan {
    vertical-align: bottom;
    border: 1px solid var(--bgr); /* border has background color to be invisible but take space */
    padding: 0;
    border-top: 0;
    margin-top: 0;
    text-align: center;
}
#pathlist .colspan1 {
    vertical-align: top;
    border: 1px solid var(--bgr); /* border has background color to be invisible but take space */
    padding: 0;
    border-top: 0;
    margin-top: 0;
    text-align: center;
}
#pathlist .slashes {
    font-size: 15px;
    word-spacing: 135px; /* distance between slashes connecting to chidern */
}
#pathlist .cleft {
    font-size: 15px;
    padding-left: 30px;
    position: relative;
    top: 1px;
}
#pathlist .cright {
    font-size: 15px;
    padding-right: 30px;
    position: relative;
    top: 1px;
}
#pathlist .mark {
    font-size: 10px;
    font-weight: 900;
    position: relative;
    line-height: 0;
    top: 0;
    overflow: hidden;
}
#pathlist .mark1 {
    font-size: 10px;
    font-weight: 900;
    position: relative;
    line-height: 0;
    top: -2px;
    overflow: hidden;
}
#pathlist .mark2 {
    font-size: 10px;
    font-weight: 900;
    position: relative;
    line-height: 0;
    top: -2px;
    overflow: hidden;
}
#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 {
    font-size: 1.3em;
    padding: 0;
}

/* Styles for modal box in paths-form */
.curtain { /* cover the whole page when box displayed */
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* 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 }

/* keep title and select aligned left-right; also sizes */
.params td {
    display:flex;
    justify-content:space-between;
}
.params div {
    font-size:13px;
    line-height:1.8em;
}
.params input {
    height:1.8em;
    width:7ch;
    line-height:1.4em;
    font-size:13px;
    border: 1px solid black;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 6px;
}
.params select {
    font-size:13px;
}

/* Styles for modal in the pdf form */
/* Note: modal background = .curtain */
/* Modal window */
.LB_window {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    // transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 400px;
    max-width: 90%;
    min-width: 300px;
    z-index: 101;
}
/* Top bar */
.LB_closeAjaxWindow {
    display: flex;
    justify-content: flex-end; /* close icon to right */
    padding: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box; /* Padding w ramach szerokości */
    height: 40px;
    z-index: 102; /* above window */
    cursor: default;
}
/* Close icon */
.LB_closeAjaxWindow a#close img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
/* Window below bar */
.pdfform {
    margin: 10px 15px 30px 15px;
    padding: 5px;
    color: #333;
    background-color: var(--bgr);
    overflow-y: auto;
    max-height: calc(100% - 40px); /* Upewnij się, że treść nie wyjdzie poza okno */
    box-sizing: border-box;
}
.pdfform input[type='checkbox'] {
    width: 20px;
    height: 20px;
}
.pdfform input[type=checkbox]:checked {
    opacity:0.5; /* not as dark as default */
}

/* Input fields for margins */
#tmargin, #bmargin, #lmargin, #rmargin {
    width: 7em;
    height: 1.5em;
    accent-color: #888;
}
.mval {
    vertical-align: 0.5em;
}