@import url(http://fonts.googleapis.com/earlyaccess/cwtexfangsong.css);
@import url(http://fonts.googleapis.com/earlyaccess/cwtexhei.css);

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html,
body {
    margin:0;padding:0;
    height: 100%;
    width: 100%;
    font-size: 16px;
    
}

html {
    overflow-y: scroll;
    /*font-size:1em;*/
    margin:0;padding:0;
    
}

/* logo */
#home .logo {
    margin:0 auto;
    display:block;
}
.logo {
    
    display:block;
    color: #fff !important;
    text-align: center;
    background: #991F19;
    /*position:fixed;
    top:0;
    margin:0 0 0 -90px;
    left:50%;*/
    
    
}
a.logo:hover {
    background:#991f19;
}

.logo span {
    display: block;
    
}

.logo span+span {
    margin-top:5px;
}

.logo .primary {
    font-size: 1em;  
}

.logo .english {
    font-size: 0.5em;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    
    line-height:1.5;
}

.logo .catchcopy {
    font-size: 0.25em;
    line-height:1.25;
}
.main a.logo {
    
    height:65px;
    
}
.main .logo .primary {
    font-size:1em;
}
.main .logo .english {
    font-size:0.25em;
}
.main .logo .catchcopy {
    font-size:0.125em;
}
#home .logo {
    font-size:200%;
    width:180px;
    height:130px;
}


/* nav-brand */
.navbar-nav {
    
}
nav {
    margin:0;
    padding:0;
}

/* Home Page Carousel */
.carousel {
    position:relative;
    margin-top:-16px;
}
.carousel .logo {
    position:absolute;
    z-index:9999;
    font-size:200%;
    width:180px;
    height:130px;
    top:0;
    left:10%;
    padding:10px;
}
header.carousel {
    
    height: 90%;
}

header.carousel .item,
header.carousel .item.active,
header.carousel .carousel-inner {
    height: 100%;
}

header.carousel .fill {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}


/***** <i class="fa fa-home"></i> landing page -start- *****/

.langselect {
    font-size: 14pt;
    font-family: 'Roboto', 'DFKai-sb', '標楷體', sans-serif, serif;
    font-weight: bold;
    text-align: center;
    position: fixed;
    bottom: 50px;
    width: 400px;
    left: 50%;
    margin-left: -200px;
}

.langselect a {
    color: #000;
    padding-bottom: 12px;
    text-decoration: none;
}

.langselect a:hover {
    color: #B20000;
    background: url('../img/lang_hover.png') bottom center no-repeat;
}

#home {
    background: url(/img/bg.jpg) no-repeat center center fixed;
    display: table;
    height: 100%;
    position: relative;
    width: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


/*20160120
#home h1 .navbar-brand {
    margin: 10px;
}

#home .navbar-brand .primary {
    font-size: 50%;
    margin-top: -5px;
}

#home .navbar-brand .english {
    font-size: 25%;
}

#home .navbar-brand .catchcopy {}
*/

#home footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
}


/***** <i class="fa fa-home"></i> landing page -end- *****/

#google_map {
    /*display: table;*/
    height: 25%;
    position: relative;
    width: 25%;
}

.panel h2 {
    padding-left: .5em;
    margin-left: 1em;
    margin-bottom: 1.5em;
    border-left: 4px solid #991F19;
}

.item h2 {
    border:0;
}

.sidebar {
    height: 100%;
}

.navbar,
.navbar-inverse,
.navbar-fixed-top {
    border: 0;
    background: transparent;
}

.navbarcolor {
    border: 0;
    background: #991F19;
}


/*body,*/

body.main {
    font-family: 'Droid Serif',  sans-serif, serif;
    /*font-size:1.25em !important;*/
    background: rbga(255,255,255,0.25)  url('../img/bg_body.jpg') 0 0 fixed;
}

section {
    min-height:600px !important;
    overflow:auto;
}

nav+.container {}

.affix {
    top: 80px;
}



#navbar li {
    margin-top: 10px;
}

#navbar li a {
    color: #fff;
    padding-top: 14px;
}

#navbar li a:hover,
#navbar li a.active,
#navbar li a.active:hover {
    background: url("../img/dot.png") center top no-repeat;
}

#navbar li a.active,
#navbar li a.active:hover {
    opacity: 1;
}

#navbar li a:hover {
    color: rgba(256, 256, 256, 1);
    opacity: 0.5;
}


/* navbar center

*/

