/*@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&display=swap');*/

:root {
    --button-blue: #9CBEE5;
    --button-main-blue: #00B0F0;
    --button-indigo: #00529C;
    --button-light-gray: #585858;
    --button-gray: #494949;
    --font-white: #eeeeee;
    --font-red: #d3271b;
    --main-blue: #4FACEA;
}

body {
    overflow-x: hidden;
}

/* leaflet */
.cursor-latlng .leaflet-control-scale-line {
    text-shadow: unset !important;
}

.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
    opacity: 0.7 !important;
    width: 110px;
}

.leaflet-popup-content {
    width: 110px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: unset;
    padding: 8px;
}

.leaflet-popup-content table {
    width: 100%;
}

.leaflet-control-scale-line {
    text-shadow: none;
}

.cursor-latlng {
    font-size: 0.6rem
}

/* title */
.title {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: wrap column;
    margin: 1em 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.title h3 {
    color: #F49424;
}

/* global weather */
#global_weather_title {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-weight: bold;
    color: #777;
}

h3 {
    color: #F49424;
    font-weight: bold;
}

#global_weather {
    height: fit-content;
    padding: 1em 12em 2em 12em;
}

#global_weather .country_area {
    margin-left: unset;
    margin-right: unset;
    margin-bottom: 15px;
    gap: 0.3rem;
}

#global_weather .country_area>div {
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    padding: 3px 0px;
    text-align: center;
    cursor: pointer;
}

select.country_area {
    display: none;
}

.country_area .country_block:hover {
    box-shadow: 0 0 5px #009de7;
    color: #2c5ba6;
    font-weight: bold;
    border: 1px solid #87b2c7 !important;
}

.country_area .country_block.active {
    background: #009de7;
    box-shadow: 0 0 5px #009de7;
    color: white;
    font-weight: bold;
    border: 1px solid #87b2c7 !important;
}

.show_product {
    width: 100%;
    height: 65vh;
    background: lightblue;
    position: relative;
}

.show_product .product_icon {
    position: absolute;
    top: -5px;
    right: 10px;
    z-index: 99;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.airport_weather_warning {
    display: none;
    position: absolute;
    top: 3.5rem;
    right: 1rem;
    z-index: 1;
    animation: warning_style 1.5s ease-in-out infinite alternate;
    cursor: pointer;
}

.airport_weather_warning.sm {
    display: none;
    position: unset;
    margin-bottom: 0.5rem;
}

@keyframes warning_style {

    0%,
    100% {
        text-shadow: 0 0 0 lightblue;
    }

    50% {
        text-shadow: 0 0 1rem #ffa2a2;
    }
}

#airport_weather_warning .special_title {
    color: #009de7;
    margin-bottom: 1rem;
}

#product_btn {
    display: flex;
    gap: 0.5rem;
}

.product_icon #product_btn>div {
    border: 0.063em solid #aaa;
    padding: 3px;
    border-radius: 0.188em;
    margin-top: 0.8em;
    background: white;
    box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.2);
    width: 34px;
    height: 34px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.product_icon>div:hover {
    background-color: #fffae4;
}

.product_icon #product_btn>div.active {
    background: #ffec98;
}

.product_icon .satellite_item {
    display: none;
    position: absolute;
    right: 0px;
    top: 45px;
    width: 115px;
    height: auto;
    background: #fbfbfb;
    padding: 10px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.product_icon .satellite_item.active {
    display: block;
}

.product_icon .satellite_item.active {
    display: block;
}

.product_icon .satellite_item>div {
    display: flex;
    align-items: baseline;
}

.product_icon .lightning_item {
    display: none;
    position: absolute;
    right: 0px;
    top: 45px;
    z-index: 101;
    width: 95px;
    height: auto;
    background: #fbfbfb;
    padding: 10px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.product_icon .lightning_item.active {
    display: block;
}

.product_icon .lightning_item.active {
    display: block;
}

.product_icon .lightning_item>div {
    display: flex;
    align-items: baseline;
}

.show_product .warning_status {
    position: absolute;
    bottom: 0px;
    left: 0px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.show_product .warning_status>div {
    display: flex;
    color: #4c4c4c;
    font-weight: bold;
    gap: 0.5rem;
    margin-bottom: 5px;
    padding: 0 10px;
    align-items: center;
    /* flex: 1; */
}

.show_product .warning_status>div:not(:last-child) {
    border-right: 2px solid;
}

.show_product .warning_status img {
    width: 1.5rem;
}

.show_product .weather_icon {
    width: 1rem;
    position: relative;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.show_product td .weather_icon {
    width: 1.5rem;
    transform: unset;
    top: unset;
    left: unset;
}

.show_product .weather_icon>img {
    position: absolute;
    top: -20px;
    left: -8px;
    width: 160%;
}

.show_product .weather_icon .alert_img {
    position: absolute;
    top: -2px;
    left: -20px;
    width: 120%;
}

.show_product .weather_icon_info {
    cursor: pointer;
}

/* 適航說明 */
#standard_info_modal_label {
    font-weight: bold;
    font-size: 1.3rem;
}

#standard_table {
    width: -webkit-fill-available;
    border: 2px solid #ccc;
}

#standard_table thead {
    text-align: center;
}

#standard_table thead th {
    background-color: #03a9f475;
    border-right: 1px solid #fff;
}

