@font-face {
    font-family: Montserrat;
    src: url(fonts/Montserrat-VariableFont_wght.ttf);
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
}

h1 {
    color: #333;
}

.game-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

.game {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.game:hover {
    transform: scale(1.05);
}

.game img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.game a {
    display: block;
    margin-top: 8px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

#searchInput {
  padding: 10px;
  width: 80%;
  max-width: 400px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 2px solid #ccc;
  border-radius: 8px;
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
}
.category-container {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;         /* keeps everything in ONE row */
  overflow-x: auto;          /* allows scrolling if it overflows */
  margin: 20px auto;
  padding: 10px;
}

.category-container a {
  padding: 12px 18px;
  background: #222;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.2s;
}

.category-container a:hover {
  background: #00ffcc;
  color: black;
  transform: scale(1.1);
}#scrollToTopBtn:hover {
  background-color: #0056b3;
}
