/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans Thai", sans-serif;
  background: #0e0e0e url("../images/kvbg2.png") no-repeat center center;
  background-size: cover;
  color: #fff;
  line-height: 1.6;
}

/* Container เป็น flex */
.container {
  position: relative;
  display: flex;
  flex-direction: row; /* เปลี่ยนจาก column เป็น row */
  justify-content: space-between;
  align-items: center; /* จัดให้อยู่กลางแนวตั้ง */
  padding: 20px;
  min-height: 100vh; /* ให้สูงเต็มจอ เพื่อจัดกลางแนวตั้งได้ */
}

/* ฝั่งซ้าย */
.content-left {
  flex: 2;
}

/* ฝั่งขวา (กล่องรายละเอียด) */
.detail-right {
  flex: 1;
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  font-size: 1rem;
  line-height: 1.5;
  max-height: 700px;
  overflow-y: auto;
}

/* หัวข้อกล่องรายละเอียด */
.detail-right h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

/* Navbar */
.navbar {
  margin-bottom: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.navbar-menu {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.navbar-menu a img {
  height: 120px;
  width: auto;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.navbar-menu a:hover img {
  transform: scale(1.1);
}

/* Overlay images container */
.overlay-images-container {
  display: flex;
  gap: 105px;
  align-items: center;
  margin-bottom: 40px;
}

.overlay-item {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.overlay-img {
  max-height: 300px;
  width: auto;
  display: block;
}

.overlay-img:hover {
  transform: none;
}

/* Overlay caption */
@keyframes sway {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

.overlay-caption-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  text-shadow: 0 0 5px #000;
  padding: 4px 8px;
  border-radius: 5px;
  pointer-events: none;
  animation: sway 0s ease-in-out infinite;
}

/* สีตัวอักษร */
.color-online {
  color: #00ff00; /* สีเขียวสด */
}

.color-2000 {
  color: #ff6600; /* สีส้ม */
}

.color-3000 {
  color: #3399ff; /* สีฟ้า */
}

.color-3200 {
  color: #ff33cc; /* สีชมพู */
}

/* Logo */
.logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  margin-top: -50px;
}

.logo-center img {
  max-width: 600px;
  height: auto;
  animation: floatUpDown 1s ease-in-out infinite;
}

@keyframes floatUpDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Main buttons */
.main-buttons {
  position: absolute;
  top: 390px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.main-buttons a img {
  height: 90px;
  transition: transform 0.3s ease;
}

.main-buttons a:hover img {
  transform: scale(1.05);
}
.detail-right {
  position: absolute;
  top: 490px; /* หรือค่าที่คุณต้องการ เช่น 200px */
  left: 52%;
  transform: translateX(145%);
}
.detail-right {
  flex: 1;
  max-width: 420px;
  background: #974;
  color: #000;
  border-radius: 16px;
  padding: 0px 80px;
  box-shadow: 0 0 285px rgba(0,0,0,0.3);
  font-size: 1rem;
  line-height: 1.6;
  max-height: 360px;
  overflow-y: auto;
  margin-left: -260px; /* แทน margin-left ติดลบที่ทำให้เบี้ยว */
  align-self: center; /* อยู่กลางแนวตั้งภายใน .container */
}

/* ใช้ pointer cursor เมื่อชี้ element ที่ควรคลิก */
a, a img, button, .shake-btn, .navbar-menu a img, .main-buttons a img {
  cursor: url('images/collection.cur'), pointer;
}

