body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e2e1e2c9;
}

.container {
  width: 100%;
  max-width: 1500px;
  margin: 20px auto;
  padding: 0 10px;
}

.top-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* --- Sticky Logo --- */
.sticky-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 80px;
  z-index: 10;
  border-radius: 12px;
}

.collection-01__search-box {
  width: 100%;
  display: flex;
  justify-content: center;
}

.collection-01__search-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 12px;
  max-width: 100%;
  background-color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.collection-01__search-input:focus {
  outline: none;
  border-color: #f0f0f0;
  box-shadow: 0 0 8px rgba(0, 143, 122, 0.5);
}

.main-content {
  display: flex;
  margin-top: 20px;
}

.left-menu {
  flex: 1;
  max-width: 200px;
  margin-right: 20px;
}

.collection-01__tags-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collection-01__tag-button {
  border-radius: 20px;
  background-color: #008b74;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.1s, background-color 0.1s, transform 0.3s, box-shadow 0.3s;
  border: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-01__tag-button:hover {
  background-color: #008b74;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.collection-01__tag-button.is-selected {
  background-color: #004F3A;
  color: #fff;
}

.right-content {
  flex: 3;
}

.collection-01__items {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  list-style: none;
  justify-content: center;
  padding: 0;
  margin-top: 0;
}

.collection-01__item {
  width: auto;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.5), rgba(240, 240, 240, 0.5));
  padding: 0;
  margin-right: 0;
  margin-bottom: 0;
  background-color: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  border-radius: 30px;
}

.collection-01__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-color: #f0f0f0;
}

.collection-01__item a {
  padding: 20px;
  display: block;
  text-decoration: none;
  height: 100%;
}

.collection-01__title-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}

.collection-01__logo {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
}

.collection-01__title {
  color: #000;
  text-decoration: none !important;
  font-size: 16px;
  margin: 0;
}

.collection-01__rating {
  display: flex;
  gap: 3px;
  font-size: 13px;
  color: #FFC75F;
}

.collection-01__rating-text {
  color: #008F7A;
}

.collection-01__text {
  color: #808080;
  font-size: 14px;
}

.collection-01__rating-icon {
  fill: #FFC75F;
  width: 14px;
}

.uni-is-dark-bg .collection-01__rating-icon {
  fill: #FFC75F;
}

@-webkit-keyframes collection-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@keyframes collection-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.collection-01__loading-item {
  height: 150px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.04) 25%,
    rgba(255, 255, 255, 0.4) 35%,
    rgba(0, 0, 0, 0.04) 45%
  );
  background-size: 400% 100%;
  z-index: 1;
  -webkit-animation: collection-loading 1.7s ease infinite;
  animation: collection-loading 1.7s ease infinite;
  border-radius: 10px;
}

.uni-is-dark-bg .collection-01__loading-item {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 35%,
    rgba(255, 255, 255, 0.1) 45%
  );
  background-size: 400% 100%;
}

.collection-01__subtitle {
  max-width: 450px;
}

