html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* logo */
.main-logo {
    position: absolute;
    display: block;
    left: 50%;
    top: 10px;
    width: 150px;
    margin-left: -75px;
    z-index: 1000;
}
/* Menu */
.main-menu {
    position: absolute;
    display: block;
    z-index: 1001;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    margin: 10px;
    background-color: #3F3F3F;
    border-radius: 50%;
}
.menu-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 1001;
}
.toolbox-line {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: all 1s;
}
.line-1 {
    margin-bottom: 8px;
}
.line-1.active {
    transform: rotate(45deg) translateY(7px);
    transition: all 1s;
}
.line-2.active {
    transform: rotate(-45deg) translateY(-7px);
    transition: all 1s;
}
.menu-panel {
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: #3F3F3F;
    position: fixed;
    left: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 1s;
}
.menu-panel.active {
    left: 0;
    transition: all 1s;
}
.menu-panel .nav {
    text-align: center;
}
.menu-panel .nav {
    text-align: center;
}
.protocol-list {
    list-style-type: none;
    display: block;
}
.protocol-list-item {
    padding: 15px;
}
.protocol-link {
    text-decoration: none;
    color: #fff;
    padding: 15px;
}
.protocol-list-item:hover .protocol-link {
    color: #7FDBFF;
}

/* Map and map control */
#map {
    position: absolute;
    width: 100%;
    height: 100%;
}
.leaflet-touch .leaflet-bar a:first-child,
.leaflet-touch .leaflet-bar a:last-child {
    border-top-right-radius: 50% !important;
    border-top-left-radius: 50% !important;
    border-bottom-right-radius: 50% !important;
    border-bottom-left-radius: 50% !important;
    margin-bottom: 5px;
}
.leaflet-touch .leaflet-bar a {
    width: 35px !important;
    height: 35px !important;
    line-height: 35px !important;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: 0 !important;
}
.leaflet-bar a, .leaflet-bar a:hover {
    background-color: #3F3F3F !important;
    color: #fff !important;
}
.leaflet-touch .leaflet-bar a:first-child {
    border-radius: 50%;
}
.leaflet-control-zoom-in, .leaflet-control-zoom-out {
    text-indent: 0 !important;
}
.panel-bottom-ds,
.panel-bottom-owm {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    /* min-height: 100px; */
}
/* Parameter adjustment */
.parameter-adjustment {
    position: absolute;
    z-index: 1000;
    top: 100px;
    right: 0;
    margin: 10px;
}
.param-btn {
    display: none;
}
.param-btn.active {
    
}
.param-text {
    margin-right: 7px;
}
.param-icon {
    display: flex;
    flex-direction: column;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #3F3F3F;
}
.toolbox-circle {
    display: block;
    margin: 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    top: 10px;
}
.c-1::after {
    content: "";
    display: block;
    position: absolute;
    left: -2.5px;
    top: 2px;
    width: 20px;
    height: 1px;
    background-color: #fff;
}
.c-2::after {
    content: "";
    display: block;
    position: absolute;
    left: -12.5px;
    top: 2px;
    width: 20px;
    height: 1px;
    background-color: #fff;
}
.c-1 {
    margin-bottom: 4px;
    left: -5px;
}
.c-2 {
    left: 5px;
}
.param-head {
    text-align: center;
}
/* Figure panel info (including parameter panel and parameter content) */
.figures {
    position: absolute;
    z-index: 1000;
    top: 150px;
    right: 0;
    margin: 10px;
}
.fig-btn {
    display: none;
}
.fig-btn.active {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.fig-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #3F3F3F;
}
.fig-text {
    margin-right: 7px;
}
.fig-line {
    position: relative;
    display: block;
    margin: 0 auto;
    top: 16px;
    width: 22px;
    height: 1px;
    background-color: #fff;
    transform: rotate(-35deg);
}
.fig-line::before {
    content: "";
    position: absolute;
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fff;
    top: -2px;
    right: 0;
}
.fig-line::after {
    content: "";
    position: absolute;
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fff;
    bottom: -2px;
    left: 0;
}
.figure-panel {
    position: fixed;
    z-index: 1001;
    width: 70%;
    height: 100%;
    background-color: #fff;
    left: 100%;
    transition: all 1s;
}
.parameter-panel {
    position: fixed;
    z-index: 1001;
    width: 100%;
    height: 100%;
    background-color: #fff;
    left: 100%;
    transition: all 1s;
}
.figure-panel.active {
    transition: all 1s;
    overflow-y: scroll;
    left: 30%;
}
.parameter-panel.active {
    left: 0;
    transition: all 1s;
    overflow-y: scroll;
}
.close-figs-btn,
.param-close-btn {
    font-size: 36px;
    text-align: left;
}
.close-figs-btn:hover,
.param-close-btn:hover {
    cursor: pointer;
}
.fig-content,
.param-content {
    padding: 20px;
}
.figs {
    text-align: center;
}
.ch-title {
    font-size: 28px;
    font-weight: 500;
    color: #3F3F3F;
    margin: 50px 0;
    text-align: center;
}
.chart[style] {
    height: 70% !important;
    width: 80% !important;
}
.chart[style] {
    margin: 0 auto !important;
    display: none !important;
}
.chart.active[style] {
    display: block !important;
}

/* Bottom panel info */
.panel-bottom-ds.active,
.panel-bottom-owm.active {
    display: flex;
    flex-direction: row;
    justify-content: center;
    z-index: 1000;
    width: 100%;
    min-height: 300px;
    background-color: rgba(63,63,63, 0.7);
    color: #fff;

}
.date-head-ds,
.date-head-owm {
    padding: 20px;
    z-index: 1000;
    text-align: center;
    border-bottom: 1px solid #3F3F3F;
    display: none;
}

