
/*general*/
#jugar-div-live {
    /*Join our discord img height: 212px background-image: url("https://res.cloudinary.com/dmltnnzso/image/upload/v1667786564/paraiso-dotero/assets/join-our-discord_gif4ik.webp");*/
    /*dawnbreaker arm background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(https://res.cloudinary.com/dmltnnzso/image/upload/v1707325926/rd2/bg/hammer.webp); */
    background-repeat: no-repeat;
    background-size: cover;
    width: 338px;
    height: 284px;
    overflow: hidden;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}   

/********/



.tab-item {
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--fs-title);
    color: var(--color-font-2);
}


/* panels padre siempre visible- no se oculta como panel-item, dentro estan los 3 paneles-item que se ocultan */


/* Panel | salas, mi sala, crear sala */
.panel-item {
    /*ocultar contenido de todos los paneles, solo mostrar 1 panel-item*/
    /*no es necesario que tenga color fondo*/
    /*margenes en 4 lados*/

    display: none;
    flex-grow: 1;
}


/* ================ 3 PANELES - todos heredan fondo de div con clase: "main-box" definido en style.css ==============================================*/
/* Panel salas */


/*padre contiene margen en 4 lados*/
#div-titulos-columnas-salas {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);;
    background-color: var(--color-cajas);
    

    /*old9width: 788px;*/
    height: 40px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0; /* para que no se encoja por culpa de sus hermanos y respete su alto establecido */
}
.labels-titulo-salas {
    width: 80px;
    float: left;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-font-2);
    line-height: 15px;
}
.label-titulo-nro-sala {
    width: 58px; /*old 52px*/
}
.label-titulo-modo {
    width: 113px; /*old 102px*/
}
.label-titulo-bonus {
    width: 56px;
}
.label-titulo-entrada {
    width: 78px; /*old 60px*/
}
.label-titulo-host {
    width: 56px;
}
.label-titulo-jugadores {
    width: 67px; /*old 56px*/
   
}

.sala-card {
    position: relative;
    height: 66px;
    background-color: var(--color-cajas);
    margin-bottom: 2px;
    padding-inline: 8px;
    /*centrar labels hijos*/
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.sala-card *{
    cursor: pointer;
}
.sala-card:hover {
    background-color: var(--color-contenido_hover);
}
.sala-card__container-bar-colors {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    height: 100%;
    width: 3px;
    flex-direction: column;
}
.sala-card__bar-color-yellow {
    flex-grow: 1;
    background-color: var(--colorLevelYellow);
}
.sala-card__bar-color-green {
    flex-grow: 1;
    background-color: var(--colorLevelGreen);
}
.sala-card__bar-color-purple {
    flex-grow: 1;
    background-color: var(--colorLevelPurple);
}
.sala-card__bar-color-red {
    flex-grow: 1;
    background-color: var(--colorLevelRed);
}
.labels-sala-card {
    line-height: 16px;
    font-size: 13px;
    text-align: center;
    
}
/*Contenido dinamico | card sala*/
.label-nro-sala {
    width: 58px; /*old 52px*/
}
.label-modo {
    width: 113px; /*old 102px*/
}
.label-bonus {
    width: 56px;
}
.label-entrada {
    width: 78px; /*old 60px*/
}
.label-jugadores {
    width: 67px; /*old 56px*/
}
/****avatar host***/
.div-host {
    width: 56px;
    margin-left: 0px;
    display: flex;
    justify-content: center;

}
.img-host {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    outline: 2px solid var(--bg-green-host);
    background-size: contain;
    border-radius: var(--border-radius);
    /*background solo para cuadros vacios y de usuarios*/
    background-color: black;
}
/********avatars players*********/

.div-players-img-card-sala {
    /* old size de avatars(hijos directos de la grid) 26x26*/
    display: flex;
    grid-template-columns: repeat(10, 34px);
    grid-auto-rows: 34px; /*alto de cada fila, inicialmente con 0 filas, se agregan filas automaticamente*/
    /* gap: 2px; */
}
.sala-row__cell__clan-banner {
    /* aspect ratio de 2.56 es el exacto para el banner horizontal */
    /* si se usa aspect-ratio -> solo definir el alto o el ancho, no ambos */
    /* se descarto usar aspectratio porque al titulo se le debe dar un ancho fijo(ala cell y al titulo se le da un ancho fijo) */
    /* aspect-ratio: 2.56; */

    height: 50px;
    width: 128px;
    border-radius: var(--border-radius);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    margin-left: 4px;
    margin-right: 6px;
}
.img-player-card-sala {
    border-radius: var(--border-radius);
    background-size: contain;
    /*background colo para cuadros vacios y de usuarios*/
    background-color: black;
    border-radius: 100%;
    width: 36px;
    height: 36px;
}
/*para los usuarios que su url avatar no este disponible, mostrar este color en su cuadro de usuario, cuadros vacios es black*/
.img-player-card-sala-active {
    background-color: #132730;
}
.img-player-card-sala__len-players-extra {
    background-color: transparent;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}
#container-svg-lock {
    width: 14px;
    display: inline-block;
    margin-inline: 2px;
    vertical-align: middle;
}
/* #region Estilo del texto dorado(para bonus) con brillo animado */
.texto-dorado-bonus {
    font-weight: 700;
    color: transparent;
    background: linear-gradient(45deg, #ffd700, #ffdf00, #ffffff 50%, #ffdf00, #ffd700);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: brillo-texto 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Animación de brillo en bucle */
@keyframes brillo-texto {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}
/* #endregion */

/* Mi sala ======================================*/ 
.grid-mi-sala {
    height: 100%;

    display: grid;
    grid-template-columns: 536px 1fr;
    grid-template-rows: 340px 1fr 326px;
    gap: 12px;
}


/* usuarios en mi sala */

#div-users-rads {
    width: 262px;
    margin-right: 12px;
}
#div-users-dires {
    width: 262px;
}
#div-users-rads-container {
    display: flex;
    flex-direction: column;
    row-gap: 2px;


}
#div-users-dires-container {
    display: flex;
    flex-direction: column;
    row-gap: 2px;

}