.collection-01__title-inner-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.collection-03 .collection-01__item a {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.collection-03 .collection-01__bottom-box {
  padding: 20px;
  flex-grow: 1;
}

.collection-03 .collection-01__item {
  overflow: hidden;
}

.collection-01__thumbnail {
  height: 130px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.hamburger-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: #008F7A;
}

.hamburger-menu.open .fa-bars {
  display: none;
}

.hamburger-menu.open .fa-times {
  display: block;
}

@media (max-width: 1200px) {
  .main-content {
    flex-direction: column;
  }
  .left-menu {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  .right-content {
    flex: none;
  }
}

@media (max-width: 800px) {
  .hamburger-menu {
    display: block;
  }
  .collection-01__tags-box {
    display: none;
  }
  .hamburger-menu.open + .collection-01__tags-box {
    display: flex;
  }
}

@media (max-width: 500px) {
  .collection-01__items {
    grid-template-columns: 1fr;
  }

  .collection-01__item a {
    padding: 15px;
  }

  .collection-01__title {
    font-size: 14px;
  }

  .collection-01__text {
    font-size: 12px;
  }

  .collection-01__rating{
    font-size: 16px;
  }
}

.collection-01__screenshot {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  margin-bottom: 20px; /* เพิ่มระยะห่างด้านล่าง */
  box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.2);
}

.collection-01__item {
  text-align: center;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #008F7A;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #006F5A;
}

/* Existing CSS, ensure these classes are defined */
.language-select {
  margin-left: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
}

.language-select:focus {
  outline: none;
  border-color: #008F7A;
}

.sticky-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.sticky-button .button {
    background-color: #007BFF; /* Change this color to fit your theme */
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.sticky-button .button:hover {
    background-color: #0056b3; /* Change this color to fit your theme */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.sticky-button .button:active {
    background-color: #004080; /* Change this color to fit your theme */
}

/* สไตล์พื้นฐานของ footer */
.footer {
    background: linear-gradient(90deg, #008F7A, #00e6b8); /* พื้นหลังแบบไล่สี */
    color: white; /* สีข้อความ */
    padding: 30px; /* ระยะห่างภายใน */
    width: 80%; /* ความกว้างของ footer */
    margin: 20px auto; /* ระยะห่างและการจัดให้อยู่ตรงกลาง */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* เงาใต้ footer */
    border-radius: 10px; /* มุมโค้งของ footer */
    display: flex;
    flex-direction: column; /* จัดเรียงเนื้อหาในแนวตั้ง */
    align-items: center; /* จัดให้อยู่ตรงกลาง */
    transition: background-color 0.3s ease, transform 0.3s ease; /* เอฟเฟกต์การเปลี่ยนสีและการเคลื่อนไหว */
}

/* เนื้อหาใน footer */
.footer-content {
    display: flex;
    justify-content: space-between; /* จัดระยะห่างระหว่างส่วนต่าง ๆ */
    width: 100%; /* ใช้ความกว้างเต็ม */
    margin-bottom: 20px; /* เว้นระยะด้านล่าง */
}

/* ส่วนซ้ายของ footer */
.footer-left {
    display: flex;
    flex-direction: column; /* จัดเรียงเนื้อหาในแนวตั้ง */
    align-items: center; /* จัดให้อยู่ตรงกลาง */
    width: 30%; /* ความกว้างของส่วนซ้าย */
    margin-bottom: 20px; /* เว้นระยะด้านล่าง */
}

/* กล่องรวมโลโก้และคำอธิบาย */
.logo-description {
    display: flex;
    flex-direction: column; /* จัดเรียงในแนวตั้ง */
    align-items: center; /* จัดให้อยู่ตรงกลาง */
}

/* สไตล์โลโก้ */
.footer-logo {
    height: 50px; /* ความสูงของโลโก้ */
    margin-bottom: 10px; /* เว้นระยะด้านล่างของโลโก้ */
    transition: transform 0.3s ease; /* เอฟเฟกต์การขยับ */
}

/* เอฟเฟกต์เมื่อ hover โลโก้ */
.footer-logo-link:hover .footer-logo {
    transform: scale(1.1); /* ขยายโลโก้เมื่อชี้เมาส์ */
}

/* คำอธิบาย */
.footer-description {
    font-size: 0.9rem; /* ขนาดตัวอักษร */
    margin-top: 0; /* เว้นระยะด้านบน */
    margin-bottom: 10px; /* เว้นระยะด้านล่าง */
    color: #f0f0f0; /* สีตัวอักษร */
    text-align: center; /* จัดให้อยู่ตรงกลาง */
}

/* ไอคอนโซเชียล */
.social-icons {
    display: flex;
    justify-content: center; /* จัดให้อยู่ตรงกลาง */
    gap: 10px; /* ระยะห่างระหว่างไอคอน */
    margin-top: 5px; /* เว้นระยะด้านบน */
}

/* สไตล์ไอคอนโซเชียล */
.social-link {
    color: white; /* สีไอคอน */
    font-size: 1.2rem; /* ขนาดไอคอน */
    text-decoration: none; /* ไม่มีขีดเส้นใต้ */
    transition: color 0.3s ease, transform 0.3s ease; /* เอฟเฟกต์การเปลี่ยนสี */
}

/* เอฟเฟกต์เมื่อ hover ไอคอน */
.social-link:hover {
    color: #00e6b8; /* สีไอคอนเมื่อชี้เมาส์ */
    transform: scale(1.1); /* ขยายไอคอนเมื่อชี้เมาส์ */
}

/* ส่วนขวาของ footer */
.footer-right {
    display: flex;
    flex-wrap: wrap; /* ให้เนื้อหาห่อเมื่อหน้าจอเล็กลง */
    justify-content: space-between; /* จัดระยะห่างระหว่างคอลัมน์ */
    width: 65%; /* ความกว้างของส่วนขวา */
}

/* คอลัมน์เมนู */
.footer-columns {
    display: flex;
    justify-content: space-between; /* จัดระยะห่างระหว่างคอลัมน์ */
    flex-wrap: wrap; /* ให้คอลัมน์ห่อเมื่อหน้าจอเล็กลง */
    gap: 15px; /* ระยะห่างระหว่างคอลัมน์ */
    width: 100%; /* ใช้ความกว้างเต็ม */
}

.footer-column {
    display: flex;
    flex-direction: column; /* จัดเรียงเนื้อหาในแนวตั้ง */
    align-items: flex-start; /* จัดชิดซ้าย */
    width: 23%; /* ความกว้างของแต่ละคอลัมน์ */
    min-width: 150px; /* ความกว้างขั้นต่ำของคอลัมน์ */
    gap: 5px; /* ระยะห่างระหว่างลิงก์ */
}

.footer-column h4 {
    margin-bottom: 10px; /* เว้นระยะด้านล่าง */
    font-size: 1rem; /* ขนาดตัวอักษร */
    color: #ffffff; /* สีหัวข้อ */
}

/* ลิงก์ใน footer */
.footer-link {
    color: white; /* สีลิงก์ */
    text-decoration: none; /* ไม่มีขีดเส้นใต้ */
    font-size: 0.85rem; /* ขนาดตัวอักษร */
    transition: color 0.3s ease, transform 0.3s ease; /* เอฟเฟกต์การเปลี่ยนสี */
}

/* เอฟเฟกต์เมื่อ hover ลิงก์ */
.footer-link:hover {
    color: #006F5A; /* สีลิงก์เมื่อชี้เมาส์ */
    transform: translateY(-3px); /* ขยับขึ้นเล็กน้อย */
}

/* ลิงก์พิเศษ */
.footer-link-special {
    color: black; /* สีลิงก์ */
    text-decoration: none; /* ไม่มีขีดเส้นใต้ */
    transition: color 0.3s ease; /* เอฟเฟกต์การเปลี่ยนสี */
}

.footer-link-special:hover {
    color: #00e6b8; /* สีลิงก์เมื่อชี้เมาส์ */
}

/* ข้อความลิขสิทธิ์ */
.footer-copyright {
    text-align: center; /* จัดให้อยู่ตรงกลาง */
    margin-top: 20px; /* เว้นระยะด้านบน */
    font-size: 0.85rem; /* ขนาดตัวอักษร */
    color: #f0f0f0; /* สีข้อความ */
}

/* การตอบสนองสำหรับหน้าจอขนาดเล็ก */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* จัดเรียงเนื้อหาในแนวตั้ง */
        align-items: center; /* จัดให้อยู่ตรงกลาง */
    }

    .footer-left,
    .footer-right {
        width: 100%; /* ขยายความกว้างเต็มพื้นที่ */
    }

    .footer-columns {
        flex-direction: column; /* เรียงคอลัมน์ในแนวตั้ง */
        align-items: center; /* จัดให้อยู่ตรงกลาง */
    }

    .footer-column {
        width: 100%; /* ขยายเต็มพื้นที่ */
        margin-bottom: 15px; /* เว้นระยะด้านล่างระหว่างคอลัมน์ */
    }
}
