body
{
    font-family: sans-serif;
    height: 100%;
    margin: 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#map
{
    width: 100%;
    position: absolute;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    left: 0px;
    top: 0px;
}

#title
{
    position: relative;
    text-align: center;
    margin: auto;
    line-height: 80%;
    top: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
    z-index: 20;
    border: black 1px solid;
    background-color: rgba(255, 255, 255, 0.5);
    width: calc(100% - 100px);
}

.date_filter
{
    width: 100%;
    display: inline-block;
}

#on_date
{
    position: absolute;
    top: 55px;
    font-weight: bold;
    text-align: center;
    color: purple;
    display: block;
    width: 100%;
}

#date_range
{
    position: absolute;
    top: 1px;
    left: 5px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    z-index: 21;
}

#label
{
    position: relative;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    z-index: 50;
}

.timeline
{
    position: relative;
    display: block;
}

.timeline_elements
{
    display: inline-block;
    width: calc(100% - 60px);
}

#timeline_selector
{
    padding-top: 5px;
    width: 100%;
}

#first_date
{
    position: relative;
    float: left;
    top: -5px;
    font-size: medium;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    z-index: 50;
}

#last_date
{
    position: relative;
    top: -5px;
    float: right;
    font-size: medium;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    z-index: 50;
}

.timeline_play
{
    display: inline-block;
    vertical-align: top;
}

#play
{
    height: 30px;
    width: 40px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 5px;
}

#light
{
    position: fixed;
    bottom: 30px;
    left: 10px;
    z-index: 20;
    visibility: visible;
    cursor: pointer;
}

#light img
{
    border: white double 1px;
}

#dark
{
    position: fixed;
    bottom: 30px;
    left: 10px;
    z-index: 20;
    visibility: hidden;
    cursor: pointer;
}

#dark img
{
    border: black double 1px;
}

#locations
{
    text-overflow: ellipsis;
    overflow: hidden; 
    height: 1.2em; 
    white-space: nowrap;
    text-align: center;
    font-weight: bold;
    padding: 5px;
}

#locations.dark
{
    color: white;
    text-shadow: -1px 0px 1px black, 1px 0px 1px black, 0px -1px 1px black, 0px 1px 1px black;
    -webkit-font-smoothing: antialiased;
}

#locations.light
{
    color: black;
    text-shadow: -1px -1px 1px white, 1px 1px 1px white, -1px 1px 1px white, 1px -1px 1px white;
    -webkit-font-smoothing: antialiased;
}

#close
{
    position: absolute;
    right: -10px;
    top: -15px;
    cursor: pointer;
    z-index: 20;
}

#chartIcon
{
    position: fixed;
    top: 110px;
    right: 10px;
    z-index: 30;
    display: none;
    cursor: pointer;
}

#chartSelector
{
    display: none;
    text-align: center;
}

#chartsPanel
{
    position: relative;
    height: calc(100vh - 200px);
    margin-right: -10px;
    overflow-y: scroll;
    overflow-x: hidden;
    border-bottom: 1px white dashed;
}

@media (max-width: 320px)
{
    #close
    {
        right: 0px;
    }

    #chartsPanel
    {
        height: 350px;
    }

    #charts
    {
        position: fixed;
        top: 110px;
        left: 0px;
        background-color: rgba(0, 0, 0, 0.6);
        width: 100%;
    }

    #locations
    {
        width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    #chart1
    {
        position: relative;
        width: 320px;
        height: 250px;
        z-index: 10;
        margin-bottom: 10px;
    }

    #chart2
    {
        position: relative;
        width: 320px;
        height: 250px;
        z-index: 10;
        margin-bottom: 10px;
    }

    #chart3
    {
        position: relative;
        width: 320px;
        height: 250px;
        z-index: 10;
        margin-bottom: 10px;
    }

    #title
    {
        font-size: medium;
    }

    #on_date
    {
        top: 40px;
        font-size: large;
    }

    #chartSelector
    {
        display: none;
    }

    #first_date
    {
        display: none;
    }

    #last_date
    {
        display: none;
    }

    #label
    {
        position: absolute;
        top: 5px;
        right: 5px;
    }
}

@media (min-width: 321px) and (max-width: 700px)
{
    #close
    {
        right: 0px;
    }

    #chartsPanel
    {
        height: 350px;
    }

    #charts
    {
        position: fixed;
        top: 110px;
        left: 0px;
        background-color: rgba(0, 0, 0, 0.6);
        width: 100%;
    }

    #locations
    {
        width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    #chart1
    {
        position: relative;
        width: 320px;
        height: 300px;
        z-index: 10;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    #chart2
    {
        position: relative;
        width: 320px;
        height: 300px;
        z-index: 10;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    #chart3
    {
        position: relative;
        width: 320px;
        height: 300px;
        z-index: 10;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    #title
    {
        font-size: medium;
    }

    #on_date
    {
        top: 40px;
        font-size: large;
    }

    #chartSelector
    {
        display: none;
    }

    #first_date
    {
        display: none;
    }

    #last_date
    {
        display: none;
    }

    #label
    {
        position: absolute;
        top: 5px;
        right: 5px;
    }
}

@media (min-width: 701px)
{
    #charts
    {
        position: fixed;
        top: 110px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.6);
    }

    #locations
    {
        width: 400px;
    }

    #chart1
    {
        position: relative;
        width: 400px;
        height: 300px;
        z-index: 10;
        margin-bottom: 10px;
    }

    #chart2
    {
        position: relative;
        width: 400px;
        height: 300px;
        z-index: 10;
        margin-bottom: 10px;
    }

    #chart3
    {
        position: relative;
        width: 400px;
        height: 300px;
        z-index: 10;
        margin-bottom: 10px;
    }

    #title
    {
        font-size: x-large;
    }

    #on_date
    {
        font-size: x-large;
    }

    #chartSelector
    {
        display: none;
    }
}

@media (max-height: 767px)
{
    #chart1sel
    {
        display: none;
    }

    #chart2
    {
        display: none;
    }

    #chart2sel
    {
        display: none;
    }

    #chart3
    {
        display: none;
    }

    #chart3sel
    {
        display: none;
    }

    #chartSelector
    {
        display: block;
    }
}

.chartselon
{
    color: rgba(0, 0, 0, 0);
    border-top: 1px solid white;
    background-color: rgba(255, 255, 255, 0.4);
    text-align: left;
    font-size: small;
    padding: 7px;
    cursor: pointer;
    font-weight: bold;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='20px' width='20px'><text x='0' y='0' transform='rotate(90)' fill='black' font-family='sans-serif' font-size='20'>&gt;</text></svg>");
    background-repeat: no-repeat;
    background-position: right; 

}

.chartseloff
{
    color: black;
    border-top: 1px solid white;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: left;
    font-size: small;
    padding: 7px;
    cursor: pointer;
    font-weight: bold;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='20px' width='20px'><text x='0' y='15' fill='black' font-family='sans-serif' font-size='20'>&gt;</text></svg>");
    background-repeat: no-repeat;
    background-position: right; 
}

.country
{
    color: red;
    display: inline-block;
    position: relative;
    margin: auto;
    font-size: small;
    text-align: center;
}

.country a:link
{
    color: darkblue;
}

.country a:visited
{
    color: darkblue;
}

.country a:hover
{
    color: red;
}