﻿* {
    font-family: Microsoft JhengHei;
}

.body-bg {
    background: url('../Images/background.png') no-repeat;
    background-size: 100% 100%;
}

.body-bg2 {
    background: url('../Images/Home/bodyBackground.png') no-repeat;
    background-size: 100% 100%;
    min-height: 100%;
}

.bg-light {
    /*background-color: rgba(166, 214, 227, 0.65) !important;*/
    background-color: #1C578F !important;
    /*font-weight: bold;*/
}

.bg-lightReNew {
    /*background-color: rgba(166, 214, 227, 0.65) !important;*/
    background-color: #556fb5 !important;
    /*font-weight: bold;*/
}

    .bg-lightReNew li:hover {
        background-color: #b569b1 !important;
    }

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 50px;    
}



/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    /*max-width: 280px;*/
}

/* header */
header {
    width: 100%;
    background-image: url('../images/bannerbg.png');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: center;
}

    header #logo {
        height: 100%;
        width: 100%;
        background: transparent;
    }

    header #logo a {
        display: inline-block;
        height: 100%;
        width: auto;
    }

    header #logo a img {
        height: 100%;
        object-fit: contain;
        object-position: left center;
        display: block;
    }

@media screen and (min-width:1021px) {
    header {
        height: 100px;
    }

        header #logo a img {
            width: auto;
        }
}

@media screen and (max-width:1020px) and (min-width:481px) {
    header {
        height: 100px;
    }
    
        header #logo a img {
            width: 65%;
        }
}

@media screen and (max-width:600px) and (min-width:481px) {
    header {
        height: 100px;
    }
    
        header #logo a img {
            width: 60%;
        }
}

@media screen and (max-width:480px) {
    header {
        height: 60px;
    }
    
        header #logo a img {
            width: 65%;
        }
    
    .login-side {
        top: 8px;
        right: 15px;
        font-size: 0.8rem;
    }
}

.login-side {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

    .login-side .login-side-account, .login-side .login-side-num {
        margin-top: 5px;
        background-color: rgba(255, 255, 255, 0.70);
        padding: 1px 8px;
    }

        .login-side .login-side-account a, .login-side .login-side-account font {
            color: #696969;
        }

    .login-side .login-side-num {
        text-align: right;
        color: #585858;
    }

@media (max-width: 748px) {
    .login-side {
        display: block;
        top: 10px;
        right: 15px;
        font-size: 0.9rem;
    }
}

/* container */
.container {
    max-width: 95%;
    min-height: calc(100vh - 220px - 100px);
}

.pagination-container {
    text-align: center;
}

/* footer */
footer {
    width: 100%;
    text-align: center;
    /*background: rgba(147, 205, 221, 0.65) !important;*/
    background-color: #1C578F !important;
    /*color: rgba(0,0,0,0.9);*/
    color: #FFFFFF;
    padding: 8px 0;
    font-size: 1.3rem;
}

    footer a {
        color: rgba(0,0,0,0.9);
    }

/* 無障礙標章固定大小 */
footer a[title*="無障礙網站"] img,
footer img[alt*="無障礙"],
footer img[src*="無障礙標章"] {
    width: 176px !important;
    height: 62px !important;
    max-width: 176px !important;
    max-height: 62px !important;
    min-width: 176px !important;
    min-height: 62px !important;
}

.h2_title {
    border-left: 8px solid rgb(34, 34, 34);
    border-bottom: 1px solid rgb(34, 34, 34);
    padding: 2px 4px;
    margin-bottom: 20px;
    font-size: 1.75rem;
}

.h2_index_title {
    font-weight: bolder;
    margin-bottom: 20px;
    font-size: xx-large;
}

.h2_index_1 {
    border-bottom: 1px solid rgb(74, 126, 187);
    padding: 15px 0;
}

.h2_index_2 {
    border-bottom: 10px solid rgb(75,172,198);
    padding: 15px 0;
}

.count {
    padding: 10px 0;
    font-weight: bold;
}

/* table */
.table thead th {
    background-color: #1c578f;
    color: white;
}

.table thead th, .table tbody td {
    /*text-align: center;*/
}

.table {
    background: #f0f8ff;
}

    .table tbody tr:nth-of-type(2n) {
        background: #fff;
    }

/* search-div */
.search {
    margin-bottom: 20px;
    padding-left: 15px;
    border-top-left-radius: 7px 7px;
    border-top-right-radius: 7px 7px;
    border-bottom-left-radius: 7px 7px;
    border-bottom-right-radius: 7px 7px;
    border: 1px solid #000000;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.5);
}

    .search > label {
        color: #1c578f;
        font-weight: bold;
    }

.form-control {
    display: initial;
    width: auto;
}

.about-in h5.card-title {
    font-size: 1.75rem;
    letter-spacing: 1px;
    padding: 0 10px;
}

.card-title {
    letter-spacing: 1px;
    text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.48);
}

