@font-face {
    font-family: 'HKe Grotesk';
    src: url('../fonts/hkgrotesk_bold.woff') format('woff');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'HKe Grotesk';
    src: url('../fonts/hkgrotesk_regular.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}
::selection{
    background-color:black;
    color: white;
}
html, body {
	font-family: "HKe Grotesk";
	color: black;
  margin: 0;
  position: fixed;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
}
a {
	text-decoration: underline dotted;
	text-decoration-thickness: 0.01em;
	color: black;
}
a:hover {
	text-decoration: underline;
}
#menu {
    text-align: center;
    position: relative;
    z-index: 999;
}
#menu > div {
    margin-top: 15px;
    display: inline-block;
    vertical-align: top;
}
#menu a, #language a {
    background-color: white;
    border: 1px solid black;
    padding: 8px 16px 5px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.15s;
    margin-left: 17px;
    margin-right: 17px;
    position: relative;
    z-index:9;
    font-size: 0.95em;
}
#language a {
    margin-left: 5px;
    margin-right: 0;
    width: auto;
}
#language div {
    display: inline-block;
}
@media (hover: hover) {
    #menu a:hover {
        background-color: black;
        color: white;
    }
    .link:hover > a {
        background-color: black !important;
        color: white;
    }
    .link:hover .sublinks {
        display: block;
        transform: scaleY(1);
    }
    .link:hover .sublinks div {
        transition: 0.2s 0.2s;
        opacity: 1;
        position: relative;
    }
}
.sublinks {
    background: url('../img/line.jpg') repeat-y center;
    transition: 0.2s;
    transform-origin: top left;
    transform: scaleY(0);
}
.sublinks div {
    opacity: 0;
    position: absolute;
}
.sublinks a {
    margin: 0px !important;
    margin-top: 20px !important;
    display: inline-block;
}
#language {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 999;
    font-size: 0.85em;
    float: right;
    font-weight: normal;
}
#zoomPanel {
  position: absolute;
  overflow: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index:999999;
  transition: background 2s;
  display: none;
  padding: 10px;
}
#zoomPanel img {
	max-height: calc(100vh - 120px);
	object-fit: contain;
}
#legend, #explorer {
	text-align: left;
	position:absolute;
	z-index:999;
	background-color:white;
    border: 1px solid black;
	top: 8px;
	left: 8px;
	width: 320px;
	padding: 15px;
    border-radius: 15px;
    display: none;
}
#legend a {
	color: black;
}
#previous, #next, #close, #explorerClose, #volume, #volume-x {
    cursor: pointer;
    position: absolute;
}
#previous img, #next img, #close img, #explorerClose img, #volume img, #volume-x img {
    padding-top: 5px;
}
#close, #explorerClose {
    right: 7px;
    top: 6px;
}
#previous {
    right: 65px;
    top: 6px;
}
#next {
    right: 40px;
    top: 6px;
}
#volume, #volume-x {
    right: 97px;
    top: 6px;
}
#volume-x {
    display: none;
}
#title, #explorerTitle {
    font-weight: bold;
    margin-bottom: 14px;
    width: fit-content;
}
#closeZoom {
    float:right;
    margin-right: -7px;
    margin-top: -4px;
    cursor: pointer;
}
.arrow {
    width: 20px;
    vertical-align: bottom;
    padding-right: 8px;
}
#tilengaLink, #kingfisherLink, #tangaLink {
    cursor: pointer;
}
#caption {
    display: none;
}
#captionDate {
    display: none;
}
#captionSelectedDate {
    text-align: center;
}
small {
    display: block;
    margin-top: 10px;
    font-size: 0.8em;
    color: grey;
}
small a {
  color: grey !important;
}
#redCircle {
  padding-bottom: 10px;
  padding-right: 10px;
  float: left;
}
.linkDetails {
    margin: 10px;
    margin-left: 32px;
    font-size: 0.8em;
    color: grey;
    display: none;
}
#note {
    color: grey;
    font-size: 0.8em;
    margin-top: 20px;
}
#map {
	position: absolute;
	top:0;
	bottom:0;
	right:0;
	left:0;
	background-color: white;
}
#media-container {
	display: inline-block;
	min-width: 500px;
	display: none;
    position: absolute;
    left: 370px;
    margin-right: 10px;
}
.media {
	width: 100%;
}
#zoom-legend {
	display: inline-block;
	vertical-align: top;
	text-align: left;
	background-color:white;
	border: 1px solid black;
    border-radius: 15px;
	width: 320px;
	padding: 15px;
    position:absolute;
	top: 8px;
	left: 8px;
}
video::cue {
	font-family: "HK Grotesk";
	font-size: 1.1em;
	background-color: #000000;
	text-shadow: 0px 0px 3px black;
	color: white;
}
input[type=range] {
  height: 18px;
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
  cursor: pointer;
  margin-bottom: 0;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #000000;
  border-radius: 1px;
  border: 0px solid #000000;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 0px #000000;
  border: 0px solid #2497E3;
  height: 12px;
  width: 12px;
  border-radius: 25px;
  background: #000000;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5.5px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #000000;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #000000;
  border-radius: 1px;
  border: 0px solid #000000;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 0px #000000;
  border: 0px solid #2497E3;
  height: 12px;
  width: 12px;
  border-radius: 25px;
  background: #000000;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #000000;
  border: 0px solid #000000;
  border-radius: 2px;
  box-shadow: 0px 0px 0px #000000;
}
input[type=range]::-ms-fill-upper {
  background: #000000;
  border: 0px solid #000000;
  border-radius: 2px;
  box-shadow: 0px 0px 0px #000000;
}
input[type=range]::-ms-thumb {
  margin-top: 1px;
  box-shadow: 0px 0px 0px #000000;
  border: 0px solid #2497E3;
  height: 12px;
  width: 12px;
  border-radius: 25px;
  background: #000000;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #000000;
}
input[type=range]:focus::-ms-fill-upper {
  background: #000000;
}
input[type=checkbox]{
  height: 0;
  width: 0;
  visibility: hidden;
}
.switch {
    opacity: 1;
}
label {
  cursor: pointer;
  width: 25px;
  height: 15px;
  background: #00000020;
  display: inline-block;
  border-radius: 100px;
  position: relative;
  transform: translateY(2px) translateX(-12px);
  margin-right: -2px;
}
label:after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 90px;
  transition: 0.2s;
}
input:checked + label {
  background: black;
}
#switchPipeline:checked + label {
  background: red;
}
#switchCPF:checked + label {
  background: #1d0000;
}
#switchWellpads:checked + label {
  background: #9d0000;
}
#switchBlocks:checked + label {
  background: orange;
}
#switchProtectedAreas:checked + label {
  background: #22d800;
}
#switchPapsNb:checked + label {
  background: #4811de;
}
input:checked + label:after {
  left: calc(100% - 1px);
  transform: translateX(-100%);
}
label:active:after {
  width: 10px;
}
.papsNbLabels {
    border: 1px solid #4811de00 !important;
    border-radius: 100% !important;
    width: 140px;
    height: 100px;
    padding-top: 50px !important;
    vertical-align: middle;
    background-color: #4811de20 !important;
    text-align: center;
    font-family: "HKe Grotesk";
    font-weight: normal !important;
    color: white;
    font-size: 1.1em;
}
.papsNbLabelsSmall {
    font-size: 0.85em;
}
.citiesLabels, .countriesLabels {
    border: 0px!important;
    vertical-align: middle;
    background-color: #00000000 !important;
    text-align: center;
    font-family: "HKe Grotesk";
    font-weight: normal !important;
    color: white;
    font-size: 1.25em;
}
.countriesLabels {
    font-size: 1.7em;
}
#methodology {
    position: absolute;
    top: 7px;
    bottom: 8px;
    right: 5px;
    margin-left: 5px;
    max-width: 400px;
    border: 1px solid black;
    background-color: white;
    z-index: 9999;
    border-radius: 15px;
    display: none;
    overflow-y: auto;
    padding: 25px;
}
#methodologyText {
    margin-bottom: 30px;
}
#closeMethodology {
    position: fixed;
    top: 25px;
    right: 25px;
    cursor: pointer;
}
#methodology h1 {
    font-size: 1.3em;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
}
#methodology h2 {
    font-size: 1.15em;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}
