/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
body {
    font-family: "Arial";
}
header {
    background-color: black;
    color: white;
    text-align: center;
}
header h1 {
    font-size: 2em;
    padding-top: 1em;
    font-weight: bold;
}
#main {}
.holder {
    position: relative;
    width: 900px;
    max-width: 100%;
    margin: auto;
    padding: 1em;
}

/*

.section:not(:first-child) {

    padding-top: 0.8em;
}
*/

#FAQs h2 {
    margin: 1em 0em 0.5em 0em;
}
#FAQs h3 {
    margin: 2em 0em 0.2em 0em;
}
#FAQs p {
    margin: 0.5em 0em 1em 0em
}
.section {
    margin: 1.2em 0;
    background-color: #efefef;
    padding: 1em;
}
#main h1,
#main h2 {
    margin-bottom: 0;
}
h2 {
    font-size: 1.1em;
    font-weight: bold;
}
header h4 {
    padding-top: 0.5em;
    padding-bottom: 1.5em;
    font-size: 0.8em;
}
p {
    font-size: 0.8em;
    text-align: center;
}
.section p {
    text-align: left;
}
.sliderBarHolder {
    margin: 1.5em 0;
    margin-bottom: 1.7em;
    position: relative;
    text-align: center;
    margin-bottom: 3em;
}
#controlsSection h2,
#sliderContent h2 {
    margin-bottom: 0.5em;
}
.sliderBarHolder .sliderBar {
    display: inline-block;
    vertical-align: middle;
    width: 400px;
}
.sliderValue {
    color: #2f529f;
    font-weight: bold;
    margin-left: 0.2em;
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 1.5em;
}
.sliderBarHolder:last-child {}
.sliderBarHolder:last-child .noUi-marker-normal {
    visibility: hidden;
}
.noUi-handle {
    border: 1px solid #D9D9D9;
    border-radius: 3px;
    /* background: #e61f47;*/
    cursor: default;
    /*    box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #9a001f, 0 3px 6px -3px #BBB;*/
}
.noUi-handle:before,
.noUi-handle:after {
    /*  background: #ff7793;*/
}
.noUi-marker-normal {
    visibility: hidden;
}
.noUi-value {
    font-family: 'Arial';
    font-size: 0.8em;
}
.noUi-marker-horizontal.noUi-marker-large {
    height: 0px;
}
.noUi-value-horizontal {
    -webkit-transform: translate(-50%, -40%);
    transform: translate(-50%, -40%);
}
.noUi-horizontal .noUi-handle {
    width: 34px;
    height: 20px;
    left: -17px;
    top: -2px;
}
.noUi-handle:before,
.noUi-handle:after {
    height: 9px;
    top: 5px;
}
#dataVisualisationSection.section {
    background-color: transparent;
    padding: 0;
}
.noUi-pips-horizontal {
    height: 30px;
}
.controlHolder {
    font-size: 0.8em;
    margin: 1em 0;
    display: table;
}
.control:hover:not(.active) {
    background-color: #97ddff;
}
.controlHolder .control:nth-child(n+2) {
    margin-left: -4px;
}
.controlHolder .control {
    display: table-cell;
    vertical-align: middle;
    width: 150px;
    color: #178CFF;
    border: 4px solid #178CFF;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    background-color: white;
    padding: 0.5em 0;
}
.controlHolder .control:nth-child(n+2) {
    margin-left: -4px;
}
.control.active {
    background-color: #178CFF;
    color: white;
}
.noUi-connect {
    background: #2f529f;
}
#dataVisualisationHolder {}
#dataVisualisationTabsHolder {
    width: 50%;
}
.dataVisualisationTab {
    cursor: pointer;
    display: inline-block;
    width: 50%;
    padding: 0.5em;
    font-size: 1.1em;
    font-weight: bold;
}
#dataVisualisationContent {
    background-color: #efefef;
    padding: 1em;
}