.about-in .serv-cont-wthree {
    padding: 2.5em 2em;
}

@media(min-width: 573px) {
    .about-in .serv-cont-wthree {
        padding: 2.5em 0;
    }
}

/* Portfolio Filters */
#filters {
    margin-top: 10px;
    margin-bottom: 40px;
    text-align: center;
    display: block;
    float: none;
    z-index: 2;
    position: relative;
    text-align: center;
}

    #filters ul li {
        display: inline-block;
        margin: 0 5px;
    }

        #filters ul li a {
            display: block;
        }

            #filters ul li a h5 {
                /*background: none repeat scroll 0 0 #f7f7f7;*/
                background: none repeat scroll 0 0 #D0D0D0;
                border-radius: 4px;
                /*color: #222222;*/
                color: #4F4F4F;
                font-weight: bold;
                display: inline-block;
                font-family: 'LatoRegular',sans-serif;
                font-size: 12px;
                line-height: 20px;
                margin-bottom: 5px;
                padding: 10px 22px;
                text-transform: uppercase;
                transition: all 0.3s ease-in-out 0s;
            }

            #filters ul li a:hover h5, #filters ul li a.active h5 {
                /*background: orange !important;*/
                background: #0072E3 !important;
                /*color: #fff;*/
                color: #F0F0F0;
                font-weight: bold;
                text-decoration: none;
            }

            #filters ul li a h5 {
                font-size: 1.75rem !important;
            }

ul.tab-title {
    width: 90%;
    text-align: left;
    display: -webkit-inline-box;
}

    ul.tab-title li {
        width: 180px;
    }

        ul.tab-title li a h5 {
            width: 180px;
            text-align: center;
        }

/* index */
.index_div {
    display: none;
}


    .index_div a {
        /*color: rgb(49,133,156);*/
        color: black;
        font-size: x-large;
        font-weight: bolder;
        text-decoration: none;
    }

        .index_div a:hover {
            color: rgba(49, 133, 156, 0.5);
        }

@media (max-width: 748px) {
    .index_div {
        display: flex;
        padding-top: 20px;
    }
}

.index_div_title {
    font-size: x-large;
    font-weight: bold;
    color: white;
    background: rgb(75,172,198);
    padding: 10px;
}

.index_div_content {
    color: rgb(49,133,156);
    font-size: x-large;
    font-weight: bolder;
    text-decoration: none;
    background: rgba(217, 217, 217, 0.80);
    padding: 30px 0;
}

.index_div2_title {
    font-size: x-large;
    font-weight: bold;
    color: black;
    border-bottom: 2px solid rgb(74, 126, 187);
    padding: 15px 0;
}

.index_div2_content {
    font-size: large;
    font-weight: bold;
    color: rgb(64,64,64);
    border: 1px solid rgb(127, 127, 127);
    border-radius: 10px;
    padding: 40px 20px 20px 20px;
    box-shadow: 2px 2px rgba(155, 155, 155, 0.70);
    background: rgba(255, 255, 255, 0.80);
}

.title_bottomLine_div {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px;
}

    .title_bottomLine_div span {
        border-bottom: 5px #019858 solid;
    }

.index_div2_contentReNew {
    font-size: large;
    font-weight: bold;
    border: 1px solid rgb(127, 127, 127);
    border-radius: 10px;
    padding: 40px 20px 20px 20px;
    box-shadow: 2px 2px rgba(155, 155, 155, 0.70);
}

.btn-go {
    color: white;
    background: rgb(75,172,198);
    width: 160px;
}

    .btn-go:hover {
        background: rgba(75, 172, 198, 0.60);
    }
.btn-go2 {
    color: white;
    background: rgb(75,172,198);
    width: 250px;
    font-size:28px;
    float:right;
    height:50px;
    padding:1px;
}

    .btn-go2:hover {
        background: rgba(75, 172, 198, 0.60);
    }
/* icon */
.monitor {
    background: url('../images/monitor.png');
    width: 38px;
    height: 35px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin: 0 auto;
    display: inline-block;
}

.download {
    content: url('../images/download.png');
    height: 35px;
}