.hideElement {
    visibility: hidden;
}
.showElement {
    visibility: visible;
}
.user-card-txt-unirse {
    font-size: 16px;
    font-weight: 700;
    padding: 8px;
    cursor: pointer;
    color: #ababab;
}.user-card-txt-unirse:hover {
    color: var(--color-primary);
}
.user-in-sala-card {
    position: relative;
    border-radius: var(--border-radius);
    background-color: var(--color-cajas);

    display: flex;
    gap: 8px;
    padding: 10px;
    width: 100%;
    height: 60px;
    border-radius: var(--border-radius);
}

/* END back/front face card-user-in-sala*/


.user-card-in-sala-img-avatar { /*img avatar*/
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-size: contain;
    background-repeat: no-repeat; 
}
.div-center-in-card-user {
    position: relative;
    display: flex;
    flex-direction: column;
}
.label-user-in-sala-card { /*label nick*/
    line-height: 20px;
    white-space: nowrap;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 136px;
    font-weight: 500;
}

.user-card-in-sala-img-medall { /*img medall*/
    width: 26px;
    height: 26px;
    background-size: contain;
    background-repeat: no-repeat; 
    
}
/*badge img*/
.container-badge-user-ready {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.img-badge-user-ready {
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("https://res.cloudinary.com/dmltnnzso/image/upload/v1672624539/paraiso-dotero/assets/icon/ready_badge_lpqvhb.webp");
}
/*container badge skill level to mi_sala*/
.container-badge-level-mi-sala {
    width: 22px;
    height: 22px;
}
/*rol sugerido*/
.mi-sala__card-player__rol {
    /* line-height: 16px;
    font-size: var(--fs-minor);
    padding-inline: 4px;
    color: black;
    font-weight: 600;
    background-color: #ddd;
    border-radius: var(--border-radius); */

    line-height: 13px;
    font-size: var(--fs-minor);
    color: gray;
    font-weight: 600;

}
/* butons roles preferidos usando has: para cambiar color de fondo del boton cuando esta checked su input hijo */
.mi-sala__label-button-role {
    height: 32px;
    /* hover:bg-base-100 */
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--border-radius);
    cursor: pointer;
    user-select: none;

}
.mi-sala__label-button-role:hover {
    background-color: var(--color-contenido-2);
}
.mi-sala__label-button-role:has(input:checked) {
    background-color: var(--color-contenido-3);
}
/*animacion cards users*/

/* chat mi sala ==========*/
.titulos-mi-sala {
    font-size: 16px;
    display: flex;
    align-items: center;
    font-weight: 700;
    margin-bottom: 8px;
    /* margin-top para no este muy separado del extremo superior */
    margin-top: -2px; 
}


#div-messages-mi-sala {
    overflow-y: scroll;
    overflow-x: hidden;
}


/*jugadores sin asignar or (team rad/dire unido)*/

/******************* animacion dots wait players... *********************/
.waiting-players-dots {
    font-weight: 700;
    /*quitar separacion entre texto-in-div y span*/
    display:inline-block; 
}
.waiting-players-dots:after {
    content: '.';
    animation: dots 2s steps(5, end) infinite;}
  
  @keyframes dots {
    0%, 20% {
      color: rgba(0,0,0,0);
      text-shadow:
        .25em 0 0 rgba(0,0,0,0),
        .5em 0 0 rgba(0,0,0,0);}
    40% {
      color: #ddd;
      text-shadow:
        .25em 0 0 rgba(0,0,0,0),
        .5em 0 0 rgba(0,0,0,0);}
    60% {
      text-shadow:
        .25em 0 0 #ddd,
        .5em 0 0 rgba(0,0,0,0);}
    80%, 100% {
      text-shadow:
        .25em 0 0 #ddd,
        .5em 0 0 #ddd;}}



/* detalles mi sala */

/*descriptores de data en subcontenedores*/





/*====================================================*/



/* Crear sala ======================================*/
#div-crear-sala {
    
    /*display lfex para centar el form que es mas pequeño*/
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}






/*Toggle password | enable/disable*/

#input_sala_pass {
    -webkit-text-security: disc;
}


