/*** FONTS ***/
@font-face {
    font-family: "LondrinaOutline";
    src: url(https://www.branching.com.au/familytree/fonts/LondrinaOutline-Regular.ttf) format("truetype");
}
@font-face {
    font-family: "Caveat-Regular";
    src: url(https://www.branching.com.au/familytree/fonts/Caveat-Regular.ttf) format("truetype");
}
/*** END FONTS ***/

/*** GENERAL STYLES ***/
body {
    min-height: 100vh;
    margin: 0;
    background-color: #efefcb;
}
label {
    display: inline-block;
    /*width: 70px;*/
    margin-right: 10px;
    color: #456445;
    text-align: right;
    letter-spacing: 1px;
    font-weight: bold;
}
ul {
    width: fit-content;
    margin: 20px auto;
    line-height: 2em;
    text-align: left;
}
a, .alink {
    color: darkgreen;
    letter-spacing: 2px;
    font-family: sans-serif;
    font-variant: petite-caps;
    text-decoration: none;
    cursor: pointer;
}
a:hover {
    color: #1ece1e;
    text-decoration: underline;
}
p {
    display: inline-block;
}
pre {
    /*display: inline-block;*/
    max-width: 94%;
    font-family: serif;
    line-height: 1.4em;
    letter-spacing: 1px;
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;
}
input[type=checkbox] {
    margin: 10px;
    padding: 10px;
    -ms-transform: scale(1.5); /* IE */
    -moz-transform: scale(1.5); /* FF */
    -webkit-transform: scale(1.5); /* Safari and Chrome */
    -o-transform: scale(1.5); /* Opera */
    transform: scale(1.5);
}
input[type=button] {
    margin: 0 10px;
    cursor: pointer;
}
.submitBtn {
   display: inline-block;
   cursor: pointer;
}
.cancel {
    display: inline-block;
    margin-left: 14px;
    cursor: pointer;
}
.editBtn {
    border: 1px solid #ccc;
    border-radius: 2;
}
.editCommBtn {
    float: right;
    position: absolute;
    right: 10px;
    font-size: 1.4em;
    border: 0;
    border-radius: 10px;
}
.deleteBtn {
    padding: 0 14px;
    color: #fff;
    background-color: #fa6b6bf0;
}
.textEmphasis {
    color: #ce6442;
    font-size: 1.2em;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 1px;
}
.imgBioPic {
    max-width: 80px;
    height: auto;
}
.orDiv {
    margin: 20px 0;
    font-size: 1.4em;
    font-family: cursive;
}
.pagination {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 0 10px;
    background-color: #fffdf1;
    -moz-box-shadow:0px 1px 2px #9E9E9E;
    -webkit-box-shadow:0px 1px 2px #9E9E9E;
    box-shadow:0px 1px 2px #9E9E9E;
    transform: rotate(-90deg);
    -webkit-transform: rotate(-1deg);/* Safari */
    -moz-transform: rotate(-1deg);/* Firefox */
    -ms-transform: rotate(-1deg);/* IE */
    -o-transform: rotate(-1deg);/* Opera */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/* Internet Explorer */
}
.pagination a {
    color: #1e36a3;
    font-family: "Caveat-Regular", Arial;
    font-size: 1.2em;
    text-decoration: none;
}
.cancelDiv {
    margin-top: 10px;
    cursor: pointer;
}
.cancelDiv:hover {
    color: blue;
}
.collapsible {
    display: inline-block;
    margin:20px 0 10px 0;
    font-size: 1.4em;
    font-family:sans-serif;
    vertical-align: sub;
    cursor: pointer;
}
.thumbnailsDiv {
    display: inline-block;
    margin: 6px;
    background-color: #fff;
    cursor: pointer;
}
.thumbnailsDiv img {
    max-width: 100px;
    max-height: 90px;
}
#mainPageContDiv {
    display: block;
    width: 100%;
    min-height: 88vh;
    padding-top: 30px;
    text-align: center;
}
/*** END GENERAL STYLES ***/

/*** LOGIN ***/
#signinCont {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}
/*** END LOGIN ***/

/*** HEADER & FOOTER ***/
#indexHeader, #headerMainPage {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
}
#indexHeader img {
    max-width: 26%;
    height: auto;
}
#headerMainPage {
    
}
#headerMainPage img {
    height: 40px;
    margin: 20px;
}
#headerMenuDiv {
    width: 100%;
    height: 60px;
    text-align: right;
    border-top: 6px solid #d3dfaa;
}
#headerMenuDiv img {
    position: relative;
    top: 50%;
    float: left;
    max-width: 150px;
    margin-left: 30px;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    opacity: 0.7;
}
#loginName {
    display: inline-block;
    font-family: cursive;
}
#btnLogin, #btnLogout {
    display: inline-block;
    width: fit-content;
    height: fit-content;
    margin: 20px;
    padding: 8px;
    font-family: cursive;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: cornsilk;
    cursor: pointer;
}
#menuBar {
    width: 100%;
    /*margin: 20px 0 10px 0;*/
    text-align: center;
    letter-spacing: 10px;
    border-bottom: 1px solid #d3d3d3;
    background-color: white;
}

