body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  background: url('./hinhnen/back.jpg') no-repeat center center fixed;
  background-size: cover;
  text-align: center;
  overflow-x: hidden;
}

/* Hình nền cho điện thoại */
@media screen and (max-width: 768px) {
  body {
    background-size: cover;
  }
}

h1, h2, p {
  color: #fff;
  text-shadow: 2px 2px 5px #000;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px #000;
}

/* Các tab */
.tab-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 1px 1px 3px #000;
  transition: background-color 0.3s ease;
}

.tab:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.tab.active {
  background-color: rgba(100, 100, 100, 0.6); /* Xám đậm */
  text-decoration: underline;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.game-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-info {
  padding: 15px;
}

.game-info h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #fff; /* Đảm bảo màu chữ là trắng */
  text-shadow: 2px 2px 5px #000; /* Áp dụng shadow cho chữ */
}

.play-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.play-button:hover {
  background: #0056b3;
}

.footer {
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
}

/* Tuyết rơi */
.snowflake {
  position: fixed;
  top: -10px;
  color: #fff;
  font-size: 1em;
  pointer-events: none;
  z-index: 9999;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Hiệu ứng neon với viền trắng */
h2 {
  font-size: 2rem;
  color: #f44336;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 15px #f44336,
    0 0 25px #f44336,
    0 0 40px #f44336,
    0 0 50px #f44336,
    0 0 60px #f44336;
}

/* Nút điều khiển nhạc - phẳng và hiện đại */
.music-controls {
  display: flex;
  gap: 10px;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

.music-controls button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.1s;
}

.music-controls button:hover {
  background: rgba(255, 255, 255, 0.35);
}

.music-controls button:active {
  transform: scale(0.95);
}

/* Nút điều khiển nhạc tích hợp - nằm ở góc trên phải, màu xám trong suốt */
.music-control-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.music-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(128, 128, 128, 0.35); /* xám trong suốt */
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.music-control button {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
  text-shadow: 1px 1px 3px #000;
}

.music-control button:hover {
  transform: scale(1.2);
}
