﻿@charset "utf-8";
/*CSS Info ======================================================================
File Name: Layout.css
Editor: Eliam
CreateDate:2023/03/20
Last Editor: Rebecca
LastDate: 2023/05/24
Version: 4.0
---------------------------
【 Table of Contents 】
	DIV XHTML頁面
	Free Style
	使用jQuery
=================================================================================*/

/*===============================================================================
                         Pages typography setting
=================================================================================*/

#Wrap {
}
/*-----------------Content-----------------*/
#Content {

}

#Main {

}

h2 {
    padding-left: 42px;
    padding-bottom: 30px;
}
h3{
    text-align: center;
}
h2::before {
    content: '';
    display: inline-block;
    height: 1.8rem;
    line-height: 3rem;
    width: 0.8rem;
    background: #C18B5D;
    border-radius: 50px;
    position: absolute;
    top: 0.3rem;
    left: 1rem;
}
section {
/*    margin-bottom: 5rem;*/
    padding: 1rem;
    margin: 1rem 1rem 5rem 1rem;
}

section.fullWidth{
    margin: 0;
    padding: 0;
}
section.fullWidth .wrapper{
    padding: 3rem 1rem 5rem 1rem;
}
section p{
    margin-bottom: 1rem;
    line-height: 1.5rem;
}

.leftArea{
    position: relative;
}

.mapArea {
    background: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    z-index:0;
}

.block{
    border-radius: 10px;
    overflow: hidden; 
}

.monitorArea .block{
    margin-left: 1rem;
}

.leftArea .ctrlArea{
    position: absolute;
    margin: 1.5rem;
}

.rightArea .ctrlArea{
    background: #007AA1;
    text-align: center;   
}

.rightArea .ctrlArea select{
    color: #fff;
    border: none;
    background: none;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 0.8rem;  
    margin: 0;
    width: unset;
    min-width: unset;
    min-height: unset;
    line-height: unset;
    height: unset;
    border-radius: unset;
    appearance: auto;
}

    .rightArea .ctrlArea select:focus {
        outline: 2px dotted var(--subColor2);
    }


    .rightArea .datdArea {
        background: #DFEEFF;
        padding: 0.6rem;
        box-sizing: border-box;
    }

