﻿@import url('https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap');

/* PALETA DE COLORES */
:root {
    --c-tit: #184059;
    --c-txt: #0b1c26;
    --c-bg80: #afd9ad;
    --c-bg90: #adc4d8;
    --c-bg00: #8acee2;
    --c-bg10: #afd9ad;
    --c-bg20: #adc4d8;
}

/* FUNCIONAMIENTO JS */

.event {
    display: none;
}

/* DEFINICIONES GENERALES */
body {
    font-family: 'Tilt Neon', sans-serif;
    color: var(--c-txt);
    background-color: var(--c-bg80);
    overflow-x: hidden;
    width: 100dvw;
    margin-left: 0;
}

h1, h2, h3, h4 {
    color: var(--c-tit);
}

h1 {
    margin: auto;
    font-size: 2.2em;
    text-align: center;
    font-weight: 700;
}

h2 {
    font-size: 4em;
    text-align: left;
    max-width: 1024px;
    margin: auto;
    font-weight: 400;
}

@media only screen and (max-width: 1024px) {
    h2 {
        padding-left: 5vw;
    }
}

h4 {
    font-size: 3em;
}

.contenido {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    margin: auto;
    max-width: 1024px;
    padding: 2em;
}

.twocolumns {
    display: flex;
}

.video {
    width: 70vw;
    margin: 1em 13vw;
    aspect-ratio: 16 / 9;
}

.tresa a:hover, .tresimg img:hover {
    z-index: 10;
}

.sticker {
    position: absolute;
    width: 15vw;
}

.der {
    right: 10vw;
    margin-top: -8em;
}

.izq {
    left: 25vw;
    margin-top: -7em;
}

/* PORTADA */

#recuadro h4 {
    font-weight: 400;
    font-size: 2.2em;
    margin: 0.5em;
    text-align: center;
}

#recuadro p {
    color: var(--c-tit);
}

#marquee {
    align-items: center;
    border-bottom: 2px solid var(--c-tit);
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100vw;
}

.marquee {
    text-transform: uppercase;
    white-space: nowrap;
    animation: marqueetext 15s linear infinite;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 1em;
    height: 3em;
}

    .marquee h2 {
        font-size: 1.5em;
        line-height: 2em;
    }

@keyframes marqueetext {
    from {
        transform: translateX(0%)
    }

    to {
        transform: translateX(-100%)
    }
}


#portada {
    width: 100dvw;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}

#recuadro {
    display: flex;
    border: 2px solid var(--c-tit);
    border-radius: 3em;
    width: 500px;
    margin: 6em auto 2em auto;
    flex-direction: column;
    align-items: center;
}

.link {
    color: var(--c-tit);
    text-decoration: none;
    font-size: 1em;
    text-transform: uppercase;
    text-align: right;
    display: block;
    width: 100%;
    padding: 0 3em 0 0;
    border-bottom: 2px solid;
    max-width: 450px;
    line-height: 3em;
}

#yearSelect {
    font-family: 'Tilt Neon', sans-serif;
    color: var(--c-tit);
    background-color: var(--c-bg80);
    font-size: 1.1em;
    border: 2px solid var(--c-tit);
    border-radius: 2em;
    padding: 10px;
    text-align: center;
}

#personajesportada {
    width: 100vw;
    margin: auto;
    position: relative;
    top: 5px;
}

    #personajesportada img {
        max-width: 100vw;
        margin: auto;
    }

.infoextra {
    background-color: #ffffff;
    width: 100vw;
    position: relative;
    padding-top: 4em;
    text-transform: uppercase;
}

    .infoextra h2 {
        font-size: 2.5em;
    }

/* PALETA DE COLORES POR DECADA */

.ochentas, .ochentas .cuadrodetexto p, .ochentas .full p {
    background-color: var(--c-bg80);
}

.noventas, .noventas .cuadrodetexto p, .noventas .full p {
    background-color: var(--c-bg90);
}

.dosmil, .dosmil .cuadrodetexto p, .dosmil .full p {
    background-color: var(--c-bg00);
}

.dosmildiez, .dosmildiez .cuadrodetexto p, .dosmildiez .full p {
    background-color: var(--c-bg10);
}

.dosmilveinte, .dosmilveinte .cuadrodetexto p, .dosmilveinte .full p {
    background-color: var(--c-bg20);
}

/* PANTALLA DE CARGA */

#frasecarga {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    width: 100vw;
    top: 13em;
    z-index: -10;
}

#recuadro {
    animation-fill-mode: forwards;
    opacity: 1;
    animation-delay: 0s;
}

#viajando, #llegamos {
    opacity: 0;
    animation-fill-mode: forwards;
    position: absolute;
    text-align:center;
}

#viajando {
}

#llegamos {
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeOutIn {
    0% {
        opacity: 1;
    }

    5% {
        opacity: 0;
    }

    80% {
        opacity: 0;
    }

    95% {
        opacity: 1;
    }
}



