.games-header {
  width: 80%;
  padding: 20px;
  margin: 20px auto;
  display: flex;
  flex-direction: row; /* Change to row for horizontal alignment */
  justify-content: space-between; /* Push items to the edges */
  align-items: center; /* Keep items vertically aligned */
  text-align: left; /* Reset text alignment */
}

.games-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #e0e0e0;
  margin: 0;
}

.new-game-button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  background: #444;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.new-game-button:hover {
  background: #222;
  transform: scale(1.05);
}

.table-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
}

table {
  width: 80%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: #232323;
  color: white;
}

thead {
  background: rgba(255, 255, 255, 0.2);
}

th, td {
  padding:1rem 1rem;
  text-align: left;
  max-width: 150px;
}

th {
  text-transform: uppercase;
  font-weight: bold;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.1);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease;
}

td a {
  text-decoration: none;
  color: #ffd700;
  font-weight: bold;
  transition: color 0.3s ease;
}

td a:hover {
  color: #ff6347;
}