/* ESTILOS PRINCIPAL */
@font-face {
    /* para inserta una fuente descargada */
    font-family: 'cinzel';
    /* Nombre de la fuente */
    src: url('font/CinzelDecorative-Regular.ttf') format('truetype');
    /* Ruta de la fuente */
}


body {
    background-image: url("img/fondo3.jpg");
    background-size: 102%;
    font-family: cinzel, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    background-attachment: fixed;
}

.titulo-bg {

    margin-bottom: 2em;
    left: 0;
    width: 100%;
    height: 9em;
    background-color: #348abcd5;
    border: 2px solid #444;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}


h1 {
    text-align: center;
    font-weight: bolder;
    font-size: 59px;
    text-shadow: 2px 2px 4px rgba(245, 249, 206, 0.5);
    color: #fff;
    font-family: cinzel, sans-serif;
}

/* Estilos para caja de imágenes */
.contenedor {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2em;
    transition: margin-left 0.5s;   /* Agrega una transición suave al margen izquierdo */
}

.jugador {
    width: calc(20% - 20px);
    margin: 8px;
    border: 2px solid #444;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.jugador img {
    width: 100%;
    height: auto;
    display: block;
}

.jugador .nombre {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.4em;
    background-color: #1d2434;
    color: #fff;
    font-family: cinzel, sans-serif;
    font-weight: bolder;
    font-size: 22px;
    padding-bottom: 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(245, 249, 206, 0.5);
}

/* Estilos para los selectores */
#selectorHabilidad,
#selectorNivelMinimo {
    padding: 8px;
    border: 2px solid #444;
    border-radius: 5px;
    font-family: 'cinzel', sans-serif;
    font-size: 20px;
    font-variant: small-caps;
    font-weight: bold;
    color: #348abcd5;
    background-color: #fff;
    width: 15em;
    margin: 0 auto;
    margin-bottom: 1.5em;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Estilo para el botón */
#aplicarFiltro {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'cinzel', sans-serif;
    font-size: 18px;
    color: #fff;
    background-color: #348abcd5;
    border: 2px solid #444;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(245, 249, 206, 0.5);
}

#aplicarFiltro:hover {
    background-color: #3a4276;
}



/* ESTILOS DEL FILTRADO */
.subTitulo-bg {
    margin-bottom: 2em;
    margin: 0 auto;
    left: 0;
    width: 85%;
    /* Ancho del borde izquierdo */
    height: 4em;
    /* Altura de la página */
    background-color: #1d2434d8;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

h2 {
    padding-top: 0.75em;
    text-align: center;
    font-weight: bolder;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(245, 249, 206, 0.5);
    color: #fff;
    font-family: cinzel, sans-serif;
}

font {
    padding-top: 0.7em;
    text-align: center;
    font-weight: bolder;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(245, 249, 206, 0.5);
    color: #fff;
    font-family: cinzel, sans-serif;

}

/* Estilos para caja de imágenes */
.estiloFiltro {
    max-width: 85%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2em;
    margin-bottom: 3em;
}

.imgFiltro {
    width: calc(20% - 20px);
    margin-left: 20px;
    margin-right: 20px;
    margin: 10px;
    border: 2px solid #444;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}

.estiloFiltro img {
    width: auto;
    height: 8.2em;
    display: block;

}

.nivelFiltro {
    font-size: 16px;
    font-variant: small-caps;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background-color: #348abcd5;
    border: 2px solid #444;
    text-shadow: 1px 1px 2px rgba(245, 249, 206, 0.5);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    width: 80%;
    margin: 0 auto;
    padding: 0.1em;
}

/* ESTILOS DE LA INFORMACION */
h3 {
    font-size: 22px;
    margin-bottom: 0.5em;
    text-align: center;
    color: #348abcd5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.394);
}

h4 {
    font-size: 18px;
    font-variant: small-caps;
    margin-bottom: 0;
    margin-top: 0.2em;
}

#infoJugadores {
    position: fixed;
    top: 25.5em;
    right: 15em;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    /* Por defecto, ocultamos el div */
    width: 15em;
    border: 2px solid #444;
}

#infoJugadores .cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #333;
}

input[type="range"] {
    height: 5px;    /* Establece el grosor del riel del rango */
    width: 15em;
    cursor: pointer;
}


/* PIE DE PÁGINA */
footer {
    margin-top: 3em;
    margin-bottom: 2em;
    margin: 0 auto;
    left: 0;
    width: 100%;
    height: 2em;
    background-color: #1d2434d8;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    z-index: 2;
}

footer > p,
footer > font {
    padding-top: 0.5em;
    font-size: 12px;
    color:#fff;
    font-variant: small-caps;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(245, 249, 206, 0.5);
}

.pie {
    color:#fff;
    font-size: 14px;
    margin-left: 0.5em;
    margin-right: 2em;
}