@import url(a11y.css);

@media screen and (min-width: 1200px) {
    .my-navbar .navbar-toggler {
        display: none;
    }
}

body {
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: 0;
}

h2 {
    text-shadow: -1px -1px 5px #fff, 1px -1px 5px #fff, -1px 1px 5px #fff, 1px 1px 5px #fff;
}

.header {
    background-image: url(../images/Moenv/festival/Front/MdcPublicize_Front.jpg);
    background-position-x: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 109px;
}

.bulletin ul {
    list-style: url("<%=BasePath%>image/index_new/link-arrow.png");
    margin: 0.75em 0 0 0;
}

.item-inline > * {
    display: inline-block;
}

.w-100 {
    width: 100%;
}

.w-90 {
    width: 90%;
}

.w-75 {
    width: 75%;
}

.w-25 {
    width: 25%;
}

.h-75vh {
    height: 75vh;
}

.btn-info {
    color: #fff;
    background-color: #038393;
    border-color: #038393;
    width: 11.5em;
    font-size: 1em;
}

    .btn-info:hover {
        background-color: #008090;
        border-color: #008090;
    }

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.page {
    margin: 0 auto;
}

    .page * {
        font-family: 'Microsoft JhengHei';
    }

.log-msg {
    color: #e23;
    font-size: .875em;
}

.p-div div {
    padding-top: .25em;
    padding-bottom: .25em;
}

.nav-list {
    list-style: none;
    list-style-type: none;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    margin: 0;
}

    .nav-list li:hover {
        background-color: #eee;
    }

    .nav-list li a {
        color: #656565;
        text-decoration: none;
    }

    .nav-list li img {
        vertical-align: middle;
    }

.nav-btn {
    margin: .25em;
}

.white-background {
    background-color: rgba(235, 232, 232, 0.7);
}

.logandbulletin {
    background-image: url("../image/index_new/infobackground.jpg");
    background-position-x: center;
    background-size: cover;
    background-repeat: no-repeat
}

.log-title {
    padding: 0 !important;
}

    .log-title span {
        display: inline-block;
        margin: 0;
        padding: .25rem 1em;
        border-radius: .5em .5em 0 0;
    }

    .log-title a {
        color: #656565;
        text-decoration: none;
    }

    .log-title .normal {
        background-color: #fff4c6;
    }

    .log-title .certificate {
        background-color: #e5e5e5;
    }

        .log-title .certificate:hover {
            background-color: #ffc28f;
        }

.log label {
    margin: 0;
}

.bulletin ul {
    /* list-style: url("<%=BasePath%>image/index_new/link-arrow.png"); */
    list-style: url("../image/index_new/link-arrow.png");
    margin: 0.75em 0 0 0;
}

.bulletin a {
    color: #4d4d4d;
    text-decoration: none;
}

.bulletin li {
    margin-bottom: .7em;
    vertical-align: middle;
    border: solid #666;
    border-width: 0 0 1px 0;
    width: 95%;
}

.bulletin-title {
    margin: 0;
    width: 100%;
    padding: .33em 1em;
    background: #b3e3fa;
    display: inline-flex;
}

.bulletin .title {
    padding: 0;
    width: 20%;
    margin: 0;
}

.bulletin .link {
    padding: 0;
    width: 80%;
    margin: 0;
    text-align: right;
}

    .bulletin .link a {
        font-size: .875em;
        text-decoration: dashed #666 underline;
    }

        .bulletin .link a:hover {
            color: #aa8787;
            text-decoration: dashed #aa8787 underline;
        }

.data-statistics {
    background-color: #d1ccb8;
    padding: .01em 0 2em 0;
}

.inquire {
    background-image: url("../image/index_new/search_background.png");
    background-position: center;
    background-size: cover;
    padding: 0.001em 0 2em 0;
}

.relate {
    padding: 0 0 2em 0;
    margin-right: auto;
    margin-left: auto;
    width: 90%;
}

    .relate * {
        color: #81c77f;
    }

.links-ul {
    margin: 0;
    padding: 0;
    display: inline;
    text-align: left;
}

    .links-ul li {
        list-style: none;
        display: inline-block;
        width: 20%;
    }

        .links-ul li a {
            text-decoration: none;
            vertical-align: middle;
            text-align: center;
            display: inline-table;
            border: 1px solid #81c77f;
            height: 3em;
            width: 92%;
            margin: .25em 4%;
        }

            .links-ul li a:hover {
                background-color: #458535;
            }

                .links-ul li a:hover span {
                    color: #fff;
                }

            .links-ul li a span {
                display: table-cell;
                vertical-align: middle;
            }

.footer {
    background-color: #a1ceb7;
    padding: 1.75rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .footer * {
        color: #0d223c;
    }

    .footer p {
        font-size: .875em;
        margin: .25em 0;
    }

#mobileHeader {
    display: none;
}

#PCHeader a {
    white-space: nowrap;
    margin: 0.1em 0.25em;
    line-height: 2.5;
}

