html {
  background-color: #1e1d1e;
  -webkit-text-size-adjust: 100%;
}

* {
  font-family: "Montserrat", "Kanit", sans-serif !important;
}

#intro {
  width: 100dvw;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
#intro video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#intro-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  text-align: center;
  line-height: 100dvh;
  mix-blend-mode: screen;
  white-space: nowrap;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}
#intro h1 {
  font-size: 56px;
  font-weight: bold;
}
#intro.hide {
  animation: fade-out 0.5s forwards;
}
#intro-text.hide {
  animation: fade-out 0.5s forwards;
}
@keyframes fade-out {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.container {
  width: 100dvw;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -ms-scroll-snap-type: y mandatory;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.container::-webkit-scrollbar {
  display: none;
}

nav {
  height: 60px;
  width: 100%;
  max-width: 1280px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 5;
  /* overflow: hidden; */
}

.nav-right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  float: right;
}

.lang-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.lang-wrapper hr {
  height: 16px;
  padding: 0;
  margin: 0;
  border: none;
  border-left: 1px solid #acacac;
}

.lang-wrapper span {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #acacac;
}
.lang-wrapper span.active {
  color: #ffffff;
}

.logo {
  cursor: pointer;
  width: 120px !important;
  position: fixed;
  left: 2%;
  top: -10px;
}

.section {
  width: 100dvw;
  height: 100dvh;
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-align: start;
  overflow-y: hidden;
  overflow-x: auto;
  scrollbar-width: none;
}
.section::-webkit-scrollbar {
  display: none;
}

.subsection {
  flex: 0 0 100%;
}

.carousel {
  width: 100dvw;
  height: 100dvh;
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-align: start;
  overflow-y: hidden;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}

.subcarousel {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.bg {
  position: relative;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.5s;
  opacity: 0.7;
}

.menu-wrapper {
  width: 100dvw;
  height: 100dvh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  opacity: 0;
  visibility: hidden;
  background-color: #1e1d1e;
}
.menu-wrapper.show {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}
.menu-wrapper.hide {
  z-index: -5;
}

.menu-list {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 0px;
  opacity: 0;
  transition: all 0.5s ease;
  visibility: visible;
}
.menu-wrapper.show .menu-list {
  opacity: 1;
  gap: 24px;
}
.menu-list button {
  width: max-content;
  margin: 0 auto;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 26px;
  font-weight: 300;
  color: #acacac;
}
.menu-list hr {
  width: 0;
  border: none;
  border-top: 1px solid #817f7f;
  transition: all 0.3s ease;
}
.menu-wrapper.show .menu-list hr {
  width: 228px;
}
.menu-list.hide {
  opacity: 0 !important;
}
.menu-list.hide hr {
  width: 0 !important;
}
.menu-list.hide {
  opacity: 0 !important;
}

.menu-detail button {
  width: max-content;
  margin: 0 auto;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 26px;
  font-weight: 300;
  color: #acacac;
  opacity: 1;
  transition: all 0.2s ease;
}
.menu-detail.hide button {
  opacity: 0;
  margin-bottom: -60px;
}
.menu-detail {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}
.menu-detail.hide {
  opacity: 0;
  visibility: hidden;
}
.menu-detail hr {
  width: 228px;
  border: none;
  border-top: 1px solid #817f7f;
  transition: all 0.3s ease;
}
.menu-detail.hide hr {
  width: 0;
}
.menu-detail p {
  width: calc(100dvw - 40px);
  max-width: 480px;
  color: #acacac;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}
.menu-detail.hide p {
  margin-top: -40px;
}
/* .menu-wrapper:has(#menu-know:not(.hide)) .bg {
  object-position: left;
}
.menu-wrapper:has(#menu-touch:not(.hide)) .bg {
  object-position: right;
} */

.contact-wrapper {
  width: max-content;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 20px;
  margin: 20px 0;
}
.contact-item a {
  cursor: pointer;
  color: #acacac;
  font-size: 16px;
  font-weight: 500;
}
.contact-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.map-wrapper {
  width: max-content;
}
.map-wrapper h2 {
  color: #acacac;
  font-size: 20px;
  font-weight: 300;
}
.map-wrapper p {
  width: calc(100dvw - 40px);
  max-width: 300px;
  margin: 10px 0;
  text-align: left;
}
.map-wrapper .contact-item {
  margin: 10px 0;
}
.touch-wrapper {
  display: flex;
  gap: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px;
}
.hero .title {
  width: 220px;
  margin-left: -36px;
  font-size: 26px;
  font-weight: 300;
  color: #acacac;
  text-align: right;
  white-space: nowrap;
}
.hero .brand-title {
  font-weight: 500;
}

.scroll-icon {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: absolute;
  top: calc(50% + 64px);
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bounce 3s ease infinite, flash 3s ease infinite;
}
.scroll-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.scroll-icon span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  font-weight: 500;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}
@keyframes flash {
  0%,
  20%,
  50%,
  80%,
  100% {
    opacity: 1;
  }
  40%,
  60% {
    opacity: 0.3;
  }
}

.controller .text-wrapper {
  pointer-events: none;
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-height: 110px;
  overflow: hidden;
  scroll-snap-type: y mandatory;
  -ms-scroll-snap-type: y mandatory;
  z-index: 1;
}

.controller .text-wrapper .title {
  position: relative;
  font-size: 16px;
  font-weight: 300;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.15);
  margin: 8px 0;
  transition: transform 0.2s ease-out;
}
.controller .text-wrapper .title.active {
  font-weight: 500;
  color: #acacac;
  font-size: 24px;
  margin: 0 auto;
  white-space: unset;
  line-height: 48px;
  scroll-snap-align: center;
}
.controller .text-wrapper .title.active + .title.scroll-down,
.controller .text-wrapper .title.scroll-down:has(+ .title.active) {
  top: 5px;
  transform: translateY(-5px);
}
.controller .text-wrapper .title.active + .title.scroll-up,
.controller .text-wrapper .title.scroll-up:has(+ .title.active) {
  top: -5px;
  transform: translateY(5px);
}

.controller .text-wrapper .title:last-child {
  opacity: 0;
}

.action-btn-wrapper {
  pointer-events: none;
  position: absolute;
  width: calc(100% - 40px);
  max-width: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-icon {
  pointer-events: fill;
  cursor: pointer;
  background: none;
  border: none;
}
.action-btn-wrapper .btn-icon img {
  width: 16px;
  filter: brightness(80%);
}
.btn-icon:disabled img {
  width: 16px;
  filter: brightness(40%);
}
.btn-prev {
  left: 10px;
}
.btn-next {
  right: 10px;
}
.btn-360 {
  position: fixed;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
}
.btn-360 img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  object-position: center;
}
.btn-stay {
  cursor: pointer;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 47px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: none;
  line-height: 0;
  border-radius: 100px;
  opacity: 0;
  transition: all 0.2s ease;
  height: 44px;
  z-index: 1;
}
.btn-stay.ripple {
  filter: url("#ripple");
}
.btn-stay-text {
  pointer-events: none;
  position: fixed;
  bottom: 50px;
  width: 200px;
  height: 120px;
  left: calc(50dvw - 50px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  display: none;
  z-index: 1;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 150px;
  }
}

/* hamburger icon */
.menu-icon {
  position: relative;
  width: 22px;
  height: 16px;
  margin-right: 40px;
}
.menu-icon .menu-icon__cheeckbox {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  z-index: 2;
  -webkit-touch-callout: none;
  opacity: 0;
}
.menu-icon div {
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 10px;
}
.menu-icon span {
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--bar-bg, #ffffff);
  border-radius: 1px;
  transition: all 0.2s cubic-bezier(0.1, 0.82, 0.76, 0.965);
}
.menu-icon span:first-of-type {
  top: 0;
}
.menu-icon span:last-of-type {
  bottom: 0;
}
.menu-icon.active span:first-of-type,
.menu-icon .menu-icon__cheeckbox:checked + div span:first-of-type {
  transform: rotate(45deg);
  top: 4px;
}
.menu-icon.active span:last-of-type,
.menu-icon .menu-icon__cheeckbox:checked + div span:last-of-type {
  transform: rotate(-45deg);
  bottom: 4px;
}
/* end hamburger icon */

.url {
  display: none;
}

/* mobile landscape */
@media only screen and (min-width: 400px) {
  .menu-detail,
  .menu-wrapper.show .menu-list {
    gap: 8px;
  }
  .menu-detail,
  .menu-list {
    margin-top: 24px;
  }

  .contact-wrapper {
    margin: 0;
  }
  .touch-wrapper {
    width: 730px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .btn-stay {
    bottom: 20px;
  }
  .btn-stay-text {
    bottom: 30px;
  }

  .controller .text-wrapper .title {
    margin: 0;
    line-height: 40px;
  }
  .controller .text-wrapper .title.active {
    font-size: 24px;
  }
}

/* wave-btn */
.wave-btn {
  overflow: hidden;
  transition: all 0.5s;
}

.wave-btn:before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 130px;
  background: rgba(255, 255, 255, 0.2);
  top: 20px;
  left: 40%;
  transform: translate(-50%);
  animation: wave1 10s infinite linear;
  transition: all 0.5s;
}

.wave-btn:hover:before {
  top: 0px;
  background-color: rgba(255, 255, 255, 0.1);
}

.wave-btn:after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 170px;
  background-color: rgba(255, 255, 255, 0.2);
  top: 30px;
  left: 60%;
  transform: translate(-50%);
  animation: wave2 5s infinite linear;
  transition: all 0.5s;
}