#standard_table tbody tr:nth-child(even) {
    background-color: #8ecef442
}

#standard_table tbody tr {
    width: -webkit-fill-available;
    border: 2px solid #ccc;
}

#standard_table td {
    /* border: 1px solid #ccc; */
}

#standard_table th {
    border: 1px solid #fff;
}

.icon_info i {
    font-size: 1.2rem;
}

.status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.status_block {
    display: flex;
    align-items: center;
    width: 50%;
    /* height: 80px; */
    padding: 10px;
}

.status_block>div {
    width: 80%;
    /* border: 1px solid #ccc; */
    height: 100%;
    padding: 10px;
}

.status_block .status_img {
    width: 20%;
    text-align: center;
}

.status_block .status_img img {
    width: 2rem;
}

.modal {
    z-index: 9999;
}

.modal-body {
    padding: unset;
}

#airport_weather_warning .modal-header {
    padding: 0.5rem;
    border-bottom: unset;
}

#airport_weather_warning .modal-body {
    padding: 0 2rem 2rem;
}

#airport_weather_warning li {
    margin-bottom: 0.5rem;
}

#city_list {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* #city_list select {
    width: 100%;
    height: 100%;
    padding-left: 20px;
} */

#city_list .airport_search {
    width: 20%;
    margin-left: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #2c5ba6;
    color: white;
    padding: 3px 5px;
}

/* chosen optgroup title*/
.chosen-container .chosen-results li.group-result {
    cursor: pointer;
}

/* .chosen-container span.remove_all {
    position: absolute;
    right: 5px;
    bottom: 5px;
    text-decoration: underline;
    color: #777;
    cursor: pointer;
} */

.select2-selection {
    max-height: 45px;
    overflow: auto;
}

.select2-selection::-webkit-scrollbar {
    width: 1em;
}

/* .chosen-choices {
    max-height: 50px !important;
    overflow-y: auto !important;
}

.chosen-choices::-webkit-scrollbar {
    width: 1em;
} */

#weather_content {
    max-height: 65vh;
    overflow-y: auto;
}

#weather_content .slick-list .slick-track {
    margin-left: unset;
    margin-right: unset;
}

#weather_content .block {
    font-family: 'Noto Sans TC', sans-serif;
    padding: 10px;
    color: #555;
}

#weather_content .block:nth-child(odd) {
    background: aliceblue;
}

#weather_content .block .location {
    cursor: pointer;
}

#weather_content .block .location:hover {
    text-decoration: underline;
}

#weather_content .block .airport_info {
    display: flex;
    justify-content: space-between;
}

#weather_content .block .weather_info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#weather_content .block .weather_status {
    display: flex;
    /* font-size: 1.1rem; */
}

#weather_content .block .weather_icon {
    width: 1.5rem;
}

#weather_content .block .temperature {
    background: #009de7;
    color: white;
    padding: 1px 5px;
    border-radius: 5px;
}

#weather_content .block .no_data {
    padding: 10px;
    font-weight: bold;
    color: #555;
    text-align: center;
}

#weather_content .below_warning img {
    width: 1rem;
}

/* local_observation */
#local_observation {
    height: fit-content;
    padding: 1em 12em 2em 12em;
    background: #f0f0f0;
}

#local_observation #local_observation_content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 10px;
}

#local_observation a {
    text-decoration: none;
}

#local_observation #local_observation_content .observation_block {
    background: #009DE7;
    cursor: pointer;
    color: #fff;
}

#local_observation #local_observation_content .observation_block_pic {
    cursor: pointer;
    color: #fff;
}

#local_observation #local_observation_content .observation_block_pic img {
    max-height: 100%;
    max-width: 100%;
    width: 100%;
    height: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

#local_observation #local_observation_content .observation_block_text {
    line-height: 2em;
    text-align: center;
}

/* twilight */
#twilight {
    height: fit-content;
    padding: 1em 12em 2em 12em;
}

.twilight_time {
    /* float: right; */
    padding: 0 0 10px 0;
    font-size: 1.3rem;
}

#twilight_table {
    overflow-x: auto;
}

/* news */
#news {
    height: fit-content;
    padding: 1em 12em 2em 12em;
    background: #dcf0ff;
}

#news a {
    color: unset;
    text-decoration: none;
}

.news_block {
    border: 1px solid #a7ddf3;
    border-radius: 5px;
    margin: 0.5rem 0;
    padding: 1rem;
    background: #fff;
    cursor: pointer;
}

.news_instruction {
    align-items: center;
}

.top_row {
    display: flex;
    align-items: center;
}

.news_date {
    color: #707070;
    /* margin-bottom: 10px; */
    display: flex;
}

.news_date img,
.news_date .fill {
    width: 1.5rem;
    margin-left: 0.5rem;
}

