body {
    font-family: 'Microsoft JhengHei', 'Hind', 'Arial';
    font-size: 16px;
    color: #333;
    line-height: 1.4em;
}

::selection {
    background: #e08721;
    color: #fff;
    text-shadow: none;
}

strong {
    font-weight: 600;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    -o-transition: all .3s;
    -moz-transition: all .3s;
    -webkit-transition: all .3s;
    -ms-transition: all .3s;
    transition: all .3s;
}

a {
    color: #333;
}

a:hover,
a:focus {
    color: #e08721;
}

h1,
h2,
h3 {
    margin-top: 10px;
    line-height: 1.4em;
    text-transform: uppercase;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 24px;
}

p {
    margin: 0 0 5px;
}


img {
    max-width: 100%;
}

.clear,
.clear1 {
    clear: both;
}

.clear1 {
    display: none;
}

.topline {
    border: #f7982c solid;
    border-width: 10px 0 0 0;
}

/***** 區塊留白 *****/

.blank {
    height: 60px;
    clear: both;
}

.blank5 {
    height: 5px;
    clear: both;
}

.blank20 {
    height: 20px;
    clear: both;
}

.blank80 {
    height: 80px;
    clear: both;
}

.mtop20 {
    margin-top: 20px;
}

.p10 {
    padding: 10px;
}

.p50 {
    padding: 50px 0px;
}

.left {
    float: left;
}

.right {
    float: right;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

table {
    border: #d0d0d0 1px solid;
    margin-bottom: 10px;
}

caption {
    background-color: #e08721;
    padding: 5px 8px;
    font-weight: 600;
    color: #fff;
}

.table-responsive {
    display: block;
    min-width: 100%;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    line-height: 2.2em;
    border-bottom: 1px solid #d0d0d0;
}

table th,
table td {
    border: #d0d0d0 1px solid;
}

th {
    background-color: #d8eeff;
}

tr:nth-child(even) {
    background: rgba(0, 0, 0, .05);
}

tr:nth-child(odd) {
    background: rgba(255, 255, 255, .5);
}

::-moz-selection {
    background: #e08721;
    color: #fff;
    text-shadow: none;
}

/***** menu *****/
.navbar {
    margin-bottom: 0;
    background: #fff;
    -o-transition: all .6s;
    -moz-transition: all .6s;
    -webkit-transition: all .6s;
    -ms-transition: all .6s;
    transition: all .6s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

ul.navbar-nav {
    font-size: 16px;
}

.navbar-inverse ul.navbar-nav li a {
    padding-top: 30px;
    padding-bottom: 30px;
    color: #333;
}

.navbar-inverse ul.navbar-nav li a:hover {
    color: #e08721;
    opacity: 1;
    display: block;
}

.navbar-inverse ul.navbar-nav .active {
    color: #e08721;
    display: block;
}

.navbar-brand img {
    max-height: 60px;
    max-width: 200px;
}

.navbar-toggle {
    margin-top: 23px;
    margin-bottom: 23px;
}

.bar {
    background-color: #4075a8;
    border-radius: 50px;
    padding: 5px 15px;
    color: #fff;
}

/***** header *****/
#header {
    margin-top: 90px;
    background-image: url(../images/header.png);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.header-bg {
    height: 100vh;
}

.summarybg {
    background-image: url(../images/homebg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.summary-box {
    width: 100%;
    background-color: #F4F4F4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    margin-bottom: 25px;
    padding: 20px;
    position: relative;
    margin: -180px 0 0;
    display: inline-block;
}

.summary-box h2 {
    margin: 20px 0;
}

.summary-icon {
    margin-top: 30px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6em;
}

.summary-icon img {
    width: 230px;
    padding: 30px;
}

#home-img {
    background-image: url(../images/home2.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px;
}

.title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.6em;
}

.title h2 {
    margin: 0;
    font-size: 20px;
}

.title .line {
    width: 50px;
    height: 2.5px;
    background-color: #f7982c;
    margin: 0px auto;
}

.item-box {
    display: block;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    margin-bottom: 25px;
}

.box-img {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    height: 350px;
}

.box-title {
    padding: 10px;
    text-align: center;
    color: #333;
}

.box-title h3 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.box-title p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.witness-item {
    background-color: #FFE150;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    border-radius: 0% 0% 60% 0% / 0% 0% 20% 0%;
    padding: 40px 15px 15px 15px;
    min-height: 200px;
    margin-bottom: 20px;
}

.btn-danger {
    width: 150px;
    padding: 10px 12px;
    border-radius: 15px;
    margin: 10px auto;
    display: block;
}

.btn-danger a {
    color: #fff;
}

/***** 內頁banner *****/
#banner {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    margin-top: 90px;
    height: 200px;
}

.about {
    background-image: url(../images/about.png);
}

.witness {
    background-image: url(../images/witness.png);
}

.login {
    background-image: url(../images/login.png);
}

.contact {
    background-image: url(../images/contact.png);
}

.activity {
    background-image: url(../images/activity.png);
}

.gray {
    background-color: #ececec;
    text-align: center;
}

.white {
    background-color: #fff;
}

.topup {
    margin-top: -250px;
    padding-top: 250px;
    padding-bottom: 50px;
}

.team {
    padding: 20px 0;
}

.team img {
    margin: 0 auto;
    display: block;
}

.team-item {
    padding: 20px;
    background-image: url(../images/teambg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
    min-height: 300px;
}

.team-line {
    border: #f7982c solid;
    border-width: 0 0 2px 0;
    width: 100%;
    clear: both;
}

#witness .witness-item {
    margin: 10px 10px 20px;
    width: 250px;
}

.content {
    max-width: 860px;
    margin: 0 auto;
}

/***** 聯絡我們 *****/
.cform {
    max-width: 800px;
    margin: 0 auto;
    height: auto;
}

.form-control {
    background-color: #fbfbfb;
    border: 1px solid #b7b7b7;
}

.cform .btn-submit {
    width: 100%;
    margin: 0 auto;
    display: block;
    padding: 5px 10px;
    background: #ff641b;
    border-color: #ff641b;
    border-radius: 4px;
    color: #fff;
}

/***** 分頁 *****/
#pagination {
    display: block;
    text-align: center;
}

ul.pagination {
    display: inline-block;
    padding: 0;
    margin-top: 50px;
}

ul.pagination li {
    display: inline;
}

ul.pagination li a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
}

