	  body{
		  font-family: "Chakra Petch", sans-serif;
		  font-size: 16px;
	  }
    .comment-card {
      border: 1px solid #eee;
      border-radius: 10px;
      padding: 15px;
      margin: 20px;
      background-color: #fff;
    }
    .username {
      font-weight: bold;
      color: #e26d00;
    }
    .badge-custom {
      background-color: #fca103;
      font-size: 0.75rem;
      margin-left: 5px;
    }
    .meta {
      font-size: 0.85rem;
      color: #555;
    }
    .comment-text {
      margin-top: 10px;
      font-size: 1rem;
    }
    .actions {
      font-size: 0.9rem;
      color: #555;
      margin-top: 15px;
      display: flex;
      justify-content: space-between;
    }
    .actions i {
      margin-right: 5px;
    }
    .reply-link {
      color: #555;
      text-decoration: none;
    }
    .reply-link:hover {
      text-decoration: underline;
    }
    #editor-container {
      position: relative;
    }

    #editor {
      border: 1px solid #ccc;
      padding: 10px;
      min-height: 120px;
      border-radius: 5px;
      outline: none;
    }

#sticker-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: gray; /* เพิ่มตรงนี้ */
  font-size: 20px; /* เพิ่มได้ถ้าอยากปรับขนาด */
}

    #sticker-popup {
      display: none;
      position: absolute;
      top: 45px;
      right: 0;
      width: 250px;
      background: white;
      border: 1px solid #ccc;
      border-radius: 6px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      z-index: 999;
    }

    .sticker {
      width: 40px;
      height: 40px;
      cursor: pointer;
      margin: 5px;
    }

    .inline-sticker {
      width: 24px;
      height: 24px;
      vertical-align: middle;
      display: inline-block;
    }
.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 12px; /* ลดระยะห่าง */
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}
.menu-item:hover {
    background-color: #e9ecef;
    cursor: pointer;
}
.menu-item i {
    font-size: 18px; /* ขนาดไอคอนเล็กลง */
    color: #f5a623; /* สีส้ม */
    margin-right: 8px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
}
.menu-item span {
    font-size: 14px;
}
    .menu-bar {
      background: #fff;
      padding: 10px 20px;
    }
.widget {
    background-color: #f7f7f7;
    padding: 12px; /* ลดระยะห่าง */
    margin: 8px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}
.widget i {
    font-size: 30px;
    color: #f5a623; /* สีส้ม */
    margin-right: 10px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
}
.widget .content {
    flex-grow: 1;
    text-align: right;
}
.widget h6 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}
.widget p {
    font-size: 14px;
    color: #555;
}
    @media (max-width: 550px) {
      .menu-text {
        display: none; /* ซ่อนข้อความเมื่อหน้าจอเล็กกว่า 450px */
      }
    }
    .navbar {
      background-color: #000000;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      padding: 10px 0;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1030;
      position: relative;
      transition: top 0.3s ease-in-out; /* เพิ่ม transition เพื่อให้การเปลี่ยนแปลงมีความสมูท */
    }
    .navbar-nav .nav-link {
      color: #fff;
      text-transform: uppercase;
      font-weight: 500;
    }
    .navbar-nav .nav-link:hover {
      color: #ffdd57;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    .btn-outline-light {
      border-color: #ffffff;
      color: #ffffff;
      transition: all 0.3s ease;
    }
    .btn-outline-light:hover {
      background-color: #000000;
      color: #fff;
    }
    .btn, .navbar-toggler {
      font-size: 1.1rem;
    }
    .offcanvas-header {
      background-color: #000000;
      color: #fff;
      text-transform: uppercase;
    }
    .offcanvas-body {
      background-color: #000000;
    }

    .fixed-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1020;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding: 10px 0;
      transition: top 0.3s ease-in-out; /* เพิ่ม transition */
    }

    .hidden {
      display: none;
    }

#menuSecond {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  width: 100%; /* ขยายให้เต็มหน้าจอ */
  max-width: 1200px; /* ขีดจำกัดความกว้าง */
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px; /* เพิ่ม padding เล็กน้อยเพื่อให้เมนูไม่ชิดขอบ */
}

.fixed-menu-shadow {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  left: 50%; /* กำหนดให้มันอยู่ที่ 50% จากด้านซ้าย */
  transform: translateX(-50%); /* ช่วยให้เมนูอยู่ตรงกลาง */
  width: 100%;
  max-width: 1200px; /* ขีดจำกัดความกว้าง */
}
#text-container {
  padding: 20px;
}

#text-content {
  font-size: 16px;
  line-height: 1.8;
  word-wrap: break-word; /* ป้องกันการเบียดกันของข้อความ */
  word-break: break-word; /* ป้องกันการตัดคำไม่ให้ติดกัน */
}

    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.5);
    }

    .modal-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border-radius: 10px;
      width: 350px;
    }
