html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body {
    background: white;
    padding: 0;
    margin: 0;
    font-family: "Fira Sans";
}

@media screen and (max-width: 799px) {
    html, body {
        width: 100%;
        height: 100%;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch; 
    }
}

#dwl-map {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    opacity: 0.8;
}

body > h1 {
    text-align: right;
    display: block;
    font: 200 4em "Fira Sans";
    color: #242C33;
    padding-right: 2vw;
    position: relative;
}

body > h1::before {
    content: "......";
    background: url("bomb.png") no-repeat;
    background-position: center;
    color: rgba(255,255,255,0);
}

body > h2 {
    text-align: right;
    display: block;
    font: 200 2em "Fira Sans";
    color: #242C33;
    padding-right: 2vw;
    position: relative;
}

#mobilemenu {
    position: -webkit-sticky;
    position: sticky;
    bottom: 1em;
    margin-left: 1em;
    display: flex;
    z-index: 3;
}

#mobilemenu #compass {
    border-radius: 50%;
    background: url("compass.png") no-repeat;
    width: 2em;
    height: 2em;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}

#mobilemenu #clock {
    border-radius: 50%;
    background: url("clock.png") no-repeat;
    width: 2em;
    height: 2em;
    margin-left: 1em;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}

#pretimeline {
    display: none;
}

#timeline {
    background: rgba(60,60,60,.8);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-flow: nowrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 0.5em;
    transition: left 1s cubic-bezier(0.8, 0, 0.1, 1);
}

#timeline div.circle {
    border-radius: 50%;
    background: #F5F5F5;
    border: 1px solid white;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    animation: growingcircle800 .5s ease-out;
}

#timeline div.circle.y1984 {
    background: #861c32;
}

#timeline div.circle.y1985 {
    background: #672A4E;
}

#timeline div.circle.y1986 {
    background: #861c32;
}

#timeline div.circle.y2000 {
    background: #ffffff;
}

@keyframes growingcircle600 {
    0% {width: 0; height: 0;}
    60% {width: 10px; height: 10px;}
    100% {width: 6px; height: 6px;}
}

@keyframes growingcircle700 {
    0% {width: 0; height: 0;}
    60% {width: 10px; height: 10px;}
    100% {width: 7px; height: 7px;}
}

@keyframes growingcircle800 {
    0% {width: 0; height: 0;}
    60% {width: 13px; height: 13px;}
    100% {width: 10px; height: 10px;}
}

@keyframes growingcircle1100 {
    0% {width: 0; height: 0;}
    60% {width: 16px; height: 16px;}
    100% {width: 12px; height: 12px;}
}

#timeline div.circle.selected {
    background: orange;
}

#timeline div.circle:hover {
    cursor: pointer;
    background: #7392B7;
    width: 16px;
    height: 16px;
}

#timeline div.circle:hover::after {
    content: attr(data-date) '\A' attr(data-place) ' \A' attr(data-action);
    white-space: pre-wrap;
    padding: 5px;
    width: 130px;
    background: rgba(59, 59, 59, .9);
    color: white;
    display: block;
    left: 50px;
    font: 300 .8em "Fira Sans";
    line-height: 1.4em;
    position: relative;
}

#timeline div#c1::before, #timeline div#c7::before, #timeline div#c38::before, #timeline div#c41::before {
    content: "1984";
    padding: 0;
    width: 130px;
    color: white;
    display: block;
    left: -50px;
    font: 300 .8em "Fira Sans";
    position: relative;
}

#timeline div#c7::before {
    content: "1985";
}

#timeline div#c38::before {
    content: "1986";
}

#timeline div#c41::before {
    content: "2003";
}

#timeline div.line {
    border-width: 0;
    border-left: 1px solid #F5F5F5;
    height: 3px;
    animation: lightline .5s ease-out;
}

