/*
 Theme Name:     DEM 2015
 Theme URI:      http://dem-global.com/
 Description:    DEM Inc. WordPress theme
 Author:         DEM
 Author URI:     http://dem-global.com/
 Version:        1.0.0
*/

/* ----------------------- Fix font-family to all html element ------------------------ */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, blockquote, pre,
a, abbr, acronym, address, code, del,
dfn, em, img, q, dl, dt, dd, ol, ul,
li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead,
tr, th, td, .search_box p, input, select, label
{
	font-family: Arial, 微軟正黑體, 'STHeiti Light', 'lucida grande', tahoma, verdana, arial,Gnuolane, 'Helvetica Neue', 'Microsoft JhengHei', 新細明體, 'Microsoft YaHei', "Lucida Grande", "Lucida Sans Unicode" !important;
  word-wrap:break-word;
}
/* ----------------------- Fix font-family to all html element ------------------------ */

/********** Top Bar **********/
.contain-to-grid{
	box-shadow:0 0 10px -2px #888;
	position: relative;
  min-height: 45px;
	z-index:9999;
}
.contain-to-grid.fixed {
	position: fixed !important;
}

.top-bar, .contain-to-grid, .top-bar-section ul li, .top-bar-section li:not(.has-form) a:not(.button) {
	background:#fff !important;
}

.top-bar {
	height:73px !important;
}

.top-bar-section {
  min-width:390px;
  float:right;
}

.top-bar-section ul li>a {
	font-size:14px !important;
	line-height: 73px !important;
	color:#000 !important;
}
.top-bar-section ul li>a:hover {
	color:#000 !important;
}

.top-bar .logo {
	margin-top:18px;
	width:160px;
	height: 40px;
	display:block;
	background:url(../../../img/logo-small.jpg);
}

.top-bar.expanded .title-area {
	background: #fff;
}

.top-bar.expanded {
	height:auto !important;
}

.top-bar.expanded.fixed {
  position: fixed;
}

.top-bar.expanded .top-bar-section > div.right {
  width:100%;
}

.top-bar .toggle-topbar.menu-icon a span:after {
	box-shadow:0 0 0 1px #000,0 7px 0 1px #000,0 14px 0 1px #000;
}

.top-bar.expanded .toggle-topbar a span:after {
	box-shadow:0 0 0 1px #888,0 7px 0 1px #888,0 14px 0 1px #888;
}

@media only screen and ( max-width: 40.063em ) {

	.top-bar {
		height: 45px !important;
	}

	.top-bar .logo {
		margin:4px 0 0 8px;
		float:left;
	}

	.top-bar-section ul li > a {
	    line-height: 20px !important;
    	border-top: 1px solid #eee;
	}

  .top-bar-section ul li:last-child > a {
    border-bottom: 1px solid #eee;
  }

}


/********** Home slider **********/
.home-orbit .orbit-title {
  position:absolute;
  bottom:0px;
  z-index:10;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.home-orbit .orbit-cover {
  position: relative;
  width:100%;
  max-width: none !important;
}

.home-orbit .orbit-title .orbit-title-wrap {
	padding-top:20px;
	padding-bottom:50px;
}

.home-orbit .orbit-title h3 {
  color:#fff;
  font-size:18px;
}

.home-orbit .orbit-title-mask {
  position: absolute;
  bottom:0px;
  height: 300px;
  width:100%;
  background:linear-gradient(to top, rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.25), rgba(0,0,0,0));
}

.orbit-bullets-container {
  margin-top:-41px;
  position:relative;
  z-index:10;
}

.orbit-bullets li {
  width:11px;
  height: 11px;
}

.orbit-bullets li.active {
  background: #4D4D4D;
  border: 1px solid #fff;
  width: 11px;
  height: 11px;
}

.home-orbit .orbit-link {
  display:block;
}

.home-orbit img {
  display: none;
}

.home .orbit-bullets {
  margin-bottom:17px;
}

/********** Home Page **********/
body.home .loading-icon {
  display:block;
}

body.home #container {
  display:none;
}

#dem-publications {
  padding:60px 0;
  box-shadow:0 -6px 10px -8px #888;
  position:relative;
  z-index:100;
  position:relative;
  width:100%;
  height:356px;
  overflow: hidden;
}

#dem-publications .hide-small-than-518 .design {
  display:block;
  float:left;
  position: absolute;
  width:50%;
  background:transparent;
  height:236px;
}

