@font-face {
  font-family: 'Noto sans thai';
  src: url('../fonts/Noto_Sans_Thai/static/NotoSansThai-Regular.ttf')
    format('truetype');
  unicode-range: U+0E00-0E7F;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Regular.woff') format('truetype');
  unicode-range: U+0020-007F; /* ใช้ฟอนต์นี้กับอักขระภาษาอังกฤษ */
}

@font-face {
  font-family: 'SansSerif';
  src: local('Arial'), local('Helvetica'), sans-serif;
  unicode-range: U+0030-0039; /* ตัวเลข 0-9 */
}

body {
  font-family: 'SansSerif', 'Poppins', 'Noto sans thai', sans-serif !important;
}
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* สีเทาอ่อน */
  border-top: 5px solid #ff0000; /* สีแดง */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#page-content.hidden {
  opacity: 0;
  display: none;
  transition: opacity 1s ease-in-out; /* Effect for fade-in */
}

#page-content.visible {
  display: block;
  opacity: 1;
  transition: opacity 1s ease-in-out; /* Effect for fade-in */
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.icon-gray {
  filter: brightness(0) saturate(100%) invert(67%) sepia(0%) saturate(0%)
    hue-rotate(0deg);
}

.text-gray {
  color: #a9a9a9 !important;
}
.bg-gray {
  background-color: #272727 !important;
}
.bg-gray-300 {
  background-color: #cfcfcf !important;
}

a:hover {
  color: inherit;
  text-decoration: none;
}
.slick-prev:before,
.slick-next:before {
  content: '' !important;
}

.grid:before,
.grid:after {
  content: inherit;
  display: grid !important;
}
.grid > * {
  padding: 0 !important;
  float: none;
}
.container {
  max-width: 1200px !important;
}

.content {
  font-family: 'SansSerif', 'Poppins', 'Noto sans thai', sans-serif !important;
  font-size: 1.3rem;
  line-height: 1.5em;
}

#contents {
  margin-left: auto !important;
  background: #272727 !important;
}
#contents_l {
  margin-left: 0 !important;
}

.webcam-right .hidden-xs {
  margin-left: 0 !important;
  background: none !important;
}

.webcam-right .hidden-xs iframe {
  margin-left: 0 auto !important;
}

.articles-detail iframe {
  margin: 10px auto !important;
}

.articles-detail blockquote,
.articles-detail > p img {
  margin: 16px auto !important;
}
.articles-left .grid li {
  width: 100%;
}

.articles-detail,
.more-articles2 {
  font-family: 'SansSerif', 'Poppins', 'Noto sans thai', sans-serif !important;
}
.more-articles2 {
  border-top: 0;
}
.articles-detail > p {
  padding: 0 0 10px !important;
}
@media (max-width: 767px) {
  #leaderboard_a {
    z-index: 999 !important;
    left: 0;
  }
}

/* ตั้งค่าเริ่มต้นของโลโก้ */
#logo-container {
  overflow: hidden;
  transition: all 0.05s ease-in-out; /* สร้างการเปลี่ยนแปลงแบบ smooth */
  z-index: 10;
}

#logo-container.logo-small {
  width: 35px; /* ขนาดโลโก้เล็ก */
  height: 35px;
  top: 115px; /* ปรับตำแหน่ง */
  left: 20px;
}

#logo.logo-small {
  top: 0;
  height: 100%;
}

.social-icon a {
  width: 35px;
  height: 35px;
  padding: 5px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: #000;
}
.social-icon a i {
  font-size: 20px;
}

.social-icon a:hover {
  background-color: #d81428 !important;
  color: #fff !important;
}

.social-icon a:active {
  color: #000 !important;
  text-decoration: none !important;
}

.concert-connection-share .social-icon a {
  background-color: #353d40;
  color: #fff !important;
}

.icon-chart {
  filter: brightness(0.8); /* ลดความสว่างเพื่อให้สีเข้มขึ้น */
}
