@use "./abstracts/" as *;

@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html {
  margin-right: 0 !important;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Fp2ywxg089UriCZa4ET-DNl0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Fp2ywxg089UriCZa4Hz-D.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Hp2ywxg089UriCZ2IHSeH.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Hp2ywxg089UriCZOIHQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: $font-2;
  font-size: 15px;
  line-height: 25px;
  font-weight: 400;
  color: $txt-color;
}

.reverse {
  transform: rotate(180deg);
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

.smooth {
  scroll-behavior: smooth;
}

/* width */
::-webkit-scrollbar {
  width: 4px;
  height: 67px;
  position: relative;
}

/* Track */
::-webkit-scrollbar-track {
  background: #fff;
}

.fixed {
  position: fixed;
  overflow: hidden;
}

.hiden {
  overflow: hidden;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: $color-main;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: $color-main;
}

.inner-page {
  &::-webkit-scrollbar-thumb {
    background: #5edda0;
  }
}

img {
  max-width: 100%;
  height: auto;
  transform: scale(1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $font-1;
  font-weight: 600;
  color: $white;
}

h1,
.h1 {
  font-size: 60px;
  line-height: 1.2;
}

h2,
.h2 {
  font-size: 50px;
  line-height: 1.1;
}

h3,
.h3 {
  font-size: 44px;
  line-height: 56px;
}

h4,
.h4 {
  font-size: 35px;
  line-height: 1.2;
}

h5,
.h5 {
  font-size: 25px;
  line-height: 1.2;
}

h6,
.h6 {
  font-size: 20px;
  line-height: 1.6;
}

.h7,
.h8 {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  color: $white;
}

.h7 {
  font-size: 24px;
  line-height: 1.33;

  &.st {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
  }
}

.h8 {
  font-size: 20px;
  line-height: 1.3;

  &.st {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
  }
}

.fz-40 {
  font-size: 40px;
}

p {
  margin-bottom: 0;
}

.padding-0 {
  padding: 0 !important;
}

.radius-16 {
  border-radius: 16px;
}

.font2 {
  font-family: $font-2;
}

.radius-24 {
  border-radius: 24px;
}

.radius-35 {
  border-radius: 35px;
}

.left-auto {
  margin-left: auto;
}

.width-full {
  width: 100%;
}

.bg-2 {
  background-color: $color-2;
}

.h50 {
  height: 50px;
}

.color-3 {
  color: $color-3;
}

.color-7 {
  color: $color-7;
}

.color-main {
  color: $color-main;
}

.font_600 {
  font-weight: 600;
}

.font_bold {
  font-weight: bold;
}

.color-2 {
  color: $color-2;
}

.color-5 {
  color: $color-5;
}

.color-6 {
  color: $color-6;
}

.bg-6 {
  background-color: $color-6;
}

.container {
  max-width: 1200px;

  &.w_1890 {
    max-width: 1890px;
  }

  &.w_1374 {
    max-width: 1374px;
  }

  &.w_1290 {
    max-width: 1290px;
  }

  &.w_1650 {
    max-width: 1650px;
  }

  &.w_1210 {
    max-width: 1210px;
  }

  &.w_1920 {
    max-width: 1920px;
  }

  &.w_1450 {
    max-width: 1450px;
  }

  &.w_1950 {
    max-width: 1950px;
  }

  &.w_1870 {
    max-width: 1870px;
  }

  &.pd0 {
    padding: 0;
  }
}

.z-index {
  z-index: 999;
}

.white {
  color: $white;
}

.gradient {
  background-image: linear-gradient(
    90deg,
    rgb(12, 12, 12) 0%,
    rgb(54, 53, 53) 100%
  );
}

.gradient-2 {
  background-image: linear-gradient(
    90deg,
    rgb(202, 2, 3) 0%,
    rgb(255, 0, 1) 100%
  );
}

.gradient-3 {
  background-image: linear-gradient(
    90deg,
    rgb(20, 59, 167) 0%,
    rgb(56, 96, 209) 100%
  );
}

.gradient-4 {
  background-image: linear-gradient(
    90deg,
    rgb(225, 118, 3) 0%,
    rgb(246, 179, 57) 100%
  );
}

.gradient-5 {
  background-image: linear-gradient(
    90deg,
    rgb(169, 0, 1) 0%,
    rgb(237, 43, 44) 100%
  );
}

.gradient-6 {
  background-image: linear-gradient(
    90deg,
    rgb(175, 4, 5) 0%,
    rgb(234, 41, 42) 99%
  );
}

.gradient-7 {
  background-image: linear-gradient(
    0deg,
    rgb(12, 12, 12) 0%,
    rgb(54, 53, 53) 100%
  );
}

figure {
  margin-bottom: 0;
}

#wrapper {
  overflow: hidden !important;
  position: relative;
  width: 100%;
  height: 100%;
}

.row {
  margin-right: -15px;
  margin-left: -15px;
}

ul,
li {
  list-style-type: none;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: unset;
  @include transition3;
  cursor: pointer;
  display: inline-block;

  &:hover {
    color: $color-main;
    transition: all 0.3s;
  }
}

.center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.capitalize {
  text-transform: capitalize;
}

.container {
  width: 100%;
  margin: auto;
}

.container-fluid,
.container {
  padding-left: 15px;
  padding-right: 15px;
}

.radius-10 {
  border-radius: 10px;
}

.radius-4 {
  border-radius: 4px;
}

.right {
  text-align: right;
}

// form //
textarea,
input {
  @include transition3;
  border: none;
  outline: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  font-size: 15px;
  width: 100%;
  border-radius: 25px;
  color: $color-3;
  font-family: $font-2;
  background-color: rgb(255, 255, 255);

  &::placeholder {
    color: $color-3 !important;
    font-family: $font-2;
  }
}

textarea {
  padding: 14px 25px 24px;
}

input {
  padding: 5px 25px;
  height: 50px;
}

button {
  outline: none;
  border: none;
  @include transition3;
}

textarea::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="datetime"]::placeholder,
input[type="datetime-local"]::placeholder,
input[type="date"]::placeholder,
input[type="month"]::placeholder,
input[type="time"]::placeholder,
input[type="week"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder,
input[type="color"]::placeholder {
  color: $txt-color;
  font-family: $font-1;
}

/* Scroll Top
-------------------------------------------------------------- */
#scroll-top {
  box-shadow: 0px 8px 27px 0px rgba(0, 0, 0, 0.2);
  position: fixed;
  display: block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 4px;
  text-align: center;
  z-index: 999;
  right: 14px;
  bottom: 23px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid $color-main;
  background-color: $color-main;
}

