body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100vw;
    overflow: hidden;
    background-color: var(--turquesa);
}

html {
    min-height: -webkit-fill-available;
}

.siteContainer {
    width: 100%;
    max-width: none;
    margin: 0;
}

html,
body,
.siteContainer {
    height: 100%;
}

.topBar,
.timelineProgress {
    width: 90%;
    max-width: 1400px;
}

.siteIntro {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: white;
    z-index: 990;
    cursor: pointer;
    overflow: hidden;
}

.siteIntro .gifContainer {
    position: relative;
    height: 100vh;
    width: 100%;
    text-align: center;
}

.gifContainer img{
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    filter: brightness(1.2);
    transform: translateX(-50%);
}

.loopGif {
    opacity: 0;
    animation: fade-in 0.5s 1s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.transitionGif {
    display: none;
    pointer-events: none;
    z-index: 1;
}

.introLogos {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 20px;
    padding-bottom: 20px;
    z-index: 103;
}

.introLogos img {
    max-width: 30%;
    max-height: 80px;
}

.fullScreenContainer {
    width: 100vw;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    background: black;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullScreenContainer.active {
    opacity: 1;
    pointer-events: all;
}

.fullScreenContainer img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.fullScreenContainer i {
    position: absolute;
    top: 40px;
    right: 40px;
    filter: invert();
    transition: 0.2s;
    cursor: pointer;
    z-index: 99999;
}

.fullScreenContainer i:hover {
    opacity: 0.6;
}

.content {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 10px 0 30px;
    display: flex;
    align-items: center;
}

.timeline {
    width: max-content;
    height: 100%;
    max-height: 600px;
    position: relative;
    display: flex;
}

.timelineIntro {
    width: 610px;
    margin: 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timelineIntro h1 {
    display: block;
    font-size: 70px;
}

.timelineIntro a {
    display: inline-block;
    color: black;
    font-weight: bold;
    text-decoration: underline;
    transition: 0.2s;
}

.timelineIntro a:hover{
    opacity: 0.6;
}

.timelineFilter{
    margin-top: 40px;
}

.timelineFilter button {
    padding: 8px 0px;
    width: 100px;
    background-color: transparent;
    color: black;
    border: 2px solid black;
    border-radius: 30px;
    margin-right: 10px;
    letter-spacing: 0.3px;
    transition: 0.2s;
    cursor: pointer;
    font-family: 'Europa', Arial, sans-serif;
    font-size: 15px;
}

.timelineFilter button:hover,
.timelineFilter button.active {
    color: white;
    background-color: black;
}

.timelineItem {
    background-color: white;
    height: max-content;
    width: 300px;
    max-width: max-content;
    margin-right: 60px;
    border: 2px solid var(--turquesa);
    border-radius: 10px;
}

.global:first-of-type {
    margin-right: 33vw;
}

.timelineItem.bot {
    align-self: flex-end;
}

.global {
    display: none;
}

.itemImage,
.itemBox {
    position: relative;
}

.itemImage {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.itemImage img {
    width: 100%;
    border-bottom: 2px solid var(--turquesa);
    left: 0;
    top: 0;
    display: none;
}

.itemImage > img:first-of-type {
    display: block;
}

.description {
    width: 84%;
    height: 100%;
    font-size: 14px;
    padding: 0 8%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: scroll;
    background-color: white;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    cursor: auto;
}

.description.active {
    opacity: 1;
    pointer-events: all;
    z-index: 99;
}

.description p {
    margin: 30px 0;
}

.zoomButton {
    top: 0;
    right: 0;
    position: absolute;
    margin: 20px;
    padding: 18px;
    background-color: var(--turquesa);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.zoomButton:hover {
    background-color: black;
    color: white;
}

.gg-expand {
    position: absolute !important;
    right: 50% !important;
    top: 48% !important;
    width: 8px !important;
    height: 8px !important;
    border-bottom: 2px solid !important;
    border-left: 2px solid !important;

}

.gg-expand::before {
    width: 8px !important;
    height: 8px !important;
    left: 5px !important;
    top: -7px !important;
}

.gg-expand::after {
    bottom: 4px !important;
    width: 18px !important;
    height: 2px !important;
    left: -4px !important;
    background: transparent !important;
}

.itemBox {
    height: max-content;
    display: flex;
    padding: 15px 20px;
    justify-content: space-between;
}

.readMore {
    height: max-content;
}

.readMore.active .gg-add::after {
    opacity: 0;
    transition: 0.2s;
}

.readMore i {
    cursor: pointer;
    transition: 0.2s;
    border-color: var(--turquesa);
}

.readMore:hover i {
    background-color: black;
    color: white;
    border-color: black;
}

.gg-add {
    width: 36px !important;
    height: 36px !important;
    border-radius: 22px !important;
}

.gg-add::after,
.gg-add::before {
    width: 20px !important;
    height: 2px !important;
    top: 47% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.gg-add::after {
    width: 2px !important;
    height: 20px !important;
    top: 50% !important;
    left: 47% !important;
    transform: translateY(-50%) !important;
}

.carrousel {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding-bottom: 10px;
    text-align: center;
}

.gg-shape-circle {
    width: 7px !important;
    height: 7px !important;
    border: 2px solid var(--turquesa) !important;
    display: inline-block !important;
    margin-right: 5px !important;
    transition: 0.2s !important;
}

.carrousel > .gg-shape-circle:last-child {
    margin-right: 0 !important;
}

.carrousel > .gg-shape-circle:first-child,
.carrousel > .gg-shape-circle.fill {
    background: var(--turquesa) !important;
}

.itemBox h2 {
    font-size: 22px;
    font-weight: bold;
    width: 90%;
}

.itemBox .text {
    width: 90%;
}

.itemBox .yearBox {
    font-size: 15px;
    margin-top: 6px;
    opacity: 0.6;
}

.timelineProgress {
    height: 70px;
    margin: auto;
    pointer-events: none;
    background-color: var(--turquesa);
    z-index: 102;
}

.chronoProgress {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.chronoBar {
    height: 2px;
    width: 100%;
    background-color: black;
    opacity: 0.3;
}

.chronoFill {
    height: 2px;
    width: 0%;
    background-color: black;
    transition: 0.5s;
    position: absolute;
}

.chronoBox {
    float: left;
    width: 0%;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    transition: 0.5s;
}


.chronoYear {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(50%);
}

.chronoYear .yearBox {
    margin-top: -3px;
}

.timelineFilter-mobile {
    display: none;
    background-color: var(--turquesa);
}

/************* MEDIA QUERIES *************/


@media (max-width: 1100px) {
    .timelineIntro {
        width: 540px;
        margin: 0 80px;
    }

    .timelineIntro h1 {
        font-size: 64px;
    }
}

@media (max-width: 1024px) {
    .timelineIntro {
        width: 460px;
        margin: 0 60px;
    }

    .timelineItem {
        margin-right: 40px;
    }

    .timelineIntro h1 {
        font-size: 56px;
    }
    
    .introLogos {
        max-width: 300px;
    }

    .introLogos img {
        max-height: 60px;
    }
}

@media (max-width: 767px) {
    
    .timelineIntro {
        margin-left: 40px;
    }

    .timelineItem {
        margin-right: 30px;
    }

    .timelineIntro h1 {
        font-size: 48px;
    }
}

@media (max-width: 656px) {


    .content {
        margin: 0;
        overflow: unset;
        display: block;
    }

    body {
        overflow: auto;
    }

    html {
        overflow: scroll;
    }

    .timeline {
        width: 100%;
        height: max-content;
        max-height: none;
        margin-top: 30px;
        display: block;
        padding-bottom: 100px;
        position: relative;
    }

    .timelineIntro,
    .timelineItem {
        margin: 0;
        width: 90%;
        margin: auto;
        margin-bottom: 30px;
    }

    .timelineItem {
        max-width: 100%;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .itemBox {
        padding: 20px 28px;
    }

    .description {
        font-size: 19px;
    }

    .readMore,
    .zoomButton,
    .carrousel {
        transform: scale(1.2);
    }

    .timelineProgress {
        height: max-content;
        position: fixed;
        bottom: 0;
        width: 90%;
        padding: 10px 5%;
        display: flex;
        transform: translateY(100%);
        transition: 0.3s;
    }

    .timelineProgress .chronoProgress {
        width: 100%;
        display: flex;
        align-items: center;
        margin-left: 30px;
    }

    .timelineProgress .chronoYear {
        display: block;
        transform: translateX(0%);
        margin-top: 0;
    }

    .chronoBox {
        order: -1;
        float: none;
        width: auto;
        display: block;
        transition: 0.5s;
    }

    .chronoBox i {
        display: none;
    }

    .timelineIntro h1 {
        font-size: 50px;
        margin-bottom: 30px;
    }

    .itemBox h2 {
        font-size: 24px;
    }

    .itemBox .yearBox {
        font-size: 17px;
    }

    .timelineFilter {
        display: none;
    }

    .timelineFilter-mobile {
        display: block;
        width: 90%;
        margin: auto;
        margin-bottom: 20px;
    }

    .fullScreenContainer img {
        width: 100%;
        height: 100%;
    }
    
    .introLogos {
        max-width: 250px;
    }

    .introLogos img {
        max-height: 50px;
    }
}

@media (max-width: 440px) {

    .readMore,
    .zoomButton,
    .carrousel {
        transform: scale(1);
    }

    .itemBox {
        padding: 15px;
    }

    .zoomButton {
        margin: 15px;
    }

    .gg-add::after {
        left: 47% !important;
    }

    .gg-add::before {
        left: 50% !important;
    }

    .gg-expand {
        right: 50% !important;
    }

    .itemBox h2 {
        font-size: 19px;
    }

    .itemBox .yearBox {
        font-size: 14px;
    }

    .description {
        font-size: 15px;
    }

    .timelineIntro h1 {
        font-size: 44px;
    }
    
    .introLogos {
        max-width: 90%;
        padding-right: 5%;
        padding-bottom: 5%;
        padding-left: 5%;
    }

    .introLogos img {
        max-height: 50px;
    }
}

@media (max-width: 320px) {
    .timelineIntro h1 {
        font-size: 40px;
    }
}