.hot_icon {
    width: 1.5rem;
    margin-right: 0.5rem;
}

.news_title {
    font-size: 1.2rem;
    color: #148dfe;
    margin-left: 1rem;
    /* margin-bottom: 10px; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    text-overflow: ellipsis;
    overflow: hidden;
}

.news_info {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    overflow: hidden;
}

#more_news {
    text-align: right;
    padding: 15px 10px 0;
}

#more_news button {
    width: 10%;
    height: 40px;
    background: unset;
    border: 1px solid #145f82;
    color: #145f82;
    font-weight: bold;
}

#more_news button:hover {
    background: #fff;
}

/* popular science */
#popular_science {
    height: fit-content;
    padding: 1em 12em 2em 12em;
}

#popular_science #popular_science_content {
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
}

#popular_science_content a {
    color: unset;
    flex: 1;
}

#popular_science_content a>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#popular_science_content .knowledge_img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    position: relative;
}

#popular_science_content .knowledge_img:after {
    content: "";
    width: 110%;
    height: 110%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #34b9f7;
    border-radius: 50%;
}

#popular_science_content .knowledge_img:hover:after {
    content: "";
    border: 2px solid #34b9f7;
}

#popular_science_content .category_title {
    padding: 30px 10px;
    text-align: center;
    /* font-size: 1.2rem; */
    font-weight: bold;
}

#popular_science .knowledge_category1 {
    background-image: url("../../images/Home/knowledge/knowledge_category1.png");
}

#popular_science .knowledge_category2 {
    background-image: url("../../images/Home/knowledge/knowledge_category2.png");
}

#popular_science .knowledge_category3 {
    background-image: url("../../images/Home/knowledge/knowledge_category3.png");
}

#popular_science .knowledge_category4 {
    background-image: url("../../images/Home/knowledge/knowledge_category4.png");
}

/* link */
#link {
    height: fit-content;
    padding: 1em 12em 2em 12em;
    background: #dcf0ff;
}

.slide_print_block {
    display: none;
}

.slick-slide>div {
    padding: 10px;
}

.slide_block {
    height: auto;
}

.slide_block>a {
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    color: black;
}

.slide_block>a>img {
    width: 100%;
    height: 100%;
}

.slick-arrow {
    box-shadow: #00529c 0px 0px 10px;
    border-radius: 50%;
    padding: 15px;
    display: flex;
    justify-content: center;
}

.slick-prev:before,
.slick-next:before {
    color: #00529c;
    line-height: inherit;
}

.slick-prev {
    left: -35px;
}

.slick-next {
    right: -35px;
}

.link_motc {
    background: #c1e1ff;
}

.product-hint {
    position: absolute;
    left: 10px;
    bottom: 7rem;
    background: rgba(173, 216, 230, 0.7);
    color: #000;
    pointer-events: none;
    font-size: 0.8rem;
}

.hide {
    display: none !important;
}

.show-btn {
    background-color: #009de7;
    height: 20px;
    width: 20px;
    text-align: center;
    /* align-items: center; */
    border: 1px solid white;
    border-radius: 3px;
    /* pointer-events: auto; */
    position: absolute;
    left: 10px;
    bottom: 5.5rem;
    font-size: .8rem;
    color: var(--font-white);
    padding: unset;
    margin: unset;
}

.loading-msg {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: #0000005c;
    z-index: 9999;
}

/* map_timebar */
/*#map_timebar {
    position: absolute;
    bottom: 30px;
    width: 100%;
    background-color: transparent;
}

.timebar {
    width: 100%;
    align-items: center;
    margin-top: 1em;
}

.timebar.map-item-style {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.timebar-ctrl-btn {
    background-color: var(--button-indigo) !important;
    color: var(--font-white) !important;
    border: 0.1em solid var(--button-gray);
    box-shadow: 0 0.125em 0.25em rgb(0 0 0 / 20%), inset 1px 1px #ffffffaa, inset -1px -1px #819dbd !important;
}*/

/* timebar 右邊進度條 */
/* .timebar-date {
    color: var(--font-white) !important;
    font-family: var(--font-family-sans-serif) !important;
}

.timebar-progress .timebar-value {
    background-color: var(--button-indigo) !important;
    box-shadow: inset 1px 1px #ffffff40, inset -1px -1px #4c4c4c !important;
    font-family: var(--font-family-sans-serif) !important;
}

.timebar-block-item .time-text {
    position: absolute;
    top: 1em;
    color: var(--font-white);
}

.timebar-block-item:not(.active)>span {
    position: absolute;
    top: 1em !important;
    padding: 0.1em !important;
    background-color: #FFF0 !important;
    box-shadow: none !important;
    font-family: var(--font-family-sans-serif) !important;
    border: 2px solid #eaeaea;
    font-size: .9em;
    display: none !important;
} */

/*.timebar-block-item:not(.active) > span::after, .timebar-block-item:not(.active) > span::before {
    display: none;
}*/

