html{
    height: 100%;
}

body{
    max-height: 100%;
}

.main-content{
    height: 100%;
    min-height: 100%;
    margin-top: 70px;
    overflow:visible;
}

#station-error{
    z-index: 9999;
    border-radius: 3px;
    position: inherit;
    background: #ff0000b3;
    color: white;
    display: none;
    width: 50%;
    margin: 0px auto;
    font-size: 18px;
    font-weight: bold;
}

p#legacy-message {
    text-align: left;
}

.legacy-modal-div {
    padding-top: 20px;
}

#legacy-checkbox-label{
    cursor: pointer;
}

#legacy-checkbox{
    margin-right: 5px;
    cursor: pointer;
}

#legacy-ctn{
    text-align: center;
    padding: 5px;
    margin-top: 30px;
    border-top: 1px solid #C5BFB8;
}

#search-ctn{
    width: 100%;
    position: absolute;
    z-index: 1001;
}

#search-magnifying-glass{
    position: relative;
    left: 25px;
    z-index: 1;
    color: #262626;
}

#search-filter{
    position: relative;
    right: 33px;
    color: #5e5e5e;
    padding: 0px 1px 1px 1px;
    border-radius: 5px;
    z-index: 10;
    cursor: pointer;
    line-height: 1em;
}

#search-filter:hover{
    background-color: #C5BFB8;
}

#search-filter:active{
    background-color: white;
}

#state-disable{
    color: #8f8f8f;
}

#option-ctn{
    width: 78%;
    margin: 0 auto;
    overflow: auto;
    background-color: #F6F2ED;
    border-bottom-right-radius:4px;
    border-bottom-left-radius:4px;
    text-align: left;
    padding: 10px;
}

#option-ctn div{
    width: 100%;
    padding-bottom: 10px;
}

#option-ctn input[name="starts-with"]{
    width: 75%;
    font-size: 16px;
}

#option-ctn input[type=submit]{
    float: right;
}

#no-stations{
    text-align: center;
    color: red;
}

#result-scroll{
    width: 78%;
    margin: 0 auto;
    height: 400px;
    overflow: auto;
    background-color: #ddd;
}

#result-scroll::-webkit-scrollbar {
    width: 10px;
    background-color: #ddd;
}

#result-scroll::-webkit-scrollbar-thumb {
    background-color: #aaaaaa;
    border-radius: 12px;
}

#result-scroll::-webkit-scrollbar-track {
    border-radius: 12px;
}

#map-search{
    width: 80%;
    position: relative;
    height: 25px;
    padding-left: 25px;
    margin-top: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

#map-search:focus,
#map-search:focus-visible{
    outline-style: none;
}

.search-result{
    z-index: 401;
    width: 100%;
    position: relative;
    background-color: white;
    cursor: pointer;
    text-align: left;
    padding: 10px 0px 10px 15px;
}

.search-result:nth-child(odd){
    background-color: #F6F2ED;
}

.search-result:nth-child(even){
    background-color: white;
}


.search-result.row{
    margin: 0 auto;
    height: auto;
}

.search-result:hover{
    background-color: #C5BFB8;
}

.options-modal #result-scroll{
    width: 100%;
    margin: 0 auto;
    height: 400px;
    overflow: auto;
    background-color: #ddd;
}

.station-result-ctn{
    margin: 5px 0px;
}

.result-station-name{
    font-size: 18px;
    margin: 0 5px;
}

.find-station{
    color: #324B64;
    padding-left: 8px;
    cursor: pointer;
}

.find-station:hover{
    color: #5f89b4;
}

.find-station:active{
    color: #324B64;
}

.selected-station .find-station{
    padding-left: 0px;
    padding-top: 3px;
}

.result-id{
    font-size: 16px;
}

.add-ctn p{
    text-align: right;
}

.nav-arrow.search-arrow{
    margin-left: 8px;
}


#map { 
    height: 100%;
    width: 100%; 
    position: relative;
    outline: none;
    display: inline-block;
    z-index: 0;
    overflow: hidden;
}

#zoom-viewer{
    text-align: center;
    top: 62px;
    right: 57px;
    margin: auto;
    background-color: #F6F2ED;
    opacity: .8;
    font-size: 14px;
    width: 105px;
    border-radius: 3px;
}