.Card{
    background-color: #fff;
    display: flex;
    justify-content: space-between; 
    justify-items: center;
    padding: 1rem 0;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.ctrlArea label {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

/*    Environment analysis setting
================================================== */

.mapImg_position{
    position:absolute;
}

    .mapImg_position img, .mapImg_position svg {
        width: 100%;
    }

.svg_Img{
    z-index:10;
}

/*svg設定*/
.stationGp .frame {
    fill: #ff4040;
    stroke-width: 1px;
    stroke: #fff;
    display: none;
}
.stationGp g{
  cursor: pointer;
}
.stationGp .select .frame{
    display: block;
}
   
.ctrlArea .backBtn{
    display: inline-block;
    text-align: center;
    font-size: 1.6rem;
    width: 2rem;
    line-height: 2rem;
    padding: 0.5rem;
    background: #007AA1;
    color: #fff;
    border-radius: 4px;
}
.ctrlArea .backBtn:hover{
    opacity: 0.9;
}
    .upDateTime{
        text-align: right;
        margin: 1rem 0 0.5rem 0;
    }

/*svg basic class setting*/

/*其他縣市*/
.otherCounty {
    fill: #a0a0a0;
    isolation: isolate;
    opacity: .4;
}
.county {
    fill: #caeef9;
    stroke: #69aff4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2px;
}

.frame {
    fill: #ff4040;
}

    /* 相關內容 */

    .relatedIns{
        background: #DFEEFF;
    }
    .gridBox{
        display: grid;
        gap: 1rem;
        height: 100%;
        align-content: space-around;
    }
    .gridBox.two{
        grid-template-columns: repeat(2, 1fr);
    }
    .gridBox.three{
        grid-template-columns: repeat(3, 1fr);
       
    }
    .gridBox.four{
        grid-template-columns: repeat(4, 1fr);
    }

    .insArea.block{
        background: #fff;
        align-content: end;
        position: relative;
    }

    .insArea h4{
        padding: 1rem;
        background: #3A79C2;
        color: #fff;
        text-align: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .insContent{
        margin-bottom: 1rem;
        vertical-align: bottom;
        margin-top: 3.5rem;
    }
    .insBox , .txtBox , .btnArea{
        margin: 1rem;
    }
    .popSci .insBox{
        margin: 0;
    }

    .popSci .popSciBlock {
        position: absolute;
        top: 3.8rem;
    }

    .relatedIns .linkArea{
        margin-top: 3rem;
    }

    .relatedIns .linkArea .moreBtn{
        width: 100%;
        font-size: 1.6rem;
        padding: 1.6rem 1rem;
        box-sizing: border-box;
    }

        .relatedIns .linkArea .moreBtn:nth-child(even) {
            background: var(--mainColor4);
        }
    .relatedIns .linkArea .moreBtn:nth-child(even):hover{
        box-shadow: #DFEEFF 0 0 0 2px, #C18B5D 0 0 0 4px;
    }

    /* 資料下載 */
.dataDownLoad h3{
    text-align: left;  
    border-bottom: 2px solid var(--mainColor1);  
    margin-bottom: 1rem;
    position: relative;
}
.dataDownLoad h3::before{
    content: '';
    display: block;
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50px;
    background: var(--mainColor1); 
    position: absolute;
    left: -0.8rem;
    bottom: -0.45rem;
}
.dataDownLoad .dataArea.gridBox{
    grid-template-columns: repeat(4, 1fr);
}
.dataDownLoad .dataItem {
    /* display: block; */ /* duplicate display，會被下方 display: flex 覆蓋 (源碼修正) */
    padding: 1.6rem 1rem;
    background: #DFEEFF;
    color: var(--TextColor);
    font-size: 1.2rem;
    line-height: 1.4rem;
    text-align: center;
    border-radius: 4px;
    display: flex;
    justify-content: center;
}
.dataDownLoad .dataItem:hover{
    background: var(--mainColor3);
    color:#fff;
    font-weight: bold;
}

/*相關連結*/

.articleSet p {
    margin-bottom: 1rem;
    line-height: 1.5rem;
}
    .articleSet > .articleSet p:last-child {
        margin-bottom: 0;
    }
/*article ul, article ol,*/ .articleSet address, .articleSet {
    padding-bottom: 1rem;
}

article ul li, article ol li {
    padding-bottom: 0.5rem;
}

.articleIndent p {
    text-indent: 2rem;
}
.LinkZone {
    display: flex;
}

.LinkArea {
    width: calc(35.33% - 2rem);
}
    .LinkArea + .LinkArea {
        margin-left: 2rem;
    }
    .LinkArea li {
        padding: 0.5rem 0;
        line-height: 1.4rem;
    }

        .LinkArea li a::after {
            content: "\f08e";
            font-family: 'Font Awesome 6 Free', sans-serif; /* 加 fallback generic family (源碼修正) */
            font-weight: 900;
            text-align: center;
            padding-left: 0.5rem;
            display: inline-block;
            font-size: 0.8rem;
            color: #C18B5D;
        }


        .LinkArea li a {
            color: #000;
            font-weight: bold;
            text-indent: 0;
        }

            .LinkArea li a:hover{
                text-decoration: underline;
                color: #2E4F4E;
            }


/*----------------- RWD -----------------*/

@media only screen and (min-width: 76.25em) and (max-width: 86.1875em) { /*1220~1379*/

}

@media only screen and (min-width: 61.0525em) and (max-width: 76.1875em) { /*977~1219*/
    .dataDownLoad .dataArea.gridBox {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (min-width: 48em) and (max-width:61em) { /*768~976*/
    .flexBox {
        display: block;
    }

    .mapArea {
        height: 80vh;
        position: relative;
        margin-bottom: 1rem;
    }
    .dataDownLoad .dataArea.gridBox {
        grid-template-columns: repeat(3, 1fr);
    }

    .LinkZone {
        display: block;
    }

    .LinkArea + .LinkArea {
        margin-left: 1rem;
    }

    .LinkArea {
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }
    .gridBox.four {
        grid-template-columns: repeat(2, 1fr);
    }
    .monitorArea .block {
        margin-left: 0;
    }
}

@media only screen and (max-width: 47.9735em) { /*767↓*/

    h2 {
        font-size: 1.6rem;
        padding-left: 34px;
        padding-bottom: 0;
    }

    h3 {
        text-align: center;
        font-size: 1.4rem;
    }

    h2::before {
        height: 1.4rem;
        line-height: 2rem;
        width: 0.5rem;
        top: 0.25rem;
        left: 1rem;
    }

    .moreBtn {
        padding: 0.5em 0.7rem;
        width: 5rem;
        font-size: 1rem;
    }

    section {
        margin-bottom: 2rem;
    }

    .monitorArea {
        display: block;
    }

    section.fullWidth {
        margin: 0;
        padding: 0;
    }

    section p {
        margin-bottom: 1rem;
        line-height: 1.2rem;
    }

    .leftArea {
        position: relative;
    }

    .datdArea h4 {
        text-align: center;
        font-size: 1.2rem;
    }
    .station {
        font-size: 1.6rem;
    }

    .relatedIns .linkArea .moreBtn {
        font-size: 1.2rem;
        padding: 1.4rem 0.8rem;
    }

    .mapArea {
        height: 60vh;
        position: relative;
        margin-bottom: 1rem;
    }


    .monitorArea .block {
        margin-left: 0;
    }

    .leftArea .ctrlArea {
        position: absolute;
        margin: 1rem;
    }

    .relatedIns .gridBox {
        display: block;
    }

    .insArea.block {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .relatedIns .linkArea .moreBtn {
        margin-bottom: 1rem;
    }

    .dataDownLoad .dataArea.gridBox {
        grid-template-columns: repeat(1, 1fr);
    }

    .LinkZone {
        display: block;
    }

    .LinkArea + .LinkArea {
        margin-left: 1rem;
    }

    .LinkArea {
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }

}

@media only screen and (max-width: 23.4375em) { /*375↓*/
    .mapArea {
        height: 70vh;
    }
}