/* juegos/static/css/base.css */
#header-container {
    display: flex;
    justify-content: space-between; /* Distribuye el menú y los botones hacia los extremos */
    align-items: center; /* Alinea los elementos verticalmente al centro */
    padding: 20px; /* Añade padding para espaciar los elementos */
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semi-transparente */
    z-index: 100;
}


html,
body {
  background-color: #000;   /* negro pleno */
  color: #e5e5e5;           /* texto gris claro por defecto; ajusta a tu paleta */
}


/* Menú */
#menu-container {
    position: relative; /* Deja que el menú siga el flujo normal del documento */
    margin-left: 10px; /* Ajusta la distancia desde el borde izquierdo */
    z-index: 200;
}

#menu-button {
    font-size: 25px;
    font-weight: bold;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc, 0 0 20px #008080;
    cursor: pointer;
    transition: transform 0.3s ease, font-size 0.3s ease, text-shadow 0.3s ease;
    background-color: black; 
}

#menu-button:hover {
    transform: scale(1.2);
    font-size: 30px;
    text-shadow: 0 0 10px #00ffcc, 0 0 15px #00ffcc, 0 0 30px #008080;
    color: #00e6e6;
}

/* Menú desplegable */
#dropdown-menu {
    display: none;
    position: absolute;
    top: 40px; /* Ajusta la distancia desde el menú principal */
    left: 0;
    background-color: black;
    border: 1px solid #333;
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    width: 160px;
    z-index: 200;
}

#dropdown-menu li {
    margin: 0;
    padding: 0;
}

#dropdown-menu li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    font-size: 17px;
    text-align: left;
    transition: transform 0.3s ease, font-size 0.3s ease, background-color 0.3s ease;
}

#dropdown-menu li a:hover {
    transform: scale(1.1);
    font-size: 20px;
    background-color: #333;
    color: #00ffcc;
}

/* Botones generales */
.boton {
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; /* Para enlaces */
    display: inline-block;
}

/* Hover para todos los botones */
.boton:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Botones específicos */
.boton-salir {
    background-color: red;
}

.boton-perfil {
    background-color: purple;
}

.boton-registrarse, .boton-iniciar-sesion {
    background-image: url('../images/ficha.png');
    background-size: cover;
    color: white;
    text-shadow: 1px 1px 3px black;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

.boton-registrarse:hover, .boton-iniciar-sesion:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.5);
}


/* ── Burbuja de soporte ─────────────────────────────────────── */
#soporte-wa{
    position:fixed;      /* se queda pegada al viewport         */
    bottom:200px;         /* ⇣ mueve vertical: +↓  −↑            */
    right:10px;          /* ⇢ mueve horizontal: +→  −←           */
    width:80px; height:80px;       /* adapta al tamaño del PNG  */
    z-index:1100;        /* sobre menús y canvas de juegos      */
    display:inline-block;   /*  <-- fuerza a respetar width/height */
    transition:transform .2s;
}
#soporte-wa:hover{ transform:scale(1.1); }

#soporte-wa img{        /* asegura que se vea */
    width:100%;
    height:100%;
    object-fit:contain;
    /* Animaciones simultáneas */
    animation: spinCoin 5s linear infinite,
               shineCoin 4s ease-in-out infinite;    
}

.site-footer-min{
    font-size:.85rem;
    color:#cfd6df;
    opacity:.8;
    text-align:center;
    padding:12px 8px;
    margin-top:24px;
  }
  .site-footer-min a{ color:inherit; text-decoration:none; }
  .site-footer-min a:hover{ text-decoration:underline; opacity:1; }
  




/* ── Versión desktop / tablets anchas (≈ 2×) ─────────────────── */
@media (min-width: 768px){          /* ajusta el breakpoint a gusto */
    #soporte-wa{
        bottom:100px; right:30px;    /* un poco más separado del borde */
        width:180px; height:180px;  /* doble de 90 px                 */
    }
}
    
/* ── Giro continuo (moneda rotando sobre eje Y) ──────────────── */
@keyframes spinCoin{
    0%,30%      { transform:rotateY(0deg);   }  /* reposo inicial */
    70%         { transform:rotateY(360deg); }  /* giro (≈ 1.2 s) */
    100%        { transform:rotateY(360deg); }  /* se mantiene    */
}

/* ── Brillo esporádico (destello dorado) ─────────────────────── */
@keyframes shineCoin{
    0%,90%,100% { filter:none; }
    93%         { filter:drop-shadow(0 0 100px #ffd700); }
}








@media (max-width: 768px) {
    /* El header sigue en fila, con menú a la izquierda y contenedor de botones a la derecha */
    #header-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between; 
        align-items: center;
        padding: 10px;
    }

    /* Menú a la izquierda */
    #menu-container {
        margin-left: 10px;
    }

    /* Botones a la derecha, uno debajo del otro */
    #buttons-container {
        display: flex;            /* Usa flex para la columna */
        flex-direction: column;   /* Los botones se apilan verticalmente */
        align-items: flex-end;    /* Alineados al extremo derecho */
        margin-right: 10px;       /* Separación del borde derecho */
    }

    /* Ajusta los botones para mobile */
    .boton {
        font-size: 14px;
        padding: 8px 15px;
        margin-top: 5px;         /* Un poco de espacio entre botones verticales */
        display: block;          /* Cada botón ocupa su propia línea en la columna */
        width: auto;
    }

    /* Opcional: Botones de registro/inicio con fuente y estilo distinto */
    .boton-registrarse, .boton-iniciar-sesion {
        background-size: contain;
        font-size: 8px;
        border-radius: 8px;
    }
}







