* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Anuphan', sans-serif;
}

main {
  height: 100%;
  width: 100%;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.loading {
  position: fixed;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  transition: 0.6s;
  z-index: 9999;
}
#svg {
  height: 200px;
  width: 200px;
  stroke: #fff;
  fill: #000;
  stroke-width: 2px;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: logo 5s ease infinite alternate;
}
.logoname  {
  margin-bottom: 5rem;
}

@keyframes logo {
  0% {
    fill: transparent;
    stroke-dashoffset: 0;
  }
  100% {
    fill: #000;
    stroke-dashoffset: 100;
  }
}

#cursor {
  pointer-events: none;
  width: 5rem;
  height: 5rem;
  mix-blend-mode: difference;
  border: solid 1px rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: fixed;
  top: 50%;
  left: 50%;
  transition: 0.35s ease width, 0.35s ease height, 0.35s ease border, 0.35s ease background;
  transform: translate(-50%, -50%);
  z-index: 1005;
}
#button {
  cursor: pointer;
  visibility: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  text-align: center;
  color: #d3c1b7;
  mix-blend-mode: exclusion;
  font-size: 3rem;
  font-weight: bold;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
  z-index: 1000;
  transition: opacity 0.6s;
}
#cursor.button {
  cursor: pointer;
  pointer-events: unset;
  width: 20rem;
  height: 20rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
#cursor.button ~ #button {
  visibility: visible !important;
}

#joyDiv {
  position: absolute;
  bottom: 2vh;
  z-index: 1000;
  background: rgba(126, 126, 126, 0.5);
  border: medium solid #fff;
  border-radius: 50%;
  height: 80px;
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#joystick {
  height: 80px;
  width: 80px;
}

#direction {
  position: fixed;
  bottom: 5vh;
  font-size: 1.4rem;
  font-weight: 200;
  text-align: center;
  transition: 0.6s;
}

#gameCanvas {
  width: 100%;
  height: 100%;
}

#closebar {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 5vh;
  left: 0;
  border-radius: 100%;
  right: 0;
  margin: auto;
  padding: 0;
  width: 25px;
  height: 25px;
  z-index: 900;
}
#closebar1 {
  width: 100%;
  background-color: #000;
  height: 1px;
  position: absolute;
  padding: 0;
  right: 0;
  margin: 0;
  top: 0;
  top: 7px!important;
  transform: rotate(45deg)!important;
  -webkit-transform: rotate(45deg)!important;
  -moz-transform: rotate(45deg)!important;
  -o-transform: rotate(45deg)!important;
}
#closebar2 {
  width: 100%;
  background-color: #000;
  height: 1px;
  position: absolute;
  padding: 0;
  right: 0;
  margin: 0;
  top: 0;
  top: 7px!important;
  transform: rotate(-45deg)!important;
  -webkit-transform: rotate(-45deg)!important;
  -moz-transform: rotate(-45deg)!important;
  -o-transform: rotate(-45deg)!important;
}

.content {
  display: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  background: linear-gradient(180deg, #969da3, #f3f0eb);
  z-index: 800;
}
#vanta, #vantaMenu {
  width: 100%;
  height: 100vh;
  opacity: 0.4;
  mix-blend-mode: luminosity;
}
.gallery {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  perspective: 100vw;
  perspective-origin: 50%;
  transition: opacity 1.2s cubic-bezier(.77,0,.175,1);
}
.pic {
  width: 30%;
  height: 30vw;
  transform: translate3d(0px, 0px, 0px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  filter: blur(100px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pic img {
  width: 100%;
}
.pic--1 { 
  margin-left: -33%;
  margin-top: -30%;
}
.pic--2 { 
  margin-left: 3%;
}
.pic--3 { 
  margin-left: -33%;
}
.pic--4 { 
  margin-top: -33%;
}
.text {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  color: #000;
  opacity: 1;
  font-size: 3rem;
  font-weight: bold;
  z-index: 1000;
  text-transform: uppercase;
  text-align: center;
}
.text.program {
  font-size: 2rem;
  font-weight: 600;
}

.report {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  perspective: 100vw;
  perspective-origin: 50%;
  transition: opacity 1.2s cubic-bezier(.77,0,.175,1);
}
.report .pic {
  height: auto;
  transform: translate3d(-50%, -50%, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.report .pic--1 {
  margin-left: -24vw;
  margin-top: 0;
}
.report .pic--1.fixed {
  justify-content: flex-start;
}
.content .box {
  position: relative;
}
.report .pic img {
  height: 33.75vh;
  width: auto;
}
.content a {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #969da3;
  color: #fff;
  font-size: 1.6rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: unset;
  transition: opacity 0.4s cubic-bezier(.77,0,.175,1);
}
.content a.light {
  mix-blend-mode: multiply;
}
.content a.dark {
  mix-blend-mode: hard-light;
}
.content img:hover ~ a, .content a:hover {
  cursor: pointer;
  opacity: 1;
}
.context {
  pointer-events: none;
  height: 45%;
}
.name {
  font-size: 3.6rem;
  font-weight: 400;
  white-space: nowrap;
}
.title {
  top: 0.8vh;
  position: relative;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 4rem;
  white-space: nowrap;
}
.paragraph {
  position: relative;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 2rem;
}

#fp-nav {
  position: fixed;
  z-index: 100;
  top: 50%;
  opacity: 1;
  margin: 0;
  -webkit-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
  width: 40px;
  right: 20px;
  overflow: hidden;
}
#fp-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#fp-nav ul li {
  display: block;
  height: 3px;
  float: right;
  margin: 0 0 40px;
  position: relative;
}
#fp-nav ul li .navbar {
  display: block;
  position: relative;
  z-index: 1;
  width: 24px;
  height: 100%;
  background: #000;
  opacity: 0.6;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  cursor: pointer;
  text-decoration: none;
}
#fp-nav ul li .navbar.active {
  width: 40px;
  opacity: 1;
}

#nav-icon {
  width: 40px;
  height: 22px;
  position: fixed;
  top: 0;
  left: 0;
  margin: 40px 40px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
  z-index: 500;
}
#nav-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #000;
  border-radius: 10px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}