.share-links {
    display: inline-flex;
}

    .share-links a {
        margin: 0 0.25em;
    }

    .share-links img {
        width: 40px;
        height: 40px;
    }

        .share-links img:hover {
            transform: scale(1.125);
        }

.loginSelectArea div {
    margin-bottom: 1em;
}

.bigBtn {
    width: 11.5em;
}

.statistics-new {
    position: relative;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    flex-direction: column;
    /* 讓子元素縱向排列 */
    justify-content: center;
    /* 垂直居中子元素 */
    height: 100% !important;
    /* 確保佔滿父元素的全部高度 */
    background: none;
    border-radius: 0;
    margin: 0.25rem;
    padding: 0.5rem 0.25rem 0rem;
}

.statistics-unit {
    font-weight: normal;
    font-size: 0.8em;
}

/* 設定輪播容器的高度 */
#carouselExampleControls {
    overflow: hidden;
}

.carousel-item {
    color: #fff;
    background: #000;
}

    .carousel-item img {
        object-fit: contain; /* 保持圖片原有比例且完全顯示 */
        margin: auto; /* 中心對齊圖片 */
        max-height: 100%;
        position: absolute; /* 絕對定位圖片 */
        top: 50%; /* 將圖片頂部設定在容器的50%位置 */
        left: 50%; /* 將圖片左邊設定在容器的50%位置 */
        transform: translate(-50%, -50%); /* 使用transform來調整圖片的確切位置 */
        width: auto; /* 設定圖片寬度為自動，依比例調整 */
        height: auto; /* 設定圖片高度為自動，依比例調整 */
    }

.carousel-control-prev-icon {
    background-image: url(../images/Carousel/left-arrow.png);
}

.carousel-control-next-icon {
    background-image: url(../images/Carousel/right-arrow.png);
}

