/* Search field responsive styles */
.search-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 1em auto 2em auto;
	width: 100%;
	max-width: 400px;
	box-sizing: border-box;
}

.search-input {
	padding: 0.7em;
	border-radius: 4px;
	border: 1px solid #444;
	font-size: 1rem;
	background: #23272a;
	color: #e0e0e0;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.search-container {
		max-width: 100%;
		margin: 1em 0 1em 0;
		padding: 0 1em;
	}
	.search-input {
		font-size: 1em;
		padding: 0.7em;
		width: 100%;
		min-width: 0;
	}
}
/* Centered logout button above title */
.logout-container {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 2em;
	margin-bottom: 0.5em;
}
.logout-btn {
	position: static;
	margin: 0 auto;
	z-index: 10;
}
.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2em;
	margin-top: 2em;
	background: none;
}
.game-card {
	background: #23272a;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.4);
	padding: 1em;
	text-align: center;
	border: 1px solid #444;
	color: #e0e0e0;
	transition: box-shadow 0.2s, border 0.2s;
	max-width: 160px;
	margin: 0 auto;
}
.game-card:hover {
	box-shadow: 0 4px 24px rgba(88,101,242,0.2);
	border-color: #7289da;
}
.game-card img {
    max-width: 140px;
    max-height: 140px;
    margin-bottom: 1em;
    background: #181a1b;
    border-radius: 8px;
    border: 1px solid #444;
    cursor: pointer;
}
.game-card-title {
  word-break: break-word;
  white-space: normal;
  max-width: 100px;
  margin: 0 auto 0.5em auto;
  display: block;
  text-align: center;
}
body {
	font-family: 'Segoe UI', Arial, sans-serif;
	background: #181a1b;
	color: #e0e0e0;
	margin: 0;
}
.container {
	max-width: 400px;
	margin: 80px auto;
	background: #23272a;
	padding: 2em;
	border-radius: 10px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
h1 {
	text-align: center;
	color: #fff;
}
form {
	display: flex;
	flex-direction: column;
	gap: 1em;
}
input, select {
	padding: 0.7em;
	border: 1px solid #444;
	border-radius: 4px;
	background: #23272a;
	color: #e0e0e0;
}
input:focus, select:focus {
	outline: none;
	border-color: #7289da;
}
button {
	padding: 0.7em;
	background: linear-gradient(90deg, #7289da 0%, #5865f2 100%);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s;
}
button:hover {
	background: linear-gradient(90deg, #5865f2 0%, #7289da 100%);
}
.error {
	color: #ff5c5c;
	text-align: center;
	margin-top: 0.5em;
}
table {
	background: #23272a;
	color: #e0e0e0;
}
th, td {
	border-color: #444;
}
.admin-badge {
	background: #5865f2;
	color: #fff;
}

.site-logo-container {
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-logo {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .site-logo {
    height: 32px;
  }
  .site-logo-container {
    top: 0.5em;
    left: 0.5em;
  }
}

.game-info-container {
  max-width: 1024px;
  margin: 60px auto;
  background: #23272a;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  text-align: center;
}
.game-info-logo {
  max-width: 160px;
  max-height: 160px;
  margin-bottom: 1em;
  background: #181a1b;
  border-radius: 8px;
  border: 1px solid #444;
}
.game-info-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game-info-buttons {
  display: flex;
  gap: 0.7em;
  justify-content: center;
  margin: 1em 0 0.5em 0;
}
.game-info-buttons button {
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6em 1.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.game-info-buttons button:hover {
  background: #7289da;
}
.game-info-actions {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin: 1.5em 0 1em 0;
}
.game-info-actions button {
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6em 1.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.game-info-actions button:hover {
  background: #7289da;
}
#game-iframe-container {
  margin-top: 0.5em;
  display: flex;
  justify-content: center;
}
#game-iframe {
  border: none;
  border-radius: 8px;
  background: #fff;
  display: block;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  /* Remove default width/height for desktop scaling */
  width: unset;
  height: unset;
}
@media (max-width: 700px) {
  .game-info-container {
    max-width: 98vw;
    padding: 1em;
  }
  .game-info-logo {
    max-width: 80px;
    max-height: 80px;
  }
  #game-iframe {
    width: 98vw !important;
    height: 60vh !important;
  }
}

.play-game-container {
  max-width: 900px;
  margin: 60px auto;
  background: #23272a;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  text-align: center;
}
.play-game-controls {
  display: flex;
  gap: 0.7em;
  justify-content: center;
  margin-bottom: 1em;
}
.play-game-controls button {
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6em 1.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.play-game-controls button:hover {
  background: #7289da;
}
#play-game-iframe-container {
  display: flex;
  justify-content: center;
}
#play-game-iframe {
  border: none;
  border-radius: 8px;
  background: #fff;
  display: block;
}
@media (max-width: 700px) {
  .play-game-container {
    max-width: 98vw;
    padding: 1em;
  }
  #play-game-iframe {
    width: 98vw !important;
    height: 60vh !important;
  }
}

.game-info-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.1em;
  font-family: inherit;
  font-weight: 500;
  padding: 0.2em 0.8em 0.2em 0;
  border-radius: 4px;
  transition: background 0.2s;
}
.game-info-links a:hover {
  background: #222;
  color: #fff;
}

.game-info-link-btn {
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6em 1.2em;
  font-size: 1em;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  margin: 0 0.5em 0 0;
  transition: background 0.2s;
}
.game-info-link-btn:hover {
  background: #7289da;
}

.changelog-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background: #23272a;
  color: #e0e0e0;
  font-size: 0.98em;
}
.changelog-table th, .changelog-table td {
  border: 1px solid #444;
  padding: 0.5em 0.7em;
  text-align: left;
}
.changelog-table th {
  background: #181a1b;
  color: #fff;
  font-weight: 600;
}
.changelog-table tr:nth-child(even) {
  background: #202225;
}
.changelog-table tr:hover {
  background: #2c2f33;
}
