/*start of common style*/
#fixed_bg{  
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: -10;
  //background: url('uploads/index_image_black.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;  
}
.en #fixed_bg{ 
  //background: url('uploads/index_image_white.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;  
}
html{
   background-color: #0a1215;
}
html.en{
   background-color: white;
}
.en body{
  color: #4e4e50;
}
.en hr{
    border-color: #4e4e50;
}
/*mobile not support background-attachment: fixed, so doing this*/

section > div{
    position: relative;
}
.fb{
    background: url("images/facebook_icon_white.png");
    width: 15px !important;
    height: 15px;
    float: left;  
    background-size: contain;  
    background-position: center;
    background-repeat: no-repeat;
}
.en .fb{
    background-image: url("images/facebook_icon_grey.png");
}
.youtube{
    background: url("images/youtube_white.png");
    width: 23px !important;
    height: 23px;
    float: left;  
    background-size: contain;  
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -4px;
}
.en .youtube{
    background-image: url("images/youtube_grey.png");
}
.lang{
    width: 15px;
    height: 15px;
    float: left;     
    background-size: contain;  
    background-position: center;
    background-repeat: no-repeat; 
}
.lang.zh{
  background-image: url("images/language_en.png");   
}
.lang.en{
  background-image: url("images/language_ch.png");   
}
#menu_mini .lang{
    float: right;
    position: relative;
    top: 32px;
    margin-right: 4px;
}
#menu_mini_btn::before{
  content: "\f0c9";
  font-size: 20px;
}
.header1{
    font-size: 3.250em;    
}
.header{
    font-size: 3.000em;
    margin-top: -6px;    
}
.en .header1, .en .header, .en .subheader{
  font-family: serif, Helvetica, sans-serif, Arial;
}
.en .subheader{
   margin-bottom: 8px;
}
hr{
    margin-bottom: 20px;
    margin-top: -5px;
}
@media (max-width: 421px){
  .header1{
      font-size: 2em;
  }
  .header{
      font-size: 2em;
  }
}
/*end of common style*/

/*start of home*/
#home{
  //height: auto;
}
#home .v_middle{
   margin-top: -12px;
}
#home hr{
   width: 70%;
   max-width: 430px;
   margin-bottom: 24px;
}
.en #home hr{
   max-width: 510px;
   margin-top: 8px;
}
/*end of home*/

/*start of aboutus*/
#aboutus{
  //height: auto;
}
#aboutus .v_middle{
    height: 100%;
    padding-top: 103px;
    box-sizing: border-box;   
    overflow: hidden;
}
#aboutus hr{
   width: 90%;
   max-width: 260px;   
}
.en #aboutus hr{
  max-width: 550px;
  margin-top: 8px;
}
#aboutus .content{
    position: absolute;
    bottom: 50px;
    top: 215px;
    left: 15%;
    right: 15%;
    text-align: justify;
    font-size: 0.875em;
    overflow: hidden;
}
#aboutus .left.box{
    width: 45%;
    height: 100%;
    position: relative;
}
#aboutus .right.box{
    width: 54%;
    height: 100%;  
    overflow: auto;  
}
.en #aboutus .right.box{
  line-height: 18px;
}
#aboutus .shop{
    width: 100%;
    height: auto;    
    position: relative;       
    top: 0px; 
}
#aboutus .shop_box{
    height: 87px;
    background-color: white;
    margin-top: -8px;
    margin-bottom: 0px;
    font-size: 0.5em;
    color: black;
    box-sizing: border-box;
    padding: 8px;
    position: relative;    
    width: 100%;
}
#aboutus .shop_box a{
    height: 25px;
    line-height: 27px;
    width: 60px;
    background-color: #6b9392;
    color: white;
    text-align: center;
    display: inline-block;
    margin-top: 8px;
}
.en #aboutus .shop_box a{
    width: 90px;
}
#aboutus .alfee{    
    width: 220px;
    height: auto;    
    margin-left: 4px;
}
#aboutus .about_upper{
    width: auto;  
}
#aboutus .about_lower{
    margin-top: 8px;
    display: inline-block;
}