.date-head-ds.active,
.date-head-owm.active {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    display: block;
    bottom: 10px;
}
.date-head-circle-ds,
.date-head-circle-owm {
    position: relative;
    margin: 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #3F3F3F;
    bottom: -30px;
}
.date-head-circle-ds.active,
.date-head-circle-owm.active {
    background-color: #7FDBFF;
}
.date-head-title-ds,
.date-head-title-owm {
    position: relative;
}
.date-body-ds,
.date-body-owm {
    display: none;
}
.date-body-ds.active,
.date-body-owm.active {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: absolute;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    width: 100%;
    /* left: 15%; */
    /* flex-direction: row;
    justify-content: flex-start; */
}
.date-body-content-ds,
.date-body-content-owm {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.decision-legend {
    height: 40px;
}
.time-legend, 
.decision-legend,
.temp-legend,
.wave-legend,
.wind-legend,
.precipitation-legend,
.cloud-legend,
.humidity-legend,
.sunelev-legend {
    width: 200px;
    font-size: 14px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.date-body-container {
    position: relative;
    margin: 0 auto;
}
.temp-block,
.wind-block,
.precipitation-block,
.cloud-block,
.humidity-block,
.body-title ,
.sunelev-block,
.wave-block,
.decision-block {
    /* position: absolute; */
    /* bottom: 0; */
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-left: 5px;
}
.temp-value,
.wind-value,
.precipitation-value,
.cloud-value,
.humidity-value,
.time-value,
.sunelev-value,
.wave-value,
.decision-value {
    width: 50px;
    text-align: center;
    font-size: 14px;
}
.decision-value {
    height: 40px;
}
.decision-value.negative {
    background-color: #FF4136;
}
.decision-value.positive {
    background-color: #3D9970;
}
.param-title {
    text-align: center;
    font-size: 22px;
    color: #3F3F3F;
    margin-top: 30px;
}
.param-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.temp-form,
.wind-form,
.hum-form,
.cloud-form,
.pop-form,
.sea-form,
.wvh-form,
.service-form {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.form-content {
    padding: 10px;
}
.param-submit {
    margin-top: 50px;
    margin-bottom: 100px;
    text-align: center;
}
.param-submit .submit-btn {
    padding: 15px 30px;
    color: #fff;
    background-color: #3F3F3F;
    text-decoration: none;
    border: 1px solid #3F3F3F;
}
.param-submit .submit-btn:hover {
    color: #3F3F3F;
    background-color: #fff;
    border: 1px solid #3F3F3F;
}
/* responsive design */
@media only screen and (min-width: 1200px) and (max-width: 1400px) {
    .time-legend, 
    .decision-legend,
    .temp-legend,
    .wave-legend,
    .wind-legend,
    .precipitation-legend,
    .cloud-legend,
    .humidity-legend,
    .sunelev-legend  {
        width: 140px;   
        font-size: 10px;
    }
    .temp-value,
    .wind-value,
    .precipitation-value,
    .cloud-value,
    .humidity-value,
    .time-value,
    .sunelev-value,
    .wave-value,
    .decision-value {
        font-size: 10px;
        width: 40px;
    }
    .panel-bottom-ds.active, .panel-bottom-owm.active {
        min-height: 245px;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .time-legend, 
    .decision-legend,
    .temp-legend,
    .wave-legend,
    .wind-legend,
    .precipitation-legend,
    .cloud-legend,
    .humidity-legend,
    .sunelev-legend  {
        width: 140px;   
        font-size: 8px;
    }
    .temp-value,
    .wind-value,
    .precipitation-value,
    .cloud-value,
    .humidity-value,
    .time-value,
    .sunelev-value,
    .wave-value,
    .decision-value {
        font-size: 8px;
        width: 33px;
    }
    .date-head-title-owm,
    .date-head-title-ds {
        font-size: 14px;
    }
    .date-head-circle-ds, 
    .date-head-circle-owm {
        width: 15px;
        height: 15px;
    }
    .panel-bottom-ds.active, .panel-bottom-owm.active {
        min-height: 200px;
    }
    .decision-value,
    .decision-legend {
        height: 20px;
    }
}

@media only screen and (min-width: 351px) and (max-width: 993px) {
    .time-legend, 
    .decision-legend,
    .temp-legend,
    .wave-legend,
    .wind-legend,
    .precipitation-legend,
    .cloud-legend,
    .humidity-legend,
    .sunelev-legend  {
        width: 75px;   
        font-size: 5px;
    }
    .temp-value,
    .wind-value,
    .precipitation-value,
    .cloud-value,
    .humidity-value,
    .time-value,
    .sunelev-value,
    .wave-value,
    .decision-value {
        font-size: 5px;
        width: 20px;
    }
    .date-head-title-owm,
    .date-head-title-ds {
        font-size: 10px;
    }

    .date-head-title-owm {
        padding: 5px 0;
    }
    .date-head-ds, .date-head-owm {
        padding: 5px !important;
    }
    .date-head-circle-owm,
    .date-head-circle-ds {
        width: 10px;
        height: 10px;
        bottom: -11px;
    }
    .date-head-owm.active,
    .date-head-ds.active {
        left: -5px;
    }
    .date-head-ds.active, .date-head-owm.active {
        bottom: 0;
    }
    .panel-bottom-ds.active, .panel-bottom-owm.active {
        min-height: 160px;
    }
    .decision-value,
    .decision-legend {
        height: 12px;
    }
}

@media only screen and (max-width: 350px){
    html,
    body {
        display: none;
    }
}