/* 
==============
==============
==============
GENERAL 
==============
==============
==============
*/

html,
body {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    background-color: #212529;
    color: white
}

table {
    color: white
}

h1 {
    font-size: 1.3rem !important;
}

h2 {
    font-size: 1.2rem !important;
}


.close-X {
    color: rgb(255, 255, 255);
    float: left;
    font-weight: bold;
    font-size: 25px !important;
}

.close-X:hover {
    color: rgb(200, 200, 200);
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0) !important;
}

.close-margin {
    margin-bottom: 5px;
}


/* 
==============
==============
==============
MAP 
==============
==============
==============
*/

#map-wrapper {
    height: 100%;
    background-color: #131313;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}


#este-logo {
    position: relative;
    bottom: 65px;
    left: 15px;
    z-index: 1000;
    pointer-events: none;
}

.legend-control {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: #000;
    width: 90px;
}

.legend-control .legend-title {
    margin: 0 0 6px;
    font-weight: bold;
}

.legend-control .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.legend-control .legend-color {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    display: inline-block;
    border: 0 solid #999;
    box-sizing: border-box;
}


/* Map controls */
.maplibregl-ctrl-group,
.map-button {
    background: #212529;
}

.maplibregl-ctrl-group button,
.map-button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important
}

/* Zoom Controls */
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
    background-image: url(../img/plus-icon.svg);
}

.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
    background-image: url(../img/minus-icon.svg);
}

.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon {
    background-image: url(../img/move-icon.svg);
}

.maplibregl-ctrl-compass {
    border-radius: 0px 0px 5px 5px;
}

.maplibregl-ctrl-zoom-in {
    border-radius: 5px 5px 0px 0px;
}

.shadow-border {
    /* border: 2px solid #000; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}


/* SCROLL BAR */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    border-radius: 50px;

}

::-webkit-scrollbar:hover {
    width: 10px;
    height: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgb(140, 140, 140);
    border-radius: 10px;

}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgb(80, 80, 80);
}



/* RESPONSIVE DESIGN */
#chart-full-wrapper,
#dash-table,
#map-wrapper {
    transition: all .3s ease-in-out;
}


/* BUTTONS FOR POPING CHARTS/TABLES */
#chart-full-btn {
    top: 50%;
    left: 0;
}

#chart-table-btn {
    top: 50%;
    right: 0;
}

#chart-mean-btn {
    bottom: 0;
    left: 50%;
}

.pop-btn {
    transition: all .3s ease-in-out;
    position: absolute;
    z-index: 5;
}

@media (max-width:1000px) {

    #chart-full-wrapper,
    #dash-table {
        display: none;
        height: 100%;
        width: 100%;
    }

    #map-table-row,
    #map-wrapper {
        width: 100%;
        height: 100%;
    }

    #chart-mean-wrapper {
        display: none;
    }

    .pop-btn {
        display: block;
    }

    #chart-mean-1,
    #chart-mean-2,
    #chart-mean-3,
    #chart-mean-4 {
        width: 100% !important;
    }

    .close-X {
        display: block;
    }

    .close-margin {
        display: block;
    }

    #map-wrapper,
    #chart-mean-wrapper,
    #dash-table {
        border: 0px solid white !important;
    }

    #chart-full-1,
    #chart-mean-1 {
        margin-top: 10px;
        margin-left: 5px
    }
}


@media (min-width:1001px) {
    #map-table-row {
        height: 70%;
    }

    #chart-full-wrapper,
    #dash-table {
        width: 25%;
    }

    #map-wrapper {
        width: 50%;
        border: 2px solid white;
        display: block !important;
    }

    #chart-mean-wrapper {
        display: block;
        height: 30%;
        max-height: 30%;
    }

    .pop-btn {
        display: none;
    }

    #chart-mean-1,
    #chart-mean-2,
    #chart-mean-3,
    #chart-mean-4 {
        width: 25%;
    }

    .close-X {
        display: none;
    }

    .close-margin {
        display: none;
    }

    #chart-full-1,
    #chart-mean-1 {
        margin-top: 0;
    }
}

/* Arrows  */
.arrow {
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}