
@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');
@font-face {
  font-family: 'db_eurothai_xregular';
  src: url('../fonts/db_eurothai_x_v3.2-webfont.woff2') format('woff2'),
       url('../fonts/db_eurothai_x_v3.2-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
	font-family: 'line-seed-sans-th';
	src: 
        url('../fonts/line-seed-sans-th/WOFF/LINESeedSansTH_W_Rg.woff') format('woff');
	font-weight: normal;
	font-style: normal;
  }
  
  @font-face {
	font-family: 'line-seed-sans-th-Bd';
	src:  
       url('../fonts/line-seed-sans-th/WOFF/LINESeedSansTH_W_Bd.woff') format('woff');
	font-weight: bold;
	font-style: normal;
  }



html, body {
  margin: 0;
  height: 100%;
  font-family: 'line-seed-sans-th', sans-serif;

}

h1,h2{
  color: #fff;
  letter-spacing: 4px;
  text-shadow: #474747 3px 5px 2px;
}
a:hover{
  text-decoration: none;
  color: rgb(153, 153, 153);
  display:inline-flex;
}

.row::after {
  content: "";
  clear: both;
  display: table;
}

.col-5_5, .col-4_5 {
  float: left ;
}

.col-5_5 {width: 20% !important;}

.col-4_5 {width: 25% !important;}


.scrollerBox {
  /* width: 356px; */
  /* height: 308px; */
  /* background-color: #ffffff; */
  font-family: 'Kanit', sans-serif;
}
.scrollerBox .header {
  /* width: 356px; */
  height: 53px;
  background-color: #3895b1;
  color: #ffffff;
}
.scrollerBox .header button {
  height: 53px;
  padding: 0 15px;
  background-color: transparent;
  color: #ffffff;
  border: none;
  font-size: 18px;
  float: left;
}
.scrollerBox .header button.start {
  cursor: pointer;
  background-color: #343f5a;
}
.scrollerBox .header button.start:hover {
  background-color: #3895b1;
}
.scrollerBox .header button.scrolled {
  background-color: #3895b1;
}

.copy {
  position: relative;
  top: 0px;
  left: 0px;
  /* width: 356px; */
  overflow: hidden;
  padding: 20px 30px;

}

.items {
  position: relative;
  top: 0px;
  left: 0px;
  display: table;
  width: 100%;
}





.fab {
  /* width: 70px;
  height: 70px; */
  border-radius: 50%;
  /* box-shadow: 0 6px 10px 0 #666; */
  transition: all 0.1s ease-in-out;

  font-size: 18px;
  color: white;
  text-align: center;
  /* line-height: 70px;

  position: fixed; */
  /* right: 50px;
  bottom: 50px; */
  cursor: pointer;
  position: absolute; 
  z-index: 999;

}

.fab:hover {
  /* box-shadow: 0 6px 14px 0 #666; */
  /* transform: scale(1.05); */
}

.parent-container {

  display: flex;
  justify-content: center; /* จัดตำแหน่งแนวนอนให้อยู่ตรงกลาง */
  align-items: center; /* จัดตำแหน่งแนวตั้งให้อยู่ตรงกลาง */
  position: relative; /* ต้องมี position: relative; เพื่อให้ทำงานกับ position: absolute; ของ .fab */
  padding-top: 3%;
  
}


/* #loading {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  opacity: 0.7;
  background-color: #fff;
  z-index: 99;
}

#loading-image {
  position: absolute;
  top: 100px;
  left: 240px;
  z-index: 100;
} */
#loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}


    @media screen and (max-width: 480px) {

.width-box {
    width: 0 !important;
}

}

/* Transparent Overlay */
#loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    /* background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));

  background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8)); */
}

/* :not(:required) hides these rules from IE9 and below */
#loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

#loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 150ms infinite linear;
  -moz-animation: spinner 150ms infinite linear;
  -ms-animation: spinner 150ms infinite linear;
  -o-animation: spinner 150ms infinite linear;
  animation: spinner 150ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;

}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Modern UI foundation */
:root {
  --ld-bg: #f6f8fb;
  --ld-surface: #ffffff;
  --ld-surface-soft: #f8fafc;
  --ld-text: #111827;
  --ld-muted: #64748b;
  --ld-border: #e5e7eb;
  --ld-primary: #0f766e;
  --ld-primary-dark: #115e59;
  --ld-blue: #2563eb;
  --ld-amber: #f59e0b;
  --ld-red: #dc2626;
  --ld-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --ld-radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--ld-bg);
  color: var(--ld-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:hover {
  color: var(--ld-primary);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  border-radius: var(--ld-radius);
  border-width: 1px;
  font-family: 'line-seed-sans-th', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.btn:focus,
.form-control:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.18);
}

.btn svg,
button svg,
table svg,
.search-button svg {
  flex: 0 0 auto;
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem;
  max-width: 1rem;
  aspect-ratio: 1 / 1;
  vertical-align: -0.125em;
}

.btn i,
button i {
  line-height: 1;
}

.form-control,
select.form-control,
textarea.form-control {
  border-color: var(--ld-border);
  border-radius: var(--ld-radius);
  color: var(--ld-text);
  font-family: 'line-seed-sans-th', sans-serif;
}

.modern-table-shell {
  overflow: auto;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  background: var(--ld-surface);
  box-shadow: var(--ld-shadow);
}

.modern-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: var(--ld-surface);
}

.modern-table th,
.modern-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ld-border);
  color: var(--ld-text);
  vertical-align: middle;
}

.modern-table th {
  background: #0f172a;
  color: #ffffff;
  font-family: 'line-seed-sans-th-Bd', 'line-seed-sans-th', sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.modern-table tr:last-child td {
  border-bottom: 0;
}

.modern-table tbody tr:hover td {
  background: #f0fdfa;
}

.modern-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--ld-primary-dark);
  font-family: 'line-seed-sans-th-Bd', 'line-seed-sans-th', sans-serif;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.modern-page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.fab img {
  display: block;
  max-width: min(220px, 24vw);
  height: auto;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .modern-page-shell {
    width: min(100% - 24px, 1180px);
  }

  .btn {
    min-height: 40px;
  }
}
