html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: sans-serif;
}
label {
    user-select: none;
}
button {
    cursor: pointer;
}
.app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    background-image: url(../images/app-header-bg.jpg);
    background-size: 100% 100%;
    color: white;
    text-align: center;
}
.app-header h1 {
    margin: 0;
    font-weight: normal;
}
.app-body {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

h3 {
    margin-bottom: 0;
    font-size: inherit;
}
h3:first-of-type {
    margin-top: 0.3em;
}

.map {
    height: 100%;
    width: 100%;
    position: relative;
}

.map-controls {
    position: absolute;
    top: 32px;
    right: 0;
    z-index: 1000;
    margin: 3px;
    display: -ms-grid;
    display: grid;
    grid-template-columns: auto auto;
}

.sidebar-left {
    position: absolute;
    top: 0;
    transition: transform .3s;
    transform: translateX(-100%);
    z-index: 10000;
    margin-top: 25px;
    height: calc(100% - 25px);
    width: 380px;
    display: flex;
    flex-direction: column;
}
.sidebar-left.show {
    transform: translateX(0);
    box-shadow: none;
}

.menu {
    background: white;
    height: 100%;
    overflow-y: auto;
    margin-top: 12px;
}
.menu.shadow {
    margin: 0;
}

.menu-button-bar {
    text-align: right;
    position: absolute;
    width: 100%;
    top: -20px;
}
.menu-button-bar button {
    background: none;
    border: none;
    color: white;
    background-color: #006799;
    font-size: 150%;
}


.menu-section {
    position: relative;
    padding-top: 39px;
    background: white;
}
.menu-section .title {
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 9999;
    height: 36px;
    font-size: 150%;
    box-sizing: border-box;
    background-color: #006799;
    /* background-position: 0 0; */
    background-position: center left;
    background-repeat: no-repeat;
    padding-left: 48px;
    color: white;
    line-height: 36px;
    margin-bottom: 0;
}

.menu-section .title.settings {
    background-image: url(../images/settings.png);
}
.menu-section .title.graph {
    background-image: url(../images/graph-title.png);
}

.shadow {
    box-shadow: 0px 2px 4px grey;
    margin-bottom: 12px;
}

.menu-show-button {
    background-color: #006799;
    color: white;
    border: none;
    position: absolute;
    top: 50px;
    z-index: 1000;
    padding: 3px 6px;
    font-size: 150%;
}

.button-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 0;
}

/* .tabs {

    padding: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.tabs label {
    display: inline-block;
    cursor: pointer;
    height: 48px;
    border: solid black 1px;
}
.tabs label::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    border-top: solid black 24px;
    border-bottom: solid black 24px;
    border-left: solid blue 0px;
}
.tabs input {
    display: none;
} */

.graph {
    background: white;
    overflow-y: auto;
    overflow-x: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.graph.shadow {
    margin: 0;
}

.graph-title {
    text-align: left;
    width: 100%;
    background-color: #006799;
    color: white;
    font-size: 150%;
    padding-left: 20px;
    box-sizing: border-box;
    line-height: 36px;

}


/* Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10001;/* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
  
/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    border: 1px solid #888;
    width: 90%;
    height: 440px;
    padding-bottom: 15px;
}

/* Modal Close Button */
.modal-close {
    background-color: #006799;
    float: right;
    padding-right: 12px;
    padding-top: 12px;
    font-size: 60%;
}

.modal-close:hover,
.modal-close:focus {
    color: rgba(255,255,255,0.5); 
    text-decoration: none;
    cursor: pointer;
}

.credits {
    position: absolute;
    right: 10px;
    bottom: 0;
    margin: 3px;
    padding: 3px 6px;
    border-radius: 2px;
    z-index: 1000;
    background: rgba(255,255,255,0.5);
    font-size: small;
}

.something-with-button {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.something-with-button *:first-child {
    flex-grow: 1;
    max-width: calc(100% - 2rem);
}

.something-with-button button:last-of-type {
    text-align: left;
}

.tab-content {
    display: none;
}
.tab-content.show {
    display: block;
}

.menu-sub-section h2 {
    padding-left: 12px;
    background-color: rgb(217,217,217);
    margin-top: 0;
}

.section-header {
    position: relative;
}
.section-header button {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    padding: 6px 12px;
}

.menu-sub-section .content {
    padding: 0 12px 12px 12px;
}
.menu-sub-section.folded .content {
    padding: 0;
    height: 0;
    overflow: hidden;
}

.folding-menu {
    padding: 0;
    list-style: none;
    margin-top: 0.3em;
}

.folding-menu .toggle {
    float: right;
    cursor: pointer;
    padding: 0 6px 6px 6px;
}

.folding-menu .toggle input {
    display: none;
}

.folding-menu.closed .sub-menu  {
    height: 0;
}
.folding-menu li {
    line-height: 24px;
}

.sub-menu {
    overflow-y: hidden;
    list-style: none;
}
.sub-menu li img {
    margin: 0 6px -6px 6px;
}

.geosearch {
    position: relative;
}

.geosearch .results {
    position: absolute;
    width: 100%;
    background: whitesmoke;
    z-index: 1;
}

.geosearch .suggestion.hovering {
    background: grey;
}

.geosearch .suggestion {
    cursor: pointer;
}

.geosearch .suggestion .suggestion-label {
    font-weight: bold;
}



.leaflet-container {
    cursor: default !important;
}

.zoom-component {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    user-select: none;
}
.zoom-component li:first-of-type {
    border-bottom: solid rgb(37, 99, 116) 1px;
}

.chart-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 340px);
    background: white;
    z-index: 1000;
    height: 350px;
    box-shadow: 0px 0px 4px grey;
    transition: transform .3s;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}

