/* Estilos generales */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Estilo para el logo en el navbar */
.navbar-logo {
  height: 50px; /* Ajusta el tamaño del logo */
  width: auto;
}

/* Barra de navegación */
nav {
  background-color: #1a1a1a; /* Fondo oscuro similar al de Rick and Morty */
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Enlaces de la barra de navegación */
nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  margin: 0 10px;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffcc00; /* Cambio de color al pasar el mouse */
}

/* Título principal */
h1 {
  text-align: center;
  color: #ffcc00; /* Color de texto más brillante */
}

/* Hero Section */
.hero {
  background-color: #2c3e50; /* Fondo oscuro para la hero section */
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.2rem;
}

/* Botones */
.btn-light {
  background-color: #ffcc00;
  border: none;
  color: black;
}

.btn-light:hover {
  background-color: #f1c40f;
}

/* Sección de Jugadores Top */
.top-players {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 15px;
}

.top-player {
  background-color: #1e1e1e;
  border-radius: 10px;
  width: 28%;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.top-player:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

.top-player img {
  width: 80%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.position {
  font-weight: bold;
}

.player-name {
  font-size: 1rem;
  margin: 10px 0;
}

.player-points {
  font-size: 1.2rem;
  color: #ffd700;
}

.tournaments-played {
  font-size: 0.8rem;
  color: #bbb;
}

/* Tabla de clasificación */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.ranking-table th, .ranking-table td {
  border: 1px solid #333;
  padding: 12px;
  text-align: center;
}

.ranking-table th {
  background-color: #1e1e1e;
  color: #f5f5f5;
  font-weight: 600;
}

.ranking-table tr:nth-child(even) {
  background-color: #1a1a1a;
}

.ranking-table tr:hover {
  background-color: #333;
  cursor: pointer;
}

.last-updated {
  text-align: center;
  color: #bbb;
  margin-top: 10px;
}

/* Estilos para el Constructor de Perfiles */
#profile-form {
  max-width: 600px;
  margin: auto;
}

#preview-avatar {
  border-radius: 50%;
  border: 2px solid #ffc107;
}
