/*!
 * JQNETS v1.0.0 (http://jqnets.com)
 * Copyright 2014-2016, Inc.
 * Licensed under MIT
 */

/*.forSafari::-webkit-scrollbar { width: 100 !important }*/

body {
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    background-color: #f4f5f7;
}

body,
html {
    height: 100%;
    font-family: "Microsoft YaHei","Microsoft JhengHei","Arial",sans-serif;
}

body,
button,
input,
select,
table,
textarea {
    outline: 0!important;
}

body,
button,
dd,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
input,
legend,
li,
ol,
p,
select,
table,
td,
textarea,
th,
ul {
    margin: 0;
    padding: 0;
}

<!--
.wrap {

    position: relative;
    overflow-y: auto;
    width: 100%;

    /*min-height: 100%;*/
    /*border-left: solid 1px #e0e0e0;*/
    /*border-right: solid 1px #e0e0e0;*/

    background-color: #fff;
    background-image: url(../images/sun.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-attachment:fixed;
    background-size: cover;


    /*
    // iOS 版本
    width: 100%;
    background-image: url(../images/sun.png);
    background-repeat: repeat;
    background-position: 50% 50%;
    background-attachment:fixed;
    background-size: cover;

     */
}



.wrap.night {
    background-image: url(../images/moon.png);
}

.wrap .gnb {
    z-index: 99;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 64px;
}
.wrap.night .gnb {
    background-image: url(../images/moon.png);
}

.navbar {

    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.45);
}

.navbar ul {
    list-style: none;
    text-align: center;
    padding: 0 10px;
    margin: 9px 0;
}
.navbar ul li {
    cursor: pointer;
    display: inline-block;
    width: calc(100% / 4 - 5px);
    text-align: -webkit-center;
    font-size: 12px;
    line-height: 1em;
    color: #446990;
}
.navbar ul li.active {
    color: #f45b69;
}

.navbar ul li .nav-icon {
    display: block;
    font-size: 26px;
    padding-bottom: 4px;
    z-index:999999;

/*position: fixed;*/

}

.article_container {
    width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 70px;
}

.monitor-station {
    list-style: none;
    text-align: center;
}
.monitor-station li{
    display: inline-block;
    border-radius: 16px;
    padding: 6px 3px;
    margin-left: -4px;
    background: rgba(0, 0, 0, 0);
    color: rgba(255, 255, 255, 0.45);
    width: 50px;
    font-size: 14px;
}

.monitor-station li.active {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

.monitor-now {
    position: relative;
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,1);
}
.monitor-now .monitor-now-icon {
    display: block;
    font-size: 7em;
    font-weight: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
    padding: 10px 0;
}
.monitor-now .monitor-info {
    cursor: pointer;
    position: absolute;
    top: -1px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    width: 20px;
    height: 20px;
    text-align: right;
}

.monitor-value {
    /*position: absolute;*/
    /*bottom: 65px;*/
    position: relative;
    width: calc(100% - 80px);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    color: rgba(0,0,0,0.35);
    margin: 20px;
    padding: 10px 20px;
    font-size: 14px;
}
.monitor-value table {
    width: 100%;
}
.monitor-value table tr {
    line-height: 24px;
}
.monitor-value table tr th {
    width: 150px;
    text-align: right;
}
.monitor-value table tr td {
    padding-left: 10px;
}
.monitor-value table tr th,
.monitor-value table tr td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
}
.monitor-value table tr:last-child th,
.monitor-value table tr:last-child td {
    border-bottom: none;
}