@media (max-width: 980px){      
    #aboutus .v_middle{
        padding-top: 8px;
    }
    #aboutus .content{
        top: 182px;
    }        
}
@media (max-height: 897px){
	#aboutus .shop{
		position: absolute;
    	bottom: 87px;
    	top: 0px; 
	}
	#aboutus .shop_box{
		position: absolute;
    	bottom: 0px;
	}
}
@media (max-width: 1100px){
    #aboutus{
        height: auto !important;
    }
    #aboutus .v_middle{
        top: 0%;
        webkit-transform: translateY(0%);
        -ms-transform: translateY(0%);
        transform: translateY(0%);
        height: auto;
    }
    #aboutus .shop{
        position: relative; 
    }
    #aboutus .shop_box{
        position: relative; 
    }
    #aboutus .content{
        position: relative;
        top: 24px;
        left: 0;
        right: 0;
    }
    #aboutus .left.box{
        width: 220px;
        margin-top: 250px;
        margin-left: 190px;
        left: 0px;        
        height: 830px;
    }
    #aboutus .right.box{
      float: left;
      margin-left: 20px;
      width: 50%;     
      overflow: visible; 
    }
    #aboutus .alfee{
        position: absolute;
        width: 220px;
        left: 190px;   
        margin-left: 0px;
    }
    #aboutus .about_upper {
        width: 70%;
    }
    #aboutus .about_lower {
        width: 70%;
    }
}
@media (max-width: 865px){
    #aboutus .left.box{
        float: none;
        margin: auto;
        top: 360px;
        position: relative;
        width: 300px;
    }    
    #aboutus .right.box{
        float: none; 
        margin: auto;        
        width: 90%;
        position: relative;   
        display: block;    
        padding-bottom: 20px;    
    }
    #aboutus .about_upper {
        width: 100%;
    }
    #aboutus .about_lower{
        width: 100%;
    }
    #aboutus .alfee{
        width: 300px;
        max-width: none;
        left: 0px;   
        right: 0px;     
        top: -840px;
        margin: auto;        
        float: none;
        display: block;
    }
}
/*end of aboutus*/

/*start of how_its_work*/
#how_its_work{
    width: 100%;
    margin: auto;
    margin-bottom: 48px;   
    padding: 8px; 
    padding-top: 103px; 
    box-sizing: border-box;
}
#how_its_work hr{
   width: 90%;
   max-width: 380px;   
}
.en #how_its_work hr{  
    margin-top: 8px;
}
#how_its_work_grid{
    margin-top: 12px;
}
#how_its_work .work_pic{    
    background-size: cover;  
    background-position: center; 
    background-repeat: no-repeat;       
}
#how_its_work .work_text{        
    border: 1px solid white;    
    position: relative;
    padding: 5px;
    box-sizing: border-box;  
    overflow-y: hidden;
    overflow-x: hidden;
    //background-color: #0a1215;  
}
#how_its_work .work_text .box{    
    display: table-cell;
    position: relative;
    width: auto;
    text-align: left;
    width: auto;    
}
#how_its_work .work_text .arrow_box{
    width: 15px;
    vertical-align: top;
}
#how_its_work .work_text .arrow{    
    width: 100%;
    height: 30px;
    background-image: url('images/How_it_work_step_arrow.png');
    background-size: contain;  
    background-repeat: no-repeat;    
    position: absolute;       
}
#how_its_work .work_text .step{        
    padding-left: 8px;   
    padding-right: 8px; 
    font-size: 1.5em;
    line-height: 1.25em; 
}
.en #how_its_work .work_text .step{
    width: 95px;
    padding-right: 0px;
    position: absolute;
    left: 24px;
}
.en #how_its_work .work_text .textbox{
    position: absolute;    
    font-size: 0.875em;
    margin-top: 4px;
}
#how_its_work .work_text .title{
    width: auto;    
    font-size: 1.5em;
    line-height: 1.25em;    
}
#how_its_work .work_text .descript{
    position: relative;
    display: inline-block;
    text-align: left; 
    line-height: 24px;   
}
.en #how_its_work .work_text .descript{
    width: 100%;    
    padding-left: 23px;
    box-sizing: border-box;
    line-height: 23px;
}
.en #how_its_work .work_text .title{
    margin-left: 120px;
}
#how_its_work .step_grid{
  margin-bottom: 10px;
}

