*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
}
button{
    cursor: pointer;
}
body{
    overflow-x: hidden;
}
/* 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;
}
.s1{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
}
.data-c, .map-c{
    height: 50vh;
    min-width: 250px;
    width: 100%;
}
.map-c{
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.s1-charts, #map{
    height: 100%;
    width: 50%;
    min-width: 250px;
}
.maps{
    position: relative;
    width: 50%;
    min-height: 50vh;
}
#map{
    background: white;
    border-radius: 20px;
}
.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;
}

.map-info{
    width: 50%;
    padding: 20px;
    overflow-y: scroll;
    display: block;
    height: 100%;
    transform: translateY(-25%);
}
.data-c{
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.s1-options{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap-reverse;
    position: relative;
    padding: 5px;
}
.s1-options-container{
    width: 50%;
    display: flex;
    justify-content: space-between;
    position: relative;
}
.timeToggle{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: max(30vw, 150px);
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.timeToggle small{
    text-align: center;
} 
.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%;
} 
.timeToggle span{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.timeToggle span p small{
    color: grey;
}
.timeToggle span p a{
    font-size: 0.7rem;
    font-weight: 600;
    color: black;
}

.s1-options-inner{
    width: max(30vw, 180px);
    border: 2px solid gold;
    padding: 5px;
    border-radius: 10px;
    position: absolute;
    top: 10%;
    right: 0;
    background: white;
    margin: 0 10px;
    z-index: 100;
}
.s1-dropdown-btn{
    background: white;
    border: none;
    border-bottom: 1px solid lightgrey;
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    width: 100%;
    color: rgb(82, 82, 82);
    position: relative;
}
.s1-dropdown-btn img{
    width: 15px;
    height: 15px;
}
.s1-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;
}
.s1-dropdown-btn p{
    margin: 0 3px;
}
.s1-dropdown-btn-active{
    background: white;
    color: grey;
    border-radius: 20px 20px 0 0;
}
.s1-dropdown-btn-active::after{
    transform: rotate(180deg);
    filter: grayscale(1);
}
.s1-dropdown{
    width: 100%;
    height: 30vh;
    position: relative;
    display: none;
}
.s1-dropdown-items{
    width: 100%;
    height: 80%;
    overflow-y: scroll;
    display: none;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.s1-choice-btns, .s1-apply-btns, .s1-country-btns{
    padding: 5px 10px;
    border-radius: 40px;
    border: none;
    margin: 7px auto;
    box-shadow: 0 0 3px lightgrey;
    width: 90%;
    color: rgb(82, 82, 82);
}
.s1-country-btns{
    width: max(30%, 100px);
}
.s1-choice-btns{
    width: 90%;
}
.s1-dropdown-apply{
    width: 100%;
    height: 22.5%;
    display: none;
    justify-content: space-around;
    position: absolute;
    bottom: 0;
    left: 0;
}
.s1-apply-btns{
    width: 40%;
    padding: 5px 10px;
    border-radius: 30px;
    border: none;
    background: #f0c446;
    display: block;
}
.s1-d1-active, .s2-d2-active{
    background: #f0c446;
}

.s1-tables{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 80%;
    width: max(50%, 270px);
    padding: 10px;
    font-size: 12.5px;
    background: rgb(236, 236, 236);
    margin: 0 auto;
    border-radius: 20px;
}
.s1-table-data{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: scroll;
}
.s1-table-header, .s1-table-row{
    width: 97.5%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 10px auto;
    background: rgb(250, 250, 250);
    border-radius: 10px;
    min-height: 50px;
}
.s1-tables span p{
    width: 33%;
    padding: 5px;
    text-align: center;
    min-width: 50px;
}
.s1-table-header{
    background: #d3d3d3;
}
.s1-table-row{
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.s1-table-row:hover{
    box-shadow: 0 0 3px lightgrey;
    transform: scale(1.01, 1.01);
}
.s1-charts{
    display: grid;
    place-items: center;
    position: relative;
    height: 100%;
    width: 50%;
    overflow: hidden;
}
.chartDiv{
    margin: 0 1vw;
    width: 100%;
    height: 100%;
    min-width: 200px;
    min-height: 200px;
    position: relative;
}
.t-3{
    display: none;
}
canvas{
    font-family: Poppins, sans-serif;
    width: 100%;
    height: 100%;
}
#cDiv{
    display: grid;
    place-items: start center;
    position: relative;
    width: 100%;
    height: 100%;
}
.cDiv-info{
    width: 100%;
    top: 25%;
    height: max-content;
    position: absolute;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
#myChart{
    width: 100%;
    height: 100%;
}
.chartDiv p{
    text-align: center;
    font-size: calc(15px + 0.3vw);
}
.cDiv-info p small{
    font-size: calc(10px + 0.2vw);
}
.legend{
    height: 30px;
    width: 100%;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    font-size: calc(10px + 0.2vw);
}
.legend p{
    margin: 0 5px;
    position: relative;
    margin-left: 25px;
}
.legend p::before{
    content: '';
    position: absolute;
    left: -20px;
    top: 5px;
    width: 15px;
    height: 10px;
}
.legend p:nth-child(1):before{
    background-color: #f0c446;
}
.legend p:nth-child(2):before{
    background-color: lightgrey;
}

@media all and (max-width: 600px){
    .s1-charts, #map{
        width: 100%;
    }
    .data-c, .map-c{
        height: max-content;
    }
    .s1-tables{
        width: 100%;
    }
    .s1-options-container{
        width: 100%;
    }
    .map-info, .maps{
        width: 100%;
        transform: translateY(0);
    }
}