#dem-publications .hide-small-than-518 .report {
  display:block;
  float:left;
  position: absolute;
  left:50%;
  width:50%;
  background:transparent;
  height:236px;
}

#dem-publications .show-small-than-518 .design {
  display:block;
  margin-bottom:20px;
  width:100%;
}

#dem-publications .show-small-than-518 .report {
  display:block;
  width:100%;
}

.show-small-than-518 {
  display: none;
}


#dem-publications a:hover {
  opacity: 0.75;
}

#five-features {
  /* padding:40px 0; */
  margin-bottom:60px;
}
#five-features .feature {
	width: 16.6%;
	text-align: center;
  margin:0 !important;
  float:left;
  display:block;
}
#dem-contate {
	background:#202020;
	padding:60px 0;
}
/* 修改 */
	#five-features.row,#dem-projects .row,#dem-projects .row  {
		min-width: 1350px;
		width: 70% ;
		max-width: 70% !important;
	}
	#works-row,.site-content1>.row {
		min-width: 1350px;
		width: 70% ;
		max-width: 70% !important;
	}
	.contact-p {
		text-align: center;
		margin-bottom: 1rem;
		margin-top: 1rem;
	}
	#zhuanan {
    width: 56%;
    margin: auto;
    line-height: 50px;
	}
/* 修改 */
#dem-video .row,#dem-brands .row,#dem-contate .row {
		max-width: 1200px;
}
#five-features .feature:first-child {
  margin-left:0px;
}

#five-features .feature .feature-icon {
  width: 100%;
  height: 110px;
}

#five-features .feature .feature-icon.a {
  background:url(../../../img/icon/酒店系统.jpg) no-repeat 50%;
	
}

#five-features .feature .feature-icon.b {
  background:url(../../../img/icon/商城系统.jpg) no-repeat 50%;
}

#five-features .feature .feature-icon.c {
  background:url(../../../img/icon/网站系统.jpg) no-repeat 50%;
}

#five-features .feature .feature-icon.d {
  background:url(../../../img/icon/餐饮系统.jpg) no-repeat 50%;
}

#five-features .feature .feature-icon.e {
  background:url(../../../img/icon/家政系统.jpg) no-repeat 50%;
}
#five-features .feature .feature-icon.f {
  background:url(../../../img/icon/直播系统.jpg) no-repeat 50%;
}

#five-features .feature .feature-icon img {
  display:block;
	margin: 0 auto;
  /* position: absolute; */
  max-width: none;
  /* left:0;
  top:0; */
}

#five-features .block-title {
  margin:12px 0;
  font-size:16px;
  color:#000;
  text-align: center;
}

#dem-projects .dem-title {
  margin-bottom:20px;
  font-size: 18px;
  font-weight: bold;
  color:#000;
  line-height: 1.5;
  text-align: center;
}

#dem-projects .project {
  margin-bottom:40px;
}

#dem-projects .block-title {
  margin-top:16px;
  font-size: 18px;
  font-weight: bold;
  color:#000;
  line-height: 1.5;
  text-align: center;
}

#dem-projects .block-desc {
  margin-top:8px;
  color:#000;
  font-size:14px;
  line-height: 1.5;
  text-align: center;
	display:-webkit-box; 
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow:hidden;
	min-height: 45px;
	/* overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis; */
}


#dem-video {
  padding:100px 0 60px;
  background: #202020;
}

#dem-video .gif-icon {
  width: 110px;
  height:110px;
  margin:0 auto;
  margin-bottom:20px;
}

#dem-video .gif-icon img {
  display:block;
}

#dem-video .video {
  margin:40px 0 20px;
}

#dem-video .video iframe {
  width:100%;
}

#dem-video .block-title {
  margin-bottom:20px;
  font-size: 18px;
  font-weight: bold;
  color:#fff;
  line-height: 1.5;
  text-align: center;
}

#dem-video .block-desc {
  margin-top:8px;
  color:#fff;
  font-size:14px;
  line-height: 1.5;
}

#dem-brands {
  padding-top:60px;
}

#dem-brands .gif-icon {
  width: 110px;
  height:110px;
  margin:0 auto;
  margin-bottom:20px;
}

#dem-brands .brand {
  display:block;
  margin-bottom:60px;
}

#dem-brands .brand .column {
  padding:0px;
}

