html,
body {
    height: 100%;
    width: 100%;
    background-color: transparent;
}

canvas {
    display: block;
    vertical-align: bottom;
}

.iconshadow {
    filter: drop-shadow(2px 2px 2px #666);
}

.nav_bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 55px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    display: flex;
    overflow-x: auto;
}

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    min-width: 50px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    color: #4D5DE0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.1s ease-in-out;
}

.nav__link.active {
    color: #000;
    background-color: #EEEEEE;
}

.nav__icon {
    color: #4D5DE0;
    font-size: 18px;
}

.nav__text {
    line-height: 1.0;
}

.modal.fade {
    z-index: 10000000 !important;
}

.bottomStuff {
    position: fixed;
    bottom: -410px;
    height: 410px;
    width: 100%;
    text-align: center;
    z-index: 1001;
    transition: top .5s, bottom .5s, left .5s, width .5s;
    background-color: #FFF;
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    overflow-y: auto;
}

.thin_scroll {
    scrollbar-width: thin;
}

.thin_scroll::-webkit-scrollbar {
    width: 8px;
    scrollbar-width: thin;
    background-color: #CCC;
}

.thin_scroll::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

.thin_scroll::-webkit-scrollbar-thumb {
    background-color: #CCC;
}

.leaflet-div-icon_0 {
    background: #FFFFFF;
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: black;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    line-height: 50px;
}

.badge-mine_6 {
    background: #7b2a1a;
    color: #FFFFFF;
}

.badge-mine_5 {
    background: #7940a5;
    color: #FFFFFF;
}

.badge-mine_4 {
    background: #d5182f;
    color: #FFFFFF;
}

.badge-mine_3 {
    background: #e7a05c;
    color: #FFFFFF;
}

.badge-mine_2 {
    background: #ffe85d;
    color: #FFFFFF;
}

.badge-mine_1 {
    background: #4d9a4b;
    color: #FFFFFF;
}

.leaflet-div-icon_1 {
    background: #FFD6D6;
    /* background: #80E27E; */
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: black;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    line-height: 50px;
}

.leaflet-div-icon_2 {
    background: #FF6B6B;
    /* background: #4CAF50; */
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: black;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    line-height: 50px;
}

.leaflet-div-icon_3 {
    background: #FF0000;
    /* background: #087F23; */
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: black;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    line-height: 50px;
}

.leaflet-div-icon_4 {
    background: #B3000B;
    /* background: #00600F; */
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: black;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    line-height: 50px;
}

.leaflet-div-icon_5 {
    background-color: #660022;
    /* background-color: #003300; */
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: #791817;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    line-height: 50px;
}

/* .leaflet-div-icon_6 { */
/* background: #7b2a1a; */
/* border: 3px solid rgba(255, 255, 255, 0.8); */
/* color: black; */
/* font-weight: bold; */
/* text-align: center; */
/* border-radius: 50%; */
/* border-radius: 50%; */
/* height: 50px; */
/* width: 50px; */
/* line-height: 50px; */
/* } */

.info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.info h4 {
    margin: 0 0 5px;
    color: #777;
}

canvas {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}


/* <!-- Legenda mapa	 */


/*Legend specific*/

.legend {
    padding: 6px 8px;
    /* font: 14px Arial, Helvetica, sans-serif; */
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    /* line-height: 32px; */
    color: #555;
}

.legend h6 {
    text-align: center;
    /* font-size: 16px; */
    margin: 2px 12px 8px;
    color: #777;
}

.legend span {
    position: relative;
    bottom: 3px;
    width: 100px;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin: 0 0 0 0;
    opacity: 1;
}

.legend i.icon {
    background-size: 18px;
    background-color: rgba(255, 255, 255, 1);
}

.tooltip-hidden {
    display: none;
}


/*==========  Media queries for test ==========*/


/* Custom, iPhone Retina */

