﻿#viewDiv {
    margin: 0 auto;
    height: calc(100vh - 100px);
}

#mapLoading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

    #mapLoading .spinner {
        width: 50px;
        height: 50px;
        border: 6px solid #f3f3f3;
        border-top: 6px solid #436850;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*垂直排列版本*/
.myBasemapBtn_valign {
    font-size: 0.75rem; /* 調整 icon 大小 */
    padding: 10px 14px; /* 加大按鈕區域 */
    display: flex; /*垂直排列*/
    align-items: center; /* 垂直置中 */
    gap: 6px; /* icon 與文字之間留空 */
    width: 80px;
    height: 80px;
}

.myBasemapBtn {
    font-size: 1.25rem; /* 調整 icon 大小 */
    padding: 10px 14px; /* 加大按鈕區域 */
    display: inline-block;
    align-items: center; /* 垂直置中 */
    gap: 6px; /* icon 與文字之間留空 */
    width: 80px;
    height: 100px;
    color: #333;
    border: 1px solid white;
    background-color: rgba(255, 255, 255, 1);
    margin-right: 5px;
}

    .myBasemapBtn:hover {
        /*background-color: rgba(255, 255, 255, 0.5);*/
        color: black;
        border: 1px solid white;
    }

    /* icon 跟文字顏色/大小 */
    .myBasemapBtn span {
        font-size: 1.75rem; /* icon 更大 */
    }

    .myBasemapBtn .label {
        font-size: 0.875rem;
        font-weight: bold;
        color: #333;
    }
.widgetsBar {
    background-color: black;
}

.toolBox {
    display: none; /*預設關閉*/
    width: 340px;
    border: 1px solid rgba(110, 110, 110, 0.3);
    /*border-radius:5px;*/
    padding: 15px;
    background-color: rgba(255,255,255, 1);
    position: absolute;
    top: 125px;
    left: 15px;
    /*box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;*/
}

.widgetsBarBottom {
    background-color: black;
    color: #FFFFFF;
    text-align: right;
    font-size: 0.8rem;
    padding: 0px 10px;
}

.widgetsInfo {
    margin: 0px 15px;
}

.miniControl {
    background-color: #FFF !important;
    font-size: 1rem;
    height: 28px;
    width: 100px;
    text-align: center
}

    .miniControl:hover, .miniControl:focus {
        transform: translate(0px) !important;
    }

    /* 行動裝置：左側 meta 與右側標題垂直堆疊，避免擠爆 */
    @media screen and (max-width: 540px) {
        .myBasemapBtn {
            
            width:50px;
            height:45px;
        }

            .myBasemapBtn span {
                font-size: 1.25rem;
            }

            .myBasemapBtn div label {
                display: none;
            }

        .toolBox {
            top: 120px;
            left: 0;
            right: 0;
            width: 100%;
        }
            .toolBox label {
                font-size: 1rem;
            }

    }
