/* Puedes añadir estilos globales personalizados aquí si es necesario */

body {
    /* El color de fondo ya está aplicado con Tailwind en el Layout,
       pero puedes definir otros estilos base si quieres. */
    /* background-color: #111827; */ /* Ejemplo si no usaras Tailwind en body */
}

.hero-section {
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)), url('/images/hero-background-1.png'); /* Asegúrate que esta ruta sea correcta desde wwwroot */
    background-size: cover;
    background-position: center;
}

.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .game-card:hover {
        transform: translateY(-5px);
        /* Un color de sombra que contraste mejor con el fondo oscuro */
        box-shadow: 0 10px 20px rgba(0, 200, 255, 0.25);
    }

/*Unity section*/
.game-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
}

.unity-responsive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #231F20;
}

/* Ajustes para móviles */
@@media (max-width: 768px) {
    .game-container {
        padding-bottom: 75%; /* 4:3 para móviles */
    }
}

/* Estilos adicionales para el modal si los necesitas fuera de Tailwind */
/* #loginModalContent { */
/* transition: transform 0.2s ease-out, opacity 0.2s ease-out; */ /* Ya añadido inline con JS */
/* } */


#paymentForm input {
    color: black; /* Texto negro */
    background-color: white; /* Fondo blanco */
    border: 1px solid #ccc; /* Borde gris */
    padding: 8px;
    font-size: 16px;
}


h1 {
    font-size: 2rem !important; /* Ajusta según necesidad */
    font-weight: inherit;
    margin-bottom: 10px !important;
}

h2 {
    font-size: 1.75rem !important;
    font-weight: inherit;
    margin-bottom: 10px !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: inherit;
    margin-bottom: 10px !important;
}



.ql-toolbar.ql-snow {
    background-color: #FFF;
}

.ql-editor {
    background-color: aliceblue;
    color: #000;
}


/* El wrapper ahora es manejado por Bootstrap, pero dejamos un fondo por si acaso */
#unity-game-wrapper {
    background-color: #111827; /* Un fondo oscuro que coincida con tu tema */
}

#unity-container {
    position: relative;
    /* Las transformaciones para centrar ya no son necesarias gracias a Bootstrap */
}

    /* 4) Ocultar el banner cuando el juego está en pantalla completa */
    #unity-container:fullscreen #unity-warning {
        display: none;
    }

    #unity-container:-webkit-full-screen #unity-warning { /* Para compatibilidad con Safari */
        display: none;
    }

    #unity-container.unity-mobile {
        position: fixed;
        width: 100%;
        height: 100%;
    }

#unity-canvas {
    background: #231F20;
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
}

/* Barra de carga */
#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-logo {
    width: 154px;
    height: 130px;
    background: url('../content/img/unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    background: url('../content/img/progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url('../content/img/progress-bar-full-dark.png') no-repeat center;
}

/* Footer de Unity */
#unity-footer {
    position: relative;
    bottom: -5px;
}

.unity-mobile #unity-footer {
    display: none;
}

#unity-logo-title-footer {
    float: left;
    width: 102px;
    height: 38px;
    background: url('../content/img/unity-logo-title-footer.png') no-repeat center;
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: white;
}

#unity-fullscreen-button {
    cursor: pointer;
    float: right;
    width: 38px;
    height: 38px;
    background: url('../content/img/fullscreen-button.png') no-repeat center;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
    z-index: 10;
}


/* ===== DataTables Dark Theme ===== */
.dataTable-dark {
    color: #f1f1f1;
    background-color: #1e1e1e;
}

    .dataTable-dark thead {
        background-color: #2d2d2d;
        color: #ffffff;
    }

    .dataTable-dark tbody tr:nth-child(even) {
        background-color: #252525;
    }

    .dataTable-dark tbody tr:nth-child(odd) {
        background-color: #1e1e1e;
    }

    .dataTable-dark tbody tr:hover {
        background-color: #333333;
    }

/* DataTables wrapper */
.dataTables_wrapper {
    color: #e0e0e0;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        color: #e0e0e0 !important;
        background: #2d2d2d !important;
        border: 1px solid #444 !important;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: #444 !important;
            color: #fff !important;
        }

    .dataTables_wrapper .dataTables_filter input {
        background-color: #2d2d2d;
        color: #fff;
        border: 1px solid #444;
    }

    .dataTables_wrapper .dataTables_length select {
        background-color: #2d2d2d !important;
        color: #fff !important;
        border: 1px solid #444 !important;
    }

/* TITULOS */
.table-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 30px; /* separación desde el hr */
    margin-bottom: 20px;
}

/* ACORDEÓN / DETAILS DARK */
details {
    background-color: #1e1e1e;
    color: #f1f1f1;
    padding: 10px;
    border-radius: 6px;
    margin-top: 20px;
}

    details summary {
        font-weight: bold;
        cursor: pointer;
        outline: none;
        color: #f1f1f1;
    }

    /* Contenido interno al abrir */
    details[open] {
        background-color: #2d2d2d;
    }

    details > *:not(summary) {
        margin-top: 10px;
    }

    /* Tabla dentro del details (si la hay) */
    details table {
        width: 100%;
        border-collapse: collapse;
        color: #f1f1f1;
    }

        details table th, details table td {
            border: 1px solid #444;
            padding: 6px;
        }

        details table th {
            background-color: #2d2d2d;
        }

        details table tbody tr:nth-child(even) {
            background-color: #252525;
        }

        details table tbody tr:nth-child(odd) {
            background-color: #1e1e1e;
        }

        details table tbody tr:hover {
            background-color: #333;
        }