#scroll-top.show {
  right: 15px;
  opacity: 1;
  visibility: visible;
}

#scroll-top:before,
#scroll-top:after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 100%;
  @include transition3;
}

#scroll-top:before {
  z-index: -1;
}

#scroll-top:after {
  content: "\f077";
  font-family: "Font Awesome 5 Pro";
  font-size: 16px;
  color: $white;
  font-weight: 400;
}

#scroll-top:hover {
  transform: translateY(-7%);
}

/* PreLoad
-------------------------------------------------------------- */
.preload {
  overflow: hidden;
}

.preload-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 99999999999;
  display: block;
  overflow: hidden;
}

.preload-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 50px;
  z-index: 100;
  margin: -25px 0 0 -90px;
  background: #ffffff;
  background-image: url("./../../assets/images/logo/preload.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  animation: preload 1.2s linear infinite alternate;
  -webkit-animation-name: bounceIn;
  animation-name: bounceIn;
}

@keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.bounceIn {
  animation-name: bounceIn;
}

@keyframes lod {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.tf-section {
  z-index: 2;
  position: relative;
  padding: 122px 0;
  margin-bottom: 0 !important;

  &.pt-112 {
    padding-top: 112px;
  }

  &.pb-62 {
    padding-bottom: 62px;
  }

  &.pt-158 {
    padding-top: 158px;
  }

  &.pb-62 {
    padding-bottom: 62px;
  }

  &.pt-118 {
    padding-top: 118px;
  }

  &.pt-75 {
    padding-top: 75px;
  }

  &.pt-105 {
    padding-top: 105px;
  }

  &.pb-72 {
    padding-bottom: 72px;
  }

  &.pt-118 {
    padding-top: 118px;
  }

  &.pb-124 {
    padding-bottom: 124px;
  }

  &.pb-130 {
    padding-bottom: 130px;
  }

  &.pt-67 {
    padding-top: 67px;
  }

  &.pb-58 {
    padding-bottom: 58px;
  }

  &.pb-120 {
    padding-bottom: 120px;
  }

  &.pb-75 {
    padding-bottom: 75px;
  }

  &.pt-115 {
    padding-top: 115px;
  }

  &.pt-130 {
    padding-top: 130px;
  }

  &.pb-134 {
    padding-bottom: 134px;
  }

  &.pt-125 {
    padding-top: 125px;
  }

  &.pb-104 {
    padding-bottom: 104px;
  }

  &.pb-45 {
    padding-bottom: 45px;
  }

  &.pb-100 {
    padding-bottom: 100px;
  }

  &.pt-72 {
    padding-top: 72px;
  }
}

/* @Keyframe */
@keyframes rotating {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}
