@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900');
@import url('https://fonts.googleapis.com/css?family=Prompt:300,400,500,700,900&subset=thai');

* {
  margin: 0;
  padding: 0;
}

html, body{
  margin: 0;
  padding: 0;
  background: #FFF;
  overflow: -moz-scrollbars-vertical;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Roboto', 'Prompt', sans-serif;
}
h1{
  font-size: 60px;
}

.header{
  background: url("../images/ourwork/top_bg.jpg") no-repeat;
  background-size: cover;
  width: 100%;
  height: 600px;
  position: fixed;
}
.header__content{
  background: rgba(0, 183, 128, 0.9);
  width: 100%;
  height: 100%;
  position: absolute;
}
.header__logo{
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%,0);
  z-index: 110;
}
.header__logo img{
  width: 170px;
  height: auto;
}
.header__txt{
  position: fixed;
  top: 0;
  color: #FFF;
  padding-top: 240px;
  width: 100%;
  text-align: center;
}
.header__txt a{
  color: #FFF;
  text-decoration: none;
}
.header__play{
  display: block;
  background: url("../images/ourwork/ico_play.svg") no-repeat;
  height: 42px;
  font-size: 34px;
  font-weight: 300;
  padding: 2px 0 0 60px;
  cursor: pointer;
  -webkit-transition: all .2s; /* Safari */
  transition: all .2s;
  width: 250px;
  margin: 20px auto 0 auto;
}
.header__play:hover{
  opacity: 0.9;
}

.mainmenu{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 100;
  text-align: right;
  padding-top: 20px;
  font-size: 14px;
  -webkit-transition: all .2s; /* Safari */
  transition: all .2s;
}
.mainmenu__green{
  background: #00c88c;
  -webkit-box-shadow: 0px 6px 5px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 6px 5px 0px rgba(0,0,0,0.1);
  box-shadow: 0px 6px 5px 0px rgba(0,0,0,0.1);
}
.mainmenu img{
  display: none;
}
.mainmenu__green .logo{
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translate(-50%,0);
  display: block;
  width: 160px;
  height: auto;
}
.mainmenu a{
  color: #FFF;
  text-decoration: none;
  cursor: pointer;
}
.mainmenu a:hover{
  color: #333;
}
.mainmenu__green a{
  color: #FFF;
}
.mainmenu__link{
  display: inline-block;
  margin-right: 40px;
}
.mainmenu__line{
  background: #b2eedc;
  width: 2px;
  height: 20px;
  display: inline-block;
  transform: translate(0,5px);
  margin: 0 20px;
  margin-top: -18px;
}
.mainmenu__lang{
  display: inline-block;
  margin-right: 40px;
  color: #b2eedc;
  position: relative;
  font-size: 12px;
  cursor: pointer;
  -webkit-transition: all .2s; /* Safari */
  transition: all .2s;
}
.mainmenu__green .mainmenu__lang{
  color:#FFF;
}
.mainmenu__lang--tri{
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 3px 0 3px;
  border-color: #b2eedc transparent transparent transparent;
}
.mainmenu__green .mainmenu__lang--tri{
  border-color: #FFFFFF transparent transparent transparent;
}
a.mainmenu__lang--other{
  position: absolute;
  top: 100%;
  left: -5px;
  background-color: #999;
  color: #FFF;
  border-top: 4px solid #FFF;
  padding: 5px 10px;
  cursor: pointer;
  -webkit-transition: all .2s; /* Safari */
  transition: all .2s;
  display: none;
}
a.mainmenu__lang--other:hover{
  background-color: #666;
  color: #FFF;
}

