﻿.nano {
    background: #ffffff;
    width: 100%;
    height: 550px;
}

    .nano > .nano-content {
        padding: 10px;
    }

    .nano > .nano-pane {
        background: rgba(255,255,255,.5);
        width: 8px;
    }
        /* 設定捲軸背景底色, 寬度 */
        .nano > .nano-pane > .nano-slider {
            background: rgba(0,0,0,.15);
        }
/* 設定捲軸顏色 */
body {
    background-color: #000000;
}
/* 地圖style */
.map {
    width: 100%;
    position: relative;
    height: 100%;
}

@media(min-width:980px) {
    .ol-zoom {
        top: 0.5em;
        right: .5em;
        left: unset;
    }

    .ol-rotate {
        width: 31px;
        height: 35px;
        top: -3.5em;
        right: .2em;
        transition: opacity .25s linear,visibility 0s linear;
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    .ol-rotate {
        width: 31px;
        height: 35px;
        top: 4em;
        right: .2em;
        transition: opacity .25s linear,visibility 0s linear;
    }

    .ol-zoom {
        top: .5em;
        right: .5em;
        left: unset;
    }
}

@media(min-width: 321px) and (max-width:767px) {
    .ol-rotate {
        width: 31px;
        height: 35px;
        top: 4em;
        right: .2em;
        transition: opacity .25s linear,visibility 0s linear;
    }

    .ol-zoom {
        top: 4em;
        right: .5em;
        left: unset;
        position: fixed;
    }
}

@media (max-width: 320px) {
    .ol-rotate {
        width: 31px;
        height: 35px;
        top: 4em;
        right: .2em;
        transition: opacity .25s linear,visibility 0s linear;
    }

    .ol-zoom {
        top: .5em;
        right: .5em;
        left: unset;
    }
}

.ol-rotate button {
    background-size: 30px auto;
    background-image: url(App_Themes/map/images/northarrow.svg);
    background-repeat: no-repeat;
    background-position: center top;
}

.ol-overviewmap .ol-overviewmap-box {
    border: 3px solid #FF0000;
}

/* 
        feature popup視窗 style
        */
.ol-popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 44px;
    left: -48px;
}

    .ol-popup:after, .ol-popup:before {
        top: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    .ol-popup:after {
        border-top-color: white;
        border-width: 10px;
        left: 48px;
        margin-left: -10px;
    }

    .ol-popup:before {
        border-top-color: #cccccc;
        border-width: 11px;
        left: 48px;
        margin-left: -11px;
    }

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}

    .ol-popup-closer:after {
        content: "✖";
    }

.no-close .ui-dialog-titlebar-close {
    display: none;
}

.ol-overviewmap button {
    right: -152px;
    left: unset;
    bottom: 1px;
    position: absolute;
}

.ol-overviewmap:not(.ol-collapsed) button {
    right: 2px;
    left: unset;
    position: absolute;
}

.tooltip {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    opacity: 0.7;
    filter: alpha(opacity=70);
    white-space: nowrap;
}

.tooltip-measure {
    opacity: 1;
    font-weight: bold;
}

.tooltip-static {
    background-color: #ffcc33;
    color: black;
    border: 1px solid white;
}

    .tooltip-measure:before, .tooltip-static:before {
        border-top: 6px solid rgba(0, 0, 0, 0.5);
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
        content: "";
        position: absolute;
        bottom: -6px;
        margin-left: -7px;
        left: 50%;
    }

    .tooltip-static:before {
        border-top-color: #ffcc33;
    }

#heatParams {
    background-color: #FFFFFF;
    left: 10px;
    top: 100px;
    width: 150px;
    height: 120px;
}

#container {
    height: 800px;
    min-width: 310px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 海洋生物動態 UI 樣式 */
.labelLegend-Marine {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: '微軟正黑體', sans-serif;
    font-size: 16px;
}

.labelLegend-Marine-title {
    background: #2c5282;
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    font-size: 18px;
}

.labelLegend-Marine-inner {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.labelLegend-Marine-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .labelLegend-Marine-item > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }

        .labelLegend-Marine-item > div:first-child span {
            font-weight: bold;
            color: #333;
            flex: 1;
            font-size: 14px;
        }

        .labelLegend-Marine-item > div:first-child > div {
            display: flex;
            gap: 6px;
        }

        .labelLegend-Marine-item > div:first-child a {
            color: #007bff;
            text-decoration: none;
            font-size: 16px;
            padding: 2px;
        }

            .labelLegend-Marine-item > div:first-child a:hover {
                color: #0056b3;
            }

    .labelLegend-Marine-item > div:last-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .labelLegend-Marine-item > div:last-child > div {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .labelLegend-Marine-item > div:last-child span:first-child {
            color: #666;
            font-size: 14px;
        }

.form-switch-GS {
    margin: 0;
}

    .form-switch-GS .form-check-input {
        width: 2em;
        height: 1em;
    }

.labelLegend-Marine-item input[type="text"] {
    width: 35px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 12px;
}


#water-quality-controls-wrapper {
    position: absolute;
    bottom: 20px;
    left: 400px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    flex-direction: column;
}

@media (max-width: 768px) {
    #water-quality-controls-wrapper {
        bottom: 150px;
        left: 6px;
    }
}

#water-quality-controls {
    background: rgba(255,255,255,0.95);
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/*#depthSlider {
            writing-mode: bt-lr;
            -webkit-appearance: slider-vertical;
            height: 150px;
        }*/

#depthValue {
    text-align: center;
    font-size: 13px;
    margin-top: 4px;
}

#water-quality-legend {
    background: white;
    padding: 4px 8px;
    border: 1px solid #aaa;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
}

.water-quality-legend-bar {
    width: 220px;
    height: 15px;
    background: linear-gradient(to right, indigo, purple, violet, yellow);
    margin: 4px 0;
    border: 1px solid #ccc;
}

.water-quality-legend-labels {
    display: flex;
    justify-content: space-between;
}

.choices__input--cloned {
    width: 82px !important;
}

/* theme legend css */
.density-scale {
    width: 238px;
    height: 61.78px;
    border: 1px solid #999;
    background: white;
    position: relative;

    @media (max-width: 768px) {
        right: 50px;
        top: 0px;
        width: 160px !important;
        left: unset !important;
        bottom: unset !important;
        position: fixed;
    }
}

.title {
    background: white;
    text-align: center;
    font-size: 11px;
    height: 18px;
    line-height: 18px;
    border-bottom: 1px solid #999;
    color: #333;
}

.color-bar {
    display: flex;
    height: 42.78px;
}

.color-segment {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #333;
    font-weight: bold;
}

.segment-1 {
    background: #e8f4fd;
}

.segment-2 {
    background: #81c784;
}

.segment-3 {
    background: #ffb74d;
}

.segment-4 {
    background: #dd5353;
}

.segment-5 {
    background: #7986cb;
}

/*圖層套疊-自然-測站MODAL*/
.modal-dialog-legend-nature-stattion {
    width: 800px !important;
    max-width: 800px !important;
}

.modal-GS {
    z-index: 100000 !important;
}

@media (max-width: 768px) {
    .modal-dialog-legend-nature-stattion {
        width: 96% !important;
        max-width: 96% !important;
    }
}
