:root {
    --col1: #FFFFFF;
    --col2: #084C61;
    --col3: #333333;
    --col4: #46BA1B;
    --col5: #177E89;
}

#wrapper {
    background: var(--col1);
}

#wrapper * {
    font-family: 'Arimo', sans-serif;
}

#wrapper p,
#wrapper a,
#wrapper li,
#wrapper div {
    font-size: 14px;
}

#wrapper a,
#wrapper a:visited {
    color: var(--col4);
}

#spacer {
    height: 50px;
}

#chart {
    width: 1200px;
    height: 900px;
    position: relative;
}

.row {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.text {
    text-align: justify;
}

h2 {
    position: relative;
    margin: 50px 20px;
    margin-bottom: 0;
    font-size: 30px;
    color: var(--col2);
    text-align: center;
    border: 1px solid var(--col2);
    border-width: 1px 0;
    padding: 10px;
}

.text p,
.text ul,
.text a {
    margin: 0 100px;
    display: inline-block;
}

.text a {
    margin: 20px 100px;
}

.text ul {
    margin-top: 0;
}

#list {
    overflow: hidden;
    height: 0;
    background: var(--col4);
    color: var(--col1);
    width: 1220px;
    margin-left: -10px;
    box-shadow: inset 0 0 5px var(--col3);
}

#list p,
#list ul {
    margin: 20px 110px;
}

#list p {
    margin-bottom: -10px;
}

.chart {
    width: 1200px;
    background: var(--col3);
    position: relative;
}

.spacer {
    height: 50px;
}

#year,
#sort {
    width: 100px;
    height: 40px;
    border: 1px solid var(--col4);
}

#sort {
    margin-left: -1px;
}

select:active,
select:hover {
    outline-color: var(--col4);
}

#chart1 {
    height: 600px;
}

.hoverinfo {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-family: 'Arimo', sans-serif !important;
}

#chart2 {
    margin: 20px;
    width: 1160px;
    height: 800px;
}

#chart2 .c3-axis * {
    stroke: var(--col1);
}

#chart2 .c3-axis tspan {
    fill: var(--col1);
    stroke: none;
    font-size: 13px;
    font-family: 'Arimo', sans-serif;
}

#chart3 {
    position: fixed !important;
    width: 1160px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--col1);
}

#chart3 .c3-axis *,
#chart3 .c3-legend-item text {
    stroke: var(--col3);
}

#overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--col1);
    opacity: 0;
    display: none;
    z-index: 9001;
}

.close {
    position: absolute;
    right: 32px;
    top: 32px;
    width: 32px;
    height: 32px;
    opacity: 0.3;
}

.close:hover {
    opacity: 1;
}

.close:before,
.close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #333;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}

#credits a {
    display: inline;
    margin: 0;
}

.mid {
    line-height: 40px;
}

.mid select,
.mid p,
#legend {
    display: inline-block;
    float: left;
    margin-left: 100px;
}

.mid p {
    margin-left: 100px;
    line-height: 20px;
}

#pos,
#neg {
    display: inline-block;
    color: white;
    height: 40px;
    width: 100px;
    text-align: center;
}

#pos {
    margin-left: 50px;
    background: var(--col5);
}

#neg {
    background: var(--col2);
    margin-left: -4px;
}

#noData {
    position: fixed;
    background: var(--col4);
    color: var(--col1);
    top: 50px;
    left: calc(50% - 100px);
    width: 200px;
    line-height: 50px;
    height: 50px;
    text-align: center;
    box-shadow: 2px 2px 3px var(--col3);
    opacity: 0;
    display: none;
}

#credits p {
    display: block;
}

#warning {
    position: fixed;
    background: red;
    color: white;
    padding: 20px;
    top: 30px;
    left: 30px;
    box-shadow: 2px 2px 3px var(--col3);
    display: none;
    z-index: 100;
}

.c3-bar:hover {
    fill: var(--col4);
}

@media only screen and (max-height: 709px) {
    #warning {
        display: block;
    }
}