#zoom-info{
    cursor: pointer;
    margin-right: 5px;
    border: 1px transparent solid;
    border-radius: 15px;
    
}

#zoom-info:hover{
    background-color: #324b6470;
}

#zoom-info:active{
    background-color: #324b64db;
}

#left-column{
    position: absolute;
    z-index: 2;
    left: 0px;
    height: 100%;
}
#right-column{
    position: absolute;
    height: 100%;
    z-index: 2;
    right: 0px;
}
.column-closed{
    width: 0%;
    transition: all 0.4s ease-in-out;
}
.column-open{
    width: 49%;
    transition: all 0.4s ease-in-out;
}
#mid-column{
    z-index: 1;
    height: 100%;
}
input[type="checkbox"][class="select-network"] {
    display: none;
}
label::before{
    background-color: white;
    color: white;
    transition-duration: 0.4s;
}
.icon-label{
    transition-duration: 0.2s;
    opacity: 0.5;
}
:checked+label .icon-label{
    opacity: 1;
}
.station-id{
    font-size: 12;
    width: 100%;
}
#station-info{
    text-align: left;
}

.sub-section{
    margin: 2px -1px 2px 30px;
    font-size: 18px;
    text-align: left;
    padding: 2px;
}
.added-station{
    display: inline-block;
    margin-bottom: 3px;
    margin-left: 8px;
    margin-top: 3px;
    overflow-wrap: anywhere;
}
.remove-added-station{
    font-size: 18px;
    background-color: #C5BFB8;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 35%;
    cursor: pointer;
}
.remove-added-station:hover{
    background-color: #b5b3b3;
}
.sidebar-option {
    padding: 10px 26px 12px 26px;
    text-decoration: none;
    font-size: 18px;
    text-align: left;
    background-color: #C5BFB8;
    border-top: 2px solid #F6F2ED; 
    transition: 0.3s;
}
.sub-section{
    margin: 2px 15px 8px 8px;
    font-size: 18px;
    text-align: left;
    padding: 2px;
}
.hamburger{
    margin-left: auto;
}

.nav-arrow{
    border: solid #394652 1px;
    border-width: 0 3px 3px 0;
    display: inline-block;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    margin: 5px 5px 0px auto;
    width: 10px;
    height: 10px;
}

.sub-element > .drop-check:not(:checked)~ .sub-option .nav-arrow{
    animation:arrow-right .5s;}

.sub-element > .drop-check:checked~ .sub-option .nav-arrow{
    animation:arrow-down .5s;
    animation-fill-mode: forwards;
}

.sub-option{
    text-align: left;
    display: flex;
    margin: 1px 3px 2px 11px;
    cursor: pointer;
}
.sub-option span{
    padding-left: 8px;
}
.sub-option{
    justify-content: center;
    border-top: none;
}
.no-gutter {
    margin-right: 0;
    margin-left: 0;
}
.no-gutter > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
    z-index: 3;
    height: 100%;
}
.row {
    margin-right: 0px;
    margin-left: 0px;
    z-index: 1;
    height: 100%;
}

.main-dropdown-content{
    padding-left: 10px;
    background-color: #F6F2ED;
}

.dropdown-content{
    padding-left: 10px;
    background-color: #F6F2ED;
}
.dropdown-option{
    padding: 4px;
    display: block;
    text-align: left;
    user-select: none;
}
.dropdown-option:hover{
    cursor: pointer;
    background-color: #ded8cf;
}
#drop:hover{
    background-color: #ded8cf;
}
.dropdown-option i{
    padding-right: 8px;
    font-size: 18px;
}
#drop #climate-region{
    background-color: #ded8cf;
}
.active-select:hover{
    background-color: #ded8cf;
    cursor: pointer;
}
.frequency:hover{
    background-color: #ded8cf;
    cursor: pointer;
}
.variables:hover{
    background-color: #ded8cf;
    cursor: pointer;
}
.region:hover {
    background-color: #ded8cf;
    cursor: pointer;
}

