@import url("https://fonts.googleapis.com/css?family=Cardo|Pathway+Gothic+One");
.timeline {
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 700px;
    position: relative;
}
body {
    margin: 0;
    padding: 0;
    display: grid;
}

img {
    width: 100%;
    height: auto;
    display: block;
}
.timeline__content-title {
    font-weight: normal;
    font-size: 66px;
    margin: -10px 0 0 0;
    transition: 0.4s;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: "Pathway Gothic One", sans-serif;
    color: #fff;
}
.timeline__content-desc {
    margin: 0;
    font-size: 15px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.7);
    font-family: Cardo;
    font-weight: normal;
    line-height: 25px;
}
.timeline:before {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    content: "";
    background: rgba(255, 255, 255, 0.07);
}
@media only screen and (max-width: 767px) {
    .timeline:before {
        left: 40px;
    }
}
.timeline-item {
    padding: 40px 0;
    opacity: 0.3;
    filter: blur(2px);
    transition: 0.5s;
    box-sizing: border-box;
    width: calc(50% - 40px);
    display: flex;
    position: relative;
    transform: translateY(-80px);
}
.timeline-item:before {
    content: attr(data-text);
    letter-spacing: 3px;
    width: 100%;
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-family: "Pathway Gothic One", sans-serif;
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    top: 70%;
    margin-top: -5px;
    padding-left: 15px;
    opacity: 0;
    right: calc(-100% - 56px);
}
.timeline-item:nth-child(even) {
    align-self: flex-end;
}
.timeline-item:nth-child(even):before {
    right: auto;
    text-align: right;
    left: calc(-100% - 56px);
    padding-left: 0;
    border-left: none;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    padding-right: 15px;
}
.timeline-item--active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}
.timeline-item--active:before {
    top: 50%;
    transition: 0.3s all 0.2s;
    opacity: 1;
}
.timeline-item--active .timeline__content-title {
    margin: -50px 0 20px 0;
}
@media only screen and (max-width: 767px) {
    .timeline-item {
        align-self: baseline !important;
        width: 100%;
        padding: 0 30px 150px 80px;
    }
    .timeline-item:before {
        left: 10px !important;
        padding: 0 !important;
        top: 50px;
        text-align: center !important;
        width: 60px;
        border: none !important;
    }
    .timeline-item:last-child {
        padding-bottom: 40px;
    }
}
.timeline__img {
    max-width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}
.timeline-container {
    width: 100%;
    position: relative;
    padding: 40px 0;
    transition: 0.3s ease 0s;
    background-attachment: fixed;
    background-size: cover;
    padding-top: 100px;
}
.timeline-container:before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 99, 99, 0.8);
    content: "";
}
.timeline-header {
    width: 100%;
    text-align: center;
    margin-bottom: 80px;
    position: relative;

    form {
        margin-top: 2em;
    }

    input {
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.5);
        color: white;
        font-size: 16px;
        padding: 0.5em;
        font-family: Cardo;
        vertical-align: middle;

        &:focus {
            outline: none;
        }
    }

    button[type="submit"] {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-left: none;
        color: rgba(255, 255, 255, 0.5);
        padding: 0.65em;
        cursor: pointer;
        vertical-align: middle;

        &:hover {
            color: white;
        }
    }
}
.timeline-header__title {
    color: #fff;
    font-size: 28px;
    font-family: Cardo;
    font-weight: normal;
    margin: 0;

    @media (min-width: 768px) {
        font-size: 34px;
    }

    @media (min-width: 1024px) {
        font-size: 46px;
    }
}
.timeline-header__subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Pathway Gothic One", sans-serif;
    font-size: 16px;
    letter-spacing: 5px;
    margin: 10px 0 0 0;
    font-weight: normal;
}

.demo-footer {
    padding: 30px 0;
    text-align: center;
    font-family: "Pathway Gothic One", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    flex-direction: column;

    @media screen and (min-width: 768px) {
        padding: 45px 0;
    }
}

.demo-footer a {
    color: #999;
    display: flex;
}

.timeline-right {
    right: 3vw;
    top: 2em;
    bottom: 2em;
    align-self: center;
    display: none;
    position: fixed;
    height: calc(100vh - 4em);
    overflow-y: scroll;

    @media (min-width: 768px) {
        display: block;
    }

    ul {
        list-style-type: none;
        justify-self: flex-end;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        font-family: "Pathway Gothic One", sans-serif;
        padding-top: 2em;
        text-align: center;

        li {
            a {
                padding: 0.5em 0;
                color: rgba(255, 255, 255, 0.5);
                text-decoration: none;
                font-size: 18px;
                line-height: 2em;

                &::before {
                    width: 5px;
                    height: 5px;
                    border-radius: 50%;
                    background: rgba(255, 255, 255, 0.5);
                    content: "";
                    display: block;
                    margin: auto;
                }

                &:hover,
                &.active {
                    color: white;
                }
            }

            &:first-child a::before {
                content: none;
            }
        }
    }
}

