﻿h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

.h1, .h2, .h3, h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

h3, h4, h5, h6 {
    margin-top: 5px;
}

a {
    color: rgb(119, 119, 119);
}

img {
    max-width: 100%;
}

.note {
    color: #888;
    font-size: 13px;
}

.text-gray {
    color: #aaaaaa;
}

.text-blue {
    color: #0033CC;
}

.text-red {
    color: #ff0000;
}

.text-green {
    color: #006600;
}

.text-orange {
    color: #E86F00;
}

.img-circle {
    border-radius: 50%;
}

.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.passcode {
    cursor: pointer;
}

.tab-content {
    padding: 1rem 0;
}

.shine-1 {
    animation: flash 1s infinite;
}

.shine-2 {
    animation: flash 2s infinite;
}

.shine-3 {
    animation: flash 3s infinite;
}

.shine-4 {
    animation: flash 4s infinite;
}

.shine-5 {
    animation: flash 5s infinite;
}

/*fix-feature*/
.fix-feature {
    position: fixed;
    right: 5px;
    bottom: 10px;
    z-index: 1005;
}

    .fix-feature > * {
        width: 48px;
        height: 48px;
        border-radius: 100%;
        display: block;
        margin-top: 5px;
        cursor: pointer;
        text-align: center;
        padding: 3px;
    }

        .fix-feature > * i {
            line-height: 40px;
            font-size: 20px;
            margin-right: 0px !important;
        }

    .fix-feature .scrollToTop {
        color: #ffffff;
        background-color: rgba(153, 153, 153, 0.6);
        -webkit-backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        -webkit-transition: all 0.2s ease-in-out;
        -o-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
        opacity: 0;
        filter: alpha(opacity=0);
        visibility: hidden;
    }

        .fix-feature .scrollToTop.fadeToTop {
            -webkit-animation-name: fadeToTop;
            animation-name: fadeToTop;
            -webkit-animation-duration: 0.4s;
            animation-duration: 0.4s;
            -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
            visibility: visible;
        }

        .fix-feature .scrollToTop.fadeToBottom {
            -webkit-animation-name: fadeToBottom;
            animation-name: fadeToBottom;
            -webkit-animation-duration: 0.4s;
            animation-duration: 0.4s;
            -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
            visibility: hidden;
        }

        .fix-feature .scrollToTop:hover {
            background-color: rgba(153, 153, 153, 1);
        }

            .fix-feature .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;
            }

    /* Line Button */
    .fix-feature .line {
        background-image: url(/Images/line-logo.svg);
        background-size: 60%;
        background-color: #00B900;
        background-position: center;
        background-repeat: no-repeat;
    }

    .fix-feature .facebook {
        background-image: url(/Images/facebook-logo.svg);
        background-color: #1877f2;
        background-size: contain;
        background-position: center bottom;
        background-repeat: no-repeat;
    }

/* slick */
.slick-arrow {
    position: absolute;
    z-index: 1;
    color: #ccc;
    font-size: 45px;
    top: calc(50% - 30px);
}

    .slick-arrow:hover {
        color: #777777;
    }

.slick-prev {
    left: 0px;
}

.slick-slider .slick-prev:before {
    font-family: FontAwesome;
    content: "\f104";
    position: relative;
    left: 3px;
}

.slick-next {
    right: 0px;
}

.slick-slider .slick-next:before {
    font-family: FontAwesome;
    content: "\f105";
    position: relative;
    left: 6px;
}

.slick-dots {
    padding-left: 0;
    list-style: none;
    text-align: center;
}

    .slick-dots li {
        display: inline-block;
    }

        .slick-dots li + li {
            margin-left: 15px;
        }

        .slick-dots li button {
            font-size: 0px;
            line-height: 0;
            width: 12px;
            height: 12px;
            border: 0;
            border-radius: 100%;
            outline: none;
            background-color: #ccc;
            opacity: 0.8;
        }

            .slick-dots li button:hover,
            .slick-dots li button:focus {
                opacity: 1;
            }

        .slick-dots li.slick-active button {
            background-color: #777;
            opacity: 1;
        }

