*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body{
    overflow-x: hidden;
}
.error-msg-outer{
    width: 100%;
    place-items: center;
    position: absolute;
    top: 2.5%;
    left: 0;
    height: max-content;
    min-height: 30px;
    display: none;
}
.error-msg{
    width: max(50vw, 280px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: calc(50% - max(25vw, 140px));
    background: red;
    border-radius: 5px;
    z-index: 500;
    padding: 5px;
}
.error-msg button{
    background: none;
    border: 1px solid black;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}
.loader{
    width: 100%;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10);
    filter: blur(10);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    display: none;
    place-items: center;
}
.map-page{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.map-container{
    width: 50%;
    min-height: 100vh;
    min-width: 280px;
    margin: 20px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.mapData{
    width: 100%;
    min-width: 280px;
    display: grid;
    place-items: center flex-start;
    background: white;
    padding: 0 2vw;
    z-index: 10;
    position: sticky;
    top: 0;
    left: 0;
    border-radius: 2vw;
}
.map-dropdown-btn{
    padding: 10px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 0 3px grey;
    background: rgb(235, 235, 235);
    width: max(20vw, 280px);
    text-align: start;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    margin-bottom: 10px;
    position: relative;
}
.map-dropdown-btn::after{
    content: '';
    position: absolute;
    right: 2.5%;
    top: 0;
    height: 100%;
    width: 5%;
    background: url('./assets/down.png') no-repeat 95% center/contain;
    transition: transform 0.25s ease-in-out;
}
.map-options-bubble{
    display: flex;
    flex-direction: column;
    position: relative;
}
.map-options-hidden{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 0 3px grey;
    border-radius: 0 0 25px 25px;
    z-index: 100;
    background: white;
    overflow: hidden;
    transition: height 0.5s ease-in-out;
    width: 100%;
    height: 0;
    margin-top: -10px;
}
.map-options-span{
    width: 100%;
    display: none;
    flex-direction: column;
}
.map-options-1{
    display: flex;
}
.map-options-2{
    padding: 5px;
    transition: height 1s ease-in-out;
}
.map-options-span button{
    padding: 5px 10px;
    border-radius: 20px;
    background: none;
    border: none;
    box-shadow: 0 0 3px grey;
    margin: 5px 10px;
    cursor: pointer;
}
.country-selected, .type-selected, .city-selected{
    background: #f0c446 !important;
}
.map-dropdown-bottom{
    display: flex;
    justify-content: flex-end;
}
.map-dropdown-bottom button{
    width: 50%;
    background: #f0c446;
    border: 1px solid black;
}
.city-list{
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    height: 300px;
    overflow-y: scroll;
}
.city-list button{
    padding: 5px 10px;
    border-radius: 20px;
    background: none;
    border: none;
    box-shadow: 0 0 3px grey;
    margin: 5px 10px;
    cursor: pointer;
}
.slider{
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}
.slider-btns{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    left: 0;
}
.slider::after{
    content: 'Play full sequence series';
    position: absolute;
    bottom: 75%;
    left: calc(50% - 75px);
    width: 100%;
    font-size: 0.7rem;
    text-align: center;
    width: 150px;
}
.slider-btns button{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #8f8f9d;
    text-align: center;
    cursor: pointer;
}
.startTimer{
    background: url('./assets/play.png') no-repeat center/contain, #e9e9ed;
}
.stopTimer{
    display: none;
    background: url('./assets/stop.png') no-repeat 90% center/contain, #e9e9ed;
}
#date{
    width: 100%;
    text-align: center;
}
#timePeriod{
    width: 90%;
    margin: 10px;
}
#ward{
    text-align: center;
    color: darkred;
}
.region-info{
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.region-info span{
    margin: 5px 30px;
    text-align: center;
    min-height: 40px;
}
.legend{
    position: relative;
    width: 90%;
    height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5px;
}
.legend-vals, .legend-cols{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
}
.legend-vals p{
    width: 6%;
    min-width: 30px;
    font-size: 0.7rem;
    text-align: center;
    margin: 0.5px;
}
.legend-cols{
    height: 20px;
}
.legend-cols p{
    width: 6%;
    min-width: 30px;
    height: 8px;
    margin: 0.5px;
    border-radius: 10px;
}
.mapData small{
    font-size: 0.7rem;
    width: 100%;
    text-align: center;
}
.map-select{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.select{
    width: 150px;
    border: 1px solid grey;
    margin: 10px 30px;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    color: black;
}
.scroll-instruction{
    display: block;
    color: black;
    width: 100%;
    text-align: center;
}
.maps{
    width: 100%;
    height: 65vh;
    position: sticky;
    top: 35vh;
}
.map-change-btn{
    position: absolute;
    top: 1%;
    left: max(2.5%, 20px);
    background: url('./assets/back.png') no-repeat center/contain, #f0c446;
    border: 1px solid darkgrey;
    z-index: 1200;
    cursor: pointer;
    display: none;
    border-radius: 10px;
    width: 45px;
    height: 45px;
}
#polygon{
    width: 100%;
    height: 100%;
    border-radius: 3vw;
    background: white;
    position: absolute;
    top: 0;
    left: 0;
}
#map{
    width: 100%;
    height: 100%;
    z-index: 9;
    background: white;
    border-radius: 3vw;
    position: relative;
}
.info-container{
    width: 50%;
    min-width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}