.navbar .nav.pull-center {
  float: none;
  margin: 0 auto;
  display:inline-block;
  *display:inline; /* ie7 fix */
  *zoom:1; /* hasLayout ie7 trigger */
  vertical-align: top;
}

.navbar-inner {
  text-align:center;
}



/***
webfont -start
***/

.fangsong {
    font-family: 'cwtexfangsong';
}

.hei {
    font-family: 'cwTeXHei';
}


/***
webfont -end
***/

body.main footer {
    padding-top: 48px;
    background: url('../img/bg_footer_repeat.png') 0 18px repeat-x;
    /*
    background:#9a2019;
    */
    color: #fff;
    width: 100%;
    
    font-size: 14px;
}

body.main footer .content {
    background: #9a2019;
    width: 100%;
    height: 100%;
}

body.main footer a {
    color: #fff !important;
}

body.main footer.footer {
    /*position: fixed;*/
    bottom: 0;
    width: 100%;
}

body.main footer .certification {
    text-align: center;
}

#index_news {
    background: #fff;
}

.spirit_row {
    margin-bottom: 1.5em;
    padding: 1em;
    border-bottom: 1px dotted #ccc;
    padding-top: 2em;
    padding-bottom: 1em;
}

.braces {
    color: #9B211A;
}

.braces small {
    margin-left: 1em;
    display: block;
}

.line_etc a {
    vertical-align: middle;
}

.products_detail {
    
    min-height:1000px;
    padding-bottom: 5em;
}

.products_detail h3 {
    border-bottom: 3px solid #9B211A;
    /*font-size:18px;*/
    padding-bottom: .5em;
    color: #9B211A;
}

.products_detail .products_detail_content {
    /*font-size:16px;*/
    padding-bottom: 1em;
    margin-left: 1em;
    margin-right: 1em;
}

.news_list {
    color: #7F7F7F;
    list-style: none;
    
    padding-top: 2em;
}

.news_list li {
    border-bottom: 1px dashed #ccc;
    line-height: 2;
}

.news_list a {
    text-decoration: none;
    color: #7F7F7F;
}

.news_list a:hover {
    color: rgba(129, 129, 129, 0.5);
}

.bgclean {
    background: #fff;
}

.nav-sidebar {
    list-style: none;
}

.nav-sidebar a {
    display: block;
    text-decoration: none;
    color: #000;
    /*font-size:16px;*/
    line-height: 32px;
    padding-top: 2px;
    padding-bottom: 3px;
    padding-left: 10px;
    width: 100%;
}

.nav-sidebar li {
    padding-left: 10px;
    width: 100%;
    display: block;
}

.nav-sidebar li:hover {
    background: url('/img/ico-dot.png') 10px 17px no-repeat;
}

.nav-sidebar a:hover {
    border-bottom: 1px solid #B20000;
    padding-bottom: 2px;
}

.thumbnail-circle {
    display: inline-block;
    height: auto;
    max-width: auto;
    padding: 4px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 50%
}

.thumbnail .img-circle {
    border-radius: 50%
}

.products-list {
    min-height: 200px;
    padding-top: 1em;
    padding-bottom: 1em;
    /*font-size:11pt;*/
    
    font-weight: bold;
    color: #333;
}

a.thumbnail-circle {
    margin-bottom: 10px;
}


/*
history
*/

dl.history {
    margin: 0;
    
}

dl.history dt {
    width: 100px;
    padding-top:10px;
}

dl.history dd+dd div {
    border-top: 1px dashed #bbb;
}

dl.history dd {
    border-left: 2px solid #B20000;
    padding-left: 10px;
}

dl.history dd div {
    padding-bottom: 20px;
    padding-top: 20px;
    border-bottom: 1px solid #aaaaaa;
    overflow: hidden;
}

dl.history dd.noline div,
dl.last dd div {
    border: 0;
}


/*
#B20000
*/

.line_mark {
    border-bottom: 1px solid rgba(178, 0, 0, 1);
}

a.line_mark {
    text-decoration: none;
    color: #333;
}

a.line_mark:hover {
    color: rgba(153, 153, 153, 0.5);
    border-bottom: 1px solid rgba(178, 0, 0, 0.5);
}

.news-header {
    border-bottom: 1px dotted #ccc;
    padding-bottom: .5em;
    margin-bottom: 1em;
}

.news-header .label {
    margin: 0 10px;
}

.news-content img {
    margin: 10px 0;
}
form {
    line-height:1;
    font-size:1em;
}
form label {
    /*font-size:18px;*/
}