.timeline-item a {
    color: #fff;
    padding: 1em 0;
    display: block;
    letter-spacing: 1px;
    text-decoration: none;
}

.pop-timeline-wrap {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    padding: 1em;
    font-family: "Cardo";
    display: none;

    @media (min-width: 768px) {
        padding: 4em;
    }
}

.pop-media {
    aspect-ratio: 16/9;
}

.pop-media img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.pop-text {
    color: black;
    padding: 1em;

    @media (min-width: 768px) {
        padding: 2em;
    }
}

.pop-text p {
    margin: 0;
    padding: 0;
    padding-bottom: 1em;
    font-size: 16px;
}

.pop-timeline {
    max-width: 768px;
    margin: auto;
    padding-bottom: 2em;
    background-color: white;
    height: 100%;
    overflow: auto;
    scrollbar-color: black white;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    background: black;
    width: 2px;
}

::-webkit-scrollbar-thumb {
    background-color: black;
}

::-webkit-scrollbar-track-piece {
    background-color: white;
}

.close-pop {
    position: absolute;
    top: 1.5em;
    right: 1.5em;
    color: white;

    @media (min-width: 768px) {
    }

    img {
        width: 30px;
        height: 30px;

        @media (min-width: 768px) {
            width: 50px;
            height: 50px;
        }
    }
}

.hamburger-container {
    width: max-content;
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    transition: transform 0.5s ease;
    color: red;

    .checkbox {
        opacity: 0;
        position: absolute;
    }

    .checkbox:focus ~ .hamburger {
        outline: 2px solid white;
        outline: auto;
        outline-offset: 4px;
    }

    .drawer a {
        visibility: hidden;
        transition: visibility 0.5s linear;
    }

    .checkbox:checked ~ .drawer a {
        visibility: visible;
    }
    .checkbox:checked ~ .drawer {
        transform: translateX(0%);
        z-index: 1000;
    }

    border-radius: 100%;
    background: black;

    .checkbox:checked ~ .hamburger .slice:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    .checkbox:checked ~ .hamburger .slice:nth-child(2) {
        opacity: 0;
    }

    .checkbox:checked ~ .hamburger .slice:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }

    .checkbox:checked ~ .hamburger .slice:not(:first-child) {
        margin-top: 10px;
    }
}

@supports selector(:focus-visible) {
    .hamburger-container .checkbox:not(:focus-visible) ~ .hamburger {
        outline: none;
        z-index: 10000;
    }
}

.hamburger {
    width: 50px;
    height: 46px;
    position: relative;
    display: block;
    transition: transform 0.5s ease;
    z-index: 1;
    cursor: pointer;
    padding: 0.8em;
    border-radius: 100%;
    background: black;
    box-sizing: border-box;

    .slice {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        transition: all 0.5s ease;
    }
    .slice:not(:first-child) {
        margin-top: 6px;
    }
}

.drawer {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 250px;
    max-width: 100%;
    padding: 22px;
    background: black;
    transform: translateX(-100%);
    transition: transform 0.5s ease;

    @media screen and (max-width: 768px) {
        width: 100%;
    }

    .nav-list {
        padding: 0;
        list-style: none;
        padding: 3em 1em;
        text-align: center;
        font-size: 20px;
        display: flex;
        flex-direction: column;
        gap: 1em;

        a {
            color: white;
            text-decoration: none;

            &:hover {
                color: #e85731;
            }
        }
    }

    .nav-list .nav-list-item {
        padding-bottom: 10px;
    }
}

.espa {
    position: absolute;
    top: 10px;
    left: auto;
    right: 1em;
    max-width: 250px;
    background-color: white;
    z-index: 10;
    display: flex;
    justify-self: center;
    margin-left: 1em;

    @media screen and (min-width: 426px) {
        right: 0;
        left: 0;
    }

    a {
        display: block;
        //height: 70px;
        align-self: center;
        padding: 0.5em;
        justify-content: center;
        align-items: center;
        pointer-events: none;

        @media screen and (min-width: 768px) {
            height: auto;
            padding: 0.5em;
        }
    }

    img {
        max-width: 100%;
        display: block;
        height: auto;
    }
}

.f-text {
    display: flex;
    font-size: 14px;
    padding: 0 1em;
    border-bottom: 1px solid #000;
    padding-bottom: 2em;
    margin-bottom: 1em;

    @media screen and (min-width: 768px) {
        padding: 0 6em;
        padding-bottom: 2em;
    }

    p {
        line-height: 1.5em;
        font-size: 1em;
        margin: 0;
        padding: 0;

        a {
            display: inline;
        }
    }
}