.logout {
    content: url('../Images/Home/logout.png');
    height: 35px;
    width: 35px;
    margin: 0px;
}

.preview {
    content: url('../images/preview.png');
    height: 35px;
}

.calendar {
    content: url('../images/calendar.png');
    height: 35px;
}

.loc {
    background: url('../images/loc.png');
    height: 35px;
    width: 23px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin: 0 auto;
    display: inline-block;
}

.more_monitor {
    content: url('../images/多元監測.png');
    width: 70%;
}

.ground_water {
    content: url('../images/地下水觀測井.png');
    width: 70%;
}

.map_search {
    content: url('../images/地圖查詢.png');
    width: 70%;
}

.info {
    content: url('../images/相關資訊.png');
    width: 70%;
}

.picture {
    background: url('../images/picture.png');
    height: 35px;
    width:45px;
    background-size:100% 100%;
    background-repeat:no-repeat;
    margin:0 auto;
    display: inline-block;
}

@media (min-width:1380px) {
    .more_monitor {
        width: 50%;
    }

    .ground_water {
        width: 50%;
    }

    .map_search {
        width: 50%;
    }

    .info {
        width: 50%;
    }
}

.pre-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
}

div.picStyle {
    padding: 20px;
    background-color: #DCEBF9;
    border-radius: 10px;
    margin: auto;
    margin-bottom: 20px;
}

    div.picStyle > img {
        background-color: #FFFFFF;
        width: auto;
        height: 100%;
        max-width: 1000px;
        max-height: 100%;
        cursor: pointer;
    }

/* 螢幕小於 1020px 時圖片縮小 */
@media screen and (max-width: 1020px) {
    div.picStyle > img {
        max-width: 90%;
        max-height: 90%;
    }
}

@media screen and (max-width: 768px) {
    div.picStyle > img {
        max-width: 85%;
        max-height: 85%;
    }
}

@media screen and (max-width: 480px) {
    div.picStyle > img {
        max-width: 80%;
        max-height: 80%;
    }
}

/* 回到最上方 */
#gotop {
    display: block;
    position: fixed;
    right: 50px;
    bottom: 50px;
    cursor: pointer;
    z-index: 1000;
    display: none;
}

    #gotop > img {
        opacity: 0.5;
    }

    #gotop > img:hover {
        opacity: 1.0;
    }

/* 右方快捷鍵 */
#rightShortcut {
    display: block;
    position: fixed;
    top: 35%;
    right: 0px;
    cursor: pointer;
    z-index: 1000;
    width: 70px
}

    /* 右方快捷鍵整體按鈕 / 連結透明度設定 */
    #rightShortcut button,
    #rightShortcut a {
        opacity: 0.75;
        transition: opacity 0.2s ease-in-out;
    }

        #rightShortcut button:hover,
        #rightShortcut a:hover,
        #rightShortcut button:focus,
        #rightShortcut a:focus {
            opacity: 1.0;
        }

    #rightShortcut img {
        opacity: 0.75;
        width: 70px;
        margin: 0px;
    }

        #rightShortcut img:hover {
            opacity: 1.0;
        }

/* 焦點樣式 - 無障礙網頁設計要求 */
/* 超連結焦點樣式 */
a:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Logo 連結焦點樣式 - 只圍繞 logo 圖片 */
header #logo a {
    outline: none; /* 移除預設 outline，使用自訂的 focus 樣式 */
    border-radius: 4px;
}

header #logo a:focus {
    outline: 4px solid #000000 !important;
    outline-offset: 3px !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3) !important;
}

/* 按鈕焦點樣式 */
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
.btn:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

/* 表單元件焦點樣式 */
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* 右方快捷鍵圖片焦點樣式 */
#rightShortcut img:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
    opacity: 1.0;
}

/* 回到頂端按鈕焦點樣式 */
#gotop:focus,
#gotop img:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
    opacity: 1.0;
}

/* 選單按鈕焦點樣式 */
.navbar-toggler:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

/* 下拉選單項目焦點樣式 */
.dropdown-menu a:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
    background-color: rgba(0, 0, 0, 0.2);
}

/* 上方功能列主選單與次選單銜接，避免滑鼠移動時產生空隙造成下拉選單立即收合 */
nav#TopMenuList .nav-item.dropdown {
    position: relative;
}

nav#TopMenuList .nav-item.dropdown > .dropdown-menu {
    top: 100%;
    margin-top: 0;
}


/* IndexReNew 頁面的連結焦點樣式 */
a.styleSetting:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}