html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Orbitron";
  background-color: #0f0f0f;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  background: url("img/bg.jpg") no-repeat center center fixed;
  background-size: cover;
}

.content-wrapper {
  max-width: 80%;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: rgba(15, 15, 15, 0.85);
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), 0 0 60px rgba(0, 255, 255, 0.1);
}

header,
footer {
  background-color: #1a1a1a;
  padding: 20px;
  border-bottom: 2px solid #2a2a2a;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

nav button {
  background: none;
  color: #00ffff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

nav button:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: auto;
}

.search-container {
  max-width: 300px;
  margin-right: 20px;
}

.search-input {
  padding: 10px;
  border-radius: 6px;
  border: none;
  width: 100%;
  font-size: 1rem;
  background-color: #1e1e1e;
  color: #fff;
  box-shadow: 0 0 5px #00ffcc55;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  margin-right: 20px;
}

.social-links a {
  text-decoration: none;
  font-size: 1.4rem;
  color: #00ffff;
  position: relative;
}

.social-links a:hover::after {
  content: attr(href);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 10;
}

.game-count {
  padding: 10px 20px;
  font-size: 1.5rem;
  text-align: center;
  color: #00ffff;
}

.category-title {
  font-size: 2rem;
  padding: 12px 20px;
  color: #00ccff;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 4px rgba(0, 204, 255, 0.2), 0 0 8px rgba(0, 255, 255, 0.1);
  background: linear-gradient(to right, rgba(0, 255, 255, 0.05), rgba(0, 204, 255, 0.08));
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
}

main {
  flex: 1;
  padding: 20px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.game-card {
  background-color: #00161b7d;
  border-radius: 10px;
  outline: 1px solid #00d5ff;
  box-shadow: 0 0 20px #00d5ff32;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}

.game-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #00ffff;
  margin-bottom: 6px;
}

.player-id {
  font-family: "Segoe UI";
  font-size: 0.95rem;
}

.tooltip {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 10;
}

.game-card:hover .tooltip {
  opacity: 1;
}

.copied-msg {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #00ffcc;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  display: none;
  z-index: 10;
}

.game-card.show-copied .copied-msg {
  display: block;
}

#notes-section {
  font-family: "Segoe UI";
  display: none;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

#notes-section h2 {
  font-family: "Orbitron";
  color: #00ccff;
  text-align: center;
}

.note-block h3 {
  cursor: pointer;
  background-color: #111;
  padding: 10px;
  border: 1px solid #00ccff;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.note-block h3:hover {
  background-color: #00ccff;
  color: #000;
  transform: scale(1.03);
  box-shadow: 0 0 10px #00ffff;
}

.note-content {
  background-color: #1a1a1a;
  padding: 1px 1px;
  display: none;
}

.note-content ol {
  line-height: 1.6;
  list-style-position: inside;
}

.note-content ol li::marker {
  font-weight: bold;
  color: #00ffff;
}

@media (max-width: 768px) {
  .content-wrapper {
    max-width: 100%;
  }

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  header > div {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .social-links {
    justify-content: center;
    margin: 0 0 10px 0;
  }

  .search-container {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .search-input {
    width: 90%;
  }

  .category-title {
    font-size: 1.5rem;
  }
}
