@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap");

body {
  font-family: "Noto Sans Thai";
  overflow-x: hidden;
}

.my-nav {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

aside {
  border-right: 1px solid #e2e8f0;
  background-color: #fff;
}

.popload {
  position: fixed;
  background: #00000046;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 9999;
  transition: 0.5s;
}

.loader {
  --background: linear-gradient(135deg, #23C4F8, #275EFE);
  --shadow: rgba(39, 94, 254, 0.28);
  --text: #e9ecf1;
  --page: rgba(255, 255, 255, 0.36);
  --page-fold: rgba(255, 255, 255, 0.52);
  --duration: 3s;
  width: 200px;
  height: 140px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -70px 0 0 -100px;
  transform: translateZ(0);
  animation:unfold ease-in-out var(--duration) 3s forwards;
  transform-style: preserve-3d;
  transition: 0.5s;
}

.loader:before, .loader:after {
  --r: -6deg;
  content: "";
  position: absolute;
  bottom: 8px;
  width: 120px;
  top: 80%;
  box-shadow: 0 16px 12px var(--shadow);
  transform: rotate(var(--r));
}

.loader:before {
  left: 4px;
}

.loader:after {
  --r: 6deg;
  right: 4px;
}

.loader div {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  position: relative;
  z-index: 1;
  perspective: 600px;
  box-shadow: 0 4px 6px var(--shadow);
  background-image: var(--background);
}

.loader div ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.loader div ul li {
  --r: 180deg;
  --o: 0;
  --c: var(--page);
  position: absolute;
  top: 10px;
  left: 10px;
  transform-origin: 100% 50%;
  color: var(--c);
  opacity: var(--o);
  transform: rotateY(var(--r));
  -webkit-animation: var(--duration) ease infinite;
  animation: var(--duration) ease infinite;
}

.loader div ul li:nth-child(2) {
  --c: var(--page-fold);
  -webkit-animation-name: page-2;
  animation-name: page-2;
}

.loader div ul li:nth-child(3) {
  --c: var(--page-fold);
  -webkit-animation-name: page-3;
  animation-name: page-3;
}

.loader div ul li:nth-child(4) {
  --c: var(--page-fold);
  -webkit-animation-name: page-4;
  animation-name: page-4;
}

.loader div ul li:nth-child(5) {
  --c: var(--page-fold);
  -webkit-animation-name: page-5;
  animation-name: page-5;
}

.loader div ul li svg {
  width: 90px;
  height: 120px;
  display: block;
}

.loader div ul li:first-child {
  --r: 0deg;
  --o: 1;
}

.loader div ul li:last-child {
  --o: 1;
}

.loader span {
  display: block;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 20px;
  text-align: center;
  color: var(--text);
}
.loader--hidden {
  display: none;
}


@keyframes page-2 {
  0% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  35%, 100% {
    opacity: 0;
  }

  50%, 100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-3 {
  15% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }

  65%, 100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-4 {
  30% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  65%, 100% {
    opacity: 0;
  }

  80%, 100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-5 {
  45% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  65% {
    opacity: 1;
  }

  80%, 100% {
    opacity: 0;
  }

  95%, 100% {
    transform: rotateY(0deg);
  }
}


/* #scrollToTopBtn {
  display: none; 
  position: fixed; 
  bottom: 20px; 
  right: 30px; 
  z-index: 99; 
  border: none; 
  outline: none; 
  background-color: #000; 
  color: white; 
  cursor: pointer; 
  padding: 15px; 
  border-radius: 10px; 
  font-size: 18px; 
} */

/* #scrollToTopBtn:hover {
  background-color: #555; 
} */

.responsive-iframe {
	max-width: 100%;
	padding-top: 56.25%;
	position: relative;
	width: 100%;
}

.responsive-iframe iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.side-menu {
  position: absolute;
  left: -240px;
  z-index: 9999;
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  width: 200px;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  top: 80px;
  --tw-bg-opacity: 1;
  transition: 0.5s;
}

.active .side-menu {
  left: calc(-1px - 0%);
}

.active main {
  transform: translateX(+200px);
}

.active .dots {
  display: none;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav a {
  display: block;
  padding: 0.75rem;
  color: #4a5568;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #cbd5e0;
}

/* hover img */
.img-size {
  position: relative;
  opacity: 0;
  pointer-events: none;
}

@keyframes splide-loading {
  0% {
    transform: rotate(0)
  }

  to {
    transform: rotate(1turn)
  }
}

.splide__container {
  position: relative;
  box-sizing: border-box
}

.splide__list {
  margin: 0 !important;
  padding: 0 !important;
  width: -webkit-max-content;
  width: max-content;
  will-change: transform
}

.splide.is-active .splide__list {
  display: flex
}

.splide__pagination {
  display: inline-flex;
  align-items: center;
  width: 95%;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0
}

.splide__pagination li {
  list-style-type: none;
  display: inline-block;
  line-height: 1;
  margin: 0
}

.splide {
  visibility: hidden
}

.splide,
.splide__slide {
  position: relative;
  outline: none
}

.splide__slide {
  box-sizing: border-box;
  list-style-type: none !important;
  margin: 0;
  flex-shrink: 0
}

.splide__slide img {
  vertical-align: bottom
}

.splide__slider {
  position: relative
}

.splide__spinner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #999;
  border-left-color: transparent;
  animation: splide-loading 1s linear infinite
}

.splide__track {
  position: relative;
  z-index: 0;
  overflow: hidden
}

.splide--draggable>.splide__track>.splide__list>.splide__slide {
  -webkit-user-select: none;
  user-select: none
}

.splide--fade>.splide__track>.splide__list {
  display: block
}

.splide--fade>.splide__track>.splide__list>.splide__slide {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
  transition: 0.8s;
  pointer-events: none
}

.splide--fade>.splide__track>.splide__list>.splide__slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: 0.8s;
  transition-delay: 0.1s;
}

.splide--rtl {
  direction: rtl
}

.splide--ttb>.splide__track>.splide__list {
  display: block
}

.splide--ttb>.splide__pagination {
  width: auto
}




/* dots */
.dots {
  position: absolute;
  color: #fff;
  top: 48%;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  transition: 0.5s
}

.dots li {
  list-style: none;
  width: 10px;
  height: 10px;
  background: #fff;
  margin: 20px;
  border-radius: 20%;
  cursor: pointer;
  transition: 0.5s
}

.dots li.active {
  width: 30px;
}

/* Main Content Styles */
main {
  transition: 0.5s;
}

#display-sms {
  /* background-color: #ededed; */
  /* margin-left: 20px;
  margin-right: 20px;
  margin-top: -400px; */
  /* width: 95%; */
  padding: 5px;
  border-radius: 5px;
  font-size: 14px;
}

.my-card {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  margin: 30px;
  border-radius: 5px;
}

.my-card-head {
  background-color: #4a5568;
  padding: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  color: #fff;
}

.pagination {
  display: inline;
}

.pagination li {
  display: inline;
  margin: 5px;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-style: solid;
  border-width: 1px;
}

.pagination .active {
  background-color: #f2f2f2;
}

/* scrollbar - dashboard */
.shortcut--warp {
  position: absolute;
  overflow: scroll;
  inset: 0 0rem -7rem;
}

@media (min-width: 1280px) {
  .active main {
    transform: translateX(+20px);
  }
}