#footerDiv {
    position: absolute;
    top: calc(100vh - 30px);
    left: 0;
    right: 0;
    padding: 4px;
    height: 20px;
    text-align: center;
    letter-spacing: 10px;
    background-color: white;
}
    /* Meduim devices: (Tablets, Ipads etc.) */
@media screen and (min-device-width: 400px) and (max-device-width: 1200px){
    #indexHeader img {
        max-width: 100%;
    }
    #btnLogin, #btnLogout {
        font-size: 2em;
    }
    #footerDiv {
        top: calc(100vh - 40px);
        height: 32px;
    }
}
/*** END HEADER & FOOTER ***/


/*** POPUPS ***/

.popupContDiv {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  	margin: 0;
  	background: rgb(0,0,0); /* Backup colour */
  	background: rgba(0,0,0,0.8);
    z-index: 100;
}
.popupDiv {
    position: absolute;
  	top: 50%;
  	left: 50%;
  	-o-transform: translate(-50%, -50%);
  	-ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
  	-moz-transform: translate(-50%, -50%);
  	transform: translate(-50%, -50%);
    padding: 40px;
    background-color: #fff;
  	border: 4px solid #666;
  	text-align: center;
}
.popupDiv textarea {
    width: 300px;
    height: 200px;
}
#nameListPopup {
    width: fit-content;
    padding: 10px;
    background-color: #fff;
    line-height: 1.3em;
    border: 1px solid #ccc;
}
.popupListName:hover {
    cursor: pointer;
    color: darkgreen;
}
#nameInputDiv {
    display: inline-block;
}
.popupListName {
    display: block;
    width: 100%;
}
.popupListName:hover {
    background: antiquewhite;
}
/*** END POPUPS ***/

#contactPageContDiv, #servicesPageContDiv, #galleryPageContDiv, #membersPageContDiv, #regPageContDiv {
    min-height: 90vh;
    text-align: center;
}
#frmFamReg {
    text-align: left;
}
#mainPageContDiv {
    width: 100%;
}
#mainPageImagesDiv {
    position: absolute;
    top: 130px;
    left: 220px;
    max-height: 200px;
    max-width: 80%;
    border-radius: 30px;
    overflow: hidden;
    /* For IE 5.5 - 7*/
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99222222, endColorstr=#99222222);
    /* For IE 8*/
    -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99222222, endColorstr=#99222222);
    -moz-box-shadow:0px 0px 7px #000000;
    -webkit-box-shadow:0px 0px 7px #000000;
    box-shadow:0px 0px 7px #000000;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    /*z-index:10;*/
}
#imagesDivOverlayDiv {
    position: absolute;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 100;
}
#bgImage {
    height: 100vh;
}
#logo {
    max-width: 250px;
    width: auto;
    height: auto;
    padding: 60px 10px 0 0;
    vertical-align: top;
}
#btnRowDiv {
    position: absolute;
    top: 400px;
    left: 220px;
    display: flex;
    width: 100%;
    max-width: 80%;
    justify-content: space-around;
    z-index: 101;
}
#contactDiv, #regInputDiv, #uploadRelInputDiv {
    display: inline-block;
    width: 80%;
    padding: 20px 30px;
    line-height: 2.2em;
    border: 1px solid #ccc;
}
#frmFamReg label {
    width: 160px;
}
#regInputDiv input {
    width: 300px;
}
#contactDiv input, #regInputDiv input {
    width: 40%;
    height: 20px;
    margin-left: 10px;
    border: 1px solid #ccc;
}
#txtMessage {
    width: 60% !important;
    height: 100px !important;
}
#alertMessage {
    display: block;
    color: red;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.2em;
}
.galPicCont {
    display: inline-block;
    margin: 16px;
    padding: 10px;
    border: 2px solid #666;
}