/* 分享 */
.share {
    display: flex;
}

    .share a {
        display: inline-flex;
        color: #ffffff;
        width: 30px;
        height: 30px;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        border-radius: 100%;
        background-size: 20px;
        background-color: #777777;
        background-position: center;
        background-repeat: no-repeat;
    }

        .share a:last-child {
            margin-right: 0;
        }

        .share a.line {
            background-color: #00B900;
            background-image: url('/Images/line-logo.svg');
        }

        .share a.facebook {
            background-size: contain;
            background-image: url('/Images/facebook-logo.svg');
        }

        .share a.twitter {
            font-size: 20px;
            background-color: #1DA1F2;
        }

        .share a.pinterest {
            background-size: contain;
            background-color: #ffffff;
            background-image: url('/Images/pinterest-logo.svg');
        }

@-webkit-keyframes fadeToTop {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeToTop {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        -ms-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
}

@-webkit-keyframes fadeToBottom {
    0% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    100% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
}

@keyframes fadeToBottom {
    0% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    100% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        -ms-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
}

/*.navbar-toggle*/
.navbar-toggle {
    padding: 1rem 1rem;
    display: block;
}

    .navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background-color: #212529;
    }

        .navbar-toggle .icon-bar:before {
            content: "";
        }

        .navbar-toggle .icon-bar + .icon-bar {
            margin-top: 4px;
        }

header.navbar {
    padding: 0px;
    border-top: solid 1px #f1f1f1;
    border-bottom: solid 1px #f1f1f1;
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 10;
    background-color: #fff;
}

header .navbar-nav > li > a {
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    border-left: 1px solid;
    border-right: 1px solid;
    border-color: transparent;
    margin-right: -1px;
}

    header .navbar-nav > li:hover > a,
    header .navbar-nav > li > a.active {
        border-color: #f1f1f1;
    }

header .navbar-nav li > a:hover,
header .navbar-nav li > a.active,
header .navbar-nav li.show > a {
    background-color: #f8f8f8;
    color: #000;
}

/*選單部分*/
.navbar-expand .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
}

.navbar-nav > li > .dropdown-menu {
    margin-top: 0px;
}

/*dropdown-menu*/
.dropdown-menu {
    margin: 0px;
    padding: 0px;
    border-radius: 0px;
    border: 1px solid #f1f1f1;
    -webkit-box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.06);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.06);
}

    /* third level menu */
    .dropdown-menu .dropdown-menu {
        top: -1px;
        left: 100% !important;
        right: auto;
    }

    .dropdown-menu > li > a {
        border-bottom: 1px solid #f1f1f1;
    }

    .dropdown-menu > li:last-child > a {
        border-bottom: none;
    }

    .dropdown-menu > li > a:hover, .dropdown-menu > li > a.active {
        background-color: #f1f1f1;
    }


/* Mega Menu
------------------------------ */
.mega-menu.dropdown {
    position: static;
}

.mega-menu .dropdown-menu {
    left: 0;
    width: 100%;
    padding: 20px 30px;
    border-left: none;
    border-right: none;
}

.mega-menu .container {
    display: block;
}

/* mega menu menu item */
.mega-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .mega-menu .menu li {
        position: relative;
    }

.mega-menu h4.title {
    margin: 5px 0;
    font-size: 15px;
    text-transform: uppercase;
}

.mega-menu .menu > li > a {
    padding: 5px 0;
    /*font-size: 14px;*/
    color: #333333;
    border-bottom: 1px solid #f7f7f7;
    display: block;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
    text-align: left;
}

    .mega-menu .menu > li > a i,
    .dropdown-menu > li > a i {
        font-size: 12px;
        width: 20px;
        position: relative;
        top: -1px;
    }

        .mega-menu .menu > li > a i.fa,
        .dropdown-menu > li > a i.fa {
            text-align: center;
        }

        .mega-menu .menu > li > a i.fa-circle-o,
        .dropdown-menu > li > a i.fa-circle-o {
            font-size: 7px;
            top: -3px;
        }

        .mega-menu .menu > li > a i.fa-spin {
            width: 11px;
            padding: 0;
            margin-right: 13px;
            margin-left: 8px;
        }

.mega-menu .menu > li:last-child > a {
    border-bottom: none !important;
}

/* mega menu menu item on focus/hover*/
.mega-menu .menu > li > a:hover,
.mega-menu .menu > li > a:focus {
    background-color: #fcfcfc;
    color: #0c9ec7;
    border-color: #f7f7f7;
    text-decoration: none;
}

