.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;              
  background-color: #f2f2f2;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
}

.navigation a.nav-element {
  text-decoration: none;
  color: #007bff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.navigation a.nav-element:hover {
  background-color: #e0e0e0;
}

.navigation .nav-element {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navigation .nav-element div {
  font-weight: 500;
  color: #333;
}

.navigation form button {
  background-color: #dc3545; 
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.navigation form button:hover {
  background-color: #c82333;
}

.games {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; 
  padding: 20px;
  background-color: #fafafa;
}

.game {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
a {
  text-decoration: none;
  color: inherit; 
}

.game:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.game h2 {
  font-size: 1.25rem;
  margin: 16px 12px 8px;
  color: #333;
  flex-shrink: 0;
}

.game-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

.game-details {
  padding: 12px;
  font-size: 0.9rem;
  color: #666;
  margin-top: auto; 
  display: flex;
  justify-content: space-around;
  font-weight: 500;
}

.filter-form {
  max-width: 480px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.filter-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.filter-form input[type="number"],
.filter-form select {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.filter-form fieldset {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 15px;
  margin-bottom: 16px;
  background: #fff;
}

.filter-form fieldset legend {
  font-weight: 700;
  padding: 0 6px;
  color: #444;
}

.filter-form fieldset label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 500;
  cursor: pointer;
}

.filter-form fieldset input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-form button[type="submit"] {
  display: inline-block;
  padding: 10px 24px;
  background-color: #007bff;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.filter-form button[type="submit"]:hover {
  background-color: #0056b3;
}

.game-focused {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px 30px;
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  color: #222;
}

.game-focused h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 1px;
  color: #111;
}

.game-focused > div:first-of-type {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 40px;
  font-weight: 500;
}

.game-focused > div:first-of-type > div {
  background: #eaeaea;
  padding: 15px 30px;
  border-radius: 30px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
  min-width: 150px;
}

.game-focused img.game-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  object-fit: cover;
}

.game-focused h2 input[type="text"] {
  font-size: 3rem;
  font-weight: 700;
  border: none;
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 6px 10px;
  background: transparent;
  color: #111;
  outline: none;
  transition: border-color 0.3s ease;
}

.game-focused h2 input[type="text"]:focus {
  border-color: #007bff;
}

.game-focused > div:first-of-type {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 40px;
  font-weight: 500;
  flex-wrap: wrap;
  text-align: center;
}

.game-focused > div:first-of-type > div {
  background: #eaeaea;
  padding: 15px 30px;
  border-radius: 30px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
  min-width: 150px;
}

/* Style inputs inside the info badges */
.game-focused > div:first-of-type input[type="text"],
.game-focused > div:first-of-type input[type="number"] {
  font-size: 1.3rem;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: center;
  outline: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  padding: 4px 6px;
}

.game-focused > div:first-of-type input[type="text"]:focus,
.game-focused > div:first-of-type input[type="number"]:focus {
  border-bottom-color: #007bff;
}

/* For the players min-max input group */
.game-focused > div:first-of-type > div:nth-child(2) input[type="number"] {
  max-width: 70px;
}

/* Dash between min-max players */
.game-focused > div:first-of-type > div:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.game-focused > div:first-of-type > div:nth-child(2)::before {
  font-weight: 700;
  font-size: 1.5rem;
  color: #555;
}

.game-focused input#price {
  width: 100%;
  max-width: 600px;
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  margin: 0 auto 30px;
  display: block;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

.game-focused input#price:focus {
  border-color: #007bff;
}

/* Image input */
.game-focused input#image {
  width: 100%;
  max-width: 600px;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin: 0 auto 40px;
  display: block;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

.game-focused input#image:focus {
  border-color: #007bff;
}

/* Submit button */
.game-focused button[type="submit"] {
  padding: 12px 36px;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 0 auto;
  max-width: 200px;
}

.game-focused button[type="submit"]:hover {
  background-color: #0056b3;
}

.add-game-form {
  max-width: 480px;
  margin: 60px auto;
  padding: 30px 25px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

.add-game-form h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: #333;
}

.add-game-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.add-game-form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #555;
}

.add-game-form input[type="text"],
.add-game-form input[type="number"] {
  padding: 10px 14px;
  font-size: 1rem;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

.add-game-form input[type="text"]:focus,
.add-game-form input[type="number"]:focus {
  border-color: #007bff;
}

.add-game-form button[type="submit"] {
  margin-top: 15px;
  padding: 12px 0;
  font-size: 1.2rem;
  font-weight: 700;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.add-game-form button[type="submit"]:hover {
  background-color: #0056b3;
}

.login-form {
  max-width: 360px;
  margin: 50px auto;
  padding: 30px 25px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

.login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 90%;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 1rem;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: #007bff;
}

.login-form button[type="submit"] {
  width: 100%;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.login-form button[type="submit"]:hover {
  background-color: #0056b3;
}