/*** MAIN PAGE ***/
#mainPageSectionCont {
    min-height: 460px;
}
#lhsDiv, #rhsDiv {
    display: inline-block;
    min-height: inherit;
}
#searchDiv, #browseDiv, #addDiv, #myPageDiv, #treeDiv {
    display: inline-block;
    height: 70%;
    width: fit-content;
    margin-top: 20px;
    vertical-align: top;
    padding: 20px;
    background-color: #fffdcc;
    border: 1px solid #ccc;
    cursor: pointer;
}
#searchDiv:hover, #browseDiv:hover, #addDiv:hover, #myPageDiv:hover, #treeDiv:hover {
    background-color: #fff;
}
#searchDiv {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
#treeDiv {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;    
}
#browseDiv, #addDiv, #myPageDiv, #treeDiv {
    display: inline-block;
    width: 140px;
    min-height: inherit;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: bottom;
}
#searchDiv {
    display: inline-block;
    min-height: inherit;
    background: url(https://www.branching.com.au/familytree/images/mainBtnBG00b.jpg);
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: right;
}
#frmSearch {
    margin-top: 100px;
}
#browseDiv {
    background: url(https://www.branching.com.au/familytree/images/mainBtnBG05b.jpg);
    background-position-y: bottom;
}
#addDiv {
    background: url(https://www.branching.com.au/familytree/images/mainBtnBG02b.jpg);
    background-position-y: bottom;
}
#myPageDiv {
    background: url(https://www.branching.com.au/familytree/images/mainBtnBG01b.jpg);
    background-position-y: bottom;
}
#treeDiv {
    background: url(https://www.branching.com.au/familytree/images/mainBtnBG04b.jpg);
    background-position-y: bottom;
}
    /* Smaller devices: (Phones etc.) */
@media screen and (max-device-width: 799px){
    #headerMenuDiv, #footerDiv, #nameListDiv, #ftMyPage, #ftUpload {
        font-size: 2em;
    }
    #headerMainPage img {
        height: 70px;
    }
    #loginName {
        font-size: 1.8em;
    }
    #mainPageSectionCont {
        width: 100%;
        max-height: 100%;
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    #lhsDiv, #rhsDiv {
        display: block;
        height: 42%;
        margin-bottom: 20px;
        overflow: hidden;
    }
    #searchDiv, #browseDiv, #addDiv, #myPageDiv, #treeDiv {
        height: 500px;
        min-width: 156px;
        margin: 10px;
        background-size: cover;
        overflow: hidden;
        font-size: 1.8em;
    }
    #browseDiv {
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;    
    }
    #addDiv{
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
    input[type="text"], input[type="date"] {
        width: 100%;
        font-size: 1em;
    }
    label, input[type="submit"], input[type="file"], select {
        font-size: 1.6em;
    }
    input[type="checkbox"]{
        margin: 10px 30px;
        padding: 10px;
        -ms-transform: scale(3); /* IE */
        -moz-transform: scale(3); /* FF */
        -webkit-transform: scale(3); /* Safari and Chrome */
        -o-transform: scale(3); /* Opera */
        transform: scale(3);
    }
}
    /* Meduim devices: (Tablets, Ipads etc.) */
@media screen and (min-device-width: 400px) and (max-device-width: 1200px){
    #indexMainImage {
        content: url("https://www.branching.com.au/familytree/images/albumindeximage2.png");
        width: 60%;
    }
}
/*** END MAIN PAGE ***/

/*** UPLOAD PAGE ***/
#ftUpload {
    padding: 0 30px;
}
#ftUpload h3 {
    color: #bd562f;
    font-family: sans-serif;
    letter-spacing: 1px;
}
#uploadRelInputDiv label {
    min-width: 140px;
    
}
#uploadRelInputDiv input[type=text],#uploadRelInputDiv input[type=date] {
    min-width: 240px;
    margin-left:10px;
}
/*** END UPLOAD PAGE ***/

/*** BIO PAGE ***/
#bioContDiv {
    display: flex;
    padding: 10px 30px;
}
#bioContDiv textarea {
    width: 90%;
    height: 60px;
    padding: 10px;
    resize: none;
    outline: none;
}
#bioInfoDiv {
    flex-grow: 1;
    width: 65%;
    margin-right: 10px;
    padding: 10px;
    line-height: 2em;
    background-color: #fff;
}
.bioTitle {
    margin: 0 0 20px 10px;
    color: #7e9869;
    font-size: 2em;
    font-weight: bold;
    font-family: serif;
}
.bioImg {
    max-height: 300px;
}
.bioInfoSpan {
    margin-left: 10px;
}
.bioInfoSpan a {
    font-size: 0.9em;
}
#bioInfoDiv label {
    width: 120px;
    margin-left: 10px;
}
#bioDiv {
    display: inline-flex;
}
#popupContDiv img {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
}
#bioComments {
    display: block;
    flex-grow: 1;
    width: 92%;
    margin-bottom: 20px;
    padding: 10px 10px 10px 20px;
    background-color: #fff;
    vertical-align: top;
}
.commentRowDiv {
    position: relative;
    display: block;
    min-height: 70px;
    height: fit-content;
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
}
.madeByCont {
    width: fit-content;
    height: 100%;
    margin-right: 30px;
    vertical-align: top;
    line-height: normal;
}
.madeByName {
    display: block;
    color: #456445;
    font-size: 0.9em;
    font-family: sans-serif;
}
.commentRowDiv img, #bioDiv img {
    max-width: 34px;
    height: auto;
    margin-left: 10px;
}
.commentEditBtn {
    position: absolute;
    top: 6px;
    right: 0;
}
#relationdDiv {
    float: right;
}
/*** END BIO PAGE ***/

