/* ========= GRAPH ========= */
svg {
  border: 1px solid #ccc;
  border-radius: 4px;
  width: inherit;
}

.svg-wrapper {
  display: flex;
  flex-direction: column;
}

svg.bar > g.bars > g[class="detection frequency"] > rect, 
svg.bar > g.legend circle[class="detection frequency"],
svg.bar > g.bars rect[class="detection frequency"],
svg.bar > g.bars > g[class="fréquence de détection"] > rect, 
svg.bar > g.legend circle[class="fréquence de détection"],
svg.bar > g.bars rect[class="fréquence de détection"] {
  fill: #26374a;
}

svg.bar > g.bars > g[class="exceedance frequency"] > rect, 
svg.bar > g.legend circle[class="exceedance frequency"],
svg.bar > g.bars rect[class="exceedance frequency"],
svg.bar > g.bars > g[class="fréquence de dépassement"] > rect, 
svg.bar > g.legend circle[class="fréquence de dépassement"],
svg.bar > g.bars rect[class="fréquence de dépassement"] {
  fill: #FFB000;
}

svg.bar text.graph-title {
  font-size: larger;
}
svg.bar g.axes text {
  font-size: small;
}

svg.bar text.c-axis-title, 
text.n-axis-title {
  font-size: large;
}

svg.bar g.legend text, 
svg.bar text.bar-label {
  font-size: small;
}

svg.scatterplot-svg g.line-overlay line.scatter-line-overlay {
  stroke: black;
  stroke-width: 2px;
}

label svg.toggle-legend-lines line {
  stroke: black;
  stroke-width: 5px;
}

label svg.toggle-legend-lines {
  border: none;
  position: absolute;
  bottom: 0;
  left: 50px;
}

svg.scatterplot-svg g.line-overlay text.scatter-line-label {
  font-size: small;
}

#scatterplot-container,
#static-scatterplot-preview {
  display: none;
}

#scatterplot-container.active,
#static-scatterplot-preview.active {
  display: block;
}

#static-scatterplot-preview img {
  border: solid 1px black;
  opacity: 0.3;
  width: 100%;
}

#static-scatterplot-preview .img-wrapper {
  background-color: white;
}

#static-scatterplot-preview div.caption {
  background-color: rgba(36,56,80,.9);
  font-weight: bold;
  color: white;
}

#static-scatterplot-preview div.caption p {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .5em 1em;
  margin-bottom: 0;
}

#alrv-toggle {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 5px;
  border: solid #ccc 1px;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#alrv-toggle div.checkbox {
  margin-top: 7px;
  margin-bottom: 8px;
  margin-right: 20px;
  opacity: 0.65;
}

#alrv-toggle>div.checkbox.active,
#alrv-toggle>div.checkbox:hover {
  opacity: 1;
}


/* ========= TEXT ========= */

.custom-abbreviation {
  text-decoration: underline dotted;
}

.custom-sub {
  margin-top: -10px;
  font-size: 18px;
}

div.tooltip {
  background-color: white;
  color: black;
  border: 1px solid black;
  border-radius: 5px;
  padding: 10px;
  position: fixed;
  max-width: 275px;
}

button[aria-disabled='true'] {
  opacity: 0.8;
  cursor: not-allowed !important;
}




/* ========= DROP DOWNS ========= */
/*.custom-sticky {*/
/*  background-color: white;*/
/*  z-index: 10;*/
/*}*/
/*.custom-sticky p {*/
/*  text-align:center;*/
/*}*/


#dropdown-container {
  background-color: white;
  z-index: 10;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

/*#dropdown-container>div {*/
/*  margin-right: 20px;*/
/*}*/

/*.custom-sticky {*/
/*  position: fixed;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100vw;*/
/*  border-bottom: solid 1px #bfbfbf;*/

/*}*/

/*.custom-sticky {*/
/*  position: fixed;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100vw;*/
/*  border-bottom: solid 2px #bfbfbf; */
/*  padding-bottom: 4px;*/
/*  padding-top: 4px;*/
/*}*/