#dem-brands .brand .column:first-child {
  padding-right: 28px;
}

#dem-brands .block-title {
  margin:0px 0px 12px 0px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  color:#000;
}

#dem-brands .dem-title {
  margin-bottom:60px;
  font-size: 18px;
  font-weight: bold;
  color:#000;
  line-height: 1.5;
  text-align: center;
}

#dem-brands .block-desc {
  font-size:14px;
  line-height: 1.5;
  color:#000;
}

#dem-social {
  padding-top:60px;
  background:#030303;
}

#dem-social .gif-icon {
  width: 110px;
  height:110px;
  margin:0 auto;
  margin-bottom:20px;
}

#dem-social .dem-title {
  margin-bottom:60px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
}

#dem-social .block-desc {
  font-size:14px;
}

#dem-social .apple-and-snake {
  width:200px;
  float:left;
  position: relative;
}

#dem-social .apple-and-snake:before {
  content:'“';
  font-size: 75px;
  position: absolute;
  left: -30px;
  top: -34px;
  color:#fff;
}

#dem-social .crazy {
  float:right;
  width:200px;
  position: relative;
}

#dem-social .crazy:before {
  content:'“';
  font-size: 75px;
  position: absolute;
  left: -30px;
  top: -34px;
  color:#fff;
}

#dem-social .fb-link {
  float:right;
  display:block;
  width:90px;
  height: 24px;
}

#dem-social .fb-link img {
  display:block;
}

#dem-social .dem-social-content {
  width:853px;
  height:696px;
  background:url(../../../img/DEM-social_0414.png);
}

.home .wpcf7-form p {
  color:#fff;
  font-size:14px;
  margin-bottom:4px;
	line-height: 35px;
}

.home .wpcf7-form .wpcf7-captcha-captcha-798 {
  margin: 5px auto 4px;
  display: block;
}

.home .wpcf7-form input[type=submit] {
  border: none;
  background: #27a2b1;
  color: #fff;
  font-size: 18px;
  padding: 6px 18px;
  margin-right: -20px;
  margin-top:10px;
  cursor: pointer;
}

.home .wpcf7-response-output {
  color:#fff;
}

.home .wpcf7-form label {
    color: #fff;
    float: left;
    margin-right: 12px;
}

.home .wpcf7-form .wpcf7-list-item {
    margin-left: 0px;
}

.home .wpcf7-form .other-service {
  float:left;
}

.home .wpcf7-form .other-service input {
    width:150px;
    margin-bottom: 0px;
    height: 20px;
    line-height: 16px;
    font-size: 14px;
    padding: 3px 6px;
}


/********** Contact us page **********/
.page-id-1102 .wpcf7-form p, .page-id-1436 .wpcf7-form p {
  font-size:14px;
  margin-bottom:4px;
}

.page-id-1102 .wpcf7-form .wpcf7-captcha-captcha-798, .page-id-1436 .wpcf7-form .wpcf7-captcha-captcha-798 {
  margin: 5px auto 4px;
  display: block;
}

.page-id-1102 .wpcf7-form input[type=submit], .page-id-1436 .wpcf7-form input[type=submit] {
  border: none;
  background: #27a2b1;
  color: #fff;
  font-size: 18px;
  padding: 6px 18px;
  margin-right: -20px;
  margin-top:10px;
  cursor: pointer;
}

.page-id-1102 .wpcf7-form label, .page-id-1436 .wpcf7-form label {
    color: #222;
    float: left;
    margin-right: 12px;
}

.page-id-1102 .wpcf7-form .wpcf7-list-item, .page-id-1436 .wpcf7-form .wpcf7-list-item {
    margin-left: 0px;
}

.page-id-1102 .wpcf7-form .other-service, .page-id-1436 .wpcf7-form .other-service {
  float:left;
}

.page-id-1102 .wpcf7-form .other-service input, .page-id-1436 .wpcf7-form .other-service input {
    width:150px;
    margin-bottom: 0px;
    height: 20px;
    line-height: 16px;
    font-size: 14px;
    padding: 3px 6px;
}

/********** About page **********/
.page-id-1081 .content {
  margin-bottom:0px !important;
}

.page-id-1376 .content {
  margin-bottom:0px !important;
}

/********** Join us page **********/
.page-id-1097 .wpcf7-form p, .page-id-1432 .wpcf7-form p {
  color:#fff;
  font-size:14px;
  margin-bottom:4px;
}