.works{
  margin: 540px auto 0;
  width: 100%;
  max-width: 1400px;
}
.work{
  position: relative;
  display: inline-block;
  margin: 20px;
  cursor: pointer;
  width: calc( 50% - 42px);
}
.work img{
  width: 100%;
}
.work__content{
  position: absolute;
  background:  rgba(0, 183, 128, 0.9);
  color: #FFF;
  width: calc( 100% - 60px);
  height: calc( 100% - 60px);
  top: 10px;
  left: 10px;
  z-index: 2;
  margin: 20px;
  font-size: 20px;
  font-weight: 300;

  display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-ms-flex-align: center;
	-webkit-align-items: center;
	-webkit-box-align: center;

	align-items: center;
  justify-content: center;
  text-align: center;

  -webkit-transition: all .2s; /* Safari */
  transition: all .2s;

  opacity: 0;
}
.work__content h3{
  display: block;
  font-size: 34px;
  font-weight: 300;
  margin-bottom: 20px;
}
.work__content div{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.work:hover .work__content{
  opacity: 1;
  top: 0;
  left: 0;
  width: calc( 100% - 40px);
  height: calc( 100% - 40px);
}

/* CONTACT */
.contact{
  background: #00c88c;
  color: #333333;
  text-align: center;
  padding: 80px 0 20px;
  /*margin-top: -200px;*/
  position: relative;
}
.contact h2{
  color: #FFF;
  font-size: 3.2em;
}
.contact_head{
  display: block;
}
.contact__headm{
  display: none;
}
.contact__details{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  margin-top: 40px;
}
.contact__detail{
  margin-left: 9%;
  margin-top: 30px;
  width: 40%;
  display: inline-block;
  text-align: left;
  vertical-align: top;
}
.contact__detail h4{
  padding: 14px 0;
  font-size: 20px;
}
.contact__details a{
  color: #FFF;
  text-decoration: none;
}
.contact__detail span.span__w1{
  width: 60px;
  display: inline-block;
}
.contact__detail span.span__w2{
  width: 100px;
  display: inline-block;
}
.contact__social{
  color: #FFF;
  margin-top: 80px;
}
.pin__contact{
  border-bottom: 2px solid #00c88c;
  color: #00c88c;
  font-size: .9em;
  letter-spacing: .1em;
  position: absolute;
  top: 0;
  left: -35px;
  width: 200px;
  -ms-transform: rotate(-90deg); /* IE 9 */
  -webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */
  transform: rotate(-90deg);
  z-index: 100;
}

.contact__detail__mobile{
  display: none;
}
.copyright{
  color: #a0ebd5;
  font-size: 12px;
  margin-top: 50px;
}

/* ################################################################################################################## 1280px */
@media only screen and (max-width: 1280px) {
  .header{
    height: 480px;
  }
  .header__txt{
    padding-top: 180px;
  }
  .works {
    margin: 420px auto 0;
  }
}

/* ################################################################################################################## 800px */
@media only screen and (max-width: 800px) {
  .header__logo{
    left: 20px;
  }
  .mainmenu__lang{
    margin-right: 20px;
  }
  .mainmenu__link span, .mainmenu__line, #btn__gocontact{
    display: none;
  }

  .contact{
    padding: 40px 0 20px;
  }
  .contact__details{
    margin-top: 0;
  }
  .contact__detail {
    margin-left: 6%;
    width: 42%;
  }
  .contact h2 {
    font-size: 2.8em;
  }
  .copyright{
    font-size: 10px;
  }
}

/* ################################################################################################################## 420px */
@media only screen and (max-width: 420px) {
  .backtohome {
    width: 34px;
    height: 34px;
    padding: 0;
    left: 20px;
    top: 14px;
  }
  .backtohome span{
    display: none;
  }
  .backtohome img{
    margin-right: 0;
    top: 8px;
    left: -7px;
  }
  .mainmenu__lang{
    margin-right: 20px;
  }

  .header{
    height: 320px;
  }
  .header__txt{
    padding-top: 120px;
  }
  .header__txt h1{
    font-size: 44px;
  }
  .header__txt h1{
    font-size: 44px;
  }
  .header__play{
    background-size: 30px;
    background-position: 24px 0;
    font-size: 24px;
    padding: 0 0 0 24px;
    margin: 10px auto 0;
  }
  .header__logo{
    display: none;
  }
  .works {
    margin: 280px auto 0;
  }
  .work{
    width: calc(100% - 40px);
  }
  .work__content {
    font-size: 16px;
  }
  .work__content h3{
    font-size: 28px;
  }
  .contact h2{
    font-size: 32px;
  }
  .contact__detail {
    margin-left: 6%;
    width: 96%;
    margin-top: 14px;
  }
  .contact__social{
    margin-top: 20px;
  }
  .copyright{
    margin-top: 20px;
  }
}
