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%;
}

.bg-black-custom {
    /*background: rgba(0, 0, 0, 0.1);*/
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
}

/*body {
    margin-bottom: 60px;
    background-image: Url("../images/Parchment-Paper-Texture-2.webp") no-repeat;
}*/

body {
    background: url('/images/Parchment-Paper-Texture-2.webp') no-repeat center center fixed !important;
    background-size: cover !important;
    font-family: 'MedievalSharp', cursive;
    margin-bottom: 60px;
}

.text-red {
    color: #800000 !important;
}

/* Alert */
.alert-medieval {
    background: linear-gradient(to right, #332d1c, #5e4b1c);
    border: 2px solid #d4af37;
    border-radius: 10px;
    color: #fff;
    font-family: 'MedievalSharp', cursive;
    box-shadow: 0 0 10px #000;
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

    .alert-medieval svg,
    .alert-medieval .me-2 {
        font-size: 1.5rem;
    }



.margin-top-100 {
    margin-top: 100px;
}

input:disabled {
    background-color: #555;
}

.custom-input {
    background-color: rgba(255, 255, 255, 0.6); /* Blanco semitransparente */
    border: 1px solid rgba(0, 0, 0, 0.2); /* Borde tenue */
    border-radius: 8px;
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    backdrop-filter: blur(2px); /* efecto vidrio */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease;
}

    .custom-input:focus {
        border-color: #bfa56a; /* color tipo dorado/pergamino */
        outline: none;
        box-shadow: 0 0 0 0.25rem rgba(191, 165, 106, 0.25); /* sombra suave */
    }

.custom-input {
    font-family: 'Garamond', serif; /* elegante y clásica */
}

.custom-input {
    border: 2px solid #bfa56a;
    border-style: double; /* o dashed si quieres algo más "antiguo" */
}

/*Modal medieval*/
/* Fuente medieval opcional */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

 /*Estilo general del modal*/ 
.medieval-modal {
    background: url('https://www.transparenttextures.com/patterns/old-map.png'); /*textura antigua*/
    background-color: #3b2f2f!important;
    border: 8px solid #d4af37!important;  /*dorado envejecido*/ 
    border-radius: 12px!important;
    color: #f4e4bc!important;
    font-family: 'MedievalSharp', serif!important;
    box-shadow: 0 0 20px rgba(0,0,0,0.8)!important;
}

     /*Título del modal*/ 
    .medieval-modal .modal-title {
        font-size: 1.8rem;
        color: #e2c044;
        text-shadow: 1px 1px #000;
    }

 /*Botón cerrar*/ 
.medieval-close {
    filter: invert(100%);
}

 /*Fondo del header*/ 
.modal-header {
    border-bottom: 2px solid #d4af37;
}

 /*Fondo del body*/ 
.modal-body {
    background-color: rgba(59, 47, 47, 0.9);
    padding: 20px;
}

 /*Enlaces, botones y detalles*/ 
/*.medieval-modal a,
.medieval-modal button {
    color: #e2c044;
}*/

    .medieval-modal a:hover {
        color: #f4e4bc;
        text-decoration: underline;
    }


    /*Loading*/

/* Oculto por defecto */
.oculto {
    display: none;
}

.contenido-loader {
    text-align: center;
}
/* Loader pantalla completa */
.pantalla-loader {
    position: fixed;
    z-index: 2000; /* Asegúrate que esté sobre todo */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #fdf5e6 0%, #d4bfa2 100%);
    background-image: url('../images/60-lines.png');
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'MedievalSharp', serif;
    color: #3b2f2f;
    transition: opacity 0.5s ease;
}

    /* Ícono animado */
    .pantalla-loader .loading-icon {
        width: 80px;
        animation: giroMedieval 2s linear infinite;
        margin-bottom: 20px;
        filter: drop-shadow(2px 2px 2px #000);
    }

    /* Texto estilo medieval */
    .pantalla-loader .loading-text {
        font-size: 1.5rem;
        font-style: italic;
        text-align: center;
        text-shadow: 1px 1px #e4cfa2;
    }

/* Animación giratoria */
@keyframes giroMedieval {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pantalla-loader {
    opacity: 1;
    pointer-events: all;
}

    .pantalla-loader.oculto {
        opacity: 0;
        pointer-events: none;
    }

    /*detalles match*/
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

body {
    background: url('https://www.transparenttextures.com/patterns/parchment.png'), #fdf5e6;
    font-family: 'MedievalSharp', serif;
    color: #3b2f2f;
}

/* Contenedor general */
.match-detalles-medieval {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(253, 245, 230, 0.85);
    border: 4px double #a1865e;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Título principal */
.titulo-medieval {
    font-size: 1.8rem;
    color: #5e3c17;
    border-bottom: 2px solid #bfa782;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

/* Lista de detalles */
.detalles-lista {
    display: grid;
    grid-template-columns: max-content 1fr;
    row-gap: 10px;
    column-gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

    .detalles-lista dt {
        font-weight: bold;
        color: #4d3319;
    }

/* Games */
.games-section {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border: 1px dashed #a1865e;
    border-radius: 10px;
}

.civ-icon {
    margin-right: 8px;
}

/* Ganador */
.ganador {
    background-color: #e2c044;
    color: #000;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Enlace de regreso */
.link-volver {
    display: inline-block;
    margin-top: 20px;
    color: #4d3319;
    text-decoration: none;
}

    .link-volver:hover {
        text-decoration: underline;
    }

.lista-games {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'MedievalSharp', serif;
}

    .lista-games li {
        font-size: 1.15rem;
        margin: 12px 0;
        padding: 10px 12px;
        background: rgba(253, 245, 230, 0.7);
        border: 2px solid #bfa782;
        border-radius: 8px;
        position: relative;
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    }

    /* Civilizaciones en cursiva */
    .lista-games .civs {
        font-style: italic;
        color: #6b4c3b;
    }

    /* Jugador ganador */
    .lista-games .jugador strong {
        color: #4d3319;
    }

    /* Icono de ganador */
    .lista-games .ganador-icon {
        margin-left: 8px;
        color: gold;
        font-size: 1.3rem;
        vertical-align: middle;
    }

    /* Resalta ganador si se desea más énfasis */
    .lista-games li:hover {
        background-color: #fcecc7;
        transform: scale(1.01);
        transition: all 0.2s ease;
    }



    /*Datatables*/
/* Paginación estilo simple */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #c2a878 !important;
    border: 1px solid #000 !important;
    color: black !important;
    margin: 0 2px;
    border-radius: 4px;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #856d4d !important;
        color: white !important;
    }

/* Eliminar estilos de Bootstrap si estorban */
.dataTables_wrapper select,
.dataTables_wrapper input {
    background: transparent;
    color: #000;
    border: 1px solid #856d4d;
}

/*Estilos botones editar, detalles y eliminar*/
.action-link {
    color: #a38b65;
    text-decoration: none;
    margin-right: 8px;
    font-weight: bold;
}

    .action-link:hover {
        color: #d4c19c;
        text-shadow: 0 0 5px #a38b65;
    }


/*
    Login
*/
.card-login {
    background-color: rgba(0, 0, 0, 0.8)!important;
    border: 3px solid #ffc107!important;
    color: #fff!important;
    border-radius: 1rem;
    box-shadow: 0 0 20px #000;
}

.form-control-login {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

    .form-control-login:focus {
        border-color: #ffc107;
        box-shadow: 0 0 5px #ffc107;
    }

.btn-medieval {
    background-color: #ffc107!important;
    color: #000!important;
    font-weight: bold!important;
}

    .btn-medieval:hover {
        background-color: #e0a800!important;
        color: #000!important;
    }

.logo-medieval {
    font-size: 2rem;
    color: #ffc107;
    text-shadow: 1px 1px 3px #000;
}

.link-light:hover {
    text-decoration: underline;
    color: #fff;
}


/*html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

    body > .container {
        flex: 1;
    }*/