:root {
    --max-width: 600px;
}

body {
    position: relative;
    height: 100dvh;
    margin: 0px;
    overflow: hidden;
    font-family: "Helvetica", "Arial", "LiHei Pro", "黑體-繁", "微軟正黑體", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1;
    margin: 0;
    padding: 0;
}


#map {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: end;
    align-items: end;
    background-color: #00000000;
    z-index: 0;
}

button {
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: var(--button_radius);
    background: var(--button_outline_color);
    cursor: pointer;
    z-index: 1;
    background: #ffffff;
    transition: transform 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.back_TW_button {
    position: absolute;
    bottom: 85px;
    right: 10px;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back_TW_button img {
    width: 24px;
}

.back_my_button {
    position: absolute;
    bottom: 25px;
    right: 10px;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back_my_button img {
    width: 24px;
}

.reload_data {
    position: absolute;
    bottom: 145px;
    right: 10px;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reload_data img {
    width: 24px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: end;
    width: 100%;
    height: 100%;
}

.hidden_anim_down {
    transform: translateY(1000px)
}

.visible_anim_up {
    transform: translateY(0);
}

.hidden_anim_fadeOut {
    animation: loadingFadeOut 1s forwards;
}

.show_anim_fadeIn {
    animation: loadingFadeIn 1s forwards;
}

#loadingContainer {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 5;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #12121299;
    backdrop-filter: blur(100px);
}

.loader {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    box-sizing: border-box;
    border-top: 8px solid #fff;
    border-left: 8px solid #fff;
    border-right: 8px solid #ff00;
    animation: loader .7s infinite linear;
}

#alertList {
    position: absolute;
    left: 10px;
    width: 30%;
    height: 80%;
    z-index: 0;
    overflow: overlay;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#alertList li {
    background: #ffffff;
    margin-bottom: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    padding: 10px;
    cursor: pointer;
}

.text-warning {
    color: red;
    font-weight: bold;
}

.x-icon {
    color: red;
    /* background-color: aqua; */
    text-align: center;
    vertical-align: middle;
    padding: 0;
    margin: 0;
    font-size: 36px;
    line-height: 1;
    text-shadow: red 1px 0 10px;
}

.leaflet-popup,
.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background-color: #00000000 !important;
    color: #fff !important;
    box-shadow: none !important;
}


@keyframes loader {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate4 {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash4 {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -125px;
    }
}


@keyframes loadingFadeOut {
    100% {
        z-index: -1;
        opacity: 0;
    }
}


@keyframes loadingFadeIn {
    100% {
        z-index: 5;
        opacity: 1;
    }
}

@media only screen and (max-width: 600px) {
    #alertList {
        height: 50%;
        width: 100%;
        left: 0;
    }

    #alertList li {
        margin-bottom: 0;
    }

    #map {
        height: 50%;
    }
}