/* Base template */

body {
    margin: 0;
    padding: 0;
    background-color: #F4EBDA;
    font-family: Verdana, sans-serif;
    height: 100%;
    font-family: Verdana, sans-serif;
    font-size: 14px;
}

main {
    /* display: flex; */
    /* flex-wrap: nowrap; */
    height: calc(100vh - 206px);
}


#header-normal {
    height: 106px;
}

#navbar {
    /* background-color: #ddd; */
    background-color: #006FA4;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    /*Change when more navbar buttons are added*/
    justify-content: space-between;
}

#logo-container {
    background-color: #306D1D;
    padding: 5px;

}

#gw4_logo {
    width: 200px;
    height: auto;
    margin-left: 5px;

}

#navbar * {
    padding-left: 5px;
    padding-right: 5px;
    text-decoration: none;
    color: white;
    margin: 0;
    font-size: 14px;
}

#navbar-right {
    display: flex;
    flex-direction: row;
}

#navbar-left *:hover,
#navbar-right form:hover {
    background-color: #68676759;
    border-radius: 5px;
}


.navbar-button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.breadcrumb-section {
    padding: 20px;
}

#footer-container {
    display: flex;
    background-color: white;
    justify-content: space-evenly;
    height: 80px;
    width: auto;
    padding: 10px;
    bottom: 0;
}

/* Homepage */

#homepage_container {
    display: flex;
    justify-content: space-around;
    margin: 0px 20px;
    max-height: 80vh;
}

#startpage_map {
    max-height: 60vh;
}

#lurch-logo {
    height: 50px;
    width: auto;
    align-self: center;
}

/* Log in */

#login-container {
    margin: 0px 20px;
    /* display: flex; */
    /* flex-direction: column; */
    /* flex-grow: 2; */
    /* min-height: calc(100vh - 78.7px); */
}

#login-form-container {
    /* flex-grow: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center; */
    font-size: 20px;
}

#login-message {
    margin-left: 5px;
}

#password_reset_link {
    padding-left: 5px;
    padding-right: 5px;
    color: black;
    margin: 0;
    font-size: 14px;
}

/* password_reset_form */


/* Module Selection */

#module_selection_container {
    padding-left: 20px;
}

#map-selection {
    display: flex;
    flex-direction: column;
}

.module_item {
    padding: 10px;
    margin: 10px 0px;
    border-radius: 0;
    border-width: 2px;
}

/* #map-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #ddd;
    border: solid hsla(0, 0%, 0%, 0.39);
    border-width: 2px;
    border-radius: 25px;
    padding: 20px;
} */


/* #map-selection * {
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
} */

/* #map-selection p {
    font-size: 20px;
    font-weight: bolder;
    margin: 0;
} */

/* Seasonal */
.map-breadcrumb-section {
    font-size: 14px;
    padding: 10px 0px;
}


.map-main {
    display: flex;
    flex-wrap: nowrap;
    width: 100vw;
    /* height: calc(100vh - 106px); */
    height: 88vh;
    overflow-y: scroll;
}

#map {
    position: relative;
    flex-grow: 1;
}


.left {
    display: flex;
    flex-direction: column;
    padding: 10px;
    min-width: 490px;
    width: 510px;
    max-width: 750px;
    margin-left: 10px;
}

.left h1 {
    margin: 0;
}

#seasonal_forms_container {
    overflow-y: scroll;
}

#filter-container {
    display: flex;
}


.filter {
    padding: 0 20px 20px 0;
}

#spatial_header {
    display: none;
}

#tseries-popup {
    min-width: 520px;
    height: fit-content;
}


/* Scenario Overview */
#scenario-overview-container {
    padding-left: 20px;
}

#scenario-status-table {
    table-layout: fixed;
    width: 80%;
    border-collapse: collapse;
    font-size: 16px;
    border: 1px solid black;
}

#scenario-status-table th,
#scenario-status-table td {
    padding: 15px;
    text-align: center;
}

#scenario-status-table thead {
    background-color: hsl(0, 0%, 75%);
}


#scenario-status-table thead th:nth-child(1) {
    width: 25%;
}

#scenario-status-table thead th:nth-child(2) {
    width: 65%;
}

#scenario-status-table thead th:nth-child(3) {
    width: 10%;
}

#scenario-status-table tbody tr:nth-child(odd) {
    background-color: hsl(0, 0%, 90%);
}

#scenario-status-table tbody tr:nth-child(even) {
    background-color: hsl(0, 0%, 82%);
}

#scenario-status-table tbody td:nth-child(2) {
    font-style: italic;
    text-align: left;
}


/* Scenario Edit */
#scenario-edit-container {
    display: flex;
}

#tabs-navbar {
    display: flex;
    flex-direction: column;
    width: 200px;
    border-right: 1px solid #ccc;
    padding-right: 0px;

}

.tab-button {
    padding: 10px;
    cursor: pointer;
    border: 1px solid hsl(0, 0%, 90%);
    background: none;
    text-align: left;
    width: 100%;
    background-color: #dddddd;
    color: #000000;
    font-size: 16px;
    transition: 0.4s;
}

.tab-button.selected,
.tab-button:hover {
    background-color: #ccc;
}

#tabs-container {
    padding-left: 10px;
}

.tab {
    display: none;
}

canvas {
    max-width: 930px;
}

#water-demand {
    display: block;
}

.save-button {
    margin-top: 10px;
    float: right;
}

#demand-type-container {
    margin-bottom: 40px;
}

/* Long term */

#forms_container {
    overflow-y: scroll;
}

.tab {
    display: none;
}

.accordion {
    background-color: #F4EBDA;
    color: #444;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    padding: 18px;
    width: 100%;
    text-align: left;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    border-left: none;
    border-right: none;
    outline: none;
    transition: 0.4s;
}

.active,
.accordion:hover {
    background-color: #b3b3b3;
}

.accordion:after {
    content: '\25bc';
    font-size: 13px;
    color: #777;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\25B2";
}

.panel {
    padding: 5px 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}


.panel.open {
    overflow: visible;
}


.scenario_form_select_container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}




.tooltip {
    position: relative;
    display: inline-block;
    background: #006FA4;
    color: #F4EBDA;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    /* position above the icon */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
}

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


/* Multiple Pages */
.strip-block {
    flex-grow: 1;
}

.strip {
    /* background-color: #006FA4; */
    padding: 5px;
}

#rasterLegendHeader {
    margin-bottom: 0;
}

#clearResults {
    margin-top: 15px;
    background-color: #FF0000CC;
    border-radius: 4px;
}