/* .timebar-block-item.active>span {
    top: -2em !important;
    min-height: 2.0em !important;
    padding: 0.2em !important;
    background-color: var(--button-indigo) !important;
    box-shadow: none !important;
    color: var(--font-white) !important;
    border-radius: 0.5em !important;
    filter: drop-shadow(2px 2px 1px #111);
    border: none;
} */

/*.timebar-block-item.active > span::after, .timebar-block-item.active > span::before {
    bottom: -0.9em !important;
    border: 0.4em solid transparent !important;
    border-top: 0.5em solid var(--button-indigo) !important;
}*/

.timebar-block-item>span::after,
.timebar-block-item>span::before {
    display: none !important;
}

/* map_timebar */
#map_timebar {
    position: absolute;
    bottom: 35px;
    width: 100%;
    background-color: transparent;
}

#map_timebar .timebar {
    width: 100%;
    align-items: center;
    background-color: unset;
    border: unset;
}

#map_timebar .map-shadow {
    box-shadow: unset;
}

/* 播放按鈕 */
#map_timebar .timebar-ctrl {
    margin: unset;
    margin-left: 0.3em;
}

#map_timebar .timebar-btn-play {
    background-color: #fff;
    color: #333;
    border: none;
}

#map_timebar .timebar-btn-play:before {
    font-size: 1.5em;
}

/* 播放條 */
#map_timebar .timebar-progress {
    margin-right: 1em;
    height: 2em;
}

#map_timebar .timebar-progress .timebar-value {
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: unset;
}

#map_timebar .timebar-hover-value {
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: unset;
}

/* #map_timebar .timebar-progress:before {
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: var(--button-indigo) !important;
    height: 0.5em;
} */

#map_timebar .timebar-value-bg {
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: var(--button-indigo) !important;
    height: 0.5em;
    box-shadow: unset;
}

/* 下方日期條隱藏 */
#map_timebar .timebar-date {
    display: none;
}

/* 日期顯示框 */
#map_timebar .timebar-block-item {}

/* 白色分隔線 */
#map_timebar .timebar-block-item:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0.1em;
    height: 0.5em;
    margin: auto;
    background-color: #fff;
}

#map_timebar .timebar-block-item:hover:before {
    width: 1em;
    height: 1em;
    border-radius: 50%;
}

/* 藍點 */
#map_timebar .timebar-block-item.active:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0.5em;
    height: 0.5em;
    margin: auto;
    background-color: var(--main-blue);
    border-radius: 50%;
}

/* 時間標籤 */
#map_timebar .timebar-block-item>span {
    top: -1.8em;
    padding: 0.4em;
    color: #fff;
    background-color: var(--main-blue);
    border-radius: 0.25em;
    box-shadow: unset;
    font-size: small;
}

#map_timebar .timebar-block-item.active>span {
    min-height: unset;
}

#map_timebar .timebar-block-item>span:before,
#map_timebar .timebar-block-item>span:after {
    content: unset;
}

.timebar-block-item .time-text {
    position: absolute;
    top: 1em;
}

/* colorbar 瘦身 */
.colorbar {
    /* width: 3.1em !important; */
    /* height: 15em !important; */
    margin: 0em !important;
    /* bottom: 5.5em !important; */
    padding: 0em !important;
    color: #000 !important;
    background-color: transparent !important;
    border: 0.063em solid rgba(0, 0, 0, 0) !important;
    z-index: 1 !important;
}

.colorbar .colorbar-content {
    margin: 0.1em 0.5em 0.5em 0.1em !important;
}

.colorbar .colorbar-title {
    display: none !important;
}

.colorbar .colorbar-content .colorbar-color-item>div {
    height: 0.75em !important;
    width: 1.0em !important;
}

.colorbar .colorbar-content .colorbar-value-item>div {
    line-height: 1.0em !important;
    width: 10px !important;
    height: 0.75em !important;
}

.legend {
    position: absolute;
    left: 5em;
    top: 4em;
    background-color: rgba(173, 216, 230, 0.7);
    pointer-events: none;
}

.legend>.item {
    color: #000;
    font-size: 0.8rem;
}

.legend>.item img {
    width: 1.2rem;
}

.legend>.item:not(:last-child) {
    margin-bottom: 4px;
}

.legend>.item>.icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: inline !important;
}

@media (max-width: 1300px) {

    #global_weather,
    #aviation_weather,
    #local_observation,
    #twilight,
    #news,
    #popular_science,
    #link {
        padding: 1em 2em 2em 2em;
    }

}

@media (min-width: 1140px) and (max-width: 1280px) {
    #more_news button {
        width: 10%;
    }

    #popular_science #popular_science_content .popular_science_img {
        height: 300px;
    }

    #popular_science #popular_science_content .popular_science_questions {
        height: 280px;
    }

    #popular_science #popular_science_content .popular_science_questions div {
        height: 18%;
        padding: 0 15px;
        font-size: 1rem;
    }

    #popular_science #popular_science_content button {
        bottom: 2%;
    }
}