@media only screen and (min-width: 320px) {
    .bottomStuff.active {
        overflow-x: hidden;
        /* Hide horizontal scrollbar */
        overflow-y: auto;
        position: fixed;
        bottom: 55px;
    }

    .water_mark {
        width: 100px;
        float: left;
        display: inline;
    }

    .water_mark1 {
        position: absolute;
        left: 120px;
        bottom: 0;
    }

    .logo {
        width: 91px;
        float: left;
    }

    .logoNEA {
        height: 25px
    }

    .leaflet_popup_wrapper {
        clear: both;
        width: 270px;
    }

    .elipse {
        position: absolute;
        text-align: center;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 1;
        margin-top: -340px;
    }

    .chart {
        width: 350px;
        height: 350px;
        color: #000000;
        background-color: rgba(255, 255, 255, 0.5);
        border: 20px solid rgba(255, 255, 255, 1);
        border-radius: 50%;
    }

    .level_text {
        position: absolute;
        width: 110px;
        height: 110px;
        top: 0;
        left: 50%;
        transform: translate(-50%, 120px);
        border-radius: 50%;
        border: 8px solid rgba(255, 255, 255, 0.7);
    }

    .rsquare {
        position: absolute;
        text-align: center;
        width: 200px;
        height: 200px;
        border-radius: 20%;
        left: 50%;
        transform: translate(-50%, 0);
        */
        /* animation: move-in-steps 1s; */
        /* margin-top: -160px; */
        text-align: left;
        font-size: 170%;
        font-weight: 500;
        z-index: 1;
        margin-top: -165px;
    }

    .border-largescreen {
        border-left: 0;
    }

    .table-calendar {
        margin: auto;
        border-collapse: collapse;
        border: none;
        cell-padding: 0;
        cell-spacing: 0;
    }

    .table-calendar>thead>tr>td {
        font-size: 50%;
    }

    .table-calendar>tbody>tr {
        height: 5px;
        line-height: 5px;
    }

    .table-calendar>tbody>tr>td {
        border: 1px inset #DDD;
        width: 5px;
        height: 5px;
        line-height: 5px;
    }

    .cal_cell {
        display: inline-block;
        position: relative;
        height: 5px;
        width: 5px;
    }
}


/* Extra Small Devices, Phones */

@media only screen and (min-width: 480px) {
    .bottomStuff.active {
        overflow-x: hidden;
        /* Hide horizontal scrollbar */
        overflow-y: auto;
        position: fixed;
        bottom: 55px;
    }

    .water_mark {
        width: 100px;
        float: left;
        display: inline;
    }

    .water_mark1 {
        position: absolute;
        left: 120px;
        bottom: 0;
    }

    .logo {
        width: 101px;
        float: left;
    }

    .logoNEA {
        height: 25px
    }

    .leaflet_popup_wrapper {
        clear: both;
        width: 300px;
    }
}


/* Small Devices, Tablets */

@media only screen and (min-width: 768px) {
    .bottomStuff.active {
        overflow-x: hidden;
        /* Hide horizontal scrollbar */
        overflow-y: auto;
        position: fixed;
        bottom: 0;
    }

    .water_mark {
        width: 100%;
        float: left;
        display: inline;
    }

    .water_mark1 {
        position: absolute;
        left: 205px;
        bottom: 0;
    }

    .logo {
        width: 122px;
        float: left;
    }

    .logoNEA {
        height: 30px
    }

    .leaflet_popup_wrapper {
        clear: both;
        width: 320px;
    }

    .elipse {
        position: absolute;
        text-align: center;
        width: 450px;
        height: 450px;
        border-radius: 50%;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 1;
        margin-top: -440px;
    }

    .chart {
        width: 450px;
        height: 450px;
        color: #000000;
        background-color: rgba(255, 255, 255, 0.5);
        border: 20px solid rgba(255, 255, 255, 1);
        border-radius: 50%;
    }

    .level_text {
        position: absolute;
        width: 110px;
        height: 110px;
        top: 0;
        left: 50%;
        transform: translate(-50%, 170px);
        border-radius: 50%;
        border: 8px solid rgba(255, 255, 255, 0.7);
    }

    .rsquare {
        position: absolute;
        text-align: center;
        width: 220px;
        height: 220px;
        border-radius: 20%;
        left: 50%;
        transform: translate(-50%, 0);
        */
        /* animation: move-in-steps 1s; */
        /* margin-top: -160px; */
        text-align: left;
        font-size: 200%;
        font-weight: 500;
        z-index: 1;
        margin-top: -185px;
    }

    .border-largescreen {
        border-left: 1px solid #c9c9c9
    }

    .table-calendar {
        margin: auto;
        border-collapse: collapse;
        border: none;
        cell-padding: 0;
        cell-spacing: 0;
    }

    .table-calendar>thead>tr>td {
        font-size: 60%;
    }

    .table-calendar>tbody>tr {
        height: 5px;
        line-height: 5px;
    }

    .table-calendar>tbody>tr>td {
        border: 1px inset #DDD;
        width: 5px;
        height: 5px;
        line-height: 5px;
    }

    .cal_cell {
        display: inline-block;
        position: relative;
        height: 5px;
        width: 5px;
    }
}