.monitor-value table tr td span {
    font-weight: bold;
    color: rgba(0,0,0,0.55);

}
.monitor-value .monitor-time {
    position: absolute;
    bottom: -15px;
    right: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

.monitor-tag {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    display: inline-block;
    margin-right: 5px;
}

.monitor-graph {
    position: relative;
    margin: 20px;
    padding: 10px;
    text-align: center;
    color: rgba(0, 45, 136, 0.65);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}
.monitor-graph .title {
    font-size: 14px;
}
.monitor-graph .unit,
.monitor-graph .time {
    font-size: 12px;
    position: absolute;
    left: 16px;
    width: 100%;
    text-align: left;
    color: rgba(255, 255, 255, 0.65);
}
.monitor-graph .unit{
    bottom: 18px;
}
.monitor-graph .time{
    bottom: 2px;
}

/*
 * Component: 指標顏色
 * -----------------
 */
.pm25_0{
    background-color:transparent;
}
.pm25_1{
    background-color:#9CFF9C;
}
.pm25_2{
    background-color:#31FF00;
}
.pm25_3{
    background-color:#31CF00;
}
.pm25_4{
    background-color:#FFFF00;
}
.pm25_5{
    background-color:#FFCF02;
}
.pm25_6{
    background-color:#FF9A00;
}
.pm25_7{
    background-color:#FF6464;
}
.pm25_8{
    background-color:#FF0000;
}
.pm25_9{
    background-color:#990000;
    color:rgba(255, 255, 255, 0.6);
}
.pm25_10{
    background-color:#CE30FF;
    color:rgba(255, 255, 255, 0.6);
}

.psi_0{
    background-color:transparent;
}
.psi_1{
    background-color:#00ff00;
}
.psi_2{
    background-color:#FFFF00;
}
.psi_3{
    background-color:#FF0000;
}
.psi_4{
    background-color:#800080;
    color:rgba(255, 255, 255, 0.6);
}
.psi_5{
    background-color:#633300;
    color:rgba(255, 255, 255, 0.6);
}

.aqi_0{
    background-color:transparent;
}
.aqi_1{
    background-color:#009865;
}
.aqi_2{
    background-color:#FFFF00;
}
.aqi_3{
    background-color:#FF9A00;
}
.aqi_4{
    background-color:#FF0000;
}
.aqi_5{
    background-color:#800080;
    color:rgba(255, 255, 255, 0.8);
}
.aqi_6{
    background-color:#633300;
    color:rgba(255, 255, 255, 0.8);
}


/*
 * Component: dialog
 * -----------------
 */
.dialog,
.dialog__overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.dialog {
    position: fixed;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    pointer-events: none;
}

.dialog__overlay {
    position: absolute;
    z-index: 1;
    background: rgba(55, 58, 71, 0.9);
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
    -webkit-backface-visibility: hidden;
}

.dialog--open .dialog__overlay {
    opacity: 1;
    pointer-events: auto;
}

.dialog__content {
    width: 90%;
    max-width: 560px;
    min-width: 290px;
    background: #fff;
    text-align: center;
    position: relative;
    z-index: 5;
    opacity: 0;
}

.dialog--open .dialog__content {
    pointer-events: auto;
}

.dialog .btn-close {
    position: absolute;
    top: -26px;
    right: -12px;
    width: 40px;
    height: 40px;
}
.dialog .btn-close .button_container {
    position: relative;
    height: 28px;
    width: 28px;
    cursor: pointer;
    z-index: 9;
}
.dialog .btn-close .button_container span {
    background: #fff;
    border: none;
    height: 1px;
    width: 100%;
    position: absolute;
    left: 0;
    cursor: pointer;
}
.dialog .btn-close .button_container span.top {
    top: 0px;
    -webkit-transform: translateY(8px) translateX(0) rotate(45deg);
        -ms-transform: translateY(8px) translateX(0) rotate(45deg);
            transform: translateY(8px) translateX(0) rotate(45deg);
}
.dialog .btn-close .button_container span.bottom {
    top: 16px;
    -webkit-transform: translateY(-8px) translateX(0) rotate(-45deg);
        -ms-transform: translateY(-8px) translateX(0) rotate(-45deg);
            transform: translateY(-8px) translateX(0) rotate(-45deg);
}



.dialog .monitor-rule {
    width: 100%;
    font-size: 12px;
    color: rgba(0, 0, 0, .65);
}
.dialog .monitor-rule thead {
    background: rgba(0, 0, 0, 1);
    color: rgba(255, 255, 255, 0.85);
    line-height: 2em;
    font-size: 14px;
}
.dialog .monitor-rule tbody tr {
    line-height: 2.2em;
}
.dialog .monitor-rule tbody tr:first-child th,
.dialog .monitor-rule tbody tr:first-child td {
    border-right: 1px solid rgba(0,0,0,.1);
}
.dialog .monitor-rule tbody tr:nth-child(2) th {
    background: rgba(0,0,0,.1);
}
.dialog .monitor-rule tbody tr:first-child td:last-child {
    border-right: none;
}

/* animation */
.dialog__overlay {
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
}

.dialog.dialog--open .dialog__content,
.dialog.dialog--close .dialog__content {
    -webkit-animation-duration: 0.4s;
    animation-duration: 0.4s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.dialog.dialog--open .dialog__content {
    -webkit-animation-name: anim-open;
    animation-name: anim-open;
    -webkit-animation-timing-function: cubic-bezier(0.6,0,0.4,1);
    animation-timing-function: cubic-bezier(0.6,0,0.4,1);
}

.dialog.dialog--close .dialog__content {
    -webkit-animation-name: anim-close;
    animation-name: anim-close;
}

@-webkit-keyframes anim-open {
    0% { opacity: 0; -webkit-transform: scale3d(0, 0, 1); }
    100% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); }
}