.chart-box.show {
    transform: translateX(0);
}

.chart-box-show-button {
    position: absolute;
    right: 0px;
    bottom: 300px;
    z-index: 1000;
}

.chart-box .title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.chart-box .chart-area {
    flex-grow: 1;
    position: relative;
}
.chart-box .chart-area svg {
    position: absolute;
    background: sandybrown;
}

#chart-hover {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    color: black;
    z-index: 100000;
    background-color: white;
    opacity: 0.85;
    border-style: solid;
    border-width: 1px;
    border-color: #777;
    font-size: 100%;
    font-weight: normal;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 3px;
    display: none;
}


@import url(range.css);

.where-section p {
    font-style: italic;
}

.where-section form {
    margin: 0 0 12px 0;
}

.where-section .lat-lon-subid-form .submit-button {
    text-align: right;
    flex-basis: 100%;
}
.where-section .lat-lon-subid-form button {
    background-color: #006799;
    color: white;
    border: none;
    padding: 3px 6px;
}

.where-section .lat-lon-subid-form button:disabled {
    background: #ccc;
}

.where-section .lat-lon-subid-form table {
    width: 100%;
}

.where-section .move-view input {
    margin-left: 0;
}

.map-legend {
    list-style: none;
    padding: 0;
}

.chart-legend {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}
.chart-legend li {
    padding-right: 5px;
    min-width: 85px;
}
.graph-legend {
    padding-left: 30px;
    padding-right: 30px;
}

.hindcast_ECMWF {
    color: black;
}
.forecast_ECMWF {
    color: #0000EE;
}

.warning-level-3-color {
    color: rgb(230,0,0);
}
.warning-level-2-color {
    color: rgb(255,121,0);
}
.warning-level-1-color {
    color: rgb(255,206,0);
}
.warning-level-normal-color {
    color: rgb(191, 255, 165);
}


.button-menu {
    position: relative;
    display: inline-block;
}

.button-menu ol {
    position: absolute;
    display: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.button-menu ol.open {
    display: block;
}

figure {
    margin: 6px 0 0 0;
}
figcaption {
    text-align: center;
}

.downloadIcon {
    background: url(../images/icons-sprite.png?v=787) -192px -368px no-repeat;
    display: inline-block;
    width: 22px;
    height: 18px;
    position: relative;
    top: .25em;
    margin-right: .4em;
}

.btn-link {
    display: block;
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin: 0 auto;
}

.link {
    text-decoration: underline;
    color: #0063BE;
}

.link:hover {
    text-decoration: underline;
    color:black;
}


.layer-menu {
    padding: 0;
    list-style: none;
    margin-top: 0.3em;
}

.layer-dropdown {
    padding-left: 21px;
}

.layer-dropdown select {
    margin-left: 1em;
}

.legend {
    font-size: 10px;
}

.gradient-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.gradient-legend-labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.stations-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    overflow-y: hidden;
    list-style: none;
}

.stations-legend li {
    line-height: 24px;
}

.stations-legend img {
    margin: 0 6px -6px 6px;
}