.box-input-cuota {
    width: 80px;
    height: 36px;
    color: black;
}


/*tabs*/
.active-tab-item {
    background-color: var(--color-primary);
    font-weight: 500; /*cambiar de tamaño fuente*/
    color: var(--color-font);
}

.active-panel-item {
    display:flex;
    flex-direction: column;
}




/*crear sala mostar/ocultar input*/
.hideInputPass {
    transition: none;
    visibility: hidden;
    }

.showInputPass {
    transition: none;
    visibility: visible;
    }

/* ================================ Box left =======================================*/
/*Chat global*/

#div-msgs-global {
    /*+4px bottom para que este igual que input de misala*/
    flex-grow: 1;
    margin: 12px;
    overflow-x: hidden;
    overflow-y: scroll;
}

/*stickers*/
#btn-stickers-global {
    display: inline-block;
    width: 20px;
    height: 23px;
    cursor: pointer;
}

#box-stickers {
    position: absolute;
    bottom: 40px;
    right: 38px;
    width: 374px;
    height: 380px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border-2);
    
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 8px;
    z-index: 10;
}
.div-title-stickers {
    margin: 16px 0 12px 0;
    display: flex;
}
.title-section-sticker {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    display: inline-block;
    
}
#grid-stickers {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-auto-rows: minmax(80px, auto);
    column-gap: 12px;
    row-gap: 12px;
}
#grid-stickers-plus {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-auto-rows: minmax(80px, auto);
    column-gap: 12px;
    row-gap: 12px;
}
.elem-sticker {
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    /*para centrar elems 'img' que estan dentro*/
    justify-content: center;
    align-items: center;
}
.elem-sticker:hover {
    background-color: #00000035;
}
/*elementos img*/
.elem-sticker img {
    width: 72px;
    height: 72px;
}
/*end stickers*/

.btn-send-msg-chat {
    width: 26px;
    height: 26px;
    border-radius: var(--border-radius);
    outline: none;
    border-style: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}
.card-chat-msg-mi-sala {
    margin-bottom: 8px;
    margin-right: 2px;
}
.card-chat-msg-global {
    padding: 6px 2px 6px 0;
}
.span-nick {
    font-weight: 500;
    font-size: var(--fs-content);
}

.span-avatar-global {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: var(--border-radius);
    margin-right: 5px;
    background-size: contain;
}
.span-lv-global {
    display: inline-block;
    border-radius: var(--border-radius);
    line-height: 22px;
    margin-right: 5px;
    color: black;
    font-weight: 500;
    padding-inline: 6px;
    vertical-align: top;
}
.span-nick-global {
    display: inline-block;
    line-height: 22px;
    font-weight: 500;
    font-size: var(--fs-content);
    vertical-align: top;
}
.span-hora-chat {
    line-height: 22px;
    float: right;
    font-size: var(--fs-minor);
    color: #ababab;
}
.span-msg-chat-mi-sala {
    overflow-wrap: break-word;
    line-height: 16px;
    font-size: var(--fs-content);
    color: var(--color-font-2);
}
.span-msg-chat-global {
    display: block;
    line-height: 16px;
    font-size: var(--fs-content);
    color: var(--color-font-2);
}
/* Badge gatexplus, usado en chat global y card-user-mi-sala*/
.container-badge-plus-chat-global {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 5px;
}
.container-badge-plus-mi-sala {
    width: 22px;
    height: 22px;
}


#dot-green {
    background-color: var(--green);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin: 13px 0;
    display: inline-block;
}
#len-users-online {
    vertical-align: top;
    display: inline-block;
}
.span-lv-yellow{
    background-color: var(--colorLevelYellow);
}
.span-lv-green {
    background-color: var(--colorLevelGreen);
}
.span-lv-purple {
    background-color: var(--colorLevelPurple);
}
.span-lv-rd2 {
    background-color: var(--color-primary);
    color: var(--color-font) !important;
}
.span-lv-red {
    background-color: var(--color-red-dota);
}
.span-lv-green-host {
    background-color: var(--bg-green-host);
}
.displayNone {
    display: none !important;
}
#modal_postgame_votacion_mvp input:checked + label {
    outline: 4px solid var(--color-primary);
}
