.tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: small;
}

.person {
    text-align: center;
    position: relative;
    padding: 10px;
}

.person span {
    width: 80px; /* Ajusta a largura */
    height: auto;
    border-radius: 50%;
    background: white;
    /*border: 1px dotted black;*/
    padding: 5px;
}

.person img {
    width: 80px; /* Ajusta a largura */
    height: auto;
    background: white;
}

/* Linha vertical conectando o avô aos netos */
.person::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 10px;
    background-color: black;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.grandfather::after {
    height: 30px;
}

/* Containers das gerações */
.generation {
    display: flex;
    justify-content: center;
    gap: 0px;
    position: relative;
}

/* Linha horizontal conectando os netos */
.generation::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 25%;
    width: 50%;
    height: 1px;
    background-color: black;
}

/* Linhas verticais conectando os netos à linha horizontal */
.generation .person::after {
    top: 0px;
}

/* Ajuste para o primeiro neto: linha horizontal apenas do lado direito */
.generation .person:first-child::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    width: 50%;
    height: 1px;
    background-color: black;
}

/* Ajuste para o último neto: linha horizontal apenas do lado esquerdo */
.generation .person:last-child::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    width: 50%;
    height: 1px;
    background-color: black;
}

/* Responsividade */
@media (max-width: 600px) {
    .tree-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        font-size: small;
    }
    .generation {
        flex-direction: row;
        align-items: center;
        gap: 0px;
    }
    .generation::before {
        display: none; /* Remove a linha horizontal */
    }

    .person::after {
        height: 15px;
    }

    .generation::before {
        content: "";
        position: absolute;
        top: 0px;
        left: 25%;
        width: 0%;
        height: 1px;
        background-color: black;
    }

    /* Linhas verticais conectando os netos à linha horizontal */
    .generation .person::after {
        top: 0px;
        height: 5px;
    }

    .generation .person:first-child::before {
        content: "";
        position: absolute;
        top: 0px;
        left: 50%;
        width: 100%;
        height: 1px;
        background-color: black;
    }
    .generation .person:last-child::before {
        content: "";
        position: absolute;
        top: 0px;
        left: -50%;
        width: 100%;
        height: 1px;
        background-color: black;
    }    

    .person {
        text-align: center;
        position: relative;
        top: 5px;
        padding: 1px;
        font-size: smaller;
    }
    
    .person span {
        width: 60px; /* Ajusta a largura */
        height: auto;
        border-radius: 50%;
        background: white;
        /*border: 1px dotted black;*/
        padding: 0px;
    }
    
    .person img {
        width: 60px; /* Ajusta a largura */
        height: auto;
        background: white;
    }
}

.table {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colunas com tamanhos iguais */
    gap: 0px; /* Espaçamento entre as "células" */
    background-color: #ffffff; /* Cor para simular bordas */

}
.cell_center {
    background-color: #fff; /* Cor de fundo das células */
    border: 0px solid #000; /* Borda ao redor de cada célula */
    padding: 1px;
    display: flex; /* Flexbox para controle de alinhamento */
    align-items: flex-end; /* Alinha o conteúdo na base inferior */
    justify-content: center; /* Centraliza horizontalmente */
    height: 50px;
    background-image:url("../images/team/raposa_master.svg"); 
    background-repeat:no-repeat; 
    background-position: top;
    font-size: small;
    color: #2bb056;
}
.cell_center span {
    display: block;
}
.cell_es {
    background-color: #fff; /* Cor de fundo das células */
    border: 0px solid #000; /* Borda ao redor de cada célula */
    padding: 1px;
    display: flex; /* Flexbox para controle de alinhamento */
    align-items: flex-end; /* Alinha o conteúdo na base inferior */
    justify-content: center; /* Centraliza horizontalmente */
    
    /*background-image:url("../images/team/es.svg"); */
    height: 160px;
    background-image:url("../images/team/es.svg");
    background-size: 100%; 
    background-position: 50% 50%; 
    border: 2px solid transparent;

    background-repeat:no-repeat; 
    /*background-position: top;*/
    font-size: small;
    color: #2bb056;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    text-decoration: underline;
}
.cell_ce {
    background-color: #fff; /* Cor de fundo das células */
    border: 0px solid #000; /* Borda ao redor de cada célula */
    padding: 1px;
    display: flex; /* Flexbox para controle de alinhamento */
    align-items: flex-end; /* Alinha o conteúdo na base inferior */
    justify-content: center; /* Centraliza horizontalmente */
    height: 160px;
    
    background-image:url("../images/team/ce.svg"); 
    background-size: 100%; 
    background-position: 50% 50%; 
    border: 2px solid transparent;

    background-repeat:no-repeat; 
    /*background-position: top;*/
    font-size: small;
    color: #2bb056;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    text-decoration: underline;
}
.cell_di {
    background-color: #fff; /* Cor de fundo das células */
    border: 0px solid #000; /* Borda ao redor de cada célula */
    padding: 1px;
    display: flex; /* Flexbox para controle de alinhamento */
    align-items: flex-end; /* Alinha o conteúdo na base inferior */
    justify-content: center; /* Centraliza horizontalmente */
    
    height: 160px;
    background-image:url("../images/team/di.svg"); 
    background-size: 100%; 
    background-position: 50% 50%; 
    border: 2px solid transparent;

    background-repeat:no-repeat; 
    /*background-position: top;*/
    font-size: small;
    color: #2bb056;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    text-decoration: underline;
}
.cell_ho{
    background-color: #fff; /* Cor de fundo das células */
    border: 0px solid #000; /* Borda ao redor de cada célula */
    padding: 0px;
    text-align: center;
    background-image:url("../images/team/ho.svg"); 
    background-repeat:repeat-x; 
    background-position: center;
    font-size: small;
}
.cell_ve {
    background-color: #fff; /* Cor de fundo das células */
    border: 0px solid #000; /* Borda ao redor de cada célula */
    padding: 0px;
    display: flex; /* Flexbox para controle de alinhamento */
    align-items: flex-end; /* Alinha o conteúdo na base inferior */
    justify-content: center; /* Centraliza horizontalmente */
    height: 115px;
    background-image:url("../images/team/ve.svg"); 
    background-repeat:repeat-y; 
    background-position: center;
    font-size: small;
}
.cell {
    background-color: #fff; /* Cor de fundo das células */
    border: 0px solid #000; /* Borda ao redor de cada célula */
    padding: 0px;
    display: flex; /* Flexbox para controle de alinhamento */
    align-items: flex-end; /* Alinha o conteúdo na base inferior */
    justify-content: center; /* Centraliza horizontalmente */
    height: 25px;
    font-size: small;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    text-decoration: underline;
    color: #2bb056;
}