@charset "UTF-8";

/* Fonte para o título */
@font-face {
    font-family: 'Velvet';
    src: url(../../fontes/lado_red/Bubblegum.ttf) format('opentype');
    font-weight: normal;
}

@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap");

/* Guia */
:root {
    --fonte-velvet: 'Velvet', cursive;
    --cor1: #ee0979; /* opcional */
    --cor2: #cc7178; /* opcional */
    --cor3: #fc001f; /* vermelho intenso */
    --cor4: #fe6e61; /* vermelho coral */
}

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

html {
    height: 100%;
}

body {
    min-height: 100%; /* preencher toda a página */
    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: #fc001f;
    background: -webkit-linear-gradient(
        to right,
        #fc001f,
        #fe6e61
    );
    background: linear-gradient(
        to right,
        #fc001f,
        #fe6e61
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h4 {
    background: linear-gradient(to right, transparent, #fc001f, #fe6e61, 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: #fc001db6;
    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;
    position: relative;
}

.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: #fc001f;
    background: -webkit-linear-gradient(
        to bottom,
        #fc001f,
        #fe6e61
    );
    background: linear-gradient(
        to bottom,
        #fc001f,
        #fe6e61
    );

    width: 3px; 
    height: 50vh;
    position: fixed;
    inset: 0 auto 50vh; 
}

/* Linha do tempo - estrutura dos textos */
.timeline_item {
    z-index: 2;
    display: grid;
    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;
    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;
    top: 50vh; 
}

/* 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_vermelho {
    font-size: 35px;
    text-decoration: none;
    color: #fc001f;
}

.link_coral {
    font-size: 35px;
    text-decoration: none;
    color: #fe6e61;
}

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: 130px;
}

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

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

.buttons .button1:hover {
    color: #fc001f;
    text-shadow: 2px 4px 5px #fc001f;
}

.buttons .button2:hover {
    color: #fe6e61;
    text-shadow: 2px 2px 4px #fe6e61;
}

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

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

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

footer > a > img {
    width: 55px;
    height: 55px;
    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 #fc001f;
}

/* 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%;
    }
}