.page-id-1097 .wpcf7-form .wpcf7-captchac, .page-id-1432 .wpcf7-form .wpcf7-captchac {
  margin: 5px auto 4px;
  display: block;
}

.page-id-1097 .wpcf7-form input[type=submit], .page-id-1432 .wpcf7-form input[type=submit] {
  border: none;
  background: #27a2b1;
  color: #fff;
  font-size: 18px;
  padding: 6px 18px;
  margin-right: -20px;
  margin-top:10px;
  cursor: pointer;
}

.page-id-1097 .wpcf7-response-output, .page-id-1432 .wpcf7-response-output {
  color:#fff;
}

.page-id-1097 .content, .page-id-1432 .content {
  margin-top:0px !important;
  margin-bottom:0px !important;
}




/********** General **********/
#content {
  /* padding:0 20px; */
}

#dem-2015-global-menu .current_page_item a {
    background: #d05d00 !important;
    color: #fff;
}

.home #content {
  padding:0px;
}

a .link-mask {
  opacity: 0;
  background: rgb(208,93,0 );
  width:100%;
  height: 100%;
  transition:all 300ms ease-out;
  position:absolute;
  top:0px;
}

a:hover .link-mask {
  opacity: 0.8;
}

.link-mask img {
  width: 110px;
  height: 110px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -55px;
  margin-top: -55px;
}

a:hover .block-title {
  color:#27a2b1 !important;
}

.text-white {
  color:#fff !important;
}

.no-border {
  border:none !important;
}

.block-title {
  font-size:18px;
}

.block-desc {
  font-size:14px;
  line-height: 1.5;
}

.post-cover-img {
  padding-left:0 !important;
  padding-right:0 !important;
  margin-right:0 !important;
}

.post-cover-img img {
  width: 100% !important;
}

.post-cover {
  background-size:cover;
  height: 840px;
}

.post-cover-420 {
  background-size: cover;
  height: 420px;
}

.full-image {
  width:100% !important;
}

.content {
  margin:50px auto;
}

.content.page {
}

.content h1 {
  font-size:24px;
  font-weight: bold;
}

.content p {
  font-size:14px;
}

.content h2 {
  font-size:18px;
  font-weight: bold;
  margin:0px
}

.content h3 {
  font-size:18px;
  font-weight: normal;
  margin:0px;
}

.dem-orange-bk {
  background:#d05d00 !important;
}

.dem-grey-bk {
  background:#202020;
}

.dem-orange {
  color:#d05d00 !important;
}

.dem-orange-border-bottom {
  border-bottom:1px solid #d05d00;
}

.background-as-cover {
  background-size:cover;
}

.background-size-100 {
  background-size:100%;
}

.motopress-border-right {
  padding-right:20px;
  border-right:1px solid #bbb;
}

/*.mp-row-fluid.motopress-row-parallax {
  background-size:100%;
}*/


.loading-icon {
  background:url(../../../img/loading_icon.gif);
  width:46px;
  height:47px;
  position: fixed;
  left:50%;
  top:50%;
  margin:-24px 0 0 -23px;
  display: none;
}

/********** Footer **********/
#footer {
  background:#000;
  padding:40px 0 20px 0;
}

#footer a {
  color:#fff;
  text-decoration: underline;
  font-size:14px;
}

#footer .links .block-title {
  margin-top:0px;
  line-height: 1;
}

#footer .links {
  /* padding-left:50px; */
}

#footer .location p {
  color:#fff;
  font-size:12px;
  margin-bottom:4px;
  line-height: 1.4;
}

#footer .copyright {
  color: #fff;
  font-size: 12px;
  text-align: right;
  margin:20px 0;
}


/* 語言選取元件 */
.wpml-ls-legacy-dropdown {
    width: auto;
    max-width: 100%;
}
.wpml-ls-display.icl_lang_sel_translated{
    display: none;
}
#lang_sel {
  height: auto !important;
position: absolute;
right:0px;
  line-height:73px;
}

#lang_sel a.lang_sel_sel {
  padding-left: 0.8rem;
  border:none !important;
  text-align: center;
  padding-right: 0px;
}

#lang_sel a.lang_sel_sel > span {
  float:left;
  display:block;
  width: 73px;
}

#lang_sel ul ul {
  top:70px;
  width:90px;
  left:0px;
}

