:root {
    --main-bg-color:#262626;
    --main-text-color:#b2b2b2;
    --cell-bg-color:#333;
}

*{
  margin:0;
  padding:0;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  box-sizing:border-box;
}

body {
  color:#333;
  font-family:sans-serif;
  background-color: var(--main-bg-color);
  /*line-height: 1.5;
  font: 12px sans-serif;
  /*color: var(--main-text-color);
  background-color: var(--cell-bg-color);*/
}

.img_bg{
   /* Set rules to fill background */
   min-height: 100%;
   min-width: 1024px;
   
   /* Set up proportionate scaling */
   width: 100%;
   height: auto;
   
   /* Set up positioning */
   position: fixed;
   top: 0;
   left: 0;
}

.photo-credit {
    position: absolute;
    bottom: 0px;
    right: 0px;
    font-size: 10px;
    color: #b2b2b2;
    background-color: rgba(0,0,0,0.7);
    padding: 2px;
    border-radius: .25rem;
}

/* Dates */
#date-initial, #date-final {
    text-align: center;
}

#datePickers{
  display: none;
  position: absolute;
  /* width: 285px; */
  z-index: 401;
  background: #cbddf3;
  border: 1px solid #999;
  padding: 4px;
  border-radius: 5px;
  /*box-shadow: 0px 0px 15px #999;*/
  top: 13px;
  left: 50px;
}

.picker {
    position: absolute;
    left: 50px;
    top: 45px;
    z-index: 401;
    background: #cbddf3;
    border: 1px solid #999;
    padding: 4px;
    border-radius: 5px;
    /*box-shadow: 0px 0px 15px #999;*/
}
.ui-datepicker-calendar {
  display: none;
}

/* Main */
#mainContainer {
  display: none !important;
  min-height: 100vh;
}

#title {
    font-size: 2em;
    color: var(--main-text-color);
    display: block;
}

#middle {
    /*height: 854px;*/
    /*color: var(--main-text-color);*/
    color: #333;
}

#story {
    /*height: 100%;*/
    opacity: 0.75;
    margin-left: -50%;
    /*position: absolute;*/
    background-color: var(--main-bg-color);
    z-index: 1001 !important;
    -webkit-box-shadow: -15px 0px 5px -5px rgba(128,121,128,1); 
    -moz-box-shadow: -15px 0px 5px -5px rgba(128,121,128,1); 
    box-shadow: -15px 0px 5px -5px rgba(128,121,128,1); 
    /*left: 50%;
    width: 50%*/
}

/* have the loader div fill the map screen while disabling interaction */
.loader {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0px;
    width: 100%;
    background-color: rgba(245, 245, 245, 0.7);
    z-index: 1002;
    cursor: wait;
  }
  /* since we know the height/width of the loader gif, 
   position absolutely and use top/left, subtracting half of 
   width and height using margin */
  .loadSpinner {
    /*width: 66px;
    height: 66px;*/
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -33px 0 0 -33px;
  }
  .loadText {
    /*width: 66px;
    height: 66px;*/
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 33px 0 0 -50px;
  }

/* Map */
.leaflet-top {
    z-index: 1001 !important;
}

.draw-control-disabled {
    filter: contrast(22%) brightness(157%);
    pointer-events:none;
}

#camap {
    background:white;
    height:100%;
}

.legend {
  color: #555;
}

.legend ul {
  padding: 0px;
  margin: 0px;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.75;
}

.legend li {
  height: 18px;
  list-style: none;
}

.info {
  padding: 6px 8px;
  /*font: 11px/16px Arial, Helvetica, sans-serif;*/
  /*background: white;
  background: rgba(255, 255, 255, 1);*/
  background: #F5F5F3;
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;*/
}

.info h6 {
  margin: 0 0 5px;
  color: #777;
  /*text-transform: capitalize;*/
}

.legendItem {
    top: -25%;
    position: relative;
    padding-left: 10px;
}

/* Footer */
img.grayscale {
  filter: gray; /* IE6-9 */
  -webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
}

img.grayscale:hover {
  filter: none;
  -webkit-filter: grayscale(0%);
}

/* Modal windows */
.equation {
    text-align: center;
}

span.frac {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
  }

span.frac > sup, span.frac > sub {
    display: block;
    font: inherit;
    padding: 0 0.3em;
    top:0;
}

span.frac > sup {
    border-bottom: 0.08em solid;
}

span.frac > span {
    display: none;
}

#tblViajes {
    display: none;
    font: 12px sans-serif;
}

/*.table-fixed thead {
    width: 100%;
}

.table-fixed tbody {
    height:-webkit-calc(100% - 45px);
    height:-moz-calc(100% - 45px);
    height:calc(100% - 45px);
    overflow-y: auto;
    position: absolute;
}

.table-fixed tr {
    width:100%;
    display: inline-table;
    table-layout: fixed;
}
/* FIX: if scrollbar is hidden, tr goes beyond padding...
/*.table-fixed tr:has([overflow-y]) + .table-fixed tr {width:calc(100% - 15px);}

/* Graphs */

.amcharttooltip {
    font: 12px sans-serif;
}



.active {
    text-decoration: underline;
    font-weight: 600;
    display: inline-block;
    stroke: var(--main-text-color);
    stroke-width: 0.5px;
    fill: var(--main-text-color);
}

.label{
    font-size: 16px;
    font-family: sans-serif;
}
.bar text {
  font: 10px sans-serif;
  text-anchor: end;
}

.bar:hover {
  stroke-opacity:0.5;
  opacity: 1;
}

/*.axis--x path {
  display: none;
}*/

.yearTick {
    opacity: 0.3;
    stroke-width:3;
    stroke-dasharray: 6,6;
}

/* no stroke for all x axis-ticks, x axis-month-labels,
 and x axis-year-labels paths and lines */
[class^="x axis-"] path, [class^="x axis-"] line {
    stroke: none;
}

.axis path, .axis line, .axis-ticks line {
    fill: none;
    stroke: grey;
    stroke-width: 1;
    shape-rendering: crispEdges;
}

.x.axis, .y.axis {
    font: 12px sans-serif;
    font-family:verdana,sans-serif;
    color: var(--main-text-color);
}

.tooltip {
    position: absolute;
    /*bottom: 50%; /* so it is not added below the map and scroll bars appear */
    /*width: 120px;
    height: 20px;*/
    z-index: 1001;
    pointer-events: none;
    color: var(--main-text-color);
    /*background: #F5F5F3;
    border-radius: 5px;*/
}