@charset "UTF-8";

@font-face {
    font-family: 'Velvet';
    src: url(../../fontes/lado_velvet/CSAmerta-Regular_demo.otf) format('opentype');
    font-weight: normal;
}
/* billing-lottre-regular.otf */

/* Guia */
:root {
    --fonte-velvet: 'Velvet', cursive;
    --cor1: #89023e; /* vinho escuro puxado para o magenta */
    --cor2: #8c2f39; /* vermelho bordõ com um pouco de tom terroso */
}

/* Seletor universal - configuração página */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* Configuração geral das imagens e vídeos */
img {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
}

video {
    vertical-align: middle;
    max-width: 100%;
    margin-top: -25px;
    display: inline-block;
    border-radius: 10px;
}

/* Introdução da página */
h2 {
    font-family: var(--fonte-velvet);
    font-size: 57px;
    background: #89023e;
    background: -webkit-linear-gradient(
        to right,
        #89023e,
        #8c2f39
    );
    background: linear-gradient(
        to right,
        #89023e,
        #8c2f39
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h4 {
    background: linear-gradient(to right, transparent, #89023e, #8c2f39, transparent);
    margin-top: -39px;
    margin-bottom: 50px;
}

.inline-block {
    max-width: 100%;
    display: inline-block;
}

.page-wrapper {
    z-index: 0;
    position: relative;
}

/* Introdução da página - botões modo claro|escuro e troca de idiomas */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; 
    background-color: transparent;
    z-index: 1000;
    display: flex;

    align-items: center;
    pointer-events: none; 
}

.mode-buttons,
.mode-selector {
    pointer-events: auto;
}

.mode-buttons,
.mode-selector {
    position: absolute;
    top: 40px; 
    display: flex;
    gap: 10px;
    background-color: #89023e;
    padding: 2px 6px;
    border-radius: 8px;
    align-items: center;
}

.mode-buttons {
    left: 6%;
}

.mode-selector {
    right: 6%;
}

.mode-btn {
    font-family: 'Ubuntu Mono', monospace;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: white;
    transition: color 0.3s ease;
    padding: 6px 8px;
    border-radius: 5px;
}

.mode-btn.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.mode-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Introdução da página - cor de fundo */
.section-timeline-heading {
    background-color: #0a0a0a;
}

.container {
    width: 90vw;
    max-width: 1360;
    margin-left: auto;
    margin-right: auto;
}

.padding-vertical-xlarge {
    padding-top: 120px;
    padding-bottom: 120px;
}

.timeline-main_heading-wrapper {
    color: #fff;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.margin-bottom-medium {
    margin-bottom: 56px;
}

.paragraph-large {
    letter-spacing: -0.02em;
    font-size: 20px;
}

/* Linha do Tempo - configuração geral */
main {
    z-index: -3;
    background-color: #0a0a0a;
    position: relative;
    zoom: 70%;
}

/* Linha do tempo - estrutura */
.timeline_component {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
}

/* Linha do tempo - linha cinza */
.timeline_progress {
    z-index: -2;
    background-color: #414141;
    width: 3px;
    height: 100%;
    position: absolute;
}

/* Linha do tempo - linha colorida (percorrerá encima) */
.timeline_progress_bar {
    z-index: -1; /* sobreposição dos elementos (linha colorida)*/
    background: #89023e;
    background: -webkit-linear-gradient(
        to bottom,
        #89023e,
        #8c2f39
    );
    background: linear-gradient(
        to bottom,
        #89023e,
        #8c2f39
    );

    width: 3px; /* largura da linha colorida */
    height: 50vh; /* altura para acompanhar a bolinha */
    position: fixed; /* acompanhar */
    inset: 0 auto 50vh; 
}

/* Linha do tempo - estrutura dos textos */
.timeline_item {
    z-index: 2;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-rows: auto;
    grid-template-columns: 1fr 180px 1fr;
    grid-auto-columns: 1fr;
    padding-top: 80px;
    padding-bottom: 80px;
    display: grid;
    position: relative;
}

/* Linha do tempo - datas */
.timeline_left {
    text-align: right;
    justify-content: flex-end;
    align-items: stretch;
}

.timeline_date-text {
    color: #fff;
    letter-spacing: -0.03;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    position: sticky; /* permite a data se mover */
    top: 50vh; /* sincronização com a bolinha */
}

/* Linha do tempo - meio (bolinha) */
.timeline_center {
    justify-content: center;
    display: flex;
}

.timeline_circle {
    background-color: #fff;
    border-radius: 100%;
    width: 15px;
    min-width: 15px;
    max-width: 15px;
    height: 15px;
    min-height: 15px;
    max-height: 15px;
    position: sticky;
    top: 50vh;
    box-shadow: 0 0 0 8px #0a0a0a;
}

.margin-bottom-xlarge {
    margin-bottom: 56px;
}

.timeline_text {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    text-align: justify;
}

.link_vinho {
    font-size: 35px;
    text-decoration: none;
    color: #89023e;
}

.link_vermelho {
    font-size: 35px;
    text-decoration: none;
    color: #8c2f39;
}

a:hover {
    text-decoration: underline;
}

.overlay-fade-top {
    background-image: linear-gradient(#0a0a0a, #0a0a0a00);
    height: 88px;
    position: absolute;
    inset: 0% 0% auto;
}

/* Espaço depois da linha do tempo */
.fundo1 {
    padding-top: 50px;
    background-color: #0a0a0a;
}

/* Botões para passar as páginas */
.buttons {
    text-align: center;
}

.buttons a {
    color: white;
    text-decoration: none;
    font-size: 90px;
    display: inline-block;
}

.buttons .button1 {
    margin-right: 65px;
}

.buttons .button2 {
    margin-left: 65px;
}

.buttons .button1:hover {
    color: var(--cor1);
    text-shadow: 2px 4px 5px #89023e;
}

.buttons .button2:hover {
    color: var(--cor2);
    text-shadow: 2px 2px 4px #8c2f39;
}

/* Espaço depois dos botões */
.fundo2 {
    height: 30vh;
    background-color: #0a0a0a;
}

/* configurações do rodapé */
footer {
    background: linear-gradient(to right, #89023f52, #8c2f3859);
    color: white;
    text-align: center;
    padding: 10px;
}

footer > p {
    font-size: 10px;
    margin-bottom: 1px;
}

footer > a > img {
    width: 42px;
    height: 42px;
    margin-top: 1px;
}

/* Configurações para o modo claro */
body.light-mode main {
  background-color: #FFE6E2;
}

body.light-mode .section-timeline-heading,
body.light-mode .fundo1,
body.light-mode .fundo2 {
    background-color: #FFE6E2 ;
}

body.light-mode .timeline-main_heading-wrapper p {
    color: #0a0a0a;
} 

body.light-mode .overlay-fade-top{
    display: none;
}

body.light-mode .timeline_date-text,
body.light-mode .timeline_text {
    color: #0a0a0a;
}

body.light-mode .buttons a {
    color: #0a0a0a;
}

body.light-mode .timeline_circle {
    box-shadow: 0 0 0 8px #89023e;
}

/* Responsividade para telas menores - celular */
@media (max-width: 768px) {
    h2 {
        font-size: 38px;
    }
    h4 {
        margin-top: -25px;
        margin-bottom: 30px;
    }

    header {
        display: block;
        position: relative;
        height: auto;
    }

    .mode-buttons,
    .mode-selector {
        top: 10px;
        padding: 2px 4px;
        gap: 6px;
    }

    .mode-buttons {
        left: 4%;
    }

    .mode-selector {
        right: 4%;
    }

    .mode-btn {
        font-size: 16px;
        padding: 4px 6px;
    }

    .timeline_text, 
    .timeline_text a {
        font-size: 18px;
    }

    .timeline_item{
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto;
        display: grid;
        align-items: start;
        gap: 20px;
    }

    .timeline_date-text {
        position: relative;
        top: auto;
        font-size: 40px;
        text-align: left;
        padding-left: 55px;
    }

    .timeline_left {
        grid-column: span 2;
        text-align: left;
    }

    .timeline_center {
        justify-content: center;
    }

    .timeline_circle {
        top: auto;
        position: relative;
        margin-top: 10px;
    }

    .timeline_progress {
        left: 19px;
    }

    .timeline_progress_bar {
        left: 19px;
        inset: 0 auto auto;
        position: absolute;
        height: 100%;
    }

    .container {
        width: 95vw;
    }

    .fundo2 {
        height: 20vh;
    }

    .buttons .button1 {
        margin-right: 40px;
    }

    video, img {
        max-width: 100%;
    }
}