#nav-icon span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(2) {
  top: 10px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(3) {
  top: 20px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: -3px;
  left: 8px;
}

#nav-icon.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 26px;
  left: 8px;
}

#nav-icon.open ~ .menu {
  display: block;
}

#contact {
  width: 105px;
  height: 22px;
  position: fixed;
  top: 0;
  right: 0;
  margin: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fa-brands, .fab {
  color: #000;
  font-size: x-large;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.6s;
}
.fa-brands:hover, .fab:hover {
  opacity: 1;
}

.menu {
  display: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: 200;
  background: linear-gradient(180deg, #969da3, #f3f0eb);
}
.outContain {
  position: absolute;
  top: 0;
  left: 0;
}
.contain {
  transform: rotateZ(60deg);
  position: absolute;
  top: 220px;
  left: 420px;
}
.menu .box {
  position: absolute;
  top: 50%;
  left: 50%;
}
.block {
  position: absolute;
  top: 50%;
  left: 50%;
}
.block::before {
  content: "";
  display: block;
  height: 50px;
  width: 50px;
  background: #f3f0eb;
  transform-origin: 0 0;
  transform: rotate(90deg) skew(-30deg) scaleY(0.864);
  position: relative;
  z-index: 100;
}
.block span {
  height: 50px;
  width: 50px;
  background: #969da3;
  transform-origin: 0 0;
  transform: rotate(-30deg) skew(-30deg) scaleY(0.864);
  position: relative;
  bottom: 50px;
  display: block;
  z-index: 100;
}
.block::after {
  content: "";
  display: block;
  height: 50px;
  width: 50px;
  background: #fff;
  transform-origin: 0 0;
  transform: rotate(210deg) skew(-30deg) scaleY(0.864);
  position: relative;
  bottom: 100px;
}
.block.use::before {
  background: #ad9a94;
  transition: 0.6s;
}
.block.use span {
  background: #776466;
  transition: 0.6s;
}
.block.use::after {
  background: #d3c1b7;
  transition: 0.6s;
}
.menu .box .line {
  transform: rotate(330deg);
  position: absolute;
  top: 5px;
  left: 50px;
  width: 30px;
  height: 2px;
  background: #776466;
}
.menu .box .topic {
  cursor: pointer;
  transform: rotate(300deg);
  position: absolute;
  top: -110px;
  left: 35px;
  font-size: 1.8rem;
  text-transform: capitalize;
  width: 200px;
  transition: 0.6s;
}
.menu .box .topic:hover {
  background: #503c35;
  text-align: center;
  color: #fff;
}
.menu .box .topic:hover ~ .block.use::before {
  background: #665249;
}
.menu .box .topic:hover ~ .block.use span {
  background: #503c35;
}
.menu .box .topic:hover ~ .block.use::after {
  background: #9d7865;
}
.menu .box--0 {
  margin-top: -485px;
}
.menu .box--1 {
  margin-top: -425px;
}
.menu .box--2 {
  margin-top: -365px;
}
.menu .box--3 {
  margin-top: -305px;
}
.menu .box--4 {
  margin-top: -245px;
}
.menu .box--5 {
  margin-top: -175px;
}
.menu .box--6 {
  margin-top: -105px;
}
.menu .box--7 {
  margin-top: -35px;
}
.menu .box--8 {
  margin-top: 35px;
}
.menu .box--9 {
  margin-top: 105px;
}
.menu .box--10 {
  margin-top: 175px;
}
.menu .box--11 {
  margin-top: 245px;
}
.menu .box--12 {
  margin-top: 305px;
}
.menu .box--13 {
  margin-top: 365px;
}
.menu .box--14 {
  margin-top: 425px;
}
.menu .box--15 {
  margin-top: 485px;
}

@media screen and (max-width: 768px) {
  html { font-size: 14px; }
  .contain {
    left: 280px;
  }
}
@media screen and (max-width: 640px) and (min-height: 415px) {
  .contain {
    transform: rotateZ(0deg);
    top: 50vh;
    left: 25px;
  }
  .menu .box .topic {
    transform: rotate(0);
    top: -25px;
    left: 85px;
  }
}
@media screen and (max-height: 414px) {
  .contain {
    top: 80px;
  }
}
@media screen and (max-height: 720px) {
  html { font-size: 14px; }
}
@media screen and (max-height: 601px), screen and (max-width: 640px) {
  html { font-size: 12px; }
}
@media screen and (max-height: 520px), screen and (max-width: 520px) {
  html { font-size: 10px; }
}
@media screen and (max-height: 414px), screen and (max-width: 440px) {
  html { font-size: 8px; }
}