* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
	font-family: "Titillium Web", sans-serif;
	font-weight: 300;
	font-optical-sizing: auto;
	background-color:#D2DFE3;
}

body.comingsoon, html.comingsoon {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
	background-color:white;
}

.container {
	display: flex;    
	height: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 150px;
    background-color: white;
    color: #004C66;
    padding: 20px 0 0 0;
}

.logo img {
    max-width: 96px;
	width:100%;
	height:auto;
}

.menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
	cursor:pointer;
}

.menu-item:hover {
	background-color:rgba(127,165,178,0.3);
}

.menu-item img {
    width: auto;
    height: 40px;
}

.menu-item p {
    margin-top: 10px;
}

.menu-item a {
	text-decoration:none;
	color:inherit;
}

.menu-item.login {
    margin-top: auto;
    margin-bottom: 0;
}

body.comingsoon .container img {
	width:80%;
	max-width:588px;
	height:auto;
}

.content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.content-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content-large {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.inner-container {
    display: flex;
    flex-grow: 1;
}

.inner-small {
    width: 20%;
}

.inner-large {
    width: 80%;
}

.content-small {
    height: 100px;
}

.logo {
	text-align:center;
	margin-bottom:50px;
}

.logo img {
	height:80px;
	width:auto;
}
/*
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

nav ul li {
	margin: 0 10px;
	padding: 0 10px;
	height: 80px;
	background-color:white;
	color:#004C66;
	cursor:pointer;
	font-weight: 500;
	font-style: normal;
	text-transform:uppercase;
	font-size:16px;
	display:flex;
	justify-content: center;
    align-items: center;
	flex:1;
}

nav ul li.selected,
nav ul li:hover {
	color:white;
	background-color:#7FA5B2;
}

nav ul li a {
	color: inherit;
	text-decoration: none;

}
*/
.content {
    flex-grow: 1;
    padding: 20px;
}

.left,
.right {
    flex: 1;	
	box-sizing: border-box;
}

.left {
	flex: 1; /* 40% */
    width: 0; /* Esto asegura que el ancho relativo funcione */
}

.home .left {
	flex: 2;
}

.right {
	flex: 4; /* 60% */
    width: 0; /* Esto asegura que el ancho relativo funcione */
}

.home .right {
	flex: 3;
}

.left img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.right p {
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    background-color: #004C66;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
	font-family: "Reem Kufi Fun", sans-serif;
	font-size:25px;
}

button:hover {
	background-color:#7FA5B2;
	color:#004C66;
}

.entrenador {
	text-align:right;
}

.entrenador img {
	opacity:0.8;
	height:550px;
	width:auto;
}

.explicacion {
	font-size:36px;
	text-align:center;
    padding: 0 160px 0 50px;
	color:#004C66;
	margin-top:80px;
}

.explicacion button {
	margin-top:60px;
}

#plantilla {
	position: relative;
	/*background-color:#142D2E;*/
	border:5px solid white;
	height:600px;
	overflow-y: auto;
	box-sizing: border-box;
}

#selector-jugadores {
	display:none;
	margin-left: 20px;
	position: relative;
	background-color:white;
	/*border:2px solid white;*/
	height:600px;
	box-sizing: border-box;
}

#loading-jugadores,
#loading-plantilla {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
	background-color:rgba(127,165,178,0.8);
	display: none;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
}

#loading-jugadores img,
#loading-plantilla img {
    max-width: 100%; /* Para asegurarse de que la imagen no exceda el tamaño del contenedor */
    max-height: 100%;
    display: block;
    margin: auto; /* Ajustar márgenes para centrar */
}

.bajo-plantilla {
	margin-top:30px;
	text-align:center;
}

#teams {
    display: flex;
	overflow-x: auto; /* Habilita el desplazamiento horizontal */
    scroll-snap-type: x mandatory; /* Define que el desplazamiento se detendrá en cada elemento hijo */
	margin-left: 5px;
}

#teams .team {
	margin: 5px;
	scroll-snap-align: start; /* Define que el desplazamiento se detendrá al principio de cada elemento hijo */
	cursor: pointer;
}

#teams .team.selected {
	background-color:#7FA5B2;
}

