@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{
  max-width: 1400px;
  padding: 40px;
  margin: 30px auto 0;
}
.header img{
  width: 100%;
  display: block;
}
.header--spbtv{
  max-width: 1100px;
}

.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;
  color: #ddd;
  -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: #666;
  text-decoration: none;
}
.mainmenu a:hover{
  color: #333;
}
.mainmenu__green a{
  color: #FFF;
}
.mainmenu__link{
  display: inline-block;
  margin-right: 40px;
}
.mainmenu__linka{
  color:#666;
  display: inline-block;
  cursor: pointer;
}
.mainmenu__linka:hover{
  color: #333;
}
.mainmenu__line{
  background: #ccc;
  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: #999;
  position: relative;
  font-size: 12px;
  cursor: pointer;
  -webkit-transition: all .2s; /* Safari */
  transition: all .2s;
}
.mainmenu__green .mainmenu__lang{
  color:#FFF;
}
.mainmenu__green .mainmenu__linka{
  color: #FFF;
}
.mainmenu__green .mainmenu__linka:hover{
  color: #333;
}
.mainmenu__lang--tri{
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 3px 0 3px;
  border-color: #999999 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;
}
.backtohome{
  background:#00c88c;
  display: inline-block;
  position: fixed;
  left: 40px;
  top: 10px;
  padding: 10px 16px;
  border-radius: 20px;
  color: #FFF;
  font-size: 15px;
  -webkit-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
  -moz-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
  box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
  cursor: pointer;
  -webkit-transition: all .2s; /* Safari */
  transition: all .2s;
}
.backtohome img{
  width: 20px;
  height: auto;
  margin-right: 20px;
  position: relative;
  display: inline-block;
  top: 2px;
  left: -2px;
}
.backtohome:hover{
  color: #bdeedf;
}
.backtohome__noshadow{
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.content{
  width: 100%;
  max-width: 1400px;
  padding: 20px 40px 40px;
  margin: 0 auto;
  position: relative;
}
.content__title{
  color: #00c88c;
  width: 36%;
  display: inline-block;
  vertical-align: top;
}
.content__title h2{
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 20px;
}
.content__title h3{
  font-size: 48px;
  font-weight: 300;
}
.content__share{
  position: absolute;
  bottom: 40px;
  left: 40px;
  color:#808080;
  cursor: pointer;
}
.content__share span{
  color: #00c88c;
}
.content__desc{
  width: 45%;
  display: inline-block;
  vertical-align: top;
  color: #808080;
  font-size: 18px;
  margin-left: 10%;
}
.content__desc h4{
  font-size: 30px;
  font-weight: 400;
  color: #00c88c;
  text-transform: uppercase;
}
.content__desc p{
  margin: 20px 0 50px 0;
}
.content__pic{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.content__pic img{
  max-width: 100%;
  height: auto;
}

.works{
  margin: 60px auto 0;
  width: 100%;
  max-width: 1400px;
  text-align: center;
}
.works h2{
  font-size: 42px;
  color: #00c88c;
  font-weight: 400;
  text-align: center;
  margin-bottom: 30px;
}
.works a{
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.work{
  position: relative;
  display: inline-block;
  margin: 0;
  cursor: pointer;
  width: 49.8%;
}
.work img{
  display: block;
  width: 100%;
  height: auto;
}
.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);
}
.work__right{
  margin-left: -5px;
}

.copyright{
  color: #a0ebd5;
  font-size: 12px;
  background: #00c88c;
  text-align: center;
  padding: 20px;
  margin-top: -4px;
}

.vdo{
  text-align: center;
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  height: auto;
}
.vdo img{
  width: 100%;
}
.vdo__play{
  position: absolute;
  top:50%;
  left:50%;
  margin-top: -39px;
  margin-left: -39px;
  background: url("../images/vdoplay.png") no-repeat;
  width: 78px;
  height: 78px;
  cursor: pointer;
  z-index: 2;
}
.vdo--limited img{
  max-width: 600px;
}
.vdo a:hover .vdo__play{
  background-position: -78px 0;
}

/* ################################################################################################################## 800px */
@media only screen and (max-width: 800px) {

  .content {
    padding: 20px 40px 50px;
  }
  .content__title{
    width: 90%;
  }
  .content__desc{
    width: 90%;
    margin-left: 0;
    margin-top: 20px;
  }
  .content__desc p {
    margin: 20px 0 20px 0;
  }
  .content__desc h4 {
    font-size: 24px;
  }
  .content__share{
    bottom:20px;
  }
  .works h2{
    font-size: 30px;
  }
}

/* ################################################################################################################## 800px */
@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{
    padding: 40px 20px 20px;
  }

  .content {
    padding: 0 20px 50px;
  }
  .content__title h2{
    font-size: 30px;
    margin-bottom: 0;
  }
  .content__title h3{
    font-size: 28px;
    margin-bottom: 10px;
  }
  .content__desc{
    font-size: 16px;
  }
  .content__desc h4{
    font-size: 20px;
  }
  .content__desc p{
    margin: 10px 0 20px 0;
  }
  .content__share{
    left: 20px;
  }
  .works h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .work__content div{
    display: none;
  }
  .copyright{
    padding: 10px;
    font-size: 10px;
  }
}
