@font-face {
  font-family: "TF Chiangsaen";
  src: url("/font/TF\ Chiangsaen/TF Chiangsaen.ttf") format("truetype");
  font-weight: 300;
  /* unicode-range: U+0E00-0E7F; */
  /* font-style: normal; */
  /* size-adjust: 140%; */
}
@font-face {
  font-family: "TF Chiangsaen";
  src: url("/font/TF\ Chiangsaen/TF Chiangsaen Bol.ttf") format("truetype");
  font-weight: 700;
  /* unicode-range: U+0E00-0E7F; */
  /* font-style: normal; */
  /* size-adjust: 140%; */
}
@font-face {
  font-family: "OpenSans";
  src: url("/font/OpenSans/OpenSans-Light.ttf") format("truetype");
  font-weight: 300;
  /* font-style: normal; */
  /* size-adjust: 140%; */
}
@font-face {
  font-family: "OpenSans";
  src: url("/font/OpenSans/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  /* font-style: normal; */
  /* size-adjust: 140%; */
}

html {
  /* font-size: 16px; */
  scroll-behavior: smooth;
  scrollbar-width: thin;
  line-height: 1;
}
html:lang(TH) {
  font-size: 16px;
}
html:lang(TH) * {
  font-family: TF Chiangsaen !important;
}

html:lang(EN) {
  font-size: 12px;
}
html:lang(EN) * {
  font-family: OpenSans !important;
}
/* html:lang(TH) {
  font-size: 16px;
  scroll-behavior: smooth;
} */
/* html * {
  font-family: TF Chiangsaen, OpenSans !important;
} */
/* html:lang(th) * {
  font-family: TF Chiangsaen;
} */
body {
  /* opacity: 0; */
  transition: opacity 1s;
}
b,
strong {
  font-weight: 700 !important;
}
/* main::before {
  content: "";
  background-image: url("/assets/background.png");
  background-size: cover;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  opacity: 1;
} */
.appbar {
  height: 200px;
}
.content-container {
  max-width: 1200px;
}
@media only screen and (max-width: 1280px) {
  .content-container {
    max-width: 944px;
  }
}
@media only screen and (max-width: 1024px) {
  .content-container {
    max-width: 688px;
  }
}
@media only screen and (max-width: 768px) {
  .content-container {
    max-width: 432px;
  }
}
/* @media only screen and (max-width: 640px) {
  .content-container {
    max-width: 100%;
  }
} */
.text-banner {
  letter-spacing: 10px;
  -webkit-text-stroke: 5px;
}
@media only screen and (max-width: 1024px) {
  .text-banner {
    letter-spacing: 5px;
    -webkit-text-stroke: 2.5px;
  }
}
.menu a {
  position: relative;
  /* color: #000000; */
  overflow: hidden;
  background: linear-gradient(to right, #eb1c24, #eb1c24 50%, currentcolor 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 275ms ease;
  text-decoration: none;
}
.menu a:hover {
  background-position: 0 100%;
}
.menu button {
  position: relative;
  /* color: #000000; */
  overflow: hidden;
  background: linear-gradient(to right, #eb1c24, #eb1c24 50%, currentcolor 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 400ms ease-out;
  text-decoration: none;
}
.menu button:hover {
  background-position: 0 100%;
  transition: background-position 400ms ease-in;
}

.wavecolor .target {
  background: linear-gradient(
    to left,
    currentcolor,
    currentcolor 50%,
    #eb1c24 50%
  );
  background-size: 200% 100%;
  background-position: 100% 100%;
  transition: background-position 700ms ease;
}
.wavecolor:hover .target {
  background-position: 0%;
}
.wavecolor:hover .title {
  color: #eb1c24;
}
.wave {
  background: linear-gradient(
    to right,
    #f00,
    #f00 25%,
    #f5f5f5 35%,
    #f5f5f5 100%
  );
  background-size: 200% 100%;
  background-position: 100% 100%;
  transition: background-position 500ms ease;
}
.wave:hover {
  background-position: 0%;
}
.dropdown {
  position: relative;
  width: 100%;
  height: fit-content;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: 20px;
  z-index: 1000;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  transition: 0.5s;
  pointer-events: none;
}

.dropdown.active::before {
  top: 50%;
  transform: rotate(-225deg);
}

.dropdown .text-box {
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 12px 40px 12px 20px;
}

.dropdown .options {
  z-index: 99;
  position: absolute;
  top: calc(100% + 10px);
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  display: none;
}

.dropdown.active .options {
  display: block;
}

.dropdown .options div {
  padding: 12px 20px;
  cursor: pointer;
}

.dropdown .options div:hover {
  background: #eb1c24;
  color: #fff;
}

.contents {
  display: block !important;
}
.contents .content.active {
  display: block;
}

.bounce {
  display: inline-block;
  position: relative;
  -moz-animation: bounce 1s infinite linear;
  -o-animation: bounce 1s infinite linear;
  -webkit-animation: bounce 1s infinite linear;
  animation: bounce 1s infinite linear;
}
@keyframes bounce {
  0% {
    top: 0.5em;
  }
  50% {
    top: 0em;
  }
  100% {
    top: 0.5rem;
  }
}

.h1 {
  color: #1a1718;
  /* 100 */
  font-size: 6.25rem !important;
  /* 112 */
  line-height: 7rem !important;
}
.h2 {
  color: #1a1718;
  /* 72 */
  font-size: 4.5rem !important;
  /* 80 */
  line-height: 5rem !important;
}
.h3 {
  color: #1a1718;
  /* 48 */
  font-size: 3rem !important;
  /* 64 */
  line-height: 4.5rem !important;
}
.h4 {
  color: #1a1718;
  /* 36 */
  font-size: 2.25rem !important;
  /* 48 */
  line-height: 3rem !important;
}
.h5 {
  color: #1a1718;
  /* 24 */
  font-size: 1.5rem !important;
  /* 32 */
  line-height: 2rem !important;
}
.h6 {
  color: #1a1718;
  /* 16 */
  font-size: 1rem !important;
  /* 30 */
  line-height: 1.875rem !important;
}
@media only screen and (max-width: 1024px) {
  .h1 {
    color: #1a1718;
    /* 72 */
    font-size: 4.5rem !important;
    /* 80 */
    line-height: 5rem !important;
  }
  .h2 {
    color: #1a1718;
    /* 48 */
    font-size: 3rem !important;
    /* 64 */
    line-height: 4.5rem !important;
  }
  .h3 {
    color: #1a1718;
    /* 36 */
    font-size: 2.25rem !important;
    /* 48 */
    line-height: 3rem !important;
  }
  .h4 {
    color: #1a1718;
    /* 24 */
    font-size: 1.5rem !important;
    /* 32 */
    line-height: 2rem !important;
  }
  .h5 {
    color: #1a1718;
    /* 24 */
    font-size: 1.5rem !important;
    /* 32 */
    line-height: 2rem !important;
  }
  .h6 {
    color: #1a1718;
    /* 16 */
    font-size: 1rem !important;
    /* 30 */
    line-height: 1.875rem !important;
  }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.show-scrollbar::-webkit-scrollbar {
  display: block;
}
.wrapfloat::after,
.wrapfloat::before {
  content: "";
  display: table;
  clear: both;
}