/*** BROWSE PAGE ***/
#nameListDiv {
    padding: 30px;
    line-height: 1.4em;
    background-color: #fff;
    vertical-align: top;
    -ms-column-count: 3;
  	-webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    -ms-column-width: 200px;
  	-webkit-column-width: 200px;
    -moz-column-width: 200px;
    column-width: 200px;
    -ms-column-gap: 4em;
  	-webkit-column-gap: 4em;
    -moz-column-gap: 4em;
    column-gap: 4em;
    -ms-column-rule: 1px solid #666;
  	-webkit-column-rule: 1px solid #666;
    -moz-column-rule: 1px solid #666;
    column-rule: 1px solid #666;
  	overflow: auto;

}
/*** END BROWSE PAGE ***/

/*** ALBUM PAGE ***/
#ftAlbumPage {
    height: fit-content;
    margin-top: 20px;
    padding: 30px 10px 30px 60px;
    text-align: center;
    background: rgb(230,222,183);
    /*background: linear-gradient(90deg, rgb(189 179 159) 0%, rgb(233 228 205) 2%, rgb(255 255 255) 10%),repeating-linear-gradient(-55deg,#222,#222 10px,#333 10px,#333 20px);*/
    background: linear-gradient(90deg,rgba(147,145,141) 0.5%, rgba(189,179,159) 1.8%, rgba(233,228,205,0.9) 4.9%, rgba(255,255,255,0.5) 12%),repeating-linear-gradient(#f7f4e8,#fff 10px);
    border-left: 2px solid #666;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #b2b77b;
}
.albumImgDiv {
    display: inline-block;
    margin:10px;
    padding: 6px;
    line-height: 1.2em;
    background-color: #fffdf1;
    -moz-box-shadow:0px 1px 2px #9E9E9E;
    -webkit-box-shadow:0px 1px 2px #9E9E9E;
    box-shadow:0px 1px 2px #9E9E9E;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
}
.albumImgDiv:hover {
    mix-blend-mode: difference;
    cursor: pointer;
}
.albumImgDiv img {
    width: auto;
    max-height: 180px;
    padding-bottom: 6px;
}
    /* Smaller devices: (Phones etc.) */
@media screen and (max-device-width: 799px){
    .albumImgDiv img {
        max-height: 300px;
    }
}
/*** END ALBUM PAGE ***/

/*** IMAGE VIEW PAGE ***/
#imageViewPage {
    display: flex;
    width: 100%;
    height: fit-content;
    min-height: 90vh;
    margin-top: 10px;
}
#imageDiv {
    display: inline-block;
    /*max-width: 48vw;*/
    /*max-height: 85vh;*/
    margin: 0 20px;
    text-align: center;
}
#tagList a {
    font-size: 0.8em;
}
#imageDiv img {
    max-height: 94vh;
    max-width: 90vh;
}
#imageComments {
    display: inline-block;
    flex-grow: 1;
    margin-top: 20px;
    max-width: 50vw;
    vertical-align: top;
}
#txtCommInput {
    width: 400px;
    height: 60px;
    margin: 0;
    width: 86%;
    height: 66px;
    resize: none;
}
/*** END IMAGE VIEW PAGE ***/

/*** MY PAGE ***/
#ftMyPage {
    text-align: center;
    width: 100%;
    height: 100%;
    line-height: 1.6em;
}
/*** END MY PAGE ***/

/*** TREE VIEW ***/
#treeContainer {
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}
.primaryDiv {
    display: inline-block;
    vertical-align: top;
}
.ancestorsDiv {
    display: inline-block;
    height: max-content;
}
/*.fathersLine, .mothersLine {*/
/*    margin: 10px;*/
/*}*/
.parentDiv, .grandparentCont, .grandparentDiv, .grGrandparentCont {
    display: table-cell;
    height: 100%;
    vertical-align: middle;
}
/*.parentDiv, .grandparentDiv, .grGrandparentDiv {*/
/*    padding: 10px;*/
/*}*/
.nameCell {
    padding: 4px 6px;
    margin: 4px;
    min-width: 190px;
    max-width: 200px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
}
.noName {
    margin: auto;
    text-align: center;
}
.conLine {
    stroke: rgb(180 180 154);
    stroke-width: 3;
}
.svgLeftDiv {
    position: relative;
    display: table-cell;
    width: 10px;
}
.svgLeft {
    position: absolute;
    width: 10px;
    height: 100%;
    left: 0;
    top: 0;
}
.svgRightDiv {
    display: table-cell;
}
.svgRight {
    width: 20px;
}
/*** END TREE VIEW ***/