@media (max-width: 1024px) {
    #popular_science_content .knowledge_img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 991.5px) {
    #city_list {
        margin-top: 20px;
    }

    /* #weather_icon_info_modal .icon_info div {
        width: 33%;
    } */

    .status_block {
        width: 100%;
    }
}

@media (min-width: 980px) and (max-width: 1140px) {
    #more_news button {
        width: 10%;
    }

    #popular_science #popular_science_content .popular_science_img {
        height: 280px;
    }

    #popular_science #popular_science_content .popular_science_questions {
        height: 260px;
    }

    #popular_science #popular_science_content .popular_science_questions div {
        height: 18%;
        padding: 0 15px;
        font-size: 1rem;
    }

    #popular_science #popular_science_content button {
        bottom: 2%;
    }
}

@media (min-width: 768px) and (max-width: 980px) {
    #news #news_content {
        flex-wrap: wrap;
    }

    #more_news button {
        width: 13%;
    }

    #popular_science #popular_science_content {
        flex-wrap: wrap;
    }

    #popular_science #popular_science_content .popular_science_img {
        width: 100%;
        height: 370px;
    }

    #popular_science #popular_science_content .popular_science_questions {
        width: 100%;
        height: 350px;
        padding: 0 0 0.5em;
        justify-content: space-between;
        margin: 15px 0;
    }

    #popular_science #popular_science_content .popular_science_questions div {
        font-size: 1.1rem;
    }

    #popular_science #popular_science_content button {
        width: 15%;
        height: 5%;
        bottom: -2%;
    }
}

@media (max-width: 768px) {
    .select2-container .select2-selection--multiple {
        max-height: 80px;
    }

    #map_timebar .time-text {
        display: none;
    }

    div.country_area {
        display: none;
    }

    select.country_area {
        display: block;
    }

    #popular_science_content a {
        flex: unset;
        width: 50%;
    }

    #popular_science_content .knowledge_img {
        width: 200px;
        height: 200px;
    }

    #local_observation #local_observation_content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    #local_observation #local_observation_content .observation_block {
        width: 45%;
    }

}

@media (max-width: 700px) {
    .colorbars {
        margin-bottom: 8.5rem !important;
    }
}

@media (max-width: 665px) {
    #map_timebar {
        bottom: 70px;
        width: 95%;
    }
}

@media (max-width: 580px) {
    /* #weather_icon_info_modal .icon_info div {
        width: 50%;
    } */

    #popular_science_content .knowledge_img {
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 500px) and (max-width: 767px) {
    #news #news_content {
        flex-wrap: wrap;
    }

    #more_news button {
        width: 23%;
    }

    #popular_science #popular_science_content {
        flex-wrap: wrap;
    }

    #popular_science #popular_science_content .popular_science_img {
        width: 100%;
        height: 250px;
    }

    #popular_science #popular_science_content .popular_science_questions {
        width: 100%;
        height: 270px;
        padding: 0 0 0.5em;
        justify-content: space-between;
        margin-top: 10px;
    }

    #popular_science #popular_science_content .popular_science_questions div {
        font-size: 1rem;
    }

    #popular_science #popular_science_content button {
        right: 0%;
        bottom: -4%;
        width: 20%;
        height: 6%;
        font-size: 1rem;
    }
}

@media (max-width: 475px) {
    #product_btn {
        display: block;
        margin: auto;
    }

    #map_ctrl .map-ctrl-menu {
        top: 1rem;
        right: 35px;
        width: 140px;
        max-height: 300px;
        overflow-y: auto;
    }

    #map_ctrl .map-ctrl-tab {
        flex-direction: column;
        margin: 1em 0 0 0 !important;
    }

    .show_product .product_icon {
        flex-direction: column;
    }

    .product_icon #product_btn>div {
        margin-top: .4em;
    }

    .product_icon .satellite_item,
    .product_icon .lightning_item {
        top: 0;
        right: 35px;
    }
    .map-ctrl.map-right-bottom-ctrl{
        bottom: 7em;
        right: 3rem !important;
    }
}

@media (min-width: 376px) and (max-width: 500px) {

    #more_news button {
        width: 25%;
    }

    #popular_science_content a {
        flex: unset;
        width: 100%;
    }

    #popular_science_content .knowledge_img {
        width: 200px;
        height: 200px;
    }

    #popular_science #popular_science_content .popular_science_img {
        width: 100%;
        height: 230px;
    }

    #popular_science #popular_science_content button {
        right: 0%;
        bottom: -5%;
        width: 20%;
        height: 5%;
        font-size: 1rem;
    }
}

@media (max-width: 425px) {
    #more_news button {
        width: 30%;
    }
}

@media (max-width: 375px) {
    .product_icon .satellite_item {
        right: 35px;
        top: 0;
    }

    .product_icon .lightning_item {
        right: 35px;
        top: 0;
    }

    #news_content .news_instruction .news_date {
        font-size: 1rem;
    }

    #news_content .news_instruction .news_title {
        font-size: 1rem;
    }

    #news_content .news_instruction .news_info {
        font-size: 0.8rem;
    }

    #more_news button {
        width: 35%;
        height: 35px;
    }

    #popular_science_content a {
        flex: unset;
        width: 100%;
    }

    #popular_science #popular_science_content .popular_science_img {
        width: 100%;
        height: 180px;
    }

    #popular_science #popular_science_content button {
        right: 0%;
        bottom: -5%;
        width: 30%;
        height: 5%;
        font-size: 1rem;
    }
}