#lang_sel li {
  width:90px;
}

#lang_sel > ul > li > ul > li > a {
  line-height:24px !important;
  text-align: center;
}

#lang_sel a.lang_sel_sel span:after {
  content: '';
  display: block;
  float: right;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 8px solid #444;
  margin: 32px 0 32px 6px;
}

#lang_sel a.lang_sel_sel:after {
  clear: both;
  content: '.';
  visibility: hidden;
  height: 0px;
  width:0px;
  display: block;
}

.project-filter {
  text-align: center;
  margin:10px 0px 20px;
}

.project-filter a {
  margin: 0 5px 5px 0;
  border-radius: 30px;
  padding: 6px 12px;
  color:#868686;
  white-space: nowrap;
}

.project-filter a.active, .project-filter a:hover {
  background-color:#EBEBEB;
}


@media only screen and (max-width:999px) {

  /********** General **********/
  .top-bar .logo {
    margin-left:10px;
  }

  /*
  .block-title {
    font-size:27px !important;
  }

  .block-desc {
    font-size:21px !important;
  }
  */

  /********** Home Page **********/
  #dem-publications {
    padding:20px 0;
    height: 236px;
  }

  #five-features {
    padding:20px 10px;
    margin-bottom:0px;
  }

  #five-features .feature .feature-icon {
    margin:0 auto;
  }

  #dem-video {
    padding:50px 20px;
  }

  #dem-video > .row {
    width:auto;
  }

  #dem-video .video iframe {
    height:314px;
  }

  #dem-brands {
    padding:50px 20px 0;
  }

  #dem-social .dem-social-content {
    width:100%;
    background-position: -28px 300px;
    background-repeat: no-repeat;
    height:996px;
  }

  #dem-social .apple-and-snake {
    margin-left:100px;
  }

  #dem-social .crazy {
    margin-right:100px;
  }

  #dem-projects .project {
    margin-bottom:20px;
  }


}

@media screen and ( max-width: 936px ) {

  

}

@media screen and (max-width: 782px) {

  html #wpadminbar {
    top:-46px; /* Fix foudation body relative issue */
  }

}

@media screen and (max-width: 767px) {

  .motopress-border-right {
    padding:0px;
    border-right:none;
  }

}

@media screen and (max-width: 641px) {

  #dem-2015-global-menu > .left {
    float:none !important;
  }

  #lang_sel {
    float: none;
    display: block;
  }

  #lang_sel a.lang_sel_sel span:after {
    margin: 6px 0 6px 6px;
  }

  #lang_sel li {
    width: auto;
    float:none;
  }

  #lang_sel a.lang_sel_sel {
    text-align: left;
  }

  .top-bar.expanded {
    height: 270px !important;
    overflow: visible;
  }

  #lang_sel ul ul {
    top: 34px;
    left: 12px;
  }

  .top-bar-section {
    min-width:0px;
    width:100%;
  }

}

@media screen and (max-width: 600px) {

  #dem-social .apple-and-snake, #dem-social .crazy {
    float:none;
    margin:0 auto 50px;
  }

  #dem-social .dem-social-content {
    height:auto;
    background:none;
  }

  .dem-map {
    margin-bottom:50px;
  }

  #footer .location {
    margin-bottom:20px;
  }

  #footer .links {
    padding-left:0.9375rem;
  }

  #five-features .feature {
    width:33%;
  }

}

@media only screen and (max-width:518px) {

  .show-small-than-518 {
    display: block;
  }

  .hide-small-than-518 {
    display: none;
  }

  #dem-publications {
    height: auto;
  }

}

@media only screen and (max-width:479px) {

  #five-features {
    display:none;
  }

  #post-1097 > div:first-child {
    background-position: initial !important
  }

  #content {
    padding:0 10px;
  }

  .home #content {
    padding:0px;
  }

  #dem-projects .small-6 {
    width:100% !important;
  }

  #dem-projects .project .thumb {
    width:100%;
  }

  #five-features .feature {
    width:50%;
  }

  #dem-brands {
    padding:50px 20px 0;
  }

  #dem-brands .small-6 {
    width:100% !important;
  }

  #dem-brands .small-6 img {
    width:100%;
    margin-bottom:20px;
  }

  #dem-brands .brand .column:first-child {
    padding-right:0px;
  }

  #dem-video .video iframe {
    height:158px;
  }

}