.logos img {
    vertical-align:middle;
    margin-bottom: 40px;
    margin-right: 15px;
}
.leaflet-control-attribution {
    bottom: 8px;
}
.leaflet-control-zoom {
	bottom: 15px;
}
#intimidationsPanel {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 997;
  overflow-y: auto;
  color: white;
  text-shadow: 1px 1px 5px #00000080;
}
#intimidationsList {
  margin: auto;
  width: 100%;
  text-align: center;
  margin-top: 80px;
}
#intimidationsList a, #intimidationsList p {
  direction: rtl;
  display: block;
  background: url('../img/circle.svg');
  background-repeat: no-repeat;
  background-position: bottom 8px right -5px;
  padding-right: 30px;
  padding-left: 35px;
  padding-bottom: 12px;
  padding-top: 12px ;
  transform: translateX(8px);
  text-decoration: none;
  cursor: pointer;
  color: white;
}
#intimidationsList .importantDate {
  direction: ltr;
  text-align: left;
  transform: translateX(338px);
  background: url('../img/empty_circle.svg');
  background-repeat: no-repeat;
  background-position: bottom 20px left 0px;
}
#intimidationsList a span {
  direction: ltr;
  unicode-bidi: embed;
}
#intimidationsList a:hover {
  font-weight: bold;
  /*transform: scale(1.35);*/
  color: red !important;
}
.biggerDate {
  /*transform: scale(1.35);*/
  color:red !important;
  font-weight: bold;
}
#intimidationsLeft {
  position: absolute;
  right: 50%;
  width: 350px;
  padding-bottom: 80px;
  text-align: right;
}
#intimidationsRight {
  position: absolute;
  left: 50%;
  width: 500px;
  height: 100px;
  border-left: 1px solid white;
  margin-top: 5px;
  text-align: left;
}
#legend {
  overflow-y: auto;
  max-height: calc(80vh - 50px);
}

