/* Common styles for all pages */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Changed from flex-start to center */
  background-color: #001f4d; /* Default background color */
}

/* Header Title */
h1 {
  margin-top: 20px;
  font-size: 2.5rem;
  color: #ffffff;
}

/* Forms */
form {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 30px;
  border-radius: 10px;
  margin-top: 20px;
  backdrop-filter: blur(5px);
  width: 100%;
  max-width: 400px; /* Add max width for form */
}

/* Input Fields */
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: none;
}

/* Submit Button */
button {
  padding: 10px 20px;
  border: none;
  background-color: #ffffff;
  color: #333;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Hover effect for button */
button:hover {
  background-color: #ddd;
}

/* Links (Login/Register Links) */
a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

/* Tables (Leaderboard) */
table {
  margin-top: 20px;
  width: 80%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ffffff;
  padding: 10px;
  text-align: center;
  color: #ffffff;
}

/* Different backgrounds for different pages */

/* Login + Register page */
.login-page, .register-page {
  background: linear-gradient(135deg, #001f4d, #003366);
  color: #ffffff;
}

/* Index page */
.index-page {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #ffffff;
}

/* Game page */
.game-page {
  background: linear-gradient(135deg, #1c1c1c, #2e2e2e);
  color: #ffffff;
}

/* Leaderboard page */
.leaderboard-page {
  background: linear-gradient(135deg, #571580, #559ce2);
  color: #ffffff;
}

/* Added to center links vertically and horizontally */
p {
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
}