select {
  max-width: 350px;
}

/* ========= MAP ========= */
div#map { 
  width: 100%; 
  height: 480px;
  border: solid 1px #bfbfbf;
}

/* Disable rotation controls */
button.mapboxgl-ctrl-compass {
  display: none !important;
}

div.mapboxgl-popup-content {
  background-color: white;
  color: black;
  border: 1px solid black;
  padding-top: 10px;
  border-radius: 5px;
  font-size: 16px;
  width: 360px;
}

div.mapboxgl-popup-content p {
  margin-bottom: 2px;
}

div.mapboxgl-popup-content p:nth-child(1) {
  margin-top: 5px;
}

.mapboxgl-canvas.custom-map-focus {
  border: solid 1px black;
}

.mapboxgl-marker svg {
  border: none;
}

.mapboxgl-marker:hover {
  cursor: pointer;
}

.mapboxgl-ctrl-icon i.fa {
  font-size: 15px;
  margin-top: 25%;
}

a.mapbox-improve-map {
  display: none;
}



/* ========= TABLE ========= */
.custom-table-wrapper {
  /*margin: 0px 0px 100px 0px;*/
  /*border: solid 1px #ccc;*/
  /*border-radius: 4px;*/
  padding-top: 20px;
}

tbody tr td {
  text-align: right;
}

tbody > tr > td:first-child {
  text-align: left;
}

tbody > tr > td.left {
  text-align: left;
}




/* ========= DOWNLOAD LINKS CSS ========= */
#download .pair {
  display: inline-flex;
  flex-wrap: nowrap;
  width: 49%;
}

@media only screen and (max-width: 768px) {
  #download .pair {
    width: 100%;
  }
}

#download .databox {
  flex-wrap: nowrap;
}

.MainCon {
  display: inline-flex;
  flex-wrap: wrap;
}

.dataBox:hover {
  opacity: 50%;
}

.dataBox {
  width: 48%;
}

.dataBoxInner {
  background-color: #e1e4e7;
}

.dataBox p {
  white-space: wrap;
}

#download .wb-eqht {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0px;
}


#download .wb-eqht a {
  text-decoration: none;
  color: black;
}






/* ========= DATA TILES CSS ========= */
.boxHeaderTwo {
  flex: 0 0 98%;
}
.boxes2 img, .boxes img {
  opacity:0.47;
}

.boxes {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  padding-left: 3px;
  padding-right: 3px;
  height: 10%;
  /* align-items: center;*/
  justify-content: center;
}

.boxes2 {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  padding-left: 3px;
  padding-right: 3px;
  height: 20%;
  /* align-items: center;*/
  justify-content: center;
}

/* a instead of .anchor*/
.boxes .anchor,
.boxes .anchor:visited,
.boxes .anchor:focus {
  flex: 1 0 22%;
  display: flex;
  flex-wrap: wrap;
  border: 3px solid #ccc;
  border-radius: 10px;
  margin: 10px;
  text-decoration: none;
  color: black;
  justify-content: center;
  max-width: 265px;
}

/* a instead of .anchor*/
.boxes2 .anchor,
.boxes2 .anchor:visited,
.boxes2 .anchor:focus {
  flex: 0 0 26%;
  display: flex;
  flex-wrap: wrap;
  border: 3px solid #ccc;
  border-radius: 10px;
  margin: 10px;
  text-decoration: none;
  color: black;
  justify-content: center;
  max-width: 265px;
}

.innerBox {
  flex: 0 0 90%;
  /*border: 1px solid #ccc;*/
  /*border-radius: 10px;*/
  margin-left: 0px;
  margin-right: 3px;
  text-decoration: none;
  color: black;
  margin-bottom: 5px;
  justify-content: center;
}

.boxHeader {
  flex: 0 0 98%;
  margin: 5px;
  margin-top: 10px;
  /*text-decoration: bold;*/
  font-weight: bold;
  color: black;
}

