@import url(animacoes.css);

:root {
    --principal: #eeb701;
    --secundaria: #512b13;
    --escura: #000;
    --clara: #fff;
}

.cor-principal {
    color: var(--principal);
}

.cor-secundaria {
    color: var(--secundaria);
}

.cor-escura {
    color: var(--escura);
}

.cor-clara {
    color: var(--clara);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-y: scroll;
    background: var(--escura);
    font-family: "Raleway", serif;
}


/* estilos gerais */
header,
section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilização geral da navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 0 25px 0;
    animation: fadeIn 0.5s ease-in forwards;
    animation-timeline: scroll();
    animation-range: cover 0% 10%;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    list-style: none;
    margin: 0;
    padding-left: 23px;
    gap: 10px;
}

.navbar-item {
    font-size: 16px;
}

.navbar-link {
    text-decoration: none;
    color: var(--escura);
    transition: color 0.3s;
    padding: 5px 10px;
}

.navbar-link:hover {
    color: var(--principal);
}

.navbar-logo {
    height: 80px;
    width: auto;
    border-radius: 100%;
    overflow: hidden;
}

.container {
    margin-inline: auto;
    width: min(80ch, 100%);
}

.footer {
    width: 100vw;
    min-height: 230px;
    color: var(--clara);
    background: url(../img/bg.jpg) no-repeat center center fixed;
    background-position: bottom;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-top: -50px;
    margin-left: -15px;
}

/* banner principal */
.banner {
    position: relative;
    /* width: 100vw; */
    height: 90vh;
    /* max-height: max-content; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--clara);
    background: url(../img/bg.jpg) no-repeat center center fixed;
    background-size: cover;
    animation: backgroundFade 2.5s ease-out forwards;
}

.jogo {
    height: auto;
    width: 100vw;
    padding: 0;
}


h1 {
    font-family: "Rammetto One", sans-serif;
    font-size: 3rem;
    line-height: 4rem;
    margin-bottom: 20px;
}

h2 {
    font-family: "Rammetto One", sans-serif;
    font-size: 1rem;
}

p {
    line-height: 1.4rem;
    margin-bottom: 2rem;
}

.animated-img {
    max-width: 40%;
    position: relative;
    transform: scale(1.2);
    opacity: 0;
    animation: imgFade 1.5s ease-out forwards;
    animation-delay: 0.5s;
    will-change: transform;
}

.indicador-leitura {
    background: #f6e01a;
    position: fixed;
    height: 1%;
    inset: 99% 0 0% 0;
    transform-origin: left;
    animation: scroll 1ms ease-in-out;
    animation-timeline: scroll();
    z-index: 1000;
}

h1,
h2,
h3,
.data,
.container>p {
    animation: aparecer 1ms ease-in-out;
    animation-timeline: view();
    animation-range: cover 0% cover 30%;
}

.sobre {
    color: var(--clara);
}


.trofeu::before {
    content: "";
    display: inline-block;
    background-image: url('/img/trofeu-vetor.png');
    background-repeat: no-repeat;
    background-size: 2.5rem;
    background-position: 50%;
    width: 1.8rem;
    height: 1.8rem;
    margin-right: 0.5em;
    padding: 10px;
    border-radius: 100%;
    margin-bottom: -16px;
    /* margin-left: -10px; */
}

h1.trofeu::before {
    background-size: 1.7em;
    background-position: 50%;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    background-color: #eeb701;
    padding: 10px;
    border-radius: 100%;
    margin-bottom: -15px;
    /* margin-left: -10px; */
}

.data {
    font-size: 0.8rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 300;
}

.data::before {
    content: "";
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='orange' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5em;
    margin-bottom: -3px;
}

img {
    width: 100%;
    /* border-radius: 10px; */
}

/* Linha do tempo */
.anteriores {
    background: var(--principal);

    & .titulo {
        /* margin: 0; */
        margin-bottom: 10px;
    }
}

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 80px 0 50px 0;
}

