body {
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  /* Use sniper image as a full-page background */
  background-image: url('images/sniper.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

h1 {
  margin-top: 40px;
  margin-bottom: 20px;
}

#auth-section,
#select-game-section {
  background-color: rgba(30, 30, 30, 0.9);
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.desc {
  font-size: 0.9em;
  color: #bbbbbb;
  margin-top: 0;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9em;
  color: #cccccc;
}

input {
  width: 100%;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #ffffff;
}

.button-group {
  display: flex;
  justify-content: space-between;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background-color: #111;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  margin-right: 5px;
  font-size: 1em;
}

button:hover {
  background-color: #222;
}

button:disabled {
  background-color: #333;
  cursor: not-allowed;
}

.message {
  font-size: 0.9em;
  margin-top: 10px;
  min-height: 1.2em;
}

.message.error {
  color: #ff6b6b;
}

.message.success {
  color: #4caf50;
}

/* Inline form group for key redemption: input and button side by side */
.form-group.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Multi button group used for Discord, download, and close actions */
/* Rows of action buttons shown between connect and inject. */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

/* Discord link at bottom left */
#discord-link-bottom {
  display: inline-block;
  margin-top: 10px;
  margin-left: 0;
}

/* Anchor styled as button */
.btn-link {
  padding: 10px 16px;
  border-radius: 4px;
  background-color: #111;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  font-size: 1em;
}
.btn-link:hover {
  background-color: #222;
}

/* Smaller buttons for secondary actions (Discord, download, close) */
.small-btn {
  padding: 6px 10px;
  font-size: 0.9em;
}

/* Game card grid layout */
.game-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* Individual game card */
.game-card {
  background-color: #1e1e1e;
  border: 2px solid #444;
  border-radius: 8px;
  width: 200px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game-card:hover {
  border-color: #3a7afe;
  transform: translateY(-3px);
}
.game-card.selected {
  border-color: #4caf50;
  transform: translateY(-4px);
}
.game-card.coming-soon {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.game-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.card-title {
  padding: 10px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}