._404box {
    color: #888;
    display: table;
    
    height: 600px;
    text-align: center;
    width: 100%;
}

._404content {
    display: table-cell;
    vertical-align: middle;
    margin: 2em auto;
}

._404content h1 {
    color: #555;
    /*font-size: 2em;*/
    font-weight: 400;
}

._404content p {
    margin: 0 auto;
    width: 280px;
}


/*how to*/

.howtonotice {}

.howtonotice h3 {
    font-size: 125%;
}

.howto-list {
    color: #fff;
    -webkit-border-radius: 10px 10px 10px 10px;
    border-radius: 10px 10px 10px 10px;
    margin-bottom: 3em;
}

.howto-list h3 {
    font-size: 125%;
}

.howto-list p>img {
    padding-right: 10px;
}

.howto-list p {
    font-size: 1.275em;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.howto-list .glyphicon {
    font-size: 150%;
    color: red;
}

.kraftbox {
    background: url("/img/kraftbg.png") 0 0 no-repeat;
    padding-bottom: 2em;
    -webkit-box-shadow: 1px 1px 10px 3px rgba(0, 0, 0, 0.25);
    box-shadow: 1px 1px 10px 3px rgba(0, 0, 0, 0.25);
}


/*contact us*/

.help-block {
    color: #B20000;
}


/*手機上CSS設定*/

@media (max-width:1000px) {
    body.main footer .certification {
        text-align: left;
    }
    .carousel .logo {
        display:none;
    }
}

@media (max-width: 768px) {
    .carousel .logo {
        display:none;
    }
    body.main {
        
        padding-bottom: 100px;
        background-image: none;
    }
    .main .navbar-brand .primary {
        font-size: 120%;
        margin-bottom: 2px;
    }
    .main .navbar-brand .english {
        margin: 1px 0;
        font-size: 64%;
        border-bottom: 0;
    }
    .main .navbar-brand .catchcopy {
        /*font-size: 8px;*/
        display: none;
    }
    .mainnav {
        height: 50px;
    }
    .navbackground {
        display: none;
    }
    .navbar-brand img {
        height: 50px;
    }
    .vertical-nav {
        padding-bottom: 10px;
    }
    .vertical-nav li,
    .vertical-nav li a,
    .vertical-nav li a:hover {
        width: 100%;
        margin: 0;
        padding: 0;
        background: none;
        padding: 5px 0;
        padding-left:
    }
    .vertical-nav li a.active,
    .vertical-nav li a.active:hover {
        padding-left: 14px;
        background: url("../img/dot.png") 2px 7px no-repeat;
    }
    .navbarcolor {}
    .nav-sidebar {
        /*font-size:40px;*/
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .nav-sidebar li {}
    .braces {
        /*font-size:50px;*/
        color: #000;
        background: none;
        text-align: center;
        width: 100%;
    }
    .navbar-brand .english,.navbar-brand .catchcopy {display:none;}
    .braces small {
        margin-top: .5em;
        margin-left: 10px;
    }
    .carousel-caption {
        /*font-size:1em;*/
    }
    .carousel,
    .item,
    .active {
        height: 100%;
    }
    .carousel-inner {
        height: 100%;
    }
    .fill {
        width: 100%;
        height: 100%;
        background-position: center;
        background-size: cover;
    }
    .carousel-inner > .item {
        -webkit-transition: 0.3s ease-in-out left;
        -moz-transition: 0.3s ease-in-out left;
        -o-transition: 0.3s ease-in-out left;
        transition: 0.3s ease-in-out left;
    }
    body.main footer {
        background: none;
        text-align: left;
        line-height: 1;
        padding-top: 10px;
        display: none;
    }
    span.news-time,
    span.news-title {
        color: red;
    }
    /***********
    404 頁面區塊
    ***********/
    ._404box,
    ._404content p {
        width: 95%;
        color: red;
    }
    ._404content h1 {
        /*font-size: 1.5em;*/
        margin: 0 0 0.3em;
    }
    #navbar li a {
        padding-top: 0;
    }
    #navbar li a.active,
    #navbar li a.active:hover,
    #navbar li a:hover {
        background-image: none;
    }
}

.langselect ul li a,
.langselect ul li,
.langselect ul {
    display:inline;
    font-size:15px;
}
.langselect ul > li + li:before {
  padding: 0 5px;
  content: "|\00a0"; /* Unicode Character 'NO-BREAK SPACE' (U+00A0)
 */
}