@media (min-width: 320px) and (max-width: 500px) {
    #news #news_content {
        flex-wrap: wrap;
    }

    #popular_science #popular_science_content {
        flex-wrap: wrap;
    }

    #popular_science #popular_science_content .popular_science_questions {
        width: 100%;
        height: 350px;
        padding: 0 0 0.5em;
        margin-top: 10px;
    }

    #popular_science #popular_science_content .popular_science_questions div {
        width: 100%;
        height: unset;
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .slick-slider {
        margin: 0 10px;
    }

    .slick-arrow {
        padding: 12px;
    }

    .slick-prev {
        left: -30px;
    }

    .slick-next {
        right: -30px;
    }
}

@media (max-width: 320px) {

    #more_news button {
        width: 40%;
        height: 35px;
    }

    .show_product .warning_status {
        font-size: 0.8rem;
    }

    .show_product .warning_status>div {
        padding: 0px 5px;
    }

    .show_product .warning_status img {
        width: 1rem;
    }

    .weather_icon_info i {
        font-size: 1rem !important;
    }
}

@media print {
    .not_print {
        display: none;
    }

    .slide_print_block {
        display: flex;
    }

    .slide_block {
        flex: 20%;
        padding: 5px;
    }

    .slide_block>a {
        height: 100%;
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
        color: black;
    }

    .slide_block>a>img {
        width: 100%;
        height: 100%;
    }

    .show_product {
        height: 40vh;
    }

    #weather_content {
        max-height: 40vh;
    }
}

/* map-ctrl */
#map_ctrl {
    position: relative;
}

#map_ctrl .map-ctrl-tab {
    position: relative;
    margin: 0.8em;
    /* padding: 0em 0.8em 0em 0.8em; */
    border: 2px solid #12336c90;
    border-radius: 0.5em;
    background-color: transparent;
    display: flex;
}

.map-ctrl-opacity.select_down::after {
    right: 0px;
    top: 51%;
    border: 4px solid transparent;
    border-top: 6px solid #12336c;
}

#map_ctrl .map-ctrl-tab>span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 0.5em;
}

#map_ctrl .map-ctrl-tab>span.active {
    /* background-color: #12336c; */
    background: #ffec98;
}

#map_ctrl .map-ctrl-tab>span:hover {
    /* background-color: #85E2FF; */
    background-color: #ffec98;
}


#map_ctrl .zoom-in-icon {
    -webkit-mask-image: url(../../images/map/zoom-in.svg);
    mask-image: url(../../images/map/zoom-in.svg);
}

#map_ctrl .zoom-out-icon {
    -webkit-mask-image: url(../../images/map/zoom-out.svg);
    mask-image: url(../../images/map/zoom-out.svg);
}

#map_ctrl .basemap-icon {
    -webkit-mask-image: url(../../images/map/map.svg);
    mask-image: url(../../images/map/map.svg);
}

#map_ctrl .layer-icon {
    -webkit-mask-image: url(../../images/map/layers-triple.svg);
    mask-image: url(../../images/map/layers-triple.svg);
}

#map_ctrl .graphics-icon {
    -webkit-mask-image: url(../../images/map/camera-plus.svg);
    mask-image: url(../../images/map/camera-plus.svg);
}

#map_ctrl .custom-icon {
    /* background-color: #85E2FF; */
    /* background-color: #333; */
    background: #12336c;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-repeat: no-repeat;
    mask-position: center;
}

#map_ctrl .custom-icon.active {
    /* background-color: #FFFFFF !important; */
    background-color: #12336c;
}

#map_ctrl .custom-icon:hover {
    /* background-color: #FFFFFF; */
    background-color: #12336c;
}

#map_ctrl .map-ctrl-tab .map-ctrl-icon-title {
    position: absolute;
    color: var(--font-white);
    background-color: var(--tool-bg);
    justify-self: center;
    white-space: nowrap;
    font-size: small;
    transition: 0.2s;
    display: none;
    bottom: -1.75em;
    border-radius: 20px;
}

#map_ctrl .map-ctrl-menu {
    position: absolute;
    /* color: #D8D8D8; */
    color: #12336c;
    /* background: #151C21 0% 0% no-repeat padding-box; */
    background: #fff;
    /* border: transparent; */
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 0em 0.8em 0em 0.8em;
    font-size: 0.7rem;
}

#map_ctrl .map-ctrl-menu .title {
    padding: 0.5em 1.5em 0.5em 1.5em;
    text-align: center;
    /* background: #1D272E 0% 0% no-repeat padding-box; */
    background: #fff;
    border-radius: 0.5em 0.5em 0em 0em;
    font-weight: bold;
    margin: unset;
}