.flood-occurrence-gradient {
    height: 12px;
    width: 100%;
    background-image: -webkit-linear-gradient(right, blue, #bf7fbf 50%, #ffffff 100%);
    background-image: -o-linear-gradient(right, blue, #bf7fbf 50%, #ffffff 100%);
    background-image: -moz-linear-gradient(right, blue, #bf7fbf 50%, #ffffff 100%);
    background-image: -ms-linear-gradient(right, blue, #bf7fbf 50%, #ffffff 100%);
    background-image: linear-gradient(right, blue, #bf7fbf 50%, #ffffff 100%);
}

.pop-legend table {
    width: 100%;
    border-spacing: 0;
}

.pop-legend .units {
    text-align: right;
}

.pop-legend tr:last-of-type {
    color: transparent;
}

.pop-legend td {
    width: calc(100% / 6);
    text-align: right;
}

.pop-legend tr:first-of-type td:nth-of-type(1) span {
    margin-right: -4px;
}
.pop-legend tr:first-of-type td:nth-of-type(2) span {
    margin-right: -4px;
}
.pop-legend tr:first-of-type td:nth-of-type(3) span {
    margin-right: -7px;
}
.pop-legend tr:first-of-type td:nth-of-type(4) span {
    margin-right: -10px;
}
.pop-legend tr:first-of-type td:nth-of-type(5) span {
    margin-right: -12px;
}

.mouseposition-div {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 1;
    grid-row: 1;
    margin-bottom: 3px;
}

.mouseposition-component {
    margin-left: auto;
    max-width: 12rem;
    padding-top: 0.5em;
    padding-bottom: 0.3em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    border-radius: 2px;
    text-align: center;
    z-index: 1000;
    min-width: 190px;
    background-color: #006799;
    color: white;
    font-size: 1rem;
    display: block;
}


.gui-components {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 2;
    grid-row: 2;    
    margin-right: 3px;
}

.gui-component {
    background-color: #006799;
    color: white;
    box-shadow: 0px 0px 1px #666;
    border-radius: 2px;
}

.gui-component:not(:first-child) {
    margin-top: 3px;
}

.gui-component > *:hover {
    background: rgba(255,255,255,0.5);
}
.gui-component a {
    padding-top: 0.5em;
    padding-bottom: 0.3em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    display: inline-block;
    color: inherit;
}

.full-screen-component {
    margin-right: 3px;
}


.sidebar-right {
    min-width: 150px;
    font-size: 1rem;
    color: white;
    overflow-y: auto;
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 2;
    grid-row: 2;  
}

.float-right {
    float: right;
}

.accordion {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.accordion-section {
    display: flex;
    flex-direction: column;
    background: white;
    color: black;
    flex-grow: 1;
}

.accordion-title {
    text-align: center;
    cursor: pointer;
    background-color: #006799;
    box-shadow: 0px 2px 4px grey;
    padding: 6px 12px;
    user-select: none;
    color: white;
    border-top-style: solid;
    border-top-color: hsla(200,100%,20%,1); /* Slightly darker than background-color */
    border-top-width: 1px;
}
.accordion-section:first-of-type .accordion-title {
    border-top: none;
}
.accordion-content {
    flex-grow: 1;
    padding: 6px 12px;
    overflow-y: auto;
    border-left-style: solid;
    border-left-color: hsla(200,100%,20%,1); /* Slightly darker than background-color */
    border-left-width: 1px;    
    border-right-style: solid;
    border-right-color: hsla(200,100%,20%,1); /* Slightly darker than background-color */
    border-right-width: 1px;    
    border-bottom-style: solid;
    border-bottom-color: hsla(200,100%,20%,1); /* Slightly darker than background-color */
    border-bottom-width: 1px;    
}
.accordion-section.collapse {
    flex-grow: 0;
}
.accordion-section.collapse .accordion-content {
    height: 0;
    overflow: hidden;
    padding: 0;
}

.time-steps ol {
    list-style: none;
    padding: 0;
    user-select: none;
}
.time-steps li {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.time-steps li:hover {
    background: rgba(217,217,217,0.5);
}
.time-steps li.selected {
    background-color: rgb(217,217,217);
    /* background-color: #006799; */
}


div.leaflet-control-scale-line {
    border: 2px solid #000;
    border-top: none;
    line-height: 1.1;
    padding: 2px 5px 1px;
    font-size: small;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #fff;
    background: rgba(255, 255, 255, 0.5);
}

.info-bar {
    background: white;
    box-shadow: 0px 2px 4px grey;
    z-index: 1000;
}

.info-bar table {
    font-size: 1.5rem;
    display: flex;
    flex-wrap: wrap;
}

.info-bar caption {
    display: block;
    background-color: #006799;
    color: white;
    flex-basis: 100%;
    line-height: 36px;
    height: 36px;
}

.info-bar tr {
    display: flex;
    flex-wrap: wrap;
}

.info-bar td:after {
    content: ',';
}

.info-bar tr:last-of-type td:after {
    content: ''
}

.info-bar th {
    vertical-align: baseline;
    text-align: left;
    white-space: nowrap;
}

/* Aurora breakpoint S */
@media all and (min-width: 512px) and (min-height: 512px) {
    .modal-content {
        width: 80%;
    }
}

/* Aurora breakpoint M */
@media all and (min-width: 768px) {
    .modal-content {
        height: 370px;
    }
    #chart {
        height: 250px!important;
    }
}

/* Aurora breakpoint L */
@media all and (min-width: 1024px) {
}

/* Aurora breakpoint XL */
@media all and (min-width: 1280px) {
    .modal-content {
        height: 370px;
        margin-left: 385px;
        width: calc(100% - 632px);
    }
    #chart {
        height: 250px!important;
    }

}
/* Aurora breakpoint XXL */
@media all and (min-width: 1600px) {
    .modal-content {
        height: 440px;
    }
    #chart {
        height: 320px!important;
    }
      
}
