@charset "utf-8";

/* 1. CONTAINER PRINCIPAL: Centraliza e limita o tamanho */
.linha_pagina_tempo #linha_do_tempo_total {
    width: 100%;
    max-width: 770px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    overflow: hidden; /* Evita quebras inesperadas */
}

/* 2. LINHAS: Transformadas em containers flex que não quebram */
#linha_do_tempo_total div {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    line-height: 0;
    margin-bottom: -0.8px; /* "Cola" as linhas verticalmente para evitar vãos brancos */
}

/* 3. ELEMENTOS FILHOS (Links e Imagens): Comportamento de bloco */
#linha_do_tempo_total div > a,
#linha_do_tempo_total div > img {
    display: block;
    height: auto !important;
    text-decoration: none;
    padding: 0;
    margin: 0;
    border: none;
}

/* Garante que a imagem dentro do link ocupe todo o espaço da fatia */
#linha_do_tempo_total a img {
    width: 100%;
    display: block;
}

/* 4. PROPORÇÕES DAS FATIAS: 
   Ajusta o crescimento de cada fatia baseado na largura original 
   para manter o desenho do "S" alinhado em celulares. */

/* Fatias pequenas (curvas e conectores) */
#linha_do_tempo_total img[width="30"], 
#linha_do_tempo_total img[width="33"] { flex: 33; min-width: 0; }

/* Fatias médias (início da linha) */
#linha_do_tempo_total img[width="79"] { flex: 79; min-width: 0; }

/* Fatias grandes (onde ficam os anos/links) */
#linha_do_tempo_total img[width="170"], 
#linha_do_tempo_total img[width="171"],
#linha_do_tempo_total a { flex: 192; min-width: 0; }

/* Fatia final da direita */
#linha_do_tempo_total img[width="116"] { flex: 116; min-width: 0; }

/* Rodapé (fatia única de 770px) */
#linha_do_tempo_total img[width="770"] { width: 100%; flex: none; }


/* 5. MODAL (Seu estilo original preservado e limpo) */
.modal {
    display: none;
    position: fixed;
    z-index: 999999 !important;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: rgba(0,0,0,0.85);
}

.modal:target {
    display: flex;
    justify-content: center;
    align-items: center;
}

.conteudo-modal {
    position: relative;
    z-index: 1000000 !important;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conteudo-modal img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
}

.fechar {
    position: absolute;
    top: -35px;
    right: 0;
    color: white;
    text-decoration: none;
    font-size: 30px;
    font-family: Arial, sans-serif;
}