.nav.navbar-nav.navbar-second.navbar-right a:hover{
    color: #346e0d;
    background-color: rgba(255,255,255,1);
}
.text-red{
    color: red;
}
.badge {
    font-size: 14px;
    background-color: red;
    border-radius: 50%;
}
.navbar-default .navbar-nav > li.nav-divided{
    position: relative;
    min-width: 1px;
    background-color: #7f8177;
}

.navbar.navbar-loginBar{
    min-height: 50px;
    margin-bottom: 0;
    background-color: #346e0d;
    border: none;
}
.navbar.navbar-loginBar li>a{
    color: white;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 10px;
    border-radius: 6px;
    transition: background-color 1s;
    background-color: transparent;
}

.navbar.navbar-default {
    min-height: 90px;
    margin-bottom: 0;
    border-radius: 0;
    background-color: #fff;
}
.navbar-brand {
    line-height: 100%;
    height: 90px;
    margin-left: 0;
}

.navbar-brand > img {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    max-width: 160px;
    max-height: 50px;
    display: inline-block;
}
.brand-sitename{
    font-size: 1em;
    color: #333333;
}

.navbar.navbar-default {
    border-bottom: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 100;
    border-width: 0 0 1px;
    transition: 1s;
}

.bg-navbar {
    top: 0;
    box-shadow: 4px 4px 12px rgba(0,0,0,.1);
}

/*.nav.navbar-nav.navbar-right li > * {
    text-align: left;
}*/

.navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse {
    max-height: 100vh;
}

.top-menuitem{
    position:relative;
}
.top-menuitem:before{
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: -4px;
    width: 100%;
    border-right: 1px solid #bac4d6;
}

.dropdown-menu{
    background-color: #2a2a2a;
}
.navbar-right .dropdown-menu {
    right: initial;
}
.dropdown-menu > li{
    padding-left: 0;
}
.dropdown-menu > li > a{
    text-align: center;
    background-color: #2a2a2a;
    color: white;
    font-weight: bold;
}

.navbar-collapse {
    overflow: hidden;
}
.navbar-collapse > ul > li > a {
    font-weight: 500;
    height: 90px;
    vertical-align: middle;
    line-height: 60px;

}

.navbar-collapse ul.navbar-premary > li > a,
.navbar-collapse > ul > li > span {
    display: block;
    padding: 0.80em 0.8em;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: bolder;
    outline: 0;
}

/*--清除預設--*/
.navbar.navbar-default > .container-fluid{
    padding-right: 0;
    padding-left: 0;
}

.navbar-default .navbar-nav > li{
    position: static;
    padding-left: 0;
}

.navbar-default .navbar-nav:not(.navbar-second) > li > a {
    /*color: #333f48;*/
    transition: color .5s;
}

.navbar-default.bg-navbar .navbar-nav > li:hover > a,
.navbar-default.bg-navbar .navbar-nav > li:focus > a {
    color: #5e5e5e;
}

.navbar-default .navbar-nav > li:hover:before,
.navbar-default .navbar-nav > li:focus:before {
    background-color: rgba(255,255,255, .7);
    top: 0;
    height: 100%;
}

.navbar-default.bg-navbar .navbar-nav > li:hover:before,
.navbar-default.bg-navbar .navbar-nav > li:focus:before {
    background-color: rgba(255,255,255, .9);
}

.navbar-default .navbar-second{
    margin-right: 0;
    padding: 0 15px;
    position: absolute;
    top: 0;
    right: 0;
}
.navbar-default .navbar-second a{

}

/*--navbar置中設定--*/
.navbar-default .navbar-premary {
    width: auto;
    margin: 0 auto;
    min-width: 760px;
    /*text-align: center;*/
}
.navbar-default .navbar-collapse-center {
    text-align: center;
    position: relative;
    z-index: 1;
}
.navbar-default .navbar-nav > li {
    float: none;
    display: inline-block;
}
.navbar-default .navbar-header{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    margin-left: 30px!important;

}
/*--/navbar置中設定--*/

