body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #252726;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== ส่วนหัวเว็บไซต์ ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #050505;
  color: white;
  padding: 10px 30px;
  border-bottom: 4px solid rgb(85, 82, 64);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* โลโก้ */
.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 60px;
  height: 60px;
}

/* ปุ่มเมนูมือถือ */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  user-select: none;
}

/* เมนูหลัก */
.main-menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.main-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, transform 0.2s;
}

.main-menu a:hover {
  color: gold;
  transform: scale(1.1);
}

/* ===== เนื้อหาหลัก ===== */
.container {
  flex: 1;
  padding: 20px;
  color: #fff;
  text-align: center;
  margin-top: 20px;
}

h2 {
  color: gold;
}

.game-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.game-item {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  width: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #000;
}

.game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(196, 247, 11, 0.15);
}

.game-item img {
  width: 100%;
  border-radius: 8px;
}

/* ===== ส่วนท้าย ===== */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  margin-top: auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 80px;
    right: 0;
    background-color: #302828;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 3px solid gold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }

  .main-menu.show {
    max-height: 300px;
    opacity: 1;
  }

  .game-grid {
    flex-direction: column;
    align-items: center;
  }

  .game-item {
    width: 90%;
    max-width: 300px;
  }

  h1, h2 {
    font-size: 1.5rem;
  }
}