.dropdown-option .area-select:hover{
    background-color: #ded8cf;
}
.context{
    display: block;
}
.context:hover{
    cursor: pointer;
}
.drop-check{
    display: none;
}
.drop-check~ .main-dropdown-content{
    display: none;
}
.drop-check:checked~ .main-dropdown-content{
    display: block;
}

.network-dropdown-ctn > .drop-check ~ .dropdown-content{
    display: none;
}

.network-dropdown-ctn > .drop-check:checked ~ .dropdown-content{
    display: block;
}

.network-dropdown-ctn .drop-check:checked~ .dropdown-option .nav-arrow{
    animation:arrow-down .5s;
    animation-fill-mode: forwards;
}

.network-dropdown-ctn .drop-check:not(:checked)~ .dropdown-option .nav-arrow{
    animation:arrow-right .5s;
}

.show{
    display: block;
}

.sub-element{
    margin-top: 2px;
    margin-bottom: auto;
    width: 100%;
}
.frequency-check{
    height: 11px;
    width: 11px;
}
.open-hamburger{
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 3px;
    z-index: 2;
    margin-top: 7px;
    height: 24px;
    position: absolute;
}
.visual-feedback{
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
}
.open-hamburger:hover{
    background-color: rgba(255, 255, 255, 1);
}

.open-hamburger:active{
    background-color: rgba(255, 255, 255, 0.7);
}

.right-is-open, .left-is-open {
    width: 100%;
}
.right-is-closed, .left-is-closed{
    width: 0px;
}

.select-network{
    cursor: pointer;
}

.leaflet-interactive:hover{
    color: white;
    opacity: 100%;
    fill: white;
}

.add-station{
    font-size: 18px;
    background-color: #C5BFB8;
    padding: 4px;
    margin: 4px;
    cursor: pointer;
    position: initial;
    border: none;
}

.report-button{
    font-size: 18px;
    background-color: #C5BFB8;
    padding: 4px;
    margin: 4px;
    cursor: pointer;
    position: initial;
    border: none;
}

.add-station:hover:enabled{
    background-color: #b5b3b3;
}

.add-station:disabled{
    cursor: default;
}

.selected-station{
    align-content: stretch;
    width: 100%;
    display: inline-block;
}

.selected-station .container {
    padding-right: 9px;
    padding-left: 5px;
}

.period-of-record{
    width: 100%;
}

.popup-ctn{
    align-content: left;
}

.popup-title{
    text-align: center;
    border-bottom: 1px solid black;
}

.report-btn-div{
    vertical-align: bottom;
    margin: auto;
    width: 100%;
}
.report-btn{
    font-size: 18px;
    right: 0;
    top: 0;
    background-color: #C5BFB8;
    padding: 4px;
    margin: auto;
    cursor: pointer;
    border: none;
    width: 100%;
    border-radius: 5px;
}
.report-btn:hover{
    background-color: #b5b3b3;
}
.icon-label{
    width: 20px;
    margin-left: 6px;
    text-align: center;
}
.drawer-left-side {
    overflow-y: scroll;
    margin-bottom: 10px;
    height: 100%;
    width: 100%;
}
.drawer-right-side {
    margin-bottom: 10px;
    height: 100%;
    width: 100%;
}

.station-count{
    background:#C5BFB8;
    text-align: center;

}

.drawer-right-side .station-count{
    margin: 0px 0px 10px 0;

}

.section-error{
    animation:section-error .3s;
}

.nav-bar-hide{
    top: 0;
}
.sub-element{
    margin-bottom: 6px;
}
.drawer-left-side::-webkit-scrollbar{
    display: none;
}
.drawer-left-side{
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-report{
    display: none;
}
.reveal{
    display: inline;
}
#remove-all-btn{
    background-color: #324B64;
    color:#efefef;
    padding: 5px 10px;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    border: none;
    transition: 0.3s;
    font-size: 18px;
    margin-bottom: 5px;
}
#remove-all-btn:hover{
    background-color: #425B74;
}
#report-extras{
    background-color: #F6F2ED;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#reports-unit-ctn{
    text-align: center;
    font-size: 1rem;
    padding-top: 5px;
}

.report-units{
    padding-left: 0px;
    padding-right: 0px;
}

.climate-indices-label{
    font-size: 1rem;
    padding-left: 5px;
}

.climate-indices-options{
    text-align: left;
}


