body {
  background-color: #f8f9fa;
  color: #343a40;

}

header {
  background-color: #121212;
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 10px;
}

header nav {
  margin-top: 20px;
}
.navbar-dark .navbar-nav .nav-link {
color: rgb(255, 255, 255);
}
.navbar-nav .nav-link {
  font-size: 1.2rem;
  color: #000;

}
.logo {
  width: 200px; /* Ajusta el tamaño según sea necesario */
  height: 100px; /* Ajusta el tamaño según sea necesario */
  background-image: url('/img/logo.png'); /* Ruta de la imagen del logo */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto; /* Centrar el logo horizontalmente */
  
}
.navbar-nav .nav-link:hover {
  color: #000 !important;
  background-color: #fff;
  border-color: #fff;
  border-radius: 11px;
}
.btn-primary-login {
  background-color: #fe7011;
  border-color: #121212;
  color: #f8f9fa;
}
.btn-primary-login:hover {
 background-color: #d7d1d1;
  border-color: #d7d1d1;
  color: #000;
}
.btn-primary {
 background-color: #007bff;
  border-color: #007bff;

}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

main {
  padding: 40px 20px;
  text-align: center;
   padding-bottom: 200px;
}

main h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.card {
  margin-bottom: 20px;
}

footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}
.sidebar {
    background-color: #343a40;
    min-height: 100vh;
}

.sidebar .nav-link {
    color: #ffffff;
    font-size: 1.1em;
    padding: 10px;
}

.sidebar .nav-link:hover {
    background-color: #495057;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.main-content {
    padding: 20px;
}
/* Agregar estilos para footer */

/* Agregar estilos para resaltar la opción activa en el menú de navegación */
.nav-link.active {
   /* color: #ffffff !important;
    */background-color: #007bff;
    border-radius: 5px;
}

/* Otros estilos generales */
body {
    font-family: Arial, sans-serif;
}

header {
    margin-bottom: 20px;
}

.container {
    margin-top: 20px;
}

.navbar {
    position: relative;
}

.navbar-brand img {
    height: 60px; /* Ajustar a 60px para hacer el logo más grande */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#sponsors h5 {
    font-size: 14px; /* Tamaño más pequeño para "Patrocinadores" */
}

.sponsor-logo-container {
    display: flex;
    align-items: center;
}

.sponsor-logo {
    filter: grayscale(100%);
    height: 30px;
    transition: filter 0.3s;
    margin-left: 15px;
}

.sponsor-logo:hover {
    filter: none;
}



.footer {
    background-color: #ffffff;
    padding: 20px 0;
    color: #333;
}

.footer-logo {
    width: 150px;
    height: auto;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #007bff;
}

.social-icons a {
    color: #333;
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #007bff;
}

.hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}


.sidebar {
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar img.user-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 50%;
    margin-bottom: 20px;
}
/* TEAMS CONTENT */
.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.start-0 {
    left: 0 !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.flag {
    height: 25px;
    width: auto;
    object-fit: cover;
    z-index: auto;
    border-radius: 3px;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.8); /* Borde difuminado blanco */
}

}


.card-img-top {
    object-fit: cover;
    height: 200px;
}

.card-title {
    font-size: 1.9rem;
}

.card-text {
    font-size: 0.9rem;
}
.player-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.player-avatar {
    object-fit: cover;
    width: 100%;
    height: 100px;
    border-radius: 12%;
    margin-top: 10px;
}

.card-title {
    font-size: 1.2rem;
    margin-top: 5px;
}

.card-text {
    font-size: 0.8rem;
}
.player-name {
    font-size: 1rem;
}


/* FIN--------------------TEAMS CONTENT */

/* Partners Section */
.partners-section {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
}

.partners-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #343a40;
    font-weight: 500;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.partner-logo:hover {
    filter: none;
    transform: scale(1.1);
}
.partner-logo {
    max-height: 60px;
    filter: grayscale(100%);
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* SWITCH NIGHT MODE  */
body{
    transition: background-color 0.5s ease, color 0.5s ease; /* Transición para el cambio de tema */
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider:after {
  content: '\2600';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #f39c12;
  transition: .4s;
}

input:checked + .slider:after {
  content: '\1F319';
  right: 4px;
  color: #f1c40f;
}
/* Estilo para el preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff; /* Fondo del preloader */
  z-index: 9999; /* Asegúrate de que el preloader esté por encima de todo */
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #fe6f10; /* Blue */
  border-radius: 50%;
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: spin-reverse 4s linear infinite reverse; /* Borde girando en sentido contrario */
}

.spinner-image {
  width: 60px; /* Ajusta el tamaño de la imagen */
  height: 60px;
  animation: spin-reverse 2s cubic-bezier(.46,.03,.52,.96) infinite; /* Imagen girando */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
/* SIDEBAR DEL LOS PERFILES DE USUARIOS  */
.custom-sidebar {
    background-color: #343a40;
    padding: 15px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}
.bg-dark {
  background-color: #121212 !important;
}
.custom-sidebar .user-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.custom-sidebar .nav-link {
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    text-align: left; /* Alinea el texto a la izquierda */
    transition: background-color 0.3s ease;
}

.custom-sidebar .nav-link:hover {
    background-color: #495057;
}

.custom-sidebar .nav-link i {
    margin-right: 10px;
}

.custom-sidebar .badge-danger {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .custom-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-bottom: 20px;
    }

    .custom-sidebar .nav-link {
        text-align: center;
    }
}

.content-wrapper {
    margin-left: 250px; /* Ajuste necesario para dejar espacio al sidebar */
    padding: 20px;
}

@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
    }
}