#barchartHolder h3 {
        font-weight: bold;
    margin-bottom: 0.8em;
}
.dataVisualisationTab:nth-child(1) {
    border-right: 2px solid #6D6D6D;
}
.dataVisualisationTab.active {
    background-color: #efefef;
    color: black;
}
.dataVisualisationTab {
    background-color: #dfdfdf;
    color: #a2a2a2;
}
.dataVisualisationTab:hover:not(.active) {
    background-color: #6D6D6D;
    color: white;
}
.barchart {
    width: 100%;
}
.barchart th:nth-child(2) {
    width: 100%;
}
.barchart td:nth-child(2) {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.barchart th:nth-child(1),
.barchart td:nth-child(1) {
    text-align: right;
    padding-right: 3px;
    white-space: nowrap;
}
.barchart td:nth-child(2) span {
    display: inline-block;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.8em;
}
.barchart th,
.barchart td {
    border-collapse: collapse;
    border-spacing: 0;
    border: 0px;
}
.barchart th {
    font-weight: bold;
    border: 0px;
    border-bottom: 1px solid #6D6D6D;
}
.barchart td {
    padding: 2px 0;
    vertical-align: middle;
}
td .area,
th .area {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}
.barchart tr {
    cursor: pointer;
}
.barchart tr td:last-child,
.barchart tr th:last-child {
    text-align: center;
    padding-left: 3px;
    position: relative;
}
#barchartResults tr {
    margin: 2px 0;
}
.dataVisualisationSection {
    margin: 1em 0;
}
#map {
    width: 100%;
    height: 500px;
}
#legendHolder {
    margin-left: -0.5em;
    margin-bottom: 1em;
}
.legend {
    display: inline-block;
    margin: 0 0.5em;
    position: relative;
}
.legend .box {
    width: 1em;
    height: 1em;
    line-height: 1em;
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.2em;
}
.legend .label {
    font-size: 0.8em;
    line-height: 1em;
    vertical-align: middle;
    font-weight: bold;
}
.tooltip {
    display: none;
    position: absolute;
    right: 0;
    bottom: 100%;
    background-color: white;
    border: 1px solid #bbbbbb;
    box-sizing: border-box;
    padding: 0.5em;
    white-space: nowrap;
    margin-bottom: 0.5em;
    text-align: left;
    z-index: 100;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4);
}
.newTooltipSegment {
    padding: 0.3em;
}
.barchart tr:hover {
    background-color: #bbbbbb;
}
.barchart tr:hover .tooltip {
    display: block;
}
.checkboxControlsHolder {
    margin-top: 0.5em;
}
.checkboxControl {
    display: inline-block;
    margin-right: 1em;
    font-size: 0.8em;
}
.flag {
    width: 25px;
    float: right;
    margin-left: 0.3em;
    max-height: 15px;
}
.popupHolder .flag {
    float: none;
    margin-left: 0;
}
.countryHolder {
    width: 100%;
    margin: 0.4em 0;
}
.countryHolder h3 {
    width: 100%;
    margin-bottom: 0.3em;
    font-weight: bold;
    font-size: 0.85em;
}
#areaControlsHolder .checkboxControl,
#countryControlsHolder .checkboxControl,
.countryHolder .checkboxControl {
    margin-right: 0;
    flex: 0 0 33%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.checkboxControl * {
    vertical-align: middle;
}
.checkboxControl label {
    cursor: pointer;
}
.checkboxControl input {
    margin-left: 0;
}
#areaControlsHolder,
#countryControlsHolder,
.countryHolder {
    display: flex !important;
    flex-wrap: wrap;
}
.leaflet-popup-content-wrapper {
    background-color: #333333;
    border-radius: 0;
    color: white;
    font-family: "Arial";
    font-size: 0.9em;
}
.leaflet-popup-content-wrapper strong {
    font-weight: bold;
    color: #a08f7d;
}
.popupTotal {
    border-top: 1px solid #a08f7d;
    margin-top: 0.3em;
    padding-top: 0.2em;
}
.batchFilterControlsHolder {
    margin-top: 0.6em;
}
.batchFilterControlsHolder button {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
    color: #2f529f;
    border-bottom: 1px solid #2f529f;
    padding: 0;
    padding-bottom: 2px;
    padding-right: 4px;
    margin-right: 0.7em;
    font-weight: bold;
}
.batchFilterControlsHolder button:hover {
    color: #178CFF;
    border-color: #178CFF;
}
.leaflet-popup-tip {
    background: #333333;
}
.leafletTooltip {
    background-color: rgb(51, 51, 51);
    color: white;
    opacity: 1;
    font-family: "Arial";
    font-size: 0.9em;
    border-radius: 0;
    border-width: 0;
}
.leafletTooltip .flag {
    float: none;
    vertical-align: middle;
    margin-right: 0.2em;
    width: 18px;
}
.leafletTooltip span {
    vertical-align: middle;
}
.leaflet-tooltip-left.leafletTooltip::before {
    border-left-color: #333333;
}
.leaflet-tooltip-right.leafletTooltip::before {
    border-right-color: #333333;
}
#loadingMessage {
    position: fixed;
    background-color: #2E2E2E;
    color: white;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    border-top: 2px solid #696969;
    text-align: center;
    font-size: 1.2em;
    padding: 0.5em;
    font-weight: bold;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
}
#loadingMessage.hidden {
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
}
@media screen and (max-width: 900px) {
    .sliderValue {
        position: absolute;
        top: 100%;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        margin-top: 2em;
        margin-left: 0;
        right: 0;
    }
    #areaControlsHolder .checkboxControl,
    #countryControlsHolder .checkboxControl,
    .countryHolder .checkboxControl {
        flex: 0 0 50%;
    }
}
@media screen and (max-width: 500px) {
    .controlHolder .control {
        width: 30%;
    }
    .sliderBarHolder .sliderBar {
        width: 90%;
    }
    #areaControlsHolder .checkboxControl,
    #countryControlsHolder .checkboxControl,
    .countryHolder .checkboxControl {
        flex: 0 0 100%;
    }
}