/* Medium Devices, Desktops */

@media only screen and (min-width: 992px) {
    .logo {
        width: 135px;
        float: left;
    }

    .logoNEA {
        height: 30px
    }

    .logoNEA_pos {
        position: absolute;
        bottom: 40px;
        right: 10px;
    }
}


/* Large Devices, Wide Screens */

@media only screen and (min-width: 1200px) {
    .table-calendar {
        margin: auto;
        border-collapse: collapse;
        border: none;
        cell-padding: 0;
        cell-spacing: 0;
    }

    .table-calendar>thead>tr>td {
        font-size: 80%;
    }

    .table-calendar>tbody>tr {
        height: 5px;
        line-height: 5px;
    }

    .table-calendar>tbody>tr>td {
        border: 1px inset #DDD;
        width: 5px;
        height: 5px;
        line-height: 5px;
    }

    .cal_cell {
        display: inline-block;
        position: relative;
        height: 5px;
        width: 5px;
    }
}


/*==========  Non-Mobile First Method  ==========*/


/* Large Devices, Wide Screens */

@media only screen and (max-width: 1200px) and (min-height: 1024px) {
    .logoNEA_pos {
        position: absolute;
        bottom: 5px;
        right: 130px;
    }

    .bootsidemenu {
        min-width: 60vw;
    }
}


/* Medium Devices, Desktops */

@media only screen and (max-width: 992px) {
    .logoNEA_pos {
        position: absolute;
        bottom: 5px;
        right: 130px;
    }

    .bootsidemenu {
        min-width: 60vw;
    }
}


/* Small Devices, Tablets */

@media only screen and (max-width: 768px) {
    .logoNEA_pos {
        position: absolute;
        bottom: 5px;
        right: 105px;
    }

    .bootsidemenu {
        min-width: 60vw;
    }
}


/* Extra Small Devices, Phones */

@media only screen and (max-width: 480px) {
    .logoNEA_pos {
        position: absolute;
        bottom: 5px;
        right: 115px;
    }

    .bootsidemenu {
        min-width: 100vw;
    }

    .bottomStuff.active {
        overflow-x: hidden;
        /* Hide horizontal scrollbar */
        overflow-y: auto;
        position: fixed;
        bottom: 55px;
    }
}


/* Custom, iPhone Retina */

@media only screen and (max-width: 320px) {
    .logoNEA_pos {
        position: absolute;
        bottom: 5px;
        right: 130px;
    }

    .bootsidemenu {
        width: 100%;
    }

    .bottomStuff.active {
        overflow-x: hidden;
        /* Hide horizontal scrollbar */
        overflow-y: auto;
        position: fixed;
        bottom: 55px;
    }
}

/* Favorites Feature Styling */
#btn_favorites {
    width: 42px !important;
    height: 42px !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, .175) !important;
    z-index: 2000;

}

#btn_favorites span {
    font-size: 1.5rem;
}

.station-share-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.station-share-container:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.share-icon {
    opacity: 0.8;
}

.station-share-container:hover .share-icon {
    opacity: 1;
}

.favorite-star-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(50%, -50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.favorite-star-container:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translate(50%, -50%) scale(1.1);
}

.favorite-star-container span {
    font-size: 1.8rem;
    /* 20% reduction from 2.25rem */
    line-height: 1;
    display: block;
}

.star-favorite {
    color: #f1c40f;
    /* Yellow filled */
}

.star-not-favorite {
    color: #198754;
    /* Green hollow */
}

/* Global Modal Beautification */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white !important;
    border: none;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    color: white !important;
}

#modal_favorites .modal-title::before {
    content: "\2605";
    margin-right: 10px;
    font-size: 1.2rem;
    color: #f1c40f;
}

.btn-close-white {
    opacity: 0.8 !important;
}

#modal_favorites .favorite-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    padding: 1rem 1.5rem;
}

#modal_favorites .favorite-item:hover {
    background-color: #f8f9fa;
    border-left-color: #198754;
    padding-left: 1.75rem;
}

#modal_favorites .favorite-link {
    font-weight: 500;
    color: #333 !important;
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

#modal_favorites .favorite-link:hover {
    color: #146c43 !important;
}

#modal_favorites .favorite-link::before {
    content: "\2316";
    margin-right: 8px;
    font-size: 1rem;
    color: #6c757d;
}

#modal_favorites .btn-remove {
    border-radius: 20px;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

#modal_favorites .favorite-item:hover .btn-remove {
    opacity: 1;
}