/* FONDOS POR DECADA */
.eventcontainer {
    background-repeat: repeat;
    background-position: top left;
    background-size: 1532px;
    padding: 2em 0;
}

.ochentas .eventcontainer {
    background-image: url("assets/cuadros.svg");
    border-bottom: 1.5px solid var(--c-tit);
    border-right: 1.5px solid var(--c-tit);
}

.noventas .eventcontainer {
    background-image: url("assets/puntos.svg");
}

.dosmil .eventcontainer {
    background-image: url("assets/lineas.svg");
}

.dosmildiez .eventcontainer {
    background-image: url("assets/puntos.svg");
}

.dosmilveinte .eventcontainer {
    background-image: url("assets/cuadros.svg");
    border-bottom: 1.5px solid var(--c-tit);
    border-right: 1.5px solid var(--c-tit);
}



/* ESTILO PARA ESTRUCTURA 1 - TEXTO Y VIDEO */

.fotodisco img {
    margin-top: 5em;
}

.unaimg img {
    max-width: 30vw;
}

/* ESTILO PARA ESTRUCTURA 2 - TEXTO Y TRES IMGS */
.e2 {
}

.cuadrodetexto {
    width: 50vw;
}

    .cuadrodetexto p, .full p {
        display: block;
        font-size: 1.5em;
        border: 2px solid var(--c-tit);
        border-radius: 15px;
        color: var(--c-txt);
        margin: 3em 10vw;
        padding: 1em;
    }


.tresimg {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: -19%;
    margin-top: 2em;
}

    .tresimg img {
        max-width: 25vw;
        max-height: 50vh;
        position: relative;
    }

        .tresimg img:nth-child(2) {
            top: -15%;
            left: 80%;
        }

        .tresimg img:nth-child(3) {
            top: -30%;
            left: 5%;
        }

/* ESTILO PARA ESTRUCTURA 3 - REVISTA Y TEXTO */

.revista img {
    max-width: 35vw;
    padding-left: 10vw;
    padding-top: 5em;
}

/* ESTILO PARA ESTRUCTURA ESPECIAL 6 - UNA IMAGEN GRANDE Y TRES IMAGENES */

.bigimage {
    max-height: 50vh;
    margin: auto;
    display: block;
}

.tresa {
    margin-top: 3em;
    margin-bottom: -19%;
}

.cuatroa {
    margin-top: 3em;
    margin-bottom: -35%;
}

.tresa a {
    display: block;
    position: relative;
}

.tresa img {
    max-height: 50vh;
    max-width: 30vw;
}

.tresa a:nth-child(2) {
    top: -15%;
    left: 80%;
}

.tresa a:nth-child(3) {
    top: -30%;
    left: 5%;
}

.tresa a:nth-child(4) {
    top: -40%;
    left: 90%;
}

.linkentextoconimg {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .linkentextoconimg img {
        max-width: 25vw;
    }

.cuadrodetexto h3 {
    text-align: center;
}

.topextra {
    margin-top: 5em;
}


/* ADAPTACIONES PARA MOVILES */

@media only screen and (max-width: 1024px) {
    h2 {
        font-size: 3em;
    }

    .twocolumns {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        align-items: center;
    }

    .cuadrodetexto {
        width: 90vw;
    }

        .cuadrodetexto p {
            margin: 0 6.5vw 1em 0vw;
        }

    .full p {
        margin: 0 10vw 0 4vw;
    }

    .revista img {
        padding-left: 0;
        max-width: 60vw;
        padding-top: 2em;
        margin-left: -7vw;
    }

    .tresa, .tresimg {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        width: 100vw;
        margin-top: 0;
    }

    .izq {
        display: none;
    }

    .der {
        margin-top: -2.5em;
        width: 20vw;
    }

    .tresa a, .tresimg img {
        top: 0;
        left: 0 !important;
        padding: 0.5em 0;
    }

    .tresa img, .tresimg img {
        max-width: 70vw !important;
        max-height: 49vh;
    }

    .fotodisco {
        display: flex;
        justify-content: space-evenly;
        align-items: flex-end;
        flex-wrap: nowrap;
        width: 90vw;
        flex-direction: row;
    }

        .fotodisco img {
            margin-top: 1em;
            width: 40vw;
        }

        .fotodisco .der {
            position: relative;
            margin-top: 0;
            width: 15vw;
        }

    .topextra {
        margin-top: 0;
    }
}

@media only screen and (max-width: 500px) {
    #recuadro, .link {
        width: 98vw;
    }
}



/* SECCION SOBRE EL PROYECTO */

#proyecto {
    width: 100vw;
}
    #proyecto {
        #recuadro {
    width: 80vw;
    margin: auto;
    padding: 0.5em 3em;
    border: none;
}

.link {
    max-width: 800px;
    margin-bottom: 2em;
}

}

#proyecto p {
    font-size: 1.6em;
}

#creditos {
    text-align:center;
}

#creditos img {
    max-width:30vw;
    min-width:150px;
}