.timeline-wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4rem;
    top: 0;
    left: 0;
    width: 100vw;
    padding-bottom: 10rem;
    min-height: 100vh;
    background-color: white;
    padding-top: 40px;
}


.event {
    display: flex;
    justify-content: flex-end;
    text-decoration: none;
    list-style: none;
    height: 6rem;
    width: 40vw;
    color: #3d405b /*#566b8a*/;
    padding-right: 7vw;
    cursor: pointer;
}


.mobile-hide { display: inline; }
.desktop-hide{ display: none; }

@media all and (max-width: 650px) {
    .event {
        width: 100%;
    }

    .mobile-hide { display: none; }
    .desktop-hide{ display: inline; }
}


.event-text {
    position: fixed;
    display: none;
    top: 15vh;
    left: 37vw;
    width: 50vw;
    height: 70vh;
    background-color: #F4F1DE;
    color: black;
    text-align: justify;
    padding: 0 3rem 3rem;
    border-radius: 0.5rem;
    box-shadow: 5px 10px 1px 1px rgba(0, 0, 0, 0.34);
    overflow: hidden;
    z-index: -10;
    cursor: default;
    overflow-x: scroll;
}

.bottom-text {
    position: absolute; top: 64.5vh;
    background-color: #F4F1DE;
     width: 90%;
    text-align: left;
    height: 5rem;
}

/* all the hovering only on desktop */
@media all and (min-width: 650px) {
    .event:hover > .event-text {
        display: block;
        z-index: 10;
    }

    .event:hover {
        color: #f4a460;
    }

    .event-text:hover {
        display: block;
        z-index: 10;
    }

    .event:hover .icon>svg .d {
        fill: #f4a460;
    }
}

.event:visited {
    color: gray;
}

.event .icon {
    z-index: 1;
}

.event .icon>svg {
    width: 3rem; height: 3rem;
}

.event .event-title-date {
    font-size: 1rem;
    text-align: center;
    position: relative; left: -1.5rem;
    width: 60%;
}

.event-title-date .date {
    color: darkgray;
}


.event .line {
    border-left: 0.4rem solid #ababab;
    height: 10rem;
    position: relative;
    left: -1.7rem;
    top: -2rem;
}

/* safari only @media not all and (min-resolution:.001dpcm) { @media {
    .event .line {
        left: -1.6rem !important;
    }
}}*/


/* legned */

#legend {
    display: flex; flex-direction: column;
    position: absolute;
    right: 1rem;
    align-items: end;
}

#legend .icon {
    font-size: 2rem;
    position: relative;
    top: 2px;
}

#legend .icon>svg {
    height: 1.8rem;
    width: 1.8rem;
    padding-left: 0.3rem;
}


#legend button {
    border: none; outline: none; background-color: transparent; height: auto;
}


#legend .selected {
    font-weight: bold;
}

/* all the hovering only on desktop */
@media all and (min-width: 551px) {
    #legend .selected, #legend button:hover {
        color: #f4a460;
    }

    #legend .selected:hover {
        color: grey;
        font-weight: revert;
    }

    #legend .selected .icon>svg .d, #legend button:hover .icon>svg .d {
        fill: #f4a460;
    }

    #legend .selected:hover .icon>svg .d{
        fill: grey;
    }
}

#legend-heading {
    font-size: 0.8rem;
    text-align: right;
    color: #5b5b5b;
    margin-top: 1rem;
    padding-right: 1.5rem;
}


/* for mobile */
@media all and (max-width: 650px) {
    .timeline-wrapper {
        width: 100vw;
    }


    #notebook-timeline-wrapper {
        width: 90vw;
    }

    #legend {
        position: static;
        align-items: center;
        align-self: center;
    }

    #legend .selected {
        color: #f4a460;
    }

    #legend-heading {
        font-size: 0.8rem;
        text-align: center;
        padding-right: 0;
        width: 100%;
    }
}