/*修正feature-panel裡面放crud*/
.feature-panel .panel-body .tools {
    padding: 0px;
    border: 0px;
}

    .feature-panel .panel-body .tools .feature {
        background-color: transparent;
        display: block;
        padding: 0px;
        height: auto;
    }

        .feature-panel .panel-body .tools .feature .btn {
            margin-left: 0px;
        }

.feature-panel .forum-box .hpanel .panel-heading, .feature-panel .forum-box .hpanel .panel-body {
    border-left-width: 1px !important;
    border-right-width: 1px !important;
}

/*購物車*/
.cart {
    position: relative;
}

    .cart .cart-count {
        top: .5rem;
        right: .5rem;
        background-color: rgb(119, 119, 119);
        color: #fff;
    }

.icon.default-bg {
    background-color: #6c757d;
}

/*btn*/
.btn-default {
    background-color: #fff;
    border-color: #eaeaea;
    color: #6a6c6f
}

    .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
        background-color: #fff;
        border-color: #e0e0e0;
        color: #606265
    }

    .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
        background-image: none
    }

        .btn-default.disabled, .btn-default.disabled:hover, .btn-default.disabled:focus, .btn-default.disabled:active, .btn-default.disabled.active, .btn-default[disabled], .btn-default[disabled]:hover, .btn-default[disabled]:focus, .btn-default[disabled]:active, .btn-default.active[disabled], fieldset[disabled] .btn-default, fieldset[disabled] .btn-default:hover, fieldset[disabled] .btn-default:focus, fieldset[disabled] .btn-default:active, fieldset[disabled] .btn-default.active {
            background-color: #e4ebee;
            border-color: #e4ebee
        }

.btn.facebook {
    background-color: #3b5998;
    border-color: #3b5998;
    color: #ffffff;
}

.btn.google {
    background-color: #dd4b39;
    border-color: #dd4b39;
    color: #ffffff;
}

.btn.line {
    background-color: #00C300;
    border-color: #00C300;
    color: #ffffff;
}

.radio input[type="radio"],
.radio-inline input[type="radio"],
.radio-block input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"]
.checkbox-block input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 0px;
}

/*.radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline {
    margin-right: 0px;
    margin-left: 0px;
}*/

.radio-inline, .checkbox-inline,
.radio-block, .checkbox-block {
    padding-top: calc(0.375rem + 1px);
    padding-bottom: calc(0.375rem + 1px);
    margin-right: 10px;
}

label.radio-block {
    display: block;
}

.comma-separate > span::after, .comma-separate > li::after {
    content: ",";
}

.comma-separate > span:last-child::after, .comma-separate > li:last-child::after {
    content: "";
}

/*jquery-ui*/
.ui-autocomplete {
    position: absolute;
    z-index: 99999 !important;
    cursor: default;
    padding: 0;
    margin-top: 2px;
    /*list-style: none;*/
    background-color: #ffffff;
    border: 1px solid #eaeaea !important;
    -moz-border-radius: 5px;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    /*-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
            -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);*/
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: none;
    background-color: #f7f9fa;
    color: inherit;
    margin: 0px;
}

/*rwd-table*/
.rwd-table .item {
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: -1px;
    padding: .5rem;
}

.rwd-table .header {
    background-color: #fafafa;
}

/*error*/
.form-control.error, .form-control.input-validation-error {
    border-color: #e74c3c !important
}

label.error, label span.error {
    color: #e74c3c;
    margin: 5px 0 0 0;
    font-weight: 400
}

label span.error {
    margin-left: 5px
}

label.error:before, .field-validation-error span:before {
    content: "\f071";
    font-family: 'FontAwesome';
    margin: 0 4px
}

#alert {
    position: fixed;
    width: calc(100% - 30px);
    top: 15px;
    left: 15px;
    z-index: 9999;
}

.loading {
    position: fixed;
    border-radius: 100%;
    background-color: #fff;
    width: 50px;
    height: 50px;
    left: 50%;
    top: -60px;
    margin-top: -25px;
    margin-left: -25px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    line-height: 45px;
    font-size: 25px;
    opacity: 0;
    transition: all ease .5s;
    z-index: 9999;
}

    .loading.show {
        top: 15%;
        opacity: 1;
    }

@media (min-width: 576px) {
    #alert {
        width: 300px;
        top: 15px;
        left: calc(50% - 150px);
    }
}