#how_its_work .work_pic.step1{
  background-image: url('images/How_it_work_step1.jpg');    
}
#how_its_work .work_pic.step2{
  background-image: url('images/How_it_work_step2.jpg');   
}
#how_its_work .work_pic.step3{
  background-image: url('images/How_it_work_step3.jpg'); 
  background-size: contain;    
  background-color: white;  
}
#how_its_work .work_pic.step4{
  background-image: url('images/How_it_work_step4.jpg');   
}
#how_its_work .work_pic.step5{
  background-image: url('images/How_it_work_step5.jpg');     
}
#how_its_work .work_pic.step6{
  background-image: url('images/How_it_work_step6.jpg');        
}
#how_its_work .work_pic.step7{
  background-image: url('images/How_it_work_step7.jpg');    
}
#how_its_work .work_pic.step8{
  background-image: url('images/How_it_work_step8.jpg');
}

/*default size and position*/
#how_its_work .work_pic.step1{  width: 600px; height: 500px; }
#how_its_work .work_text.step1{ width: 600px; height: 100px; }
#how_its_work .work_pic.step2{  width: 300px; height: 400px; }
#how_its_work .work_text.step2{ width: 300px; height: 400px; }

#how_its_work .work_pic.step3{ width: 600px; height: 500px; }
#how_its_work .work_text.step3{ width: 600px; height: 100px; }
#how_its_work .work_pic.step4{ width: 300px; height: 400px; }
#how_its_work .work_text.step4{ width: 300px; height: 400px; }

#how_its_work .work_pic.step5{ width: 600px; height: 300px; }
#how_its_work .work_text.step5{ width: 300px; height: 300px; }
#how_its_work .work_pic.step6{ width: 300px; height: 400px; }
#how_its_work .work_text.step6{ width: 900px; height: 100px; }

#how_its_work .work_pic.step7{ width: 300px; height: 500px; }
#how_its_work .work_text.step7{ width: 300px; height: 500px; }
#how_its_work .work_pic.step8{ width: 300px; height: 500px; }
#how_its_work .work_text.step8{ width: 300px; height: 500px; }

@media (max-width: 425px){
  #how_its_work .work_text .descript{
      font-size: 0.725em;
      line-height: 20px !important;
  }
  .en #how_its_work .work_text .descript{
      font-size: 0.5em;
      line-height: 15px !important;
  }  
}
@media (max-width: 320px){
  #how_its_work .work_text.step5 .descript,
  #how_its_work .work_text.step6.descript,
  #how_its_work .work_text.step7 .descript,
  #how_its_work .work_text.step8 .descript{      
      line-height: 14px !important;
  }
  .en #how_its_work .work_text.step2 .descript,
  .en #how_its_work .work_text.step3 .descript,
  .en #how_its_work .work_text.step6 .descript,
  .en #how_its_work .work_text.step7 .descript,
  .en #how_its_work .work_text.step8 .descript{         
      line-height: 11px !important;
  }  
  .en #how_its_work .work_text.step1 .title{  
    font-size: 1.4em;
  }
  .en #how_its_work .work_text.step7 .title{
     font-size: 1.2em;
  }
}
/*end of how_its_work*/