@keyframes lightline {
    0% {border-color: #3C3C3C;}
    100% {border-color: #F5F5F5;}
}

article {
    width: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    display: block;
    position: relative;
    box-sizing: border-box;
    transition: left 1s cubic-bezier(0.8, 0, 0.1, 1);
}

@media screen and (max-width: 599px) {
    article.off, #timeline.off {
        left: -700px;
    }
}

article ul, article li {
    margin: 0;
    padding: 0;
}

article li {
    padding: 0.5em 0 0.5em 1.5em;
    box-sizing: border-box;
    color: white;
    font: 200 1em "Fira Sans";
}

article h1, article h2, article h3, article p, article ul li {
    width: calc (100% - 1.8em);
    max-width: 400px;
    margin: 0;
    background: rgba(4,110,143,.8);
    box-sizing: border-box;
}

article p {
    font: 200 1em "Fira Sans";
    text-align: justify;
    padding: .8em 1em .8em 1em;
    color: white;
}

article p strong {
    font-weight: 400;
}

article h1 {
    color: white;
    padding: .8em 1em .8em 1em;
}

article h2 {
    text-align: right;
    color: #c8c8c8;
    padding: .8em 1em .8em 1em;
    font-weight: 300;
}

article h3 {
    text-align: right;
    color: orange;
    padding: 3em 1em 0 1em;
}

article p img {
    width: 100%;
}

article aside .timetick {
    height: 350px;
    position: absolute;
    z-index: 2;
}

article aside .asidecontent {
    transition: opacity .3s ease-out, max-width .3s ease-out, transform .3s ease-out;
}

article aside .asidecontent.on {
    opacity: 1;
}

article aside .asidecontent.off {
    opacity: 0;
}

article aside .asidecontent img {
    margin: 1em;
    width: calc(100% - 2em);
    display: block;
    border-radius: 1em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media screen and (min-width: 600px) {
    #pretimeline {
        position: relative;
        background: rgba(60,60,60,.8);
        display: block;
        height: 20px;
        padding: 0 0.5em;
    }
    
    #timeline {
        position: relative;
        width: 100%;
        background: rgba(60,60,60,.8);
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        flex-flow: nowrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 40px;
        padding: 0 0.5em;
    }

    #timeline div.circle {
        border-radius: 50%;
        background: #F5F5F5;
        border: 1px solid white;
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
        animation: growingcircle600 .5s ease-out;
    }

    #timeline div.line {
        border-width: 0;
        border-top: 1px solid #F5F5F5;
        width: 3px;
        height: 0;
        animation: lightline .5s ease-out;
    }

    #timeline div#c1::before, #timeline div#c7::before, #timeline div#c38::before, #timeline div#c41::before {
        top: -28px;
        left: -6px;
    }

    #timeline div.circle:hover::after {
        top: 50px;
        left: 0;
    }

    #timeline div.circle:last-child:hover::after, 
    #timeline div.circle:nth-last-child(3):hover::after, 
    #timeline div.circle:nth-last-child(5):hover::after, 
    #timeline div.circle:nth-last-child(7):hover::after {
        left: -140px;
    }

    #mobilemenu {
        display: none;
    }

    article {
        max-width: 400px;
    }
}

@media screen and (min-width: 700px) {
    #timeline div.circle {
        border-radius: 50%;
        background: #F5F5F5;
        border: 1px solid white;
        width: 7px;
        height: 7px;
        min-width: 7px;
        min-height: 7px;
        animation: growingcircle700 .5s ease-out;
    }

    #timeline div.line {
        width: 4px;
    }
}

@media screen and (min-width: 800px) {
    #timeline div.line {
        width: 5px;
    }

    #timeline div.circle {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
        animation: growingcircle800 .5s ease-out;
    }

    article aside .asidecontent {
        width: 30vw;
        margin-left: 62vw;
        position: absolute; 
    }

    article aside .asidecontent img {
        margin: 0;
        width: 100%;
    }

    article aside .asidecontent.picmax {
        width: 35vw;
        transform: rotate(4deg);
    }
    
    article aside .asidecontent.picmin {
        width: 30vw;
        transform: rotate(0deg);
    }

    article aside .asidecontent.picmax.portrait {
        width: 30vw;
        transform: rotate(4deg);
    }
    
    article aside .asidecontent.picmin.portrait {
        width: 20vw;
        transform: rotate(0deg);
    }
}

@media screen and (min-width: 1000px) {
    #timeline div.line {
        width: 10px;
    }
}

@media screen and (min-width: 1100px) {
    #timeline div.circle {
        width: 12px;
        height: 12px;
        min-width: 12px;
        min-height: 12px;
        animation: growingcircle1100 .5s ease-out;
    }
}


@media screen and (min-width: 1300px) {
    #timeline div.line {
        width: 15px;
    }
}