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

.container {
  flex: 1;
  padding: 20px;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  margin-top: auto;

}

.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;
}

.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;
}

.button {
  display: block;
  margin-top: 10px;
  padding: 10px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.button:hover {
  background: #005fa3;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  margin-top: auto;
}

.stars {
  display: inline-flex;
  gap: 5px;
  cursor: pointer;
}

.stars span {
  font-size: 24px;
  color: #888;
  transition: color 0.2s;
}

.stars span.active {
  color: gold;
}

.stars span:hover,
.stars span:hover ~ span {
  color: gold;
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
  .game-grid {
    flex-direction: column;
    align-items: center;
  }
  .game-item {
    width: 90%;
    max-width: 300px;
  }
  h1 {
    font-size: 1.5rem;
  }
}
/* ===== ส่วนหัวเว็บไซต์ (Sticky Header) ===== */
.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;
}

/* เมนูหลัก (Desktop) */
.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);
}

/* ===== Responsive (มือถือ & แท็บเล็ต) ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 80px;
    right: 0;
    background-color: #302828;
    width: 100%;
    overflow: hidden;
    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;
    transition: all 0.4s ease;
  }

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

  /* เมื่อเปิดเมนู */
  .main-menu.show {
    max-height: 300px; /* ปรับความสูงได้ตามจำนวนเมนู */
    opacity: 1;
  }
}