.station-info-container{
    padding-left: 5px;
}

.station-info{
    text-align: left;
    font-weight: 600;
    padding-top: 5px;
    padding-bottom: 5px;
}

.climate-modal .modal-container{
    padding: 0px;
}

#content-msg{
    text-align: center;
    font-size:larger;
    font-weight: 500;
}

.disable-button{
    background-color: #C5BFB8;
    box-shadow: none;
    cursor: initial;
}
.disable-button:hover{
    background-color: #C5BFB8;
    box-shadow: none;
    cursor: initial;
}

/*override*/
.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: 0;
    right: 15px;
    border: none;
    text-align: center;
    font: 28px Tahoma, Verdana, sans-serif;
    color: black;
    text-decoration: none;
    font-weight: bold;
    background: transparent;
}
.leaflet-popup-close-button:hover{
    color: #c3c3c3;
}

.leaflet-popup-content p {
    margin: 5px 0px;
}
.leaflet-popup-content span {
    font-size: 1rem;
    margin: 5px 5px 0px 0px;
}

.legend {
    font: 14px Arial, Helvetica, sans-serif;
    background: #F6F2ED;
    border-radius: 5px;
    line-height: 24px;
    border-style:solid;
    border-width: 1px;
    border-color: #C5BFB8;
    
}
.legend h4 {
    background-color: #C5BFB8;
    padding: 5px;
    margin-bottom: 5px;
}
.legend div {
    width: fit-content;
    line-height: unset;
    margin-left: 5px;
    margin-right: 5px;
}
.legend i.icon {
    width: 22px;
    height: 22px;
    float: left;
    margin-right: 2px;
    opacity: 0.8;
    background-repeat: no-repeat;
}
.legend .inactive-image {
    background-image:url('../mapResources/resources/images/mapServerIcon/example-inactive.png');
}
.legend .active-image {
    background-image:url('../mapResources/resources/images/mapServerIcon/example-active.png');
}


/*override*/
.climate-modal{
    z-index: 2001;
}
.reset-button-ctn{
    display: flex;
    text-align: center;
    cursor: pointer;
    justify-content: flex-end;
    margin: 3px 11px 5px 3px;
}
.reset-button{
    background-color: #324B64;
    color:#efefef;
    padding: 5px 10px;
    border-radius: 3px;
}
.reset-button:hover{
    background-color: #425B74;
}
/*media query*/
@media only screen and (min-width: 750px) {
    .main-content{
        margin-top: 104px;
    }

    #option-ctn input[name="starts-with"]{
        width: 65%;
    }
    .visual-feedback{
        animation: none;

    }
}
@media only screen and (min-width: 950px) {
    body{
        max-height: 75vh;
    }

    .right-is-open, .left-is-open {
        width: 100%;
    }
    #left-column{
        position: initial;
    }
    #right-column{
        position: initial;
    }

    .sub-section{
        margin: 2px -2px 8px 0px;
    }

    #map-search{
        width: 70%;
    }
    #result-scroll{
        width:68%
    }

    #option-ctn{
        width: 68%;
    }

    #option-ctn input[name="starts-with"]{
        width: 65%;
    }
}

@media only screen and (min-width: 1250px) {
    #map-search{
        width: 80%;
    }

    #result-scroll{
        width:78%
    }

    #option-ctn{
        width: 78%;
    }
    #option-ctn input[name="starts-with"]{
        width: 78%;
    }
}

/*animations*/
.row [class*='col-'] {
    transition: all 0.4s ease-in-out;
}

@keyframes arrow-down{
    from{
        -webkit-transform: rotate(-45deg); 
        transform:rotate(-45deg); 
    }
    to{
        -webkit-transform: rotate(45deg); 
        transform:rotate(45deg); 
    }
}

@keyframes arrow-right{
    from{
        -webkit-transform: rotate(45deg); 
        transform:rotate(45deg); 
    }
    to{
        -webkit-transform: rotate(-45deg); 
        transform:rotate(-45deg); 
    }
}

@keyframes section-error{
    0%{
        background-color: #C5BFB8;
    }
    50%{
        background-color: #cc0000;
        color: white;
    }
    100%{
        background-color: #C5BFB8;
        color: black;
    }
}