#map_ctrl .map-ctrl-menu .title i {
    position: absolute;
    right: 1em;
    top: 0.75em;
}

#map_ctrl .map-ctrl-menu .custom-scrollbar {
    overflow-x: auto;
    max-height: calc(100vh - 11em);
    padding-bottom: 0.5em;
}

#map_ctrl .map-ctrl-menu .custom-item-title {
    margin: 0.5em 0.5em 0.5em 1em;
    color: #3696d7;
    font-weight: bold;
}

#map_ctrl .map-ctrl-menu .custom-item {
    display: flex;
    margin: 0.5em 1.5em;
}

#map_ctrl .map-ctrl-opacity select {
    padding: 0.25em .75rem 0 0px;
    border: none;
    border-bottom: 0.1em solid var(--text-light);
    color: var(--text-light);
    background-color: transparent;
    cursor: pointer;
}

#map_ctrl .map-ctrl-opacity option {
    color: #555;
}

#map_ctrl .map-ctrl-layer-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
}

#map_ctrl .map-ctrl-drag-part {
    cursor: grab;
}

.custom-box {
    position: relative;
    width: 0.8em;
    height: 0.8em;
    /* border: 0.15em solid #FFFFFF; */
    border: 0.15em solid #b5b5b5;
    border-radius: 0.25em;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease-in;
    background-color: #FFFFFF;
    padding: 0.1em;
    align-self: center;
    margin-right: 0.5em;
    flex-shrink: 0;
}

.custom-box[type='radio']:checked {
    content: '';
    transition: all 0.2s ease-in;
    background-color: #2861B5;
}

.custom-box[type='checkbox']::after {
    font-family: 'Font Awesome 5 Free';
    color: #2861B5;
    content: '';
    font-weight: bold;
    font-size: .8em;
    left: -0.15em;
    top: -0.75em;
    transition: all 0.2s ease-in;
    position: relative;
}

.custom-box[type='checkbox']:checked::after {
    font-family: 'Font Awesome 5 Free';
    color: #2861B5;
    content: '\f00c';
    font-weight: bold;
    font-size: .8em;
    left: -0.15em;
    top: -0.75em;
    transition: all 0.2s ease-in;
    position: relative;
}

/* 天氣圖示說明 */
/*彈跳視窗主體*/
/* #weather_icon_info_modal {
    display: none;
} */

/* .cover {
    position: absolute;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pop-up-window {
    max-width: 1200px;
    border-radius: 5px;
    overflow: auto;
    font-size: 18px;
}

.pop-up-top {
    position: relative;
    background-color: #FFFFFF;
    height: 64px;
}

.pop-title {
    text-align: center;
    font-size: 22px;
    line-height: 64px;
}

.pop-close {
    position: absolute;
    right: 10px;
    top: 20px;
} */

.pop-up-body {
    background-color: #F4F4F4;
    border-top: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    /* min-width: 1063px; */
    min-width: auto;
    max-height: calc(95vh - 130px);
    overflow: auto;
    font-size: 1.125rem;
}

/* .pop-up-footer {
    background-color: #FFFFFF;
    height: 64px;
} */

.pop-up-btn-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.btn-submit {
    background-color: #2C5BA6;
    color: #FFFFFF;
    border: none;
    width: 80px;
    height: 35px;
    border-radius: 5px;
    font-size: 1.125rem;
}



@media screen and (max-width:1100px) {
    .pop-up-body {
        min-width: auto;
        max-width: 95vw;
        max-height: calc(88vh - 130px);
    }

    .news_date {
        width: 18%;
    }
}


@media screen and (min-width:576px) and (max-width: 1024px) {
    /* .pop-title {
        font-size: 18px;
    } */

    .modal-dialog {
        max-width: 650px;
        margin: 1.75rem auto;
    }
}

/*天氣圖示說明*/

.weather-icon-wrap {
    font-weight: 300;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
}

.flex-row {
    display: flex;
    align-items: center;
}

.two-col {
    flex: 50% 0 0;
}

.one-col {
    flex: 100% 0 0;
}

.weather-icon-block {
    margin: 15px 0;
}

.wicon-title {
    background-color: #009DE7;
    color: #FFFFFF;
    margin-right: 20px;
    padding: 8px;
    line-height: 1em;
    width: fit-content;
}