@media screen and (min-width: 1200px) {
    .my-navbar {
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

        .my-navbar .navbar-nav {
            -ms-flex-direction: row;
            flex-direction: row;
        }

            .my-navbar .navbar-nav .nav-link {
                padding-right: 0.5rem;
                padding-left: 0.5rem;
            }

        .my-navbar > .container,
        .my-navbar > .container-fluid {
            -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
        }

        .my-navbar .navbar-collapse {
            display: -ms-flexbox !important;
            display: flex !important;
            flex-basis: auto;
        }

    .page {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav-list li {
        display: inline-block;
        box-sizing: border-box;
    }

        .nav-list li a {
            display: block;
            font-size: 1.33em;
            padding: .5em .75em;
        }

    .logandbulletin {
        padding: 1.5em 0;
    }

    .top-content {
        display: inline-flex;
    }

    .log {
        margin-right: 2%;
        width: 25%
    }

    .statistics {
        padding: .33em 3em;
        border: 1px solid #f7fafa;
        margin: 0.5em .5em;
    }

        .statistics .data {
            font-size: 2.33em;
        }

    .statistics-new {
        border: 1px solid #f7fafa;
        display: flex;
        align-items: center
    }

        .statistics-new .data {
            font-size: 1.5em;
            font-weight: bold;
        }

    .inquire br {
        display: none;
    }

    .inquire img {
        margin: 1em;
    }

    .enter {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1122px) {
    .data {
        display: block; /* 讓span內容獨佔一行 */
    }
}


@media screen and (min-width:840px) and (max-width:1199.98px) {
    .header {
        background-image: url(../images/Moenv/index_new/New_Banner_nxl.png);
        background-position-x: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 109px;
    }

    .nav-list {
        text-align: left;
    }

        .nav-list li a {
            display: block;
            font-size: 1.33em;
            padding: .5em .75em;
        }

        .nav-list li img {
            width: 1.5em;
        }

    .logandbulletin {
        padding: 1.5em 0;
    }

    .top-content {
        display: inline-flex;
    }

    .log {
        margin-right: 2%;
        width: 33%
    }

    .log-title a, .log-title .certificate {
        display: none;
    }

    .statistics {
        padding: .33em 0;
        border: 1px solid #f7fafa;
        width: 24%;
    }

        .statistics .data {
            font-size: 2em;
            display: block;
        }

    .statistics-new {
        border: 1px solid #f7fafa;
        display: flex;
        align-items: center
    }

        .statistics-new .data {
            font-size: 1.5em;
            font-weight: bold;
        }

    .statistics-unit {
        font-weight: normal;
        font-size: 0.7em;
    }

    .inquire img {
        width: 20%;
        margin: 0.5em 0.5em;
    }

    .links-ul li {
        width: 25%;
    }

    .enter {
        display: none;
    }

    .footer {
        flex-direction: column;
    }
}

@media screen and (min-width: 576px) and (max-width:839.98px) {
    .header {
        background-image: url(../images/Moenv/index_new/New_Banner_nxl.png);
        background-position-x: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 109px;
    }

    .nav-list {
        text-align: left;
    }

        .nav-list li a {
            display: block;
            font-size: 1.33em;
            padding: .5em .75em;
        }

        .nav-list li img {
            width: 1.5em;
        }

    .log {
        max-width: 20em;
        margin: auto;
    }

    .statistics {
        padding: .33em 0;
        border: 1px solid #f7fafa;
        width: 49%;
        margin: .2em 0;
    }

        .statistics .data {
            font-size: 2em;
        }

    .statistics-new {
        border: 1px solid #f7fafa;
    }

        .statistics-new .data {
            font-size: 1.3em;
            font-weight: bold;
        }

    .statistics-text-new p {
        font-size: 1.2em;
    }

    .inquire img {
        margin-left: .5em;
        margin-right: .5em;
        margin-bottom: 0.5em;
    }

    .inquire .top-img {
        margin-bottom: 1em;
    }

    .links-ul li {
        width: 33.33%;
    }

    .TestSiteTitle div {
        width: 12em;
        font-size: 3rem;
    }

    .footer {
        flex-direction: column;
    }
}

@media screen and (min-width: 992px) {
    .w-lg-33 {
        width: 33%;
    }

    .w-lg-40 {
        width: 40%;
    }

    .w-lg-45 {
        width: 45%;
    }

    .w-lg-50 {
        width: 50%;
    }

    .w-lg-60 {
        width: 60%;
    }

    .w-lg-66 {
        width: 66%;
    }

    .carousel-item {
        height: 45vh;
    }

        .carousel-item img {
            max-height: 100%;
        }

    .item-inline-new .d-lg-flex {
        align-items: stretch !important;
    }

    .item-inline-new {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .statistics-new.card {
        min-height: 130px;
    }
}

@media screen and (max-width: 991px) {
    .carousel-item {
        height: 30vh; /* 對小螢幕降低容器高度 */
    }

        .carousel-item img {
            max-height: 90%; /* 小螢幕上允許圖片佔據更多空間 */
        }

    .statistics-new.card {
        min-height: 165px;
    }
}

@media screen and (min-width: 768px) and (max-width:991px) {
    .carousel-item {
        height: 58vh;
    }

        .carousel-item img {
            max-height: 95%;
        }
}

@media screen and (min-width: 576px) and (max-width:767px) {
    .carousel-item {
        height: 48vh;
    }

        .carousel-item img {
            max-height: 90%;
        }
}

@media screen and (max-width:575.98px) {
    .header {
        background-image: url(../images/Moenv/index_new/New_Banner_nxl.png);
        background-position-x: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 5em;
    }

    .nav-list {
        text-align: left;
    }

        .nav-list li a {
            display: block;
            font-size: 1.2em;
            padding: .5em .75em;
        }

        .nav-list li img {
            width: 1.5em;
        }

    .log {
        max-width: 20em;
        margin: auto;
    }

    .statistics {
        padding: .33em 0;
        border: 1px solid #f7fafa;
        width: 80%;
        margin: .2em 0;
    }

        .statistics .data {
            font-size: 1.5em;
        }

    .statistics-new {
        border: 1px solid #f7fafa;
    }

        .statistics-new .data {
            font-size: 1.5em;
            font-weight: bold;
        }

    .statistics-text-new p {
        font-size: 1.3em;
    }

    .statistics-unit {
        font-size: 0.7em;
    }

    .inquire img {
        width: 50%;
    }


    .relate {
        width: 95%;
    }

    .links-ul li {
        width: 50%;
    }

        .links-ul li a {
            width: 98%;
            margin: .25em 1%;
        }

    .TestSiteTitle div {
        width: 12em;
        font-size: 3rem;
    }

    #mobileHeader {
        display: block;
        font-size: 0.8em;
    }

    .footer {
        flex-direction: column;
    }

    .carousel-item {
        height: 38vh;
    }
}

@media screen and (max-width:320.98px) {
    .p-2 {
        padding: 0.5rem 0rem !important;
    }
}

/*諮詢專線*/
.table {
    width: 98%;
    margin: 0 auto;
}

/*最新訊息*/
#NewsMoremaster {
    margin: 0 auto;
    font-size: 11pt;
}

a {
    text-decoration: none;
    color: #066;
}

    a:hover {
        font-weight: bolder;
    }

th, td {
    border-bottom-width: 1px;
    border-bottom-color: #999;
    border-bottom-style: dashed;
}

th {
    width: 8em;
    color: #C90;
    font-weight: normal;
}

tr {
    height: 3em;
    vertical-align: top;
}

/*新聞內文*/
#Showmaster {
    margin: 5px auto
}

    #Showmaster p {
        color: #444;
        padding: 1em 0 0 1em;
        border-top: 1px;
        border-top-style: dotted;
        border-top-color: #666;
        margin-top: 1em;
        white-space: pre-line;
        line-height: 1.5em;
    }

/*測試機字樣*/
.TestSiteTitle {
    color: #bd2620;
    font-size: 4em;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0.03em 0.03em 0.05em rgba(0,0,0, .2), 0.01em 0.01em 0 #fea42a, 0.02em 0.02em 0 #fea42a, 0.03em 0.03em 0 #fea42a, 0.03em 0.04em 0 #fea42a, 0.05em 0.05em 0 #fea42a, 0.05em 0.06em 0 #fea42a, 0.05em 0.07em 0 #fea42a;
}

#EndClose:focus {
    background-color: green;
}