.wave-btn:hover:after {
  top: 10px;
  background-color: rgba(255, 255, 255, 0.1);
}

@keyframes wave1 {
  0% {
    transform: translate(-50%) rotate(-180deg);
  }

  100% {
    transform: translate(-50%) rotate(360deg);
  }
}
@keyframes wave2 {
  0% {
    transform: translate(-50%) rotate(-180deg);
  }
  50% {
    transform: translate(-50%, -20px) rotate(90deg);
  }
  100% {
    transform: translate(-50%) rotate(360deg);
  }
}

.btn-rotate {
  pointer-events: none;
  position: fixed;
  top: calc(50% - 100px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  object-fit: contain;
  /* animation: rotate 5s ease infinite; */
}
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
  }
  20% {
    transform: translate(-50%, -50%) rotate(-120deg);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) rotate(-120deg);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) rotate(-120deg);
    opacity: 0;
  }
  60%,
  90% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
  }
}

/* desktop */
@media only screen and (min-width: 768px) {
  #intro h1 {
    font-size: 116px;
  }

  .menu-detail,
  .menu-wrapper.show .menu-list {
    gap: 16px;
  }
  .menu-list button,
  .menu-detail button {
    font-size: 26px;
  }

  .nav-right {
    gap: 24px;
  }
  .menu-detail p,
  .lang-wrapper span {
    font-size: 16px;
    font-weight: 500;
  }

  .logo {
    width: 120px;
    position: absolute;
    left: 40px;
    top: -10px;
  }

  .map-wrapper h2 {
    font-size: 20px;
  }

  .hero .title {
    width: 320px;
    font-size: 40px;
  }

  .controller .text-wrapper {
    max-height: 150px;
  }
  .controller .text-wrapper .title {
    margin: 20px 0;
    font-size: 20px;
    font-weight: 300;
  }
  .controller .text-wrapper .title.active {
    font-size: 28px;
    line-height: 48px;
    font-weight: 500;
  }

  .btn-icon {
    width: 24px;
    height: 24px;
  }

  .btn-stay {
    height: 48px;
    font-size: 20px;
    font-weight: 500;
    bottom: 70px;
  }
  .btn-stay-text {
    width: 300px;
    height: 150px;
    bottom: 80px;
    left: calc(50dvw - 70px);
  }
}

