/* Modal */

body.modal-open {
    overflow: hidden;
}

.modal {
    background-color: rgb(0, 0, 0, 0.5);
    display: none;
    margin: 0 auto;
    margin-top: 50px;
    width: 700px;
}

.infobox-content iframe {
    position: absolute;
    border: none;
    top: 40px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background-color: white;
    margin: 0;
    position: absolute;
    top: calc(10% + 40px);
    left: 50%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
    max-height: calc(80% - 40px);
    min-height: 100px;
    height: auto;
}

.infobox-content h1 {
    font-size: 1em;
    margin: 1em 0 0.5em 0;
    text-transform: uppercase;
}

.infobox-content h2 {
    font-size: 1em;
    margin: 1em 0 0.5em 0;
}

.infobox-content h3 {
    font-size: 1em;
    font-style: italic;
    margin: 1em 0 0.5em 0;
    margin-top: 1em !important;
}

.infobox-content a {
    color: var(--oewm_green);
}

.infobox-content a:hover {
    color: var(--green_hover_t);
}

.climograph {
    top: 70px;
}

.interactive-modal {
    background-color: rgb(0, 0, 0, 0.5);
    margin: 0 auto;
    margin-top: 50px;
    width: 97.5%;
    background-color: #ebf5f9;
}

.interactive-modal-content {
    background-color: #ebf5f9;
    margin: 0;
    position: absolute;
    top: calc(2.5%);
    bottom: calc(2.5%);
    left: 50%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
}

#interactive-content {
    height: inherit;
}

/* Infobox */

/* #infobox-search{
	min-height: 400px;
} */

.infobox-container {
    display: none;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    position: fixed;
    background-color: rgb(0, 0, 0, 0.75);
    z-index: 1007;
}

.infobox {
    font-family: Merriweather, Times, serif;
    color: var(--text);
    margin: 0 auto;
    overflow: auto;
    max-width: 800px;
    width: 90%;
}

.infobox a {
    text-decoration: underline;
}

.infobox-header {
    box-sizing: border-box;
    top: 10%;
    position: absolute;
    max-width: 800px;
    width: 90%;
    height: 40px;
    line-height: 40px;
    padding: 0 15px 0 15px;
    background-color: var(--background_gray);
    display: block;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    z-index: 2;
}

.infobox-header-climograph {
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 15px 0 15px;
    overflow: hidden;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--background_gray);
    display: block;
    z-index: 1;
}

.infobox-header #title {
    text-transform: uppercase;
    font-family: Merriweather, Times, serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    font-weight: bold;
}

.infobox-header .material-icons {
    line-height: unset;
}

.infobox-close {
    position: absolute;
    right: 0px;
    height: 40px;
    color: var(--oewm_green);
    cursor: pointer;
    width: 40px;
    text-align: center;
    background: var(--background_gray);
}

.infobox-control {
    color: var(--oewm_green);
    float: right;
    text-align: center;
    height: 40px;
    width: 40px;
    cursor: pointer;
}

.infobox-control .material-icons, .infobox-close .material-icons {
    line-height: 40px;
}

.infobox-close:hover,
.infobox-control:hover {
    color: var(--green_hover_b);
}

.infobox-content {
    box-sizing: border-box;
    padding: 15px;
    overflow-wrap: break-word;
    font-size: 13px;
}

.infobox-title {
    box-sizing: border-box;
    font-size: 18.75px;
    /* font-weight: bold; */
    font-weight: 700;
}

.infobox-subtitle {
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 15px;
    ;
    border-bottom: 1px solid lightgrey;
    font-weight: 600;
}

.infobox-table-area {
    margin-top: 15px;
    margin-bottom: 15px;
}

#meteo_temp_chart .infobox-content, #meteo_prec_chart .infobox-content, #meteo_sun_chart .infobox-content {
    width: 100%;
    /*! padding-top: 100% !important; */
    overflow: hidden;
    height: auto;
    margin-bottom: -5px;
}

#meteo_temp_chart, #meteo_prec_chart, #meteo_sun_chart {
    overflow: hidden;
}

.infobox-container h3 {
    font-size: inherit;
    margin-top: 2em;
}

.climographarea {
    margin-top: 40px;
    max-height: 700px;
    height: calc(100vh - 140px);
  }

@media (max-height: 550px) {
    .climograph {
        top: 20px;
    }

    .climographarea {
        height: calc(100vh - 80px);
    }
}

@media (max-aspect-ratio: 4.5/5) {
    .climographarea {
        height: auto;
        max-height: auto;
        max-width: 700px;
        width: 90vw;
    }
}


#meteo_temp_chart .infobox-content, #meteo_prec_chart .infobox-content, #meteo_sun_chart .infobox-content {
    width: 100%;
}

#meteo_temp_chart, #meteo_prec_chart, #meteo_sun_chart {
    display: block;
    width: auto;
}