body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #fff;
  transition: background-color 0.3s, color 0.3s;
}

body.light-theme {
  background-color: #f0f0f0;
  color: #000;
}

/* Sidebar Styling */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 1000;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
  width: 250px;
}

.sidebar a {
  padding: 12px 20px;
  font-size: 1rem;
  color: #00bfff;
  display: block;
  text-decoration: none;
  transition: 0.3s;
  border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.sidebar a:hover {
  background-color: rgba(0, 191, 255, 0.1);
  padding-left: 25px;
}

body.light-theme .sidebar a {
  color: #007acc;
}

.closebtn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #00bfff;
}

.search-input {
  margin: 15px;
  padding: 10px 15px;
  width: calc(100% - 30px);
  border-radius: 25px;
  border: 1px solid rgba(0, 191, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: 0.3s;
}

body.light-theme .search-input {
  color: #000;
  background-color: rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  border-color: #00bfff;
  background-color: rgba(255, 255, 255, 0.2);
}

.burger {
  font-size: 24px;
  cursor: pointer;
  background: rgba(0, 191, 255, 0.2);
  color: #00bfff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 1001;
}

.burger:hover {
  background: rgba(0, 191, 255, 0.3);
  transform: rotate(90deg);
}

/* Overlay when sidebar is open */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

body.sidebar-open .overlay {
  display: block;
}

/* Light theme adjustments */
body.light-theme .sidebar {
  background-color: rgba(255, 255, 255, 0.95);
}

body.light-theme .sidebar a:hover {
  background-color: rgba(0, 122, 204, 0.1);
}

/* Header Styling */
header {
  background-color: #000;
  color: #00bfff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0, 191, 255, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-buttons button {
  margin-left: 10px;
  padding: 5px 10px;
  border: none;
  background-color: #00bfff;
  color: #000;
  border-radius: 6px;
  cursor: pointer;
}

.header-buttons button:hover {
  background-color: #009acc;
}

.logo {
  width: 120px;
  height: auto;
  border-radius: 10px;
}

/* Games Container */
.games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px;
}

.game-card {
  background-color: #1a1a1a;
  border: 1px solid #00bfff30;
  border-radius: 12px;
  width: 230px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.05);
}

body.light-theme .game-card {
  background-color: #fff;
  border-color: #ccc;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #00bfff30;
}

h2 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
  color: #00bfff;
}

body.light-theme h2 {
  color: #007acc;
}

p {
  font-size: 0.8rem;
  margin: 5px 0;
  color: #ccc;
}

body.light-theme p {
  color: #555;
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background-color: #00bfff;
  color: #000;
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #009acc;
}