/* alert-field */
.alert-field-popup {
  height: 400px !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 20px;
}

.close-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-button-img {
  margin-top: 10px;
  width: 35px;
}

.close-button-area {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  border: none;
  background-color: #ffffff;
  top: -10px;
}

.swal2-close:focus {
  box-shadow: none !important;
}

/* socail button */
.social-button-area {
  position: fixed;
  right: 0px;
  bottom: 0px;
  padding: 20px;
  margin: 10px;
  z-index: 3;
  display: none;
}

.social-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.gradient-background {
  background-image: linear-gradient(
    to right,
    #3f4da1 0%,
    #5a499e 51%,
    #76479c 100%
  );
}

.img-btn {
  width: 48%;
  position: absolute;
  right: 26.5px;
  bottom: 26.5px;
}

.social-button-img-close.active {
  animation-name: rotateStart;
  animation-duration: 1s;
}

.social-button-img-close.inActive {
  animation-name: rotateEnd;
  animation-duration: 0.7s;
}

.social-button-img-close.show {
  place-items: center;
  display: grid;
}

.social-button-img-close.hide {
  display: none;
}

.social-button-img-chat.active {
  place-items: center;
  display: grid;
}

.social-button-img-chat.inActive {
  display: none;
}

.sub-social-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  margin-left: 5px;
}

.sub-social-button-img {
  width: 100%;
}

.sub-social-button.hide {
  animation: zoom-out-zoom-in 1s linear;
}

.sub-social-button.show {
  animation: zoom-in-zoom-out 0.5s linear;
}

.sub-social-button.inActive {
  display: none;
}

.sub-social-button.active {
  place-items: center;
  display: grid;
}

@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(0.5, 0.5);
  }
  50% {
    transform: scale(1, 1);
  }
  75% {
    transform: scale(0.75, 0.75);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes zoom-out-zoom-in {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(0.75, 0.75);
  }
  75% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(0.2, 0.2);
  }
}

@keyframes rotateStart {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(180deg);
  }
}

@keyframes rotateEnd {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(45deg);
  }
}

/* Custom style for flicking */
.action-btn-flicking {
  pointer-events: none;
  position: fixed;
  width: calc(100% - 40px);
  max-width: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.flicking-btn-icon {
  pointer-events: fill;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  width: 60px;
  height: 60px;
}

.flicking-btn-icon:disabled img {
  width: 16px;
  filter: brightness(40%);
}

.action-btn-flicking .flicking-btn-icon img {
  width: 16px;
  filter: brightness(80%);
}

.flicking-btn-prev {
  left: 10px !important;
  justify-content: start;
}

.flicking-btn-next {
  right: 10px !important;
  justify-content: end;
}

.btn-fade-in {
  animation: fade-in 0.01s forwards;
}
.btn-fade-out {
  animation: fade-out 0.01s forwards;
}

@media only screen and (min-width: 768px) {
  .flicking-btn-icon {
    width: 60px;
    height: 60px;
  }
}

/* Styles for screens 0-768px */
@media screen and (max-width: 768px) {
  .mobile {
    display: flex;
  }

  .desktop {
    display: none;
  }
}

/* Styles for screens 769px and above */
@media screen and (min-width: 769px) {
  .mobile {
    display: none;
  }

  .desktop {
    display: flex;
  }
}