.timeline img {
    border-radius: 10px;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 4px;
    background-color: var(--secundaria);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 30px;
    position: relative;
    background-color: var(--clara);
    width: calc(50% - 60px);
    border-radius: 20px;
    margin-top: -50px;

    & p {
        margin-bottom: 0;
        font-size: 0.8rem;
        line-height: 1.2rem;
    }
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -24px;
    background-color: var(--clara);
    border: 4px solid var(--secundaria);
    top: 50%;
    transform: translateY(-50%);
    bottom: 0;
    border-radius: 50%;
    z-index: 1;
}



.left {
    left: -1%;
    animation: aparecerEsquerda 1ms ease-in-out;
    animation-timeline: view();
    animation-range: cover 0% cover 40%;
}

.right {
    left: 51%;
    animation: aparecerDireita 1ms ease-in-out;
    animation-timeline: view();
    animation-range: cover 0% cover 40%;
}

.right::after {
    left: -24px;
}


@media screen and (max-width: 768px) {
    .animated-img {
        max-width: 80%;
        position: relative;
        transform: scale(1.2);
        opacity: 0;
        animation: imgFade 1.5s ease-out forwards;
        animation-delay: 0.5s;
        will-change: transform;
    }

    h1 {
        font-size: 2rem;
        line-height: 3rem;
        margin-bottom: 20px;
    }

    .navbar {
        /* position: relative; */
        width: 100%;
        height: 40px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        padding: 10px 0 50px 0;
        animation: none;
    }

    .jogo {
        height: auto;
        width: 100%;
        padding: 0;
        overflow: hidden;
    }

    .jogo img {
        margin-top: 100px;
        height: 20vh;
        width: max-content;
    }

    .sobre {
        padding: 20px;
    }

    .timeline {
        padding: 20px 0;
    }

    .timeline-item {
        width: calc(100% - 60px);
        left: 0 !important;
        margin: 0;
        margin-top: 30px;
    }

    .timeline-item.left::before,
    .timeline-item.right::before,
    .timeline-item::after {
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.escalacao {
    color: var(--principal);
    font-size: 1.5rem;
}

.detalhes {
    background: var(--clara);
    color: var(--secundaria);
}

.detalhes h1 {
    margin-bottom: 40px;
}


.video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 ratio (9 / 16 = 0.5625 or 56.25%) */
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Estilo do contêiner da galeria */
.galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Estilo das imagens na galeria */
.galeria img {
    width: 100%;
    height: 150px;
    /* Altura fixa */
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    object-fit: cover;
    /* Faz a imagem preencher o espaço mantendo proporções */
}

.galeria img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Exibir lightbox com transição */
.lightbox:target {
    opacity: 1;
    pointer-events: auto;
}

/* Estilo da imagem ampliada */
.lightbox img {
    width: auto;
    border-radius: 8px;
    max-width: 90%;
    max-height: 80%;
    display: block;
    position: relative;
    /* Adicionando relative para controle de botões */
}

/* Botão de fechar */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}


/* Navegação */
.next,
.prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

/* Botão para ir à próxima imagem */
.next {
    right: 10px;
}

/* Botão para ir à imagem anterior */
.prev {
    left: 10px;
}

.next:hover,
.prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


@media screen and (max-width: 768px) {

    /* Estilo do contêiner da galeria */
    .galeria {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px 0;
    }

    /* Estilo das imagens na galeria */
    .galeria img {
        width: 100%;
        height: auto;
        /* Altura fixa */
        display: block;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.2s ease;
        object-fit: cover;
        /* Faz a imagem preencher o espaço mantendo proporções */
    }
}

.button {
    background-color: #dddddd;
    color: var(--escura);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: center;
    display: block;
}

.button:hover {
    background-color: var(--principal);
}

.instagram {
    width: 20px;
    height: 20px;
    background-image: url('/img/instagram.jpg');
    background-size: cover;
    display: inline-block;
    border-radius: 100px;
    margin-bottom: -5px;
    margin-left: 10px;
}