﻿body {
    font-size: 16px;
    font-family: Microsoft JhengHei;
}

form {
    margin: 0px;
}

h1, h2, h3, h4, h5, h6, .navbar .navbar-nav {
    font-family: 'Roboto', 'Microsoft JhengHei', sans-serif;
    text-transform: none;
}

h1, h2, h3 {
    color: #000000;
}

.text-gray {
    color: #aaaaaa;
}

.text-blue {
    color: #0033CC;
}

.text-red {
    color: #ff0000;
}

.text-green {
    color: #006600;
}

.text-orange {
    color: #E86F00;
}

section p {
    line-height: 1.5;
}

.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* Style of Scroll To Top */
.scrollToTop {
    border: solid 1px #ba8300;
    background-color: #ffffff;
    width: 48px;
    height: 48px;
    padding: 3px;
    bottom: 5px;
}

    .scrollToTop:hover {
        background-color: #ba8300;
    }

        .scrollToTop:hover i {
            color: #ffffff;
            -webkit-transition: all 0.2s ease-in-out;
            -o-transition: all 0.2s ease-in-out;
            transition: all 0.2s ease-in-out;
        }

    .scrollToTop > div {
        background-color: #ba8300;
        width: 40px;
        height: 40px;
    }

    .scrollToTop i {
        line-height: 40px;
        font-size: 20px;
    }

/* Header */
.logo a img {
    display: inline-block;
}

.header {
    background-image: url('/IMG/header-bg.jpg');
    background-position: center;
    background-size: cover;
    border: 0;
}

.header-first {
    padding: 12px 0;
}

.header-second {
    padding-top: 6px;
}

.main-navigation .navbar-default .navbar-nav > li > a {
    background-image: url(/IMG/lotus-icon.png);
    background-position: 5px center;
    background-repeat: no-repeat;
    padding-left: 50px;
    font-weight: bold;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.main-navigation .dropdown > a:before {
    content: '';
}

.header-dropdown-buttons .btn-group .dropdown-menu {
    margin-top: 29px;
}

#language .btn.dropdown-toggle span:before {
    content: "繁體";
    font-size: 14px;
}

#language .btn.dropdown-toggle span.zh-cn:before {
    content: "简体";
}

.fixed-header-on .header.fixed-customer {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1006;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    box-shadow: 1px 3px 3px rgba(0,0,0,0.15);
}

.fixed-header-on .header .logo {
    margin: 0;
    display: block;
}

.breadcrumb-container {
    background-color: transparent;
    border-top: 1px solid #f4f4f4;
}

.fc-day-grid-event .fc-content {
    white-space: normal;
}

/* 首頁 */
.home-page h3.title {
    background-image: url(/IMG/lotus-icon.png);
    background-position: 5px center;
    background-repeat: no-repeat;
    padding-left: 50px;
    font-weight: bold;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    display: inline-block;
}

.home-page .section-news {
    background-image: url('/IMG/news-bg.jpg');
    background-position: center;
    background-size: cover;
}

    .home-page .section-news .time {
        color: #4298cc;
    }

    .home-page .section-news p.title {
        margin-top: 8px;
    }

        .home-page .section-news p.title a {
            color: #333333;
        }

.home-page .section-link {
    background-image: url(/IMG/link-bg.jpg);
    background-position: center;
    background-size: cover;
    border-top: 2px solid #c2b372;
    border-bottom: 2px solid #98ad98;
}

    .home-page .section-link .flex {
        align-items: center;
        justify-content: space-around;
    }

    .home-page .section-link .image-box h2 {
        font-family: '標楷體', 'Roboto', 'Microsoft JhengHei', sans-serif;
        color: #665201;
    }

.home-page .section-course {
    background-image: url(/IMG/course-bg.jpg);
    background-position: center;
    background-size: cover;
}

    .home-page .section-course .frame {
        border: 66px solid transparent;
        border-image: url(/IMG/chinese-frame.png);
        border-image-slice: 66 66 66 66;
        border-image-repeat: repeat;
    }

/* Footer */
.footer {
    background-image: url('/IMG/footer-bg.jpg');
    background-position: center;
    background-size: cover;
    font-weight: bold;
}

    .footer .contact ul > li {
        display: inline-block;
        padding-right: 10px;
    }

/* Copyright's dot */
.copyright a {
    color: inherit;
}

.modal .modal-footer .btn {
    margin-top:0px;
    margin-bottom:0px;
}