.boxes p {
  font-size: 18px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.boxes p.h2 {
  font-size: 30px;
  margin-top: 5px;
}






/* ========= THEME CSS ========= */
abbr {
  text-decoration: none !important;
}

figure img {
	border: 1px #ddd solid !important;
}

/* fix spacing on lines */
main {
	line-height: 1.65em !important;
}

.gc-drmt p {
  line-height: 1.35em !important;
}


/* fixes these times of tables from the title truncating */
@media only screen and (min-width: 768px) {

  .dl-horizontal dt {
  	width: 11em !important;
  }
  
  .dl-horizontal dd {
  	margin-left: 11em !important;
  }

}

.pattern-demo {
	padding: 19px;
	border: 1px solid #e3e3e3;
	box-shadow: 0px 0px 10px #ddd;
}

.pattern-demo.no-pddng {
	padding: 0px !important;
}

/*styling for class=h1*/
.h1 {
 border-bottom: 1px solid #af3c43;
 margin-bottom: .2em;
 margin-top: 1em;
 padding-bottom: .2em;
}

div.toc .active {
  background-color: #333 !important;
  border-color: #8f8f8f !important;
}

@media (min-width: 1260px) {
  .container {
    width: 1230px;
  }
}


/* ========= TMP - PRINT STYLING TO BE RELOCATED ========= */
@media print {
  .custom-sticky {
    position: static !important;
  }
}





/* ========= TIMELINE SLIDER CSS ========= */
.actionBtn {
    /*background-color: lightgray;*/
    border: 1px solid lightgray;
    /*font-weight: bold;*/
    margin: 3px;
    border-radius: 4px;
}

.bootstrap-select>.dropdown-toggle {
    background: white;
    border: 3px solid black;
}

.dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

@media only screen and (max-width: 1200px) {
  #slider {
        display: inline-block;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 70px;
        width: 80.6% !important;
    }
}

@media only screen and (max-width: 500px) {
  .boxes2 .anchor,
.boxes2 .anchor:visited,
.boxes2 .anchor:focus {
  flex: 0 0 99%;
  display: flex;
  flex-wrap: wrap;
  border: 3px solid #ccc;
  border-radius: 10px;
  margin: 10px;
  text-decoration: none;
  color: black;
  justify-content: center;
  max-width: none;
}
  
  .exceedanceBox{
   font-size:18px;  
  }
  
  
  .custom-sticky {
  position: static;
  top: 0;
  left: 0;
  width: 100vw;
  border-bottom: solid 2px #bfbfbf; 
  padding-bottom: 4px;
  padding-top: 4px;
}
  
    
}


#slider {
    display: inline-block;
    margin-left: 40px;
    margin-right: 40px;
    width: 58%;
    margin-top: 25px;
}

.noUi-connect {
    background: rgb(51, 160, 44);
}

.noUi-pips {
    color: #000;
}

.noUi-marker {
    background: #000;
}

.noUi-value-large {
    font-size: 15px;
}

#dataChanges-table td{
  text-align: left;
}
/* ========= ALPHA BANNER TOP CSS ========= */
.alpha-banner-container {
  display: flex;
}

.alpha-banner-container div {
  align-self: center;
}

.beta-top, .alpha-top {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  top: 0;
  background-color: #f2f2f2;
  z-index: 100;
}

.beta, .alpha {
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: white;
  z-index: 100;
}

.alpha-label {
  background-color: black;
  border: none;
  color: white;
  font-weight: 700;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 8px 16px;
  border-radius: 0px;
  font-size: 30px !important;
}

.beta-label {
  background-color: #0052A3;
  border: none;
  color: white;
  font-weight: 700;
  padding: 4px 8px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  border-radius: 0px;
  font-size: 14px !important;
}

.beta-fill, .alpha-fill {
  background-color: #f2f2f2;
  padding: .6em 1em .6em .6em;
}