﻿.relative{
    position: relative;
}

.absolute{
    position: absolute;
}

.top-0{
    top:0;
}

.left-full{
    left: 102%;
}

.w-full{
    width: 100%;
}

.bg-white{
    background-color: white;
}

.header-menu-list-name:hover{
    background-color: #79be3f;
}

.header-menu-list-box2{
    box-shadow: 0 5px 10px rgba(0, 0, 0, .35);
    text-align: center;
    box-sizing: border-box;
    padding: 5px 0;
    transition: all .3s linear;
    opacity: 0;
    pointer-events: none;
    max-height: calc(80vh - 50px);
}

.header-menu-list-name:hover ~ .header-menu-list-box{
    opacity: 1;
}

/*--------------header-style1-----------------*/
.header-style1{
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    position: fixed;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-color: #fff;
}
.header-box{
    width: 1820px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 15px 0;
}
body.open{
    overflow: hidden;
}


.header-logo{
    width: 300px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.header-menu-box{
    width: calc(100% - 300px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
}
.header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    color: #555;
    margin-left: 35px;
}
/* .header-white-color .header-menu> li{
    color: #eee;
} */
.header-menu> li.header-language{
    margin-left: 60px;
}
.header-language span{
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Poppins';
    margin: 0 3px;
}
.language-en{
    font-family: 'Poppins';
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.header2.header-style2 .rwd-menu{
    background-color: #01344f;
}
.header2.header-style2 .rwd-menu span{
    background-color: #555;
}


.header-menu-title{
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transition: all .3s linear;
}
div.header-menu-title{
    cursor: context-menu;
}


.rwd-menu-list-back{
    display: none;
}
.mask{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.mask.active{
    display: block;
}

.rwd-menu{
    width: 90px;
    max-width: 100%;
    position: absolute;
    right: 20px;
    z-index: 99;
    display: none;
    top: calc(50% - 7px);
}

/*.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #ee1b2d;
    position: relative;
}*/



/*漢堡樣式1*/
/*.rwd-menu-style1> span:nth-child(even){
    margin: 4px auto;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(4){
    top: -19px;
    transform:  scale(0,1) rotate(-45deg);
}
.rwd-menu-style1> span:nth-child(4){
    display: none;
}
.rwd-menu-style1 .rwd-menu-bth-line{
    transform: rotate(-45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line2{
    transform: rotate(45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line,
.rwd-menu-style1 .rwd-menu-bth-line2{
    position: absolute;
    top: 6px;
    left:0;
    width: 100%;
}
.rwd-menu-style1 .rwd-menu-bth-line span,
.rwd-menu-style1 .rwd-menu-bth-line2 span{
    transform:  scale(0,1);
    transition: all .5s ease;
    position: relative;
}
.rwd-menu-style1.active .rwd-menu-bth-line span,
.rwd-menu-style1.active .rwd-menu-bth-line2 span{
    transform:  scale(1,1) ;
    transition-delay: .1s;
}
.rwd-menu-style1.active> span:nth-child(1),
.rwd-menu-style1.active> span:nth-child(2),
.rwd-menu-style1.active> span:nth-child(3){
    transform: scale(0,1);
}
.rwd-menu-style1.active> span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0s;
}*/

/*漢堡樣式2*/
/*
.rwd-menu-style2> span:nth-child(4){
    display: none;
}
.rwd-menu-style2> span:nth-child(2){
    display: block;
    margin: 4px auto;
}
.rwd-menu-style2{
    width: 25px;
}
.rwd-menu-style2> span{
    transition: all 0.3s ease-in-out;
}
.rwd-menu-style2 .rwd-menu-bth-line,
.rwd-menu-style2 .rwd-menu-bth-line2{
    display: none;
}
.rwd-menu-style2.active{
    animation: smallbig 0.6s forwards;
}
.rwd-menu-style2.active> span:nth-child(1){
    -webkit-transform: translateY(7px) rotate(45deg);
    -ms-transform: translateY(7px) rotate(45deg);
    -o-transform: translateY(7px) rotate(45deg);
    transform: translateY(7px) rotate(45deg);
}
.rwd-menu-style2.active> span:nth-child(2){
    opacity: 0;
}
.rwd-menu-style2.active> span:nth-child(3){
    -webkit-transform: translateY(-5px) rotate(-45deg);
    -ms-transform: translateY(-5px) rotate(-45deg);
    -o-transform: translateY(-5px) rotate(-45deg);
    transform: translateY(-5px) rotate(-45deg);
}

.rwd-menu-style2.active> span:nth-child(1), 
.rwd-menu-style2.active> span:nth-child(2), 
.rwd-menu-style2.active> span:nth-child(3) {
    -webkit-transition-delay: 0.2s;
    -o-transition-delay: 0.2s;
    transition-delay: 0.2s;
}*/



@keyframes smallbig{
  0%, 100%{
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }

  50%{
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
  }
}

/*漢堡樣式3*/

.rwd-menu-text,
.rwd-menu-text-c{
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    color: #555;
    position: relative;
    letter-spacing: 1px;
    z-index: 9;
    font-weight: bold;
}
.rwd-menu-text.close,
.rwd-menu-text-c{
    display: none;
    color: #555;
}
.rwd-menu-text-c.open{
    display: inline-block;
}
.rwd-menu-span{
    width: calc(100% - 46px);
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding: 0 5px;
    z-index: 9;
    position: relative;
}
.rwd-menu-span span{
    width: 100%;
    display: block;
    height: 2px;
    background-color: #555;
    position: relative;
    transition: all .3s linear;
}
.rwd-menu-span span:nth-child(2){
    width: 60%;
    margin-top: 3px;
}
.rwd-menu.active .rwd-menu-span span{
    width: 100%;
    transform: rotate(-45deg);
    background-color: #555;
}
.rwd-menu.active .rwd-menu-span span:nth-child(2){
    transform: rotateZ(45deg);
}
.rwd-header-menu-bc-t{
    position: fixed;
    top: 0;
    right: 0;
    background-color: #fff;
    width: 0%;
    height: 50%;
    z-index: 1;
    pointer-events: none;
    transition: all .5s ease-in;
}
.rwd-header-menu-bc-b{
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fff;
    width: 0%;
    height: 50%;
    z-index: 1;
    pointer-events: none;
    transition: all .5s ease-in;
}
.rwd-header-menu-bc.open{
    width: 100%;
}
.header2 .rwd-menu-text, 
.header2 .rwd-menu-text-c,
#products-page .rwd-menu-text, 
#products-page .rwd-menu-text-c{
    color: #555;
}
.header2 .rwd-menu-span span,
#products-page .rwd-menu-span span{
    background-color: #555;
}


/*<-----------header2 & page-header---------->*/







/*--------------------- hover ---------------------*/

.header-menu-title:hover,
.header-menu> li.active .header-menu-title,
.header-menu-title.active{
    color: #79be3f;
}






/*------------------------------------------*/
@media only screen and (max-width: 1830px){
    .header-box{
        width: 95%;
        box-sizing: border-box;
        padding: 15px 10px;
    }
}
@media only screen and (max-width: 1000px){
    .rwd-menu{
        display: block;
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: 100vh;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 9;
        display:         flex;
        display: -webkit-flex;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        flex-direction:column;
        transition: all .3s linear; 
    }
    .rwd-header-menu-sytle1 .header-menu.open{
        transition-delay: 0.4s;
        opacity: 1;
        pointer-events: auto;
    }
    .rwd-header-menu-sytle1.header2 .header-menu{
        width: 100%;
    }
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 20px;
        color: #000;
    }
    .header-white-color .header-menu> li{
        color: #333;
    }
    .header-menu-title{
        font-size: 18px;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
    }
}
@media only screen and (max-width: 550px){
    .header-logo{
        width: 130px;
    }
    .header-menu-title{
        font-size: 14px;
    }
}