/*body {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

header {
    flex-grow: 0;
    flex-shrink: 0;
    display: block;
}

h3 {
    margin-top: 3px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 3px;
}

p {
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 3px;
}

section#selectionPanel {
    /*TODO Update when navbar is included*/
    height: 58.9vh; /* sitebody.height - charts.min-height - 2*padding */
    padding: 0.3vh 0;
    flex-grow: 0;
    flex-shrink: 0;
}

section#charts {
    min-height: 19vh;
}

fieldset#chartsDownload {
    height: auto;
    padding: .5vh .5vw
}

fieldset#chartsLegend {
    height: auto;
}

fieldset#chartsLegend ul{
    margin-bottom: .75vh;
    padding-left: .5vw;
}

.chart {
    height: 400px;
}
/* Left column */
div#stationsList {
    overflow-y: scroll;
    /*max-height: calc(100% - 187px);*/
    flex-shrink: 1;
    margin-bottom: 5px;
    height: calc(100% - 187px);
}

div#stationsSelection {
    overflow-y: scroll;
    /*max-height: calc(100% - 187px);*/
    flex-shrink: 1;
    margin-bottom: 5px;
    height: calc(100% - 187px);
}

.stationsPanelButton, fieldset#data {
    flex-shrink: 0;
    flex-grow: 0;
}

/* Right column */

fieldset#temporalscale, fieldset#dates  {
    flex-shrink: 0;
    flex-grow: 0;
}

span#temporalScaleGroup {
    margin-top: 0.1vh
}

fieldset#variables {
    margin-top: 20px;
    flex-shrink: 1;
    flex-grow: 1;
    overflow-y: scroll;
}

/*Horizontal size*/

aside#buttons-panel {
    display: flex;
    flex-direction: column;
    flex-basis: 30%;
    max-width: 350px;
    flex-grow: 0;
    flex-shrink: 0;
}

section#map {
    margin: 0 10px;
    flex-basis: 50%;
    flex-grow: 1;
}

aside#stations {
    display: flex;
    flex-direction: column;
    flex-basis: 20%;
    max-width: 290px;
    flex-grow: 0;
    flex-shrink: 0;
}