@media (max-width: 600px) {
    .modal-content {
      background-color: #fff;
      margin: 10% auto;
	  margin-top: 130px;
      padding: 20px;
      border-radius: 10px;
      width: 350px;
    }	
	.nonedis{
		display: none;
	}
			}
    .close {
      float: right;
      font-size: 20px;
      cursor: pointer;
    }




  .modal1 {      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.5);
}
.modal-content1 {      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border-radius: 10px;
      width: 350px;
}

  .color-picker {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }

  .color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: transform 0.2s;
  }

  .color-option:hover {
    transform: scale(1.1);
  }

    .icon-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.9rem;
      color: #333;
      min-width: 60px;
      cursor: pointer;
    }

    .icon-block i {
      font-size: 1.5rem;
    }
    
    .icon-block.active {
 background-color: #969696;
    }
    

    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 1rem;
      border-bottom: 1px solid #e0e0e0;
      position: relative;
    }
    

    .right-icons {
      display: flex;
      gap: 1.5rem;
    }

.tab-panel {
  display: none;
  position: absolute;
  top: 100%;
 
  transform: translateX(-50%);
  width:320px; /* ปรับขนาดให้เล็กลง */
  max-width: 320px; /* เพิ่มขนาดสูงสุดให้เหมาะสม */
  background: #ffffff;
  padding: 15px; /* ลดขนาด padding */
  font-size: 1rem; /* ปรับขนาดตัวอักษร */
  margin-top: 10px; /* ลดช่องว่างระหว่างปุ่มกับป๊อปอัพ */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 999;
}


 

    .tab-panel.active {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translate(-50%, 10px); }
      to { opacity: 1; transform: translate(-50%, 0); }
    }

    .icon-wrapper {
      position: relative;
      display: inline-block;
		margin-right: 12px;
    }

@media (max-width: 600px) {
    .icon-wrapper {
      position: relative;
      display: inline-block;
		margin-right: 0px;
    }
	
	  }
    
  .chakra-petch-light {  font-family: "Chakra Petch", sans-serif;
  font-weight: 300;
  font-style: normal;
}
.footer-section {
  background: #151414;
  position: relative;
}
.footer-cta {
  border-bottom: 1px solid #373636;
}
.single-cta i {
  color: #ff5e14;
  font-size: 30px;
  float: left;
  margin-top: 8px;
}
.cta-text {
  padding-left: 15px;
  display: inline-block;
}
.cta-text h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 2px;
}
.cta-text span {
  color: #757575;
  font-size: 15px;
}
.footer-content {
  position: relative;
  z-index: 2;
}
.footer-pattern img {
  position: absolute;
  top: 0;
  left: 0;
  height: 330px;
  background-size: cover;
  background-position: 100% 100%;
}
.footer-logo {
  margin-bottom: 30px;
}
.footer-logo img {
    max-width: 200px;
}
.footer-text p {
  margin-bottom: 14px;
  font-size: 14px;
      color: #7e7e7e;
  line-height: 28px;
}
.footer-social-icon span {
  color: #fff;
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
}
.footer-social-icon a {
  color: #fff;
  font-size: 16px;
  margin-right: 15px;
}
.footer-social-icon i {
  height: 40px;
  width: 40px;
  text-align: center;
  line-height: 38px;
  border-radius: 50%;
}
.facebook-bg{
  background: #3B5998;
}
.twitter-bg{
  background: #55ACEE;
}
.google-bg{
  background: #DD4B39;
}
.footer-widget-heading h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 40px;
  position: relative;
}
.footer-widget-heading h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  height: 2px;
  width: 50px;
  background: #ff5e14;
}
.footer-widget ul li {
  display: inline-block;
  float: left;
  width: 50%;
  margin-bottom: 12px;
}
.footer-widget ul li a:hover{
  color: #ff5e14;
}
.footer-widget ul li a {
  color: #878787;
  text-transform: capitalize;
}
.subscribe-form {
  position: relative;
  overflow: hidden;
}
.subscribe-form input {
  width: 100%;
  padding: 14px 28px;
  background: #2E2E2E;
  border: 1px solid #2E2E2E;
  color: #fff;
}
.subscribe-form button {
    position: absolute;
    right: 0;
    background: #ff5e14;
    padding: 13px 20px;
    border: 1px solid #ff5e14;
    top: 0;
}

.subscribe-form button i {
  color: #fff;
  font-size: 22px;
  transform: rotate(-6deg);
}
.copyright-area{
  background: #202020;
  padding: 25px 0;
}
.copyright-text p {
  margin: 0;
  font-size: 14px;
  color: #878787;
}
.copyright-text p a{
  color: #ff5e14;
}
.footer-menu li {
  display: inline-block;
  margin-left: 20px;
}
.footer-menu li:hover a{
  color: #ff5e14;
}
.footer-menu li a {
  font-size: 14px;
  color: #878787;
}
.font-picker {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.font-option {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
}

.font-circle {
    font-size: 20px;
    color: black;
}

.font-option:hover {
    background-color: #bbb;
}