/**
 * Styling for the site and measurement menu.
 *
 * @author: H Paterson.
 * @copyright: Iris Data Science, 2020.
 */

#menu-tab a {
  color: white;
}
#menu-tab a:hover {
  color: gray;
}
#menu-tab img {
  padding: 15px 0px 15px 0px;
  width: 90%;
  margin: auto;
  text-align: center;
  display: block;
}

 .selector
 {
     width: 100%;
     font-family: 'Montserrat', sans-serif;
     border-radius: 2px;
     padding: 10px;
 }

option
{
    font-family: 'Montserrat', sans-serif;
}

.select-selected:after
{
    background-color: red;
}

#map-filter-selector label {
    display: block;
}
#map-filter-selector input {
    float: left;
    clear: both;
}

#tab-window
{
    color: white;
    height: calc(100% - 130px);
    width: 250px;
    top: 0;
    left: -250px;
    position: absolute;
    overflow-x: hidden;
    transition-property: left, height;
    transition-duration: 0.3s;
    z-index: 1001; /* leaflet uses first 1,000 indices */
}

#close-tab-window-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#information-tab {
  height: 100%;
  direction: rtl;
  overflow: scroll;
  overflow-x: hidden;
}
#information-tab * {
  direction: ltr;
}

.tab {
    z-index: 1002;
    padding: 0 10px;
}
.tab h1 {
    width: 100%;
    margin: 0;
    padding: 10px 0;
}

#tab-button-window {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 50px;
    transition: left 0.3s;
    z-index: 1003; /* leaflet uses first 1,000 indices */
}

.tab-button {
    width: 25px;
    color: white;
    padding: 10px;
    margin: 0;
    top: 0;
    left: 0;
    font-size:15px;
    cursor:pointer;
    border-right: 5px solid;
    transition: width 0.1s;
}

.tab-logo {
    display:inline-block;
    height: 100%;
    vertical-align: middle;
}

#legend {
    height: 90px;
    position: absolute;
    z-index: 1003; /* leaflet uses first 1,000 indices */
    bottom: 0;
    left: 0;
    background-color: #2993b2;
    overflow-y: hidden;
    transition: height 0.3s;
    display: flex;
    flex-direction: row-reverse;
    
}

.legend-box-fixed-size {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: content;
}

.legend-box-flex-size {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: content;
    min-width: 0;
}

#status-bar {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0px 0;
    margin: 0;
    position: absolute;

    width: 50%;
    z-index: 1002; /* leaflet uses first 1,000 indices */
    bottom: 90px;
    transition: bottom 0.3s;
}

@media screen and (max-width: 999px) {
    #status-bar, #legend {
        width: 100%;
    }
}
@media screen and (min-width: 1000px) {
    #status-bar, #legend {
        width: 50%;
    }
}

#status-info {
    text-align: center;
    float: left;
    padding: 9px 0;
    width: calc(100% - 100px);
}

#status-info-indicator, #status-info-type, #status-info-trend {
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

#legend-button {
    float: left;
    background-color: #2993b2;
    color: whitesmoke;
    margin: 0;
    width: 100px;

    right: calc(25% - 50px);
    text-align: center;
    transition: 0.3s;
    font-weight: bold;
    padding: 10px 0;
    cursor:pointer;
}

#legend {
    font: 14px/16px 'Montserrat', sans-serif;
}

#legend > div {
    float: right;
    display: block;
    margin: 0;
    padding: 0 5px 0 5px;
}

#legend h3 {
    margin: 5px 0px;
    color: whitesmoke;
}

.legend-row span, .legend-row img, .legend-row i {
    display: inline-block;
    color: whitesmoke;
}

.gradient-axis text {
    color: white;
}
.gradient-axis line {
  stroke: white;
}

.legend-row img, .legend-row i {
  vertical-align:bottom;
  margin-right: 5px;
  width: 18px;
  height: 18px;
}

.tooltip {
  position: relative;
  display: inline-block;
}
  
.tooltip .tooltiptext {
  visibility: hidden;
  width: 150px;
  background-color: whitesmoke;
  color: #2993b2;
  text-align: center;
  padding: 5px 0;
  opacity: 0.9;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4);

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 115%;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 50%;
  right: 100%; /* To the left of the tooltip */
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent whitesmoke transparent transparent;
}