.wicon-box {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.wicon-unit {
    display: flex;
    /* margin-right: 15px; */
    align-items: center;
    flex: 1;
}

.no-flex {
    display: block;
    flex: 0;
}

.no-flex span {
    display: block;
    text-align: center;
}

.wicon-unit span {
    margin-right: 5px;
}

.mtf {
    margin-top: 25px;
    gap: 2rem;
}

.color-point img {
    display: block;
}

.color-txt-1 {
    float: left;
    margin-right: 30px;
}

.color-txt-3 {
    float: right;
}

.wicon-phenomenon .wicon-unit {
    /* margin-bottom: 25px; */
    flex-basis: 18%;
}

.uw-special {
    flex-basis: 75% !important;
    flex: 3;
}

@media screen and (max-width: 1280px) {
    .pop-up-body {
        font-size: 1rem;
    }

    .weather-icon-wrap {
        padding: 20px;
    }

    .weather-icon-block {
        margin: 3px 0;
    }

    .mtf {
        margin-top: 5px;
    }

    .wicon-phenomenon .wicon-unit>span img {
        width: 25px;
    }
}


@media screen and (max-width:1200px) {

    .wicon-phenomenon .wicon-unit {
        flex-basis: 30%;
        flex: 2;
    }

    .uw-special {
        flex-basis: 64% !important;
    }
}


@media screen and (max-width:1100px) {
    .two-col {
        flex: 100% 0 0;
    }

    .wicon-phenomenon .wicon-unit:nth-child(4n+1) {
        flex-basis: auto;
    }

    .wicon-phenomenon .wicon-unit:nth-child(4n+2) {
        flex-basis: auto;
    }

    .wicon-phenomenon .wicon-unit:nth-child(4n+3) {
        flex-basis: auto;
    }

    .wicon-phenomenon .wicon-unit:nth-child(4n) {
        flex-basis: auto;
    }

    .wicon-phenomenon .wicon-unit:nth-child(3n+1) {
        flex-basis: 30%;
    }

    .wicon-phenomenon .wicon-unit:nth-child(3n+2) {
        flex-basis: 30%;
    }

    .wicon-phenomenon .wicon-unit:nth-child(3n) {
        flex-basis: 30%;
    }

    .news_date {
        flex: 18%;
    }

    .news_title {
        flex: 82%;
    }
}

@media screen and (max-width: 1024px) {
    #header form.form-inline {
        justify-content: end;
        gap: 0.3rem;
    }

    .font-size {
        margin: unset;
    }
}

@media screen and (max-width: 991px) {
    #header form.form-inline {
        justify-content: start;
    }

    .font-size {
        margin: 0px 5px;
    }

    .news_date {
        flex: 20%;
    }

    .news_title {
        flex: 80%;
    }
}

@media screen and (max-width: 900px) {
    .news_date {
        flex: 22%;
    }

    .news_title {
        flex: 78%;
    }
}

@media screen and (max-width: 830px) {
    .news_date {
        flex: 24%;
    }

    .news_title {
        flex: 76%;
    }
}

@media screen and (max-width: 780px) {
    .news_date {
        flex: 28%;
    }

    .news_title {
        flex: 72%;
    }
}

@media screen and (max-width:768px) {
    .wicon-phenomenon .wicon-unit:nth-child(3n+1) {
        flex-basis: auto;
    }

    .wicon-phenomenon .wicon-unit:nth-child(3n+2) {
        flex-basis: auto;
    }

    .wicon-phenomenon .wicon-unit:nth-child(3n) {
        flex-basis: auto;
    }

    .wicon-phenomenon .wicon-unit:nth-child(2n+1) {
        flex: 47% 1 0;
    }

    .wicon-phenomenon .wicon-unit:nth-child(2n) {
        flex: 47% 1 0;
    }
}

@media screen and (max-width: 680px) {
    .news_date {
        flex: 34%;
    }

    .news_title {
        flex: 66%;
    }
}

@media screen and (max-width:576px) {
    .legend {
        left: .5em;
        top: 3em;
    }

    .legend>.item:not(:last-child) {
        margin-bottom: 2px;
    }

    .legend>.item {
        font-size: 0.7rem;
    }
    
    .weather-icon-block.flex-row {
        display: block;

    }

    .weather-icon-block.flex-row .wicon-title {
        margin-bottom: 25px;
    }

    .wi#con-phenomenon .wicon-unit:nth-child(2n+1) {
        flex: 100% 1 0;
    }

    .wicon-phenomenon .wicon-unit:nth-child(2n) {
        flex: 100% 1 0;
    }

    .news_date {
        flex: 40%;
    }

    .news_title {
        flex: 60%;
    }
}

@media screen and (max-width: 520px) {
    .top_row {
        flex-wrap: wrap;
    }

    .news_date {
        flex: 100%;
    }

    .news_title {
        flex: 100%;
        margin-left: 0;
    }
}

@media (max-width: 455px) {
    #global_weather_title {
        gap: .2rem;
    }

    #global_weather_title h3,
    #global_weather_title #tw_datetime {
        flex: 100%;
    }

    #global_weather_title #tw_datetime {
        font-size: 0.9rem;
    }
}

@media (max-width: 425px) {
    .product-hint {
        bottom: 8.5rem;
    }

    .show-btn {
        bottom: 7rem;
    }
}

@media (max-height: 450px) {
    .colorbars {
        margin-bottom: 5.5rem !important;
    }
    
    .colorbar-container>div:nth-child(1) {
        max-height: 3rem;
        overflow-y: auto;
    }

    .colorbar .colorbar-header {
        margin-right: unset !important;
    }

    .legend {
        left: 2.5em;
        top: 3em;
    }

    .legend>.item:not(:last-child) {
        margin-bottom: 2px;
    }

    .legend>.item {
        font-size: 0.7rem;
    }
}