/*--hoverNavbar設定--*/
.navbar-default .navbar-none{
    width: 90vw;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    height: 320px;
    padding: 30px 30px;
    border: 1px solid #3f3f3f;
}
.navbar-default .navbar-none li{
    display: inline-block;
    padding: 10px 15px;
    position: relative;
}
.navbar-default .navbar-none li:after{
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(0,-50%);
    height: 70%;
    width: 1px;
    background-color: rgba(255,255,255,.4);
}
.navbar-default .navbar-none li > a {
    color: #323232;
    font-weight: 500;
    display: block;
    font-size: 1.5em;
    letter-spacing: 0.06em;
    text-decoration: none!important;
    transition: .5s transform;
}
.navbar-default .navbar-none li:hover > a{
    /*transform: scale(1.1);*/
    font-weight: bold;
    color: black;
}
.navbar-default .hover-nav:before{
    content: '';
    position: absolute;
    left: 50%;
    top: 90%;
    transform: translate(-50%,0);
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #5e5e5e transparent;
    z-index: 222;
    opacity: 0;
}
.navbar-default .hover-nav:after{
    /*content:"\e252";
    font-size: 6px;
    margin-left: 4px;
    font-family: 'Glyphicons Halflings';*/
}
.navbar-default li:hover .hover-nav:before{
    animation: fade-in .3s ease-in;
    opacity: 1
}
.navbar-default li:hover .navbar-none{
    pointer-events: auto;
    animation: fade-in .3s ease-in;
    opacity: 1
}
/*--/hoverNavbar設定--*/

@keyframes fade-in {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

.cube-box{
    display: inline-block;
    width: 33%;
    min-height: 200px;
    float: left;
    text-align: left;
}
.cube-box a{
    display: inline-block;
}
.cube-box .h3{
    margin-top: 0;
}
.cube-box .desc-text{
    font-size: 11px;
}
.category-img{
    max-width: 50%;
}

.member-menu li>a{
    padding: 20px 20px;
}
.member-menu li>a.text-green{
    color: #346e0d;
}

/*--側邊欄navbar--*/
.menu-button{
    position: absolute;
    top: 50%;
    left: calc(100vw - 50px);
    color: #000;
    font-size: 25px;
    display: none;
    cursor: pointer;
    transform: translate(0,-50%);
}
#menu{
    width: 300px;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(300px);
    visibility: hidden;
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 24px;
    text-align: center;
    transition: all 0.5s;
}
#menu.visible{
    transform: translateX(0) !important;
    visibility: visible!important;
}
.menu-box{
    border-top: solid 1px rgba(255, 255, 255, 0.3);
    padding: 10px 0 ;
}
.menu-box h3{
    color: #d4d4d4;
    display: block;
    line-height: 3.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    margin: 0;
    cursor: pointer;
}
.menu-box h3 > i{
    padding-left: 5px;
}
.menu-box  li > a{
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    display: block;
    padding: 5px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.6;
    white-space: nowrap;
    text-decoration: none!important;
}
.menu-box  li > a:hover{
    color: #f5f5f5;
    background-color: initial;
}
.menu-none{
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
}
.menu-none:hover{
    color: #f5f5f5;
    cursor: pointer;
}
/*--/側邊欄navbar--*/

@media (max-width: 1100px){
    .navbar-collapse > ul > li > a, .navbar-collapse > ul > li > span {
        padding: 0.80em 0.2em;
    }
}
@media (max-width: 850px){
    .navbar-collapse > ul > li > a, .navbar-collapse > ul > li > span {
        padding: 0.80em 0;
    }
}

@media (max-width: 991px) {
    nav.navbar > .container {
        width: 100%;
    }

    .brand-sitename{
        display: none;
    }

    .navbar-collapse > ul > li > a {

    }

    .navbar-collapse {
        padding: 0;
    }

    .nav.navbar-nav.navbar-right {
        margin: 0;
        float: right !important;
    }

    .nav.navbar-nav.navbar-right a {
        margin: 0;
    }

    .nav.navbar-nav.navbar-right li > * {
        text-align: center;

    }

    .navbar-default .navbar-nav > li:not(.open):hover:before {
        border-bottom: none;
    }
}


@media (max-width: 768px){

    .navbar-collapse.collapse {
        display: none!important;
    }

    .brand-sitename{
        display: inline-block;
    }

    .navbar-loginBar .navbar-nav > li {
        display: inline-block;
    }
    .navbar-loginBar .navbar-nav > li > a{
        padding-top: 14px;
        padding-bottom: 14px;
    }

    /*--navbar置中設定--*/
    .navbar.navbar-default .navbar-nav > li {
        display:block;
    }
    .navbar-header{
        position: static;
        margin-left: 20px!important;

    }
    .menu-button{
        display: inline-block
    }
    /*--/navbar置中設定--*/
    .navbar.navbar-fixed-top.navbar-loginBar{
        display: none;
    }
    #menu ul{
        padding: 0;
    }
    #menu a:hover{
        color: #d4d4d4;
        text-decoration: none;
    }

    .navbar.navbar-default {
        top: 0;
    }
}
