@font-face {
    font-family: 'Baskervville';
    src: url('../../Baskervville-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
html, body {
    font-family: 'Baskervville', Arial, sans-serif;
    height: 100%;
    margin: 0;
    overflow: hidden; /* remove scroll do body */
}

/* Painel principal da árvore */
#Arvore {
    padding-right: 0;
    padding-left: 0;
    height: 100vh;        /* ocupa toda a altura da janela */
    overflow: auto;       /* rolagem vertical */
    white-space: nowrap;  /* evita quebra dos nomes em várias linhas */
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    background-image: url('../../img/fundo.jpg');
    background-repeat: repeat;
}

/* Container da árvore */
.List-genealogy {
    margin-left: 200px;
    width: calc(100% - 200px);
    min-height: 100%;     /* garante expansão vertical */
    display: inline-block;
    min-width: max-content;
    overflow: visible;    /* não corta nada */
    
}

/* Listas */
.lista,
.lista ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
}

.lista li {
    margin: 3px 0;
}

/* links clicáveis */
.lista a {
    text-decoration: none;
    cursor: pointer;
    color: #000;
    display: inline-block;
    padding: 2px 0;
    user-select: none;
}

/* subníveis recolhidos */
.lista li.has-children > ul {
    display: block;     /* sempre aberto */
    overflow: visible;  /* nunca corta */
}
.lista li.has-children.closed > ul {
    display: none;      /* fecha só quando marcado como .closed */
}


/* símbolo expandir/recolher */
.lista a .symbol {
    font-size: 10px;
    display: inline-block;
    width: 17px;
}

/* nome da pessoa */
.bottom-text {
    display: inline-block;
    white-space: nowrap;
}

ul li a:hover {
    background: #41414166;
    padding-right: 20px;
}

@keyframes highlightBlink {
    0%   { background-color: #fff176; } /* amarelo bem claro */
    50%  { background-color: yellow; } /* amarelo médio */
    100% { background-color: #fff176; } /* volta ao claro */
}

.highlighted {
    animation: highlightBlink 1.2s ease-in-out 2; /* duração maior e mais suave */
    border-radius: 6px;
}

/* Estilo do botão flutuante */
.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50; /* verde bonito */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 9999;
}

.print-btn:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

/* Esconde em telas menores que 850px */
@media (max-width: 850px) {
    .print-btn {
        display: none;
    }
    #minimap-sidebar {
        display: none !important;
    }
    .List-genealogy{
        margin-left: 0px !important;
    }
}

/* animação de espera na tela */
    .zoom-in-out-box {
        animation: zoom-in-zoom-out 1s ease infinite;
    }

    @keyframes zoom-in-zoom-out {
        0% {
            transform: scale(1, 1);
        }
        50% {
            transform: scale(1.5, 1.5);
        }
        100% {
            transform: scale(1, 1);
        }
    }
    .carregandoPAI{
        width: 100%;
        height: 100%;
        /*background: #ffffff8c url("../../img/arvore.jpg") no-repeat scroll center center;
        background-size: 150px;*/
        background: #ffffff8c;
        position: fixed;
        left: 0px;
        top: 0;
        z-index: 99999;
        overflow: hidden;
    }
    .carregandoPAI::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150px;   /* tamanho do círculo da imagem */
        height: 150px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: #ffffff8c url(../../img/arvore.jpg) no-repeat scroll center center;
        background-size: cover;
        opacity: .9;
    }