body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  header {
    background: #222;
    color: white;
    padding: 20px 0;
  }
  .games {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px;
  }
  .game img {
    width: 200px;
    height: 150px;
    border-radius: 10px;
  }
  .game p {
    font-weight: bold;
    margin-top: 10px;
  }
  .search {
  text-align: center;
  margin: 20px;
}

#gameSearch {
  padding: 10px;
  width: 60%;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
/* Mobile-Friendly Layout Tweaks */
body {
  padding: 10px;
  font-family: Arial, sans-serif;
}

/* Game container spacing and flexibility */
.games {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Each game card */
.game {
  width: 200px;
  text-align: center;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.game:hover {
  transform: scale(1.05);
}

.game img {
  width: 100%;
  border-radius: 8px;
}

/* Responsive behavior for smaller screens */
@media (max-width: 600px) {
  .games {
    flex-direction: column;
    align-items: center;
  }

  .game {
    width: 90%;
    margin-bottom: 20px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .game p {
    font-size: 1rem;
  }
}
body {
  font-family: 'Inter', sans-serif;
}
/* Back to Top Button */
#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 16px;
  border: none;
  outline: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #555;
}
nav {
  text-align: center;
  margin: 15px 0;
}

nav a {
  color: #007bff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}
.site-header {
  text-align: center;
  padding: 30px 10px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  border-bottom: 5px solid #0057b8;
}

.site-header h1 {
  font-size: 2.5rem;
  margin: 0;
}

.site-header p {
  font-size: 1.1rem;
  margin-top: 10px;
}
.game {
  width: 200px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 10px;
}

.game:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.game img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.main-nav {
  background-color: #222;
  padding: 10px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

.main-nav a:hover {
  text-decoration: underline;
}
/* Theme Toggle Button */
#themeToggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #222;
  color: white;
  border: none;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease;
}

#themeToggle:hover {
  background: #444;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .site-header {
  background: linear-gradient(135deg, #333, #111);
  border-bottom: 5px solid #444;
}

body.dark-mode .main-nav {
  background-color: #1e1e1e;
}

body.dark-mode .main-nav a {
  color: #eee;
}

body.dark-mode .game {
  background-color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .game:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}
.site-footer {
  text-align: center;
  background: #f1f1f1;
  padding: 20px;
  margin-top: 40px;
  color: #444;
  font-size: 0.9rem;
}

.site-footer a {
  color: #007bff;
  text-decoration: none;
  margin: 0 5px;
}

.site-footer a:hover {
  text-decoration: underline;
}
.filter-buttons {
  text-align: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: #007bff;
  border: none;
  color: white;
  margin: 5px;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #0056b3;
}
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.game {
  background-color: var(--card-bg, #fff);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.2s ease;
}

.game:hover {
  transform: scale(1.05);
}

.game img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ccc;
}

.game p {
  padding: 10px;
  font-weight: bold;
}
:root {
  --card-bg: #ffffff;
}

body.dark-mode {
  --card-bg: #1a1a1a;
}
:root {
  --card-bg: #ffffff;
}

body.dark-mode {
  --card-bg: #1a1a1a;
}
.recently-played h2 {
  text-align: center;
  margin-top: 30px;
}
.game p {
  font-family: 'Poppins', sans-serif; /* Modern, clean font */
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.game:hover p {
  color: #007bff; /* Blue on hover */
  transform: scale(1.05);
}
.login-btn {
  background-color: #fff;
  color: #555;
  font-size: 16px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.login-btn img {
  width: 20px;
  height: 20px;
}

.login-btn:hover {
  background-color: #f7f7f7;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.login-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.login-btn:hover {
  background: #f1f1f1;
}
.login-btn img {
  width: 20px;
  height: 20px;
}
