/* RESET */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;800&display=swap");

.calendar ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    flex-wrap: wrap;
    list-style: none;
}

.calendar ul li {
    display: flex;
    min-width: 16rem;
    min-height: 10rem;
    margin: 0.25rem;
    flex-flow: column;
    border-radius: 0.2rem;
    padding: 1rem;
    font-weight: 300;
    font-size: 0.8rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    /* backdrop-filter: blur(100px);*/
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.calendar ul li time {
    font-size: 1.5rem;
    margin: 0 0 0.2rem 0;
    font-weight: 500;
}

.calendar ul .today {
    background: #ffffff70;
}

.calendar ul .today time {
    font-weight: 800;
}

.small {
    font-size: 0.7rem;
}
/* Node card */
.node-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    min-width: 130px;
    justify-content: center;
    transition: 0.2s ease;
}

.node-card:hover {
    transform: translateY(-2px);
}

/* Avatar */
.node-card img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}


#fontSize {
    width: 100px;
    font-size: 1em;
}


*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


#wrapper {
    position: relative;
    height: 500px;
}

.branch {
    position: relative;
    margin-left: 250px;
}
.branch.lv0 {
    margin-left: 0;
}

.branch:before {
    content: "";
    width: 25px;
    border-top: 2px solid #000000;
    position: absolute;
    left: -72px;
    top: 50%;
    margin-top: 1px;
}

.entry {
    position: relative;
    min-height: 60px;
}

.entry:before {
    content: "";
    height: 100%;
    border-left: 2px solid #000000;
    position: absolute;
    left: -50px;
}

.entry:after {
    content: "";
    width: 50px;
    border-top: 2px solid #000000;
    position: absolute;
    left: -50px;
    top: 50%;
    margin-top: 1px;
}

.entry:first-child:before {
    width: 10px;
    height: 50%;
    top: 50%;
    margin-top: 2px;
    border-radius: 10px 0 0 0;
}

.entry:first-child:after {
    height: 10px;
    border-radius: 10px 0 0 0;
}

.entry:last-child:before {
    width: 10px;
    height: 50%;
    border-radius: 0 0 0 10px;
}

.entry:last-child:after {
    height: 10px;
    border-top: none;
    border-bottom: 2px solid #000000;
    border-radius: 0 0 0 10px;
    margin-top: -9px;
}

.entry.sole:before {
    display: none;
}

.entry.sole:after {
    width: 50px;
    height: 0;
    margin-top: 1px;
    border-radius: 0;
}

.label {
    display: block;
    min-width: 180px;
    padding: 5px 10px;
    height: 50px;
    text-align: center;
    border-radius: 5px;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -15px;
    align-items: center;
    background: white;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.name-label {
    display: inline-block;
    max-width: 180px; /* adjust width */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.calendar-today{
    background-color: #C2E7FF !important;
/*    color: white;*/
}
.spouse-node{
    z-index: 1;
}
/*.wrapper {
       width: 100%;
       height: 100vh;
       display: flex;
       justify-content: center;
       align-items: center;
       padding-right: 20px;
   }*/

.inner-book {
    width: 60vh;
}

.book {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(0);
}

.inner-book {
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 2000px;
}

.inner-book {
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 2000px;
}

.inner-book:before {
    content: "";
    width: 100%;
    position: absolute;
    height: 0;
    bottom: 14px;
    transform: rotateY(-20deg) translateZ(-20px);
    z-index: 0;
    box-shadow: 10px 12px 20px 13px rgba(0, 0, 0, 0.3);
}

.inner-book .img {
    transform: rotateY(-20deg);
    width: 100%;
    z-index: 5;
    clear: both;
    height: 100%;
    background: #ddd;
}

.inner-book img {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
}

.inner-book .img:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    border-left: 4px solid rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.page {
    width: calc(100% - 20px);
    height: calc(100% - 2px);
    position: absolute;
    box-shadow: inset 0px -1px 2px rgba(50, 50, 50, 0.2),
    inset -1px 0px 1px rgba(150, 150, 150, 0.1);
    border-radius: 0px 3px 3px 0px;
    transform: rotateY(-20deg) translateZ(-5px);
    right: -3px;
    z-index: 4;
    background: white;
}

.page-2 {
    height: calc(100% - 4px);
    right: -6px;
    z-index: 3;
}

.page-3 {
    height: calc(100% - 6px);
    right: -9px;
    z-index: 2;
}

.page-4 {
    height: calc(100% - 8px);
    right: -12px;
    z-index: 1;
}

.page-5 {
    height: calc(100% - 10px);
    right: -15px;
    z-index: 0;
}

.img.final-page {
    position: absolute;
    z-index: -1;
    right: -17px;
    transform: rotateY(-19deg) translateZ(-10px) scale(0.984);
}


.book2 {
    transform-style: preserve-3d;
    position: relative;
    height: 300px;
    cursor: pointer;
    backface-visibility: visible;
}

.front,
.back,
.page1,
.page2,
.page3,
.page4,
.page5,
.page6 {
    transform-style: preserve-3d;
    position: absolute;
    width: 200px;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left center;
    transition: transform 0.5s ease-in-out, box-shadow 0.35s ease-in-out;
}

.front,
.back {
    background: navy;
}

.front,
.page1,
.page3,
.page5 {
    border-bottom-right-radius: 0.5em;
    border-top-right-radius: 0.5em;
}

.back,
.page2,
.page4,
.page6 {
    border-bottom-right-radius: 0.5em;
    border-top-right-radius: 0.5em;
}

.page1 {
    background: #efefef;
}

.page2 {
    background: #efefef;
}

.page3 {
    background: #f5f5f5;
}

.page4 {
    background: #f5f5f5;
}

.page5 {
    background: #fafafa;
}

.page6 {
    background: #fdfdfd;
}

.book:hover .front {
    transform: rotateY(-160deg) scale(1.1);
    box-shadow: 0 1em 3em 0 rgba(0, 0, 0, 0.2);
}

.tree_ai,
.tree_ai ul {
    list-style: none;
    padding-top: 20px;
    position: relative;
}

.tree_ai li {
    text-align: center;
    position: relative;
    padding: 20px 5px 0 5px;
}

/* family row horizontal */
.family-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* person */
.person-box {
    border: 2px solid #333;
    padding: 6px 14px;
    border-radius: 6px;
    background: #fff;
    min-width: 120px;
}

/* marriage line */
.marriage-line {
    width: 40px;
    border-top: 3px solid #000;
}

.marriage-line.divorced {
    border-top: 3px dashed red;
}

/* children vertical line */
.children-wrapper {
    position: relative;
    padding-top: 20px;
}

.children-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #999;
    height: 20px;
}
