html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-image: url('../assets/Common/bg.png');;
  color: #f8f8f8;
}

header, footer {
  background-color: #222;
  text-align: center;
}

header h1 {
  margin: 0;
  color: gold;
}

.container{
  height: 100%;
}

.navbar{
  display: block;
  padding: 10px;
  width: 100%;
}

td, th {
  font-family: "Jersey 10", cursive;
}

.nav-item{
  display: inline;
  float: left;
  padding: 10px;
}

.nav-right{
  padding: 10px;
  display: inline;
  float: right;
}

.nav-logo {
  height: 3rem;
  width: auto;
  vertical-align: middle;
}

nav a {
  color: white;
  text-decoration: none;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

footer a {
  color: #aaa;
  text-decoration: underline;
}

main.game-interface {
  min-height: 70vh;
}

.balance {
  display: flex;
}

.mini-coin {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* === Leaderboard Section (no CSS variables) === */
/* === Leaderboard Section === */

/* Centered gold title */
h2 {
  text-align: center;
  color: gold;
  margin-top: 2rem;
  font-size: 7rem;                 /* whatever you want, e.g. 4rem @16px = 64px */
  font-family: "Jersey 10", cursive;
}

/* Table base */
.table {
  width: 90%;
  margin: 2rem auto;
  border-collapse: collapse;
  background-color: #1e1e1e;
  color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Header row container */
.table thead {
  background-color: #2b2b2b;
  border-bottom: 2px solid #444;
}

.table thead th {
  color: gold;
  font-size: 3rem;
  padding: 1.5rem;
  font-family: "Jersey 10", cursive;
  text-align: center;
}

.table th,
.table td {
  border-bottom: 1px solid #444;
}

.table tbody td {
  font-weight: bold;
  color: white;
  font-size: 48px;
  padding: 1rem;
  text-align: center;
  font-family: "Jersey 10", cursive;
}

.table tbody tr:hover {
  background-color: #292929;
  transition: background-color 0.2s ease;
}

.table a {
  color: blue;
  text-decoration: underline;
}

.table a:hover {
  color: #ffbf47;
}

.navbar-container {
  background-color: #111;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Left and right sections */
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Nav items */
.nav-item a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.5rem;
  position: relative;
  transition: color 0.3s;
  padding: 0.5rem;
  font-family: "Jersey 10", cursive;
}

input, .autocomplete-item {
  font-family: "Jersey 10", cursive;
  font-size: 1.5rem;
}

.nav-rank-icon {
  width: 2rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.nav-item a:hover {
  color: gold;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: gold;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-item a:hover::after {
  transform: scaleX(1);
}

/* Coin and username */
#user-money {
  color: gold;
  margin-right: 0.3rem;
  font-weight: bold;
  font-family: "Jersey 10", cursive;
  font-size: 1.5rem;
}

.mini-coin {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: white;
}

.main{
  margin: 1rem;
}

.stats-grid{
  color: black;
}

#userSearchForm {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.5rem;
}


#userSearchForm input[type="text"] {
  flex: 1;
  min-width: 150px;   /* adjust as needed */
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #2b2b2b;
  color: #fff;
}

#userSearchForm button {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  background-color: gold;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#userSearchForm button:hover {
  background-color: darkgoldenrod;
}

#autocompleteList {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background-color: #444;
  color: #fff;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  font-size: 0.9rem;
}

.autocomplete-item {
  padding: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.autocomplete-item:hover {
  background-color: gold;
  color: #000;
}

.nav-item:first-child a,
.nav-item:first-child a img {
  text-decoration: none !important;
}

.nav-item:first-child a::after {
  display: none !important;
}

.leaderboard-logo {
  display: block;
  padding-bottom: 2rem;
  margin: 1.5rem auto;
  width: 40%;
}

.money-icon {
  width: 1.5rem;
}

.bienvenu {
  padding-top: 20px;
  font-size: 5rem;
}

.level-icon.right {
  width: 3rem;
  height: auto;
  vertical-align: middle;
  margin-left: 0.5rem;
}