/*start of portfolio*/
#portfolio{
    width: 100%;
    margin: auto;
    margin-bottom: 48px;   
    padding: 8px; 
    padding-top: 103px; 
    box-sizing: border-box;
}
#portfolio hr{
   width: 90%;
   max-width: 260px;   
}
.en #portfolio hr{
    margin-top: 8px;
}
#portfolio_grid{
   margin-top: 12px;
}
#portfolio .brick{
    width: 320px;
    height: 210px;
    overflow: hidden;
}
#portfolio .img{    
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    -ms-transition: background 0.3s;
    transition: background 0.3s;
}
#portfolio .img:hover{
    background-size: 110% 110%;
    cursor: pointer;
}
#portfolio_detail{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    display: none;
    color: white;
}
#portfolio_detail .close{
    position: relative;
    width: 26px;
    height: 26px;
    margin: auto;
    background-repeat: no-repeat;
    background-image: url('images/Portfolio_cross_icon.png');
    background-position: center;
    top: 15px;
    cursor: pointer;    
}
#portfolio_detail .detail{
    width: 90%;
    height: 100%;
    max-width: 850px;
    margin: auto;
    top: 30px;
    bottom: 4px;
    position: relative;
    overflow: hidden;
}
#portfolio_detail .detail .images{
    float: left;
    width: 540px;
    height: 90%;    
    overflow: auto;
    z-index: 100;
}
#portfolio_detail .detail .info{
    float: left;
    width: 300px;
    height: 100%;
    box-sizing: border-box;
    padding-left: 35px;   
    text-align: left;
}
#portfolio_detail .detail .images img{
    width: 100%;
    height: auto;
    margin-bottom: 38px;
}
#portfolio_detail .detail .info_box{
    margin-top: 18px;
    border: 1px solid white;
    width: 254px;
    height: 94px;
    padding: 5px;
    box-sizing: border-box;
}
#portfolio_detail .detail .info_box > div{
    overflow: hidden;
    white-space: nowrap;
}
#portfolio_detail .detail .info_box .subject{
    width: 15%;
    display: inline-block;
    text-align: right;
}
.en #portfolio_detail .detail .info_box .subject{
    width: 29%;
}
#portfolio_detail .detail .info_box .data{
    width: 60%;
    margin-left: 10%;
}
@media (max-width: 939px){   
    #portfolio_detail .detail .images{
        float: none;              
        overflow: auto;        
        position: absolute;
        left: 0px;
        right: 0px;
        top: 148px;
        bottom: 60px;
        width: auto;
        height: auto;
    }
    #portfolio_detail .detail .info {     
        position: absolute;
        top: 0px;        
        height: 140px;        
        left: 0px;
        right: 0px;        
        padding-left: 0px;
    }
    #portfolio_detail .detail .info_box{
        font-size: 0.875em;
        height: 82px;
    }
}
/*end of portfolio*/

/*start of testimonials*/
#testimonials{
    width: 100%;
    margin: auto;
    margin-bottom: 48px;   
    padding: 8px; 
    padding-top: 103px; 
    box-sizing: border-box;
}
#testimonials hr{
   width: 90%;
   max-width: 604px;   
}
.en #testimonials hr{
    margin-top: 8px;
}

#testimonials_grid{
   margin: auto;
   margin-top: 24px;
   text-align: left;
   max-width: 820px;
   width: 80%;
}
#testimonials_grid .comment{
  position: relative;
  text-align: justify;  
  margin-bottom: 24px;
}
#testimonials_grid .comment::before{
   content: "";
   background-image: url("images/testimonials_open_quotation_mark.png");
   background-position: center center;
   background-size: 100% 100%;
   width: 87px;
   height: 80px;   
   position: absolute;
   left: -60px;
   top: -34px;
   opacity: 0.4;
   z-index: -1;
}
#testimonials_grid .descript{
    display: inline-block;
    width: 100%;
    margin-top: 12px;
}
#testimonials_grid .rating_box{
  float: left;
}
#testimonials_grid .commenter_box{
  float: right; 
}
#testimonials_grid .rating_box .subject,
#testimonials_grid .rating_box .ratings{
  float: left;
}
#testimonials_grid .rating_box .ratings{
  top: -3px;
  position: relative;
}
/*end of testimonials*/

/*start of contactus*/
#contactus{
    width: 100%;
    margin: auto;
    margin-bottom: 48px;   
    padding: 8px; 
    padding-top: 108px; 
    box-sizing: border-box;
}
#contactus hr{
   width: 90%;
   max-width: 280px;   
}
.en #contactus hr{
    margin-top: 8px;
}
#contactus .google_map,
#contactus .info{
  margin-top: 24px;
}
#contactus .info sep::before{
   content: "|";
   margin-left: 12px;
   margin-right: 12px;
}
#contactus .v_middle{

}
#google_map iframe{
    pointer-events: none;
}

@media (max-width: 691px){
  #contactus .info sep{
    display: none;
  }
  #contactus .info{
    width: 90%;
    margin-left: auto;  
    margin-right: auto;  
  }
  #contactus .info span{
    display: block;
    text-align: left;
  }
  #contactus .info span span{
    float: left;
    margin-right: 4px;
  }
}
/*end of contactus*/