@media all and (max-width: 1150px) {

#menu {
    right:8px;
    width: fit-content;
    right: 8px;
    position: fixed;
}
#menu a {
    margin-left: 5px;
    margin-right: 5px;
}
#language {
    top:initial;
    bottom: 10px;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75em;
}
.leaflet-control-attribution {
    bottom: 2px;
}
.leaflet-control-zoom {
	bottom: 6px;
}

#legend, #explorer {
    top: 8px;
    z-index:998;
}
#methodology h1 {
    font-size: 1.1em;
}
#methodology h2 {
    font-size: 1em;
}
#media-container {
    left: 10px;
    right: 10px;
	margin-top: 0px;
	width: calc(100% - 20px);
	min-width: 0;
}
#zoom-legend {
    position: relative;
    width: initial;
	display: block;
	margin-bottom: 10px;
    left: 0;
    top: 0;
}
video::cue {
	font-size: 1.1em;
}
#intimidationsList {
  margin-top: 450px;
}
#intimidationsRight {
  width: 250px;
}

}

@media all and (max-width: 800px) {

#methodology {
    max-width: initial;
}

}
@media all and (max-width: 750px) {

#menu {
    width: calc(100% - 3px);
    display: flex;
    justify-content: space-between;
    text-align: center;
    left: 2px;
}

 #legend, #explorer {
    top: 45px;
    left: 5px;
    right: 5px;
    width: auto;
}
.papsNbLabels {
    font-size: 1em;
}
.papsNbLabelsSmall {
    font-size: 0.75em;
}
#intimidationsLeft {
  width: 250px;
}
#intimidationsList .importantDate {
  transform: translateX(238px) translateY(-1px);
}
.importantDate {
  width: 50%;
}
.importantDate span {
  width: 180px;
  display: block;
  vertical-align: bottom;
}
#intimidationsRight {
  width: 50%;
}

@media all and (max-width: 400px) {

#menu a {
    padding: 8px 10px 5px 10px;
}

}

@media all and (max-width: 360px) {

#menu a {
    font-size: 0.85em;
}
#legend {
    font-size: 0.85em;
}

}