@keyframes anim-open {
    0% { opacity: 0; -webkit-transform: scale3d(0, 0, 1); transform: scale3d(0, 0, 1); }
    100% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
}

@-webkit-keyframes anim-close {
    0% { opacity: 1; }
    100% { opacity: 0; -webkit-transform: scale3d(0.5, 0.5, 1); }
}

@keyframes anim-close {
    0% { opacity: 1; }
    100% { opacity: 0; -webkit-transform: scale3d(0.5, 0.5, 1); transform: scale3d(0.5, 0.5, 1); }
}


/*
 * Component: 重要訊息
 * ------------------
 */
.news-list {
    list-style: none;
}
.news-list li{
    background: rgba(255, 255, 255, 0.5);
    color: rgba(0, 45, 136, 0.65);
    border-radius: 6px;
    margin: 0 10px 10px;
    padding: 12px 6px;
}
.news-list li div{
    display: inline-block;
    height: 100%;
    vertical-align: top;
}
.news-list li .news-date{
    width: 40px;
}
.news-list li .news-date span{
    display: block;
    text-align: center;
}
.news-list li .news-date .year{
    font-size: 12px;
}
.news-list li .news-date .day{
    font-size: 28px;
    font-weight: bold;
}
.news-list li .news-date .month{
    font-size: 12px;
}
.news-list li .news-content{
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    width: calc(100% - 60px);
    font-size: 14px;
    padding-left: 8px;
    min-height: 60px;
}
.news-list li .news-content .time{
    font-size: 12px;
    font-weight: bold;
    padding-bottom: 2px;
    color: rgba(0,45,136,0.35);
}
.news-list li .news-content .content{
    color: rgba(0, 0, 0, .45);
    text-align: justify;
}


/*
 * Component: 空汙預報
 * ------------------
 */
.preview-list {
    list-style: none;
}
.preview-list li{
    background: rgba(255, 255, 255, 0.5);
    /*background-color: rgba(194, 214, 198, 1);*/
    color: rgba(0, 45, 136, 0.65);
    border-radius: 6px;
    margin: 0 10px 10px;
    padding: 12px 6px;
}
.preview-list li div{
    display: inline-block;
    height: 100%;
    vertical-align: top;
}
.preview-list li .preview-psi{
    width: 55px;
}
.preview-list li .preview-psi span{
    display: block;
    text-align: center;
}
.preview-list li .preview-psi .title{
    font-size: 12px;
}
.preview-list li .preview-psi .value{
    font-size: 14px;
    font-weight: bold;
}
.preview-list li .preview-content{
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    width: calc(100% - 74px);
    font-size: 14px;
    padding-left: 8px;
}
.preview-list li .preview-content .time{
    font-size: 12px;
    font-weight: bold;
    padding-bottom: 2px;
    color: rgba(0,45,136,0.35);
}
.preview-list li .preview-content .content{
    color: rgba(0, 0, 0, .45);
    text-align: justify;
}

/*
 * Component: chart tooltip
 * ------------------------
 */
.chart-tooltip {
    text-align: left;

}
.chart-tooltip .tooltip-value {
    color: #446990;
}
.chart-tooltip .tooltip-unit {
    color: rgba(0, 0, 0, .45);
    font-size: 12px;
}
.chart-tooltip .tooltip-tag {
    display: inline-block;
    margin-right: 5px;
    border-radius: 10px;
    width: 9px;
    height: 9px;
}

/*
 * Component: 共用元件
 * ------------------
 */
.jq-hr {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, transparent, rgba(0, 0, 0, 0.2), transparent);
    background-image: -moz-linear-gradient(left, transparent, rgba(0, 0, 0, 0.2), transparent);
    background-image: -ms-linear-gradient(left, transparent, rgba(0, 0, 0, 0.2), transparent);
    background-image: -o-linear-gradient(left, transparent, rgba(0, 0, 0, 0.2), transparent);
    background-image: linear-gradient(left, transparent, rgba(0, 0, 0, 0.2), transparent);
    filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#d6d6d6', endColorstr='#d6d6d6',GradientType=0 );
}
.jq-hr.light {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-image: -moz-linear-gradient(left, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-image: -ms-linear-gradient(left, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-image: -o-linear-gradient(left, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-image: linear-gradient(left, transparent, rgba(255, 255, 255, 0.2), transparent);
    filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#d6d6d6', endColorstr='#d6d6d6',GradientType=0 );
}
.no-pd-bottom {
    padding-bottom: 0px !important;
}
.mg-top-10 {
    margin-top: 10px !important;
}

@media only screen and (min-width: 640px) {
    .wrap {
        width: 640px;
        margin: 0 auto;
    }

    .wrap .gnb {
        width: 640px;
        left: 50%;
        margin-left: -320px;
    }
}
