/* Add here all your CSS customizations */
#header .header-body {
    background: #8C1515;
    border-top: 5px solid #EDEDED;
    border-bottom: 1px solid transparent;
    padding: 8px 0;
    -webkit-transition: min-height 0.3s ease;
    -moz-transition: min-height 0.3s ease;
    transition: min-height 0.3s ease;
    width: 100%;
    z-index: 1001;
    min-height: 125px;
}

html body .tabs.tabs-vertical.tabs-left .nav-tabs li a:hover,
html.dark body .tabs.tabs-vertical.tabs-left .nav-tabs li a:hover,
html body .tabs.tabs-vertical.tabs-left .nav-tabs li.active a,
html.dark body .tabs.tabs-vertical.tabs-left .nav-tabs li.active a,
html body .tabs.tabs-vertical.tabs-left .nav-tabs li.active a:hover,
html.dark body .tabs.tabs-vertical.tabs-left .nav-tabs li.active a:hover,
html body .tabs.tabs-vertical.tabs-left .nav-tabs li.active a:focus,
html.dark body .tabs.tabs-vertical.tabs-left .nav-tabs li.active a:focus {
    border-left-color: #8c1515;
}

html body .tabs .nav-tabs li.active a,
html.dark body .tabs .nav-tabs li.active a {
    border-top-color: #0088cc;
    color: #0088cc;
}

html body .tabs .nav-tabs a,
html.dark body .tabs .nav-tabs a,
html body .tabs .nav-tabs a:hover,
html.dark body .tabs .nav-tabs a:hover {
    color: #8c1515;
}

#header .header-logo img {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
    top: 0;
}

#header .header-nav-main {
    float: right;
    margin: 12px 0 0;
    min-height: 45px;
}

a {
    color: #8c1515;
}

ul.nav-pills>li.active>a {
    background-color: #0088cc !important;
    ;
}

.active a {
    background-color: #0088cc !important;
}


#header .header-search .form-control {
    border-radius: 2px;
    font-size: 0.9em;
    height: 30px;
    margin: 0;
    padding: 6px 12px;
    -webkit-transition: width 0.3s ease;
    -moz-transition: width 0.3s ease;
    transition: width 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    width: 210px;
}

.img-thumbnail2 {
    display: block;
    max-width: 100%;
    height: auto;
    padding: 8px;
    line-height: 1.42857143;
    margin: 0 auto;
    height: auto;
}

.img-responsive2,
.thumbnail a>img,
.thumbnail>img {
    display: block;
    margin: 0 auto;
    height: auto;

}

.img-responsive3 {
    max-width: 40px;
    margin: 15px 5px 5px 5px;

}

#u980_state3,
#u980_state4 {
    height: 2088px;
}

#u980_state7,
#u1958_state3 {
    height: 1048px;
}

#footer.short {
    padding-top: 10px;
}

#footer {
    background: #8c1515;
    border-top: 4px solid #8c1515;
    font-size: 0.9em;
    margin-top: 0px;
    padding: 0px 0 0;
    position: relative;
    clear: both;
}

#footer h5 {

    font-family: 'Arial Negreta', 'Arial';
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    color: #FFFF00;
    text-align: left;
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer a {
    color: #FFF;
    font-size: 13px;
    color: #FFFFFF;
    text-align: left;
}

.list.list-icons.list-icons-sm li {
    padding-left: 0px;
    margin-bottom: 1px;
}

html.boxed .body {
    background-color: #FFF;
    border-bottom: 5px solid #1d2127;
    border-radius: 5px;
    border-top: 5px solid #CCC;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    margin: 0px auto;
    max-width: 1200px;
    height: auto;
    overflow: hidden;
}

.nivoSlider {
    position: relative;

    height: auto;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

/* modified the nivoSlider child img selector to be a fixed size to match my images */
.nivo-main-image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto;
}


.nivo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background: none;
    color: #FFF;
    font-size: 18px;
    text-align: center;
    background-color: #8C1515;
    z-index: 8;
}

.nivo-caption a {
    display: inline !important;
}


article.post-large .post-image,
article.post-large .post-date {
    margin-left: 0px;
    max-height: 160px;
    overflow-y: hidden;
}

article.post-large {
    margin-left: 0px;
}

p {
    color: #555;
    line-height: 1.7em;
    margin: 0 0 2px;
}

.logologo {

    max-height: 70px;
}

@media (min-width: 992px) {


    #header .header-nav-main nav>ul>li.dropdown-mega .dropdown-mega-sub-nav>li>a {
        border: 0 none;
        border-radius: 4px;
        color: #8C1515;
        background-color: #0088cc;
        display: block;
        font-size: 1.3em;
        font-weight: normal;
        margin: 0 0 0 -8px;
        padding: 3px 8px;
        text-shadow: none;
        text-transform: none;
        text-decoration: none;
    }

    nav-main nav>ul>li.dropdown-mega .dropdown-mega-content {
        padding: 0px 30px;
    }

    #header .header-nav-main nav>ul>li>a {
        border-radius: 4px;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 20px;
        padding: 10px 6px;
        text-transform: uppercase;
    }
}



/* default */

.ax_default,
body,
p {
    font-family: "微軟正黑體", "Microsoft JhengHei", "新細明體";
    font-size: 16px;
    line-height: 1.7em;
    color: #555;
}


.nav-tabs li a {
    border-radius: 5px 5px 0 0;
    font-size: 16px;
    margin-right: 1px;
}

/* header nav */

@media (max-width: 768px) {

    .logologo {

        max-height: 56px !important;
    }

    html body .tabs .nav-tabs a,
    html.dark body .tabs .nav-tabs a,
    html body .tabs .nav-tabs a:hover,
    html.dark body .tabs .nav-tabs a:hover {
        color: #8c1515;
    }

    .header-nav {

        width: 100%;
        box-shadow: 0px 2px 2px 0px #888;
        border-top: #6A0709 1px solid;
        padding: 0px;
        background: #444040;
    }

    #header .header-nav-main {
        float: left;
        margin: 12px 0 0;
        min-height: 45px;

    }

    html.sticky-header-enabled #header .header-nav-main {
        max-height: 450px;
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
    }

    .nav-pills>li>.parent {
        background-position: 95% 50%;
    }

    .nav-pills>li>.parent {
        background-repeat: no-repeat;
        background-position: right;
    }

    .nav-pills>li>a {
        display: block;
        color: #fff;
    }

    .nav-pills>li>a {
        position: relative;
        display: block;
        padding: 10px 10px;
    }

    .nav-pills a {
        padding: 7px 7px;
        color: #F3F5F6 !important;
        font-size: 13px;
    }

    .dropdown-mega-sub-nav>li>a:hover,
    .dropdown-mega-sub-nav>li>a:focus {
        background-color: #201E1E;
    }

    .nav-pills>li>a:hover,
    .nav-pills>li>a:focus {
        background-color: #201E1E;
    }

    .font_logo {
        font-size: 22px;

    }

    .mb-md {
        margin-bottom: 1px !important;
    }

    #header .header-nav-main {
        float: left;
        margin: 2px 0 0;
        min-height: 45px;
        width: 100%;
    }

    #header .header-nav-main nav>ul li.dropdown-mega .dropdown-mega-sub-nav {
        margin: 0 0 0 10px;
        padding: 0;
        list-style: none;
    }

}