ul.pagination li a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

ul.pagination li a:hover:not(.active) {
    background-color: #ddd;
}

/***** Footer *****/

footer {
    background: #e5e5e5;
    text-align: center;
    font-weight: 600;
    color: #000;
}

.footerLogo {
    width: 200px;
    margin: 0 auto 20px;
}

.footerLogo img {
    max-width: 90%;
}

footer ul {
    display: inline-block;
}

footer ul li {
    float: left;
    margin-bottom: 8px;
}

footer a {
    color: #000;
}

footer a:hover {
    color: #333;
}

.copyright {
    font-size: 14px;
    background-color: #222;
    padding: 10px 0;
    color: #fff;
    text-align: center;
}

#gotop {
    position: fixed;
    padding: 8px 8px 8px 12px;
    right: 20px;
    bottom: 30px;
    background: rgb(184 184 184 / 70%);
    border-radius: 3.125rem;
    text-align: center;
    transition-duration: 300ms;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
    z-index: 1000;
    color: #fff;
}

#gotop .fas {
    padding-right: 5px;
    font-weight: 700;
}

#gotop:hover {
    background: #f7982c;
}

@media (min-width: 992px) and (max-width: 1199px) {}

@media (min-width: 768px) and (max-width: 991px) {}

@media (max-width: 767px) {

    ul.navbar-nav {
        padding-bottom: 50px;
    }

    .navbar-collapse {
        border: 0;
    }

    .navbar-inverse ul.navbar-nav li a {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .blank80 {
        padding: 50px 0px;
    }

    .rwdtable {
        border: 0;
    }

    .rwdtable thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .rwdtable tr {
        border-bottom: 2px solid #d0d0d0;
        display: block;
        margin-bottom: 20px;
    }

    .rwdtable td {
        display: block;
        text-align: right;
    }

    .rwdtable td:before {
        color: black;
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    .rwdtable td:last-child {
        border-bottom: 0;
    }

    h1,
    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    #header {
        background-position: 40% 0%;
        height: 200px;
        background-size: cover;
    }
    
    #home-img { 
        display: none;
    }

    #banner {
        background-position: 85% center;
        height: 140px;
    }

    .title {
        font-size: 16px;
    }

    .summary-box {
        margin-top: -90px;
    }

    .clear1 {
        display: block;
    }

    .box-img {
        height: 300px;
    }

}