#teams .team:hover {
	background-color:rgba(127,165,178,0.3);
}

#teams .team.selected:hover {
	background-color:#7FA5B2;
}

#teams .team img {
    width: 50px;
    height: auto;
	display:block;
	margin:20px;
}

#players {
    height: 492px;
    overflow-y: auto;
}

.team_players {
	display:none;
	flex-wrap: wrap;
}

.team_players.selected {
	display:flex;
}

.player {
	flex: 0 0 auto;
    margin: 5px;
    padding-bottom: 5px;
	cursor:pointer;
}

.player img {
	margin: 5px;
    width: 80px;
    height: auto;
	display:block;
}

.player span {
	width:90px;
	white-space:nowrap;
	overflow:hidden;
	text-align:center;
	font-size:12px;
	font-family:sans-serif;
	display:block;
}

.portero {
	background-color:rgba(255,153,51,0.4);
}

.portero:hover {
	background-color:rgba(255,153,51,0.7);
}

.defensa {
	background-color:rgba(0,51,204,0.4);
}

.defensa:hover {
	background-color:rgba(0,51,204,0.7);
}

.medio {
	background-color:rgba(0,162,41,0.4);
}

.medio:hover {
	background-color:rgba(0,162,41,0.7);
}

.delantero {
	background-color:rgba(255,51,51,0.4);
}

.delantero:hover {
	background-color:rgba(255,51,51,0.7);
}

.escudo-mini {
	width:20px!important;
	height:20px!important;
	display:block!important;
	margin:auto;
}

.delete {
	width:20px!important;
	height:20px!important;
	display:none!important;
	margin:auto;
}

tr.portero:hover,
tr.defensa:hover,
tr.medio:hover,
tr.delantero:hover {
	color:black;
	font-weight:600;
	background-color:white;
	cursor:pointer;
}

tr.portero:hover .escudo-mini,
tr.defensa:hover .escudo-mini,
tr.medio:hover .escudo-mini,
tr.delantero:hover .escudo-mini {
	display:none!important;
}

tr.portero:hover .delete,
tr.defensa:hover .delete,
tr.medio:hover .delete,
tr.delantero:hover .delete {
	display:block!important;
}

/* Estilos para la barra de desplazamiento */
/* Ancho y color de la barra de desplazamiento */
body ::-webkit-scrollbar {
    width: 8px;
	height: 8px;
    background-color: #7FA5B2; /* Color de fondo de la barra de desplazamiento */
}

/* Estilos para el pulgar de la barra de desplazamiento */
body ::-webkit-scrollbar-thumb {
	background-color: #004C66; /* Color del pulgar de la barra de desplazamiento */
    border-radius: 10px; /* Borde redondeado del pulgar */
}

/* Estilos para el riel de la barra de desplazamiento */
body ::-webkit-scrollbar-track {
    background-color: #7FA5B2; /* Color del riel de la barra de desplazamiento */
}

#jugadores {
	width: 100%;
	border-collapse: collapse;
	font-family: "Titillium Web", sans-serif;
  	font-weight: 400;
    text-align: left;
    /*color: white;*/
    font-size: 15px;
}

#jugadores tbody td:first-child {
	width:40px;
	text-align:center;
}

#jugadores tbody td:last-child {
	width:50px;
	text-align:center;
}

#jugadores tbody td {
	border-bottom: 1px solid #142D2E;
	padding: 4px;
	box-sizing: border-box;
}

#jugadores tbody tr {
	border-bottom: 1px solid #142D2E;
}

#jugadores tbody tr:not(:last-child) {
	margin-bottom: 10px;
}

#jugadores tbody tr:last-child {
	border-bottom: none;
}

.player.selected {
    background-color: rgba(0,0,0,0.7);
    color: white;
	cursor:not-allowed;
}

.comingsoon p {
	font-family: "Titillium Web", sans-serif;
  	font-weight: 400;
	font-size:22px;
}

#jugadores th {
    background-color: white;
    text-align: center;
    height: 35px;
    line-height: 35px;
    padding-bottom: 5px;
    text-transform: uppercase;
    font-weight: 300;
}