@media (max-width:767px) {

    /* Header */
    .logo a img {
        max-height: 35px;
    }

    /* 首頁 */
    .home-page .section-link .image-box h2 {
        margin-top: 5px;
        font-size: 16px;
    }

    .home-page .section-link .image-box img {
        height: 65px;
    }

    .home-page .section-course .frame {
        border-width: 15px;
    }

    /* Mobile Navbar */
    .navbar {
        display: none;
    }

    .navbar-toggle {
        left: 5px;
        top: 5px;
        border: none;
        z-index: 1007;
        position: fixed;
        background-color: transparent;
        transition: all ease .5s;
    }

    .fixed-header-on .navbar-default .navbar-toggle {
        margin-top: -47px;
    }

    .fixed-header-on .navbar-toggle {
        top: 3px;
    }

    .navbar-toggle .icon-bar {
        background-color: #000000;
        -webkit-transform: matrix(1, 0, 0, 1, 0, 0);
        transform: matrix(1, 0, 0, 1, 0, 0);
    }

        .navbar-toggle .icon-bar:nth-child(2) {
            -webkit-transition: all .8s cubic-bezier(.19, 1, .22, 1);
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
            -webkit-transform: matrix(1, 0, 0, 1, 0, 0);
            transform: matrix(1, 0, 0, 1, 0, 0);
        }

        .navbar-toggle .icon-bar:nth-child(3) {
            -webkit-transition: all .8s cubic-bezier(.19, 1, .22, 1);
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
        }

        .navbar-toggle .icon-bar:nth-child(4) {
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
            -webkit-transform: matrix(1, 0, 0, 1, 0, 0);
            transform: matrix(1, 0, 0, 1, 0, 0);
        }

    .navbar-toggle.open .icon-bar:nth-child(2) {
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        -webkit-transform: matrix(.8, -.8, .8, .8, 0, 6);
        transform: matrix(.8, -.8, .8, .8, 0, 6);
        background-color: #333333;
    }

    .navbar-toggle.open .icon-bar:nth-child(3) {
        -webkit-transition: all .8s cubic-bezier(.19, 1, .22, 1);
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        -webkit-transform: translateX(-60px);
        opacity: 0;
    }

    .navbar-toggle.open .icon-bar:nth-child(4) {
        -webkit-transition: all .8s cubic-bezier(.19, 1, .22, 1);
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        -webkit-transform: matrix(.8, .8, -.8, .8, 0, -6);
        transform: matrix(.8, .8, -.8, .8, 0, -6);
        background-color: #333333;
    }

    .nav-mobile {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1006;
        background: #FFFFFF;
        overflow-x: hidden;
        overflow-y: auto;
        outline: 0;
        background-image: url(/IMG/news-bg.jpg);
        background-size: cover;
        background-position: center;
    }

        .nav-mobile .logo {
            background-image: url('/IMG/header-bg.jpg');
            background-position: center;
            background-size: cover;
            padding: 12px 0;
        }

        .nav-mobile .menu a {
            color: #333333;
            border-bottom: 1px solid rgba(186, 131, 0, 0.5);
            text-decoration: none;
            font-size: 20px;
            padding: 15px 20px;
            background-image: url('/IMG/lotus-icon.png');
            background-repeat: no-repeat;
            background-position: calc(100% - 15px) center;
        }

            .nav-mobile .menu a:hover,
            .nav-mobile .menu a:focus,
            .nav-mobile .menu .dropdown.open > a,
            .nav-mobile .menu .dropdown.active > a {
                background-color: rgba(255,255,255,0.5);
                color: #ba8300;
                border-bottom: 2px solid #ba8300;
            }

        .nav-mobile .navbar-nav .dropdown.open .dropdown a {
            padding: 10px 40px;
        }

            .nav-mobile .navbar-nav .dropdown.open .dropdown a::before {
                display: block;
                font-family: "FontAwesome";
                content: "\f105";
                color: #f26716;
                left: 25px;
            }

        .nav-mobile .dropdown > a:before {
            content: '';
        }

        .nav-mobile .container {
            box-shadow: 0px -5px 5px rgba(0,0,0,0.15);
        }

    .header-dropdown-buttons {
        position: absolute;
        right: 0px;
        bottom: 10px;
    }

        .header-dropdown-buttons .btn-group > .btn {
            color: #333333;
        }

        .header-dropdown-buttons .btn-group.open > .btn {
            color: #930010;
        }

        .header-dropdown-buttons .btn-group .dropdown-menu {
            margin-top: 10px;
        }
}

@media (min-width:768px) {

    /* Header */
    .main-navigation .navbar-nav {
        float: right;
    }

    .fixed-header-on .header-first {
        padding-top: 6px;
    }

    .fixed-header-on .header-second {
        padding-top: 0;
    }

    .fixed-header-on .header .logo img {
        max-height: 50px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    body:not(.fixed-header-on) .header:not(.dark) .main-navigation .navbar-nav > .open > a,
    body:not(.fixed-header-on) .header:not(.dark) .main-navigation .navbar-nav > .open > a:hover,
    body:not(.fixed-header-on) .header:not(.dark) .main-navigation .navbar-nav > .open > a:focus,
    body:not(.fixed-header-on) .header:not(.dark) .main-navigation .navbar-nav > .dropdown > a:focus {
        border-top: 1px solid transparent;
    }
}

@media (min-width:992px) {
}

@media (min-width:1200px) {
}