.flip-card {
    display: none;
    background-color: transparent;
    width: 50%;
    min-width: 250px;
    height: 50vh;
    perspective: 1000px; 
    z-index: 20;
    transition: height 0.5s ease-in-out, width 0.5s ease-in-out;
    position: relative;
    bottom: 0;
    right: 0;
    border-radius: 2vw;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 2vw;
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: white;
    border-radius: 2vw;
    z-index: 3;
}
.flip-card-front {
    color: black;
    overflow-y: scroll;
    padding: 25px;
    width: 95%;
}
.city-search{
    position: relative;
    width: 100%;
}
.searchbar{
    width: 100%;
    border-radius: 10px;
    border: 1px solid lightgrey;
    margin: 5px auto;
    display: flex;
}
.searchbar input{
    width: 90%;
    padding: 5px;
    border-radius: 10px 0 0 10px;
    border: none;
}
.search-input-btn{
    width: 10%;
    background: white;
    border: 1px solid lightgrey;
    padding: 5px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}
.search-results{
    width: 100%;
    position: absolute;
    top: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 100;
    background: #8fc3ea;
}
.search-results p{
    height: 30px;
    padding: 5px;
}
/* SCROLL BAR */
#custom-scroller::-webkit-scrollbar{
    width: 12px;  
}
#custom-scroller::-webkit-scrollbar-track{
    background: rgb(235, 235, 235);
}
#custom-scroller::-webkit-scrollbar-thumb{
    background-color: rgb(235, 235, 235);   
    border-radius: 20px;      
    border: 3px solid rgb(241, 241, 241);  
}  
#custom-scroller{
    scrollbar-width: thin;         
    scrollbar-color: darkgrey rgb(241, 241, 241); 
}
*#custom-scroller{
    scrollbar-width: thin;
    scrollbar-color: darkgrey rgb(241, 241, 241);
}
#custom-scroller::-webkit-scrollbar{
    width: 12px;
}
#custom-scroller::-webkit-scrollbar-track{
    background: rgb(235, 235, 235);
}
#custom-scroller::-webkit-scrollbar-thumb{
    background-color: darkgrey;
    border-radius: 20px;
    border: 3px solid darkgrey;
}
.city-names{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    position: relative;
    padding-top: 20px;
    scroll-behavior: smooth;
}
.city-names button, .search-results button{
    margin: 0 10px;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgb(235, 235, 235);
    background: white;
    text-align: start;
    padding: 10px;
    cursor: pointer;
    font-weight: 500;
    z-index: 1;
}
.city-names button:focus-visible{
    outline: none;
    font-weight: 700;
    border: 2px solid #f0c446;
    border-radius: 5px;
}
#close-results{
    text-align: end;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: 1px solid grey;
    display: grid;
    place-items: center;
    padding: 5px;
    z-index: 2;
}
.flip-card-back {
    background-color: white;
    color: black;
    transform: rotateY(180deg);
    position: relative;
    padding-top: 30px;
} 
.flip-back-btn, .flip-expand-btn{
    position: absolute;
    top: 2%;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
}
.flip-back-btn{
    left: 2%;
    border-radius: 2vw 0 0 0;
}
.flip-expand-btn{
    position: absolute;
    right: 2%;
    background: url('./assets/m-exp.png') no-repeat center/contain;
}
.chart1{
    width: 100%;
    height: 40vh;
    position: relative;
}
.chart1-labels{
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.chart1-labels div{
    height: 35px;
    border-radius: 20px;
    margin: 0 10px;
    box-shadow: 0 0 3px lightgrey;
    padding: 0 20px;
    display: grid;
    place-items: center;
}
.chart2{
    width: 100%;
    height: 50vh;
    position: relative;
    padding: 0 1vw;
}
.chart-dropdowns{
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1vw;
}
.options-dropdown-btn{
    padding: 10px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 0 3px grey;
    background: rgb(235, 235, 235);
    width: max(20vw, 280px);
    text-align: start;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    position: relative;
}
.options-dropdown-btn::after{
    content: '';
    position: absolute;
    right: 2.5%;
    top: 0;
    height: 100%;
    width: 5%;
    background: url('./assets/down.png') no-repeat 95% center/contain;
    transition: transform 0.25s ease-in-out;
}
.options-dropdown-btn p{
    margin: 0 3px;
}
.options-dropdown-btn-active{
    background: white;
    color: grey;
    border-radius: 20px 20px 0 0;
}
.options-dropdown-btn-active::after{
    transform: rotate(180deg);
    filter: grayscale(1);
}
.chart-options-bubble{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}
.chart-options-hidden{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 0 3px grey;
    border-radius: 0 0 25px 25px;
    z-index: 100;
    background: white;
    overflow: hidden;
    transition: height 0.5s ease-in-out;
    height: 0;
}
.chart-options-hidden span button{
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    margin: 10px 5px;
    cursor: pointer;
    box-shadow: 0 0 3px grey;
    border: none;
}
.chart-options-active{
    background: #f0c446 !important;
    border: none !important;
}
.chart-filters-toggle{
    border: 1px solid lightgray;
    padding: 10px;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: max-content;
    margin: 5px 10px;
    font-weight: 500;
    background: white;
}
.chart-filters-toggle img{
    width: 20px;
    object-fit: contain;
    margin: 0 5px;
}
.chart2-dropdowns{
    width:  max(20vw, 280px);
    padding: 0;
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
}
.chart-filters-container{
    display: none;
}
.chart-filters-outer{
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.15);
}
.chart-filters-inner{
    width: 60vw;
    height: 80vh;
    background: white;
    border-radius: 40px;
    overflow-y: hidden;
    position: relative;
}
.cf-s{
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid lightgray;
}
.cf-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    background: white;
    z-index: 100;
}
.cf-close{
    background: none;
    margin: 3px 0;
    padding: 3px;
    border-radius: 50%;
    width: max(2vw, 20px);
    height: max(2vw, 20px);
    border: none;
    cursor: pointer;
}
.cf-close:hover{
    background: lightgrey;
}
.cf-top p{
    width: max(2vw, 20px);
    height: max(2vw, 20px);
}
.cf-middle{
    display: flex;
    flex-direction: column;
    height: 55vh;
    width: 100%;
    overflow-y: scroll;
    position: relative;
    border-radius: 20px;
}
.cf-2, .cf-0{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.cf-2 span, .cf-0 span{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.cf-0 small{
    width: 100%;
    text-align: end;
    color: grey;
}
.cf-2 p{
    margin: 20px 0;
}
.cf-2 span button, .cf-0 span button{
    background: none;
    border: none;
    box-shadow: 0 0 3px grey;
    padding: 10px;
    border-radius: 20px;
    width: max(5vw, 60px);
    text-align: center;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.5s ease-in-out;
}
.cf-0 span button{
    width: max-content;
}
.cf-2-active{
    background: #f0c446 !important;
    box-shadow: none !important;
}
.cf-2 span button:hover, .cf-0 span button:hover{
    box-shadow: none;
    box-shadow: 0 0 3px lightgrey;
}
.cf-3{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}
.cf-3 span{
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 10px auto;
}
.cf-3 button{
    width: max(100px, 10vw);
    height: max(100px, 10vw);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px;
    background: none;
    border: 1px solid grey;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.5s ease-in-out;
    margin: 10px max(3vw, 20px);
}
.cf-3 button img{
    height: max(25px, 3vw);
    width: max(25px, 3vw);
    object-fit: cover;
}
.cf-3-active{
    border: 2px solid black !important;
    background: #f0c446 !important;
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
#cf3-switch{
    position: absolute;
    top: 5%;
    right: 5%;
    height: 54px;
}
.cf-3 small{
    position: absolute;
    top: 2.5%;
    right: 5%;
} 
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.toggle:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .toggle {
    background-color: #f0c446;
}
input:focus + .toggle {
    box-shadow: 0 0 1px black;
} 
input:checked + .toggle:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    content: "✔";
    color: #f0c446;
    text-align: center;
}
.toggle.round {
    border-radius: 34px;
}
.toggle.round:before {
    border-radius: 50%;
} 
.cf-toggle span{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.cf-toggle span p small{
    color: grey;
}
.cf-toggle span p a{
    font-size: 0.7rem;
    font-weight: 600;
    color: black;
}
.cf-slider{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.cf-slider:before{
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    text-align: center;  
}
input:checked + .cf-slider{
    background-color: #f0c446;
}
input:focus + .cf-slider{
    box-shadow: 0 0 1px black;
}
input:checked + .cf-slider:before{
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    content: "✔";
    color: #f0c446;
}
.cf-slider.round{
    border-radius: 34px;
}
.cf-slider.round:before{
    border-radius: 50%;
}
.cf-height{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.cf-height section{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.cf-height section h3{
    width: 100%;
    margin: 5px 0;
}
.cf-height span{
    width: 45%;
    padding: 10px 3px;
    margin: 5px 0;
    display: flex;
    cursor: pointer;
    border-radius: 5px;
}
.cf-height span:hover{
    background: rgb(241, 241, 241);
}
.cf-height span input{
    padding: 10px;
    margin-right: 10px;
}
.cf-4 span p{
    width: 90%;
}
.cf-hidden{
    height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    opacity: 0;
}
.cf-4-btn{
    border: 1px solid black;
    color: black;
    background: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}
#cf-5{
    display: none;
    flex-direction: column;
}
.cf-6{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.cf-6 p{
    margin: 5px;
}
.cf-6 span{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}
.cf-6 span input, .cf-6 span select{
    padding: 10px;
    border-radius: 30px;
    border: 1px solid lightgrey;
    margin-right: 20px;
    min-width: 100px;
    height: 40px;
}
.cf-6 span select{
    background: white;
}
.cf-bottom{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    left: 0;
    background: white;
    border-top: 1px solid lightgray;
}
.clear-filters{
    background: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: underline black 2px;
    border: none;
    padding: 10px;
    cursor: pointer;
}
.show-places{
    padding: 10px 20px;
    background: #f0c446;
    border: none;
    border-radius: 10px;
    color: black;
    cursor: pointer;
    font-weight: 500;
}












@media all and (max-width: 900px){
    .map-container, .info-container, .flip-card, .chart2{
        width: 100% !important;
    }
    .slider{
        width: 95%;
    }
    .slider h2{
        display: none;
    }
    .flip-card{
        position: relative;
    }
    .chart-filters-inner{
        width: 100%;
    }
}