@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* width */
::-webkit-scrollbar {
    width: 6px;
}
  
/* Track */
::-webkit-scrollbar-track {
    background: #fff;
}
  
/* Handle */
::-webkit-scrollbar-thumb {
    background: #e4dddd;
}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #b8a5a5;
}

body {
    background-color: #25094f;
    color: #fff;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

[class^="container"] {
    display: none;
}

[class^="container"].active {
    display: block;
}

#HeaderBar{
    position: relative;
    background-image: url('../img/interfaz/bg-header.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0rem 3rem;
    height: 150px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
}

.round{
    font-weight: 700;
    font-size: 1.5rem;
}

.round::before{
    content: 'Palabras  ';
}

.container-avatar{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#LayerAvatar{
    background-image: url('../img/interfaz/bg-inicio.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #25094f;
}

.score {
    font-weight: 700;
    background: #8300ff;
    padding: 0.2rem 0.4rem;
    border-radius: 7px;
}

.container-avatar .block-avatar-menu{ 
    position: absolute;
    right: 10%;
    top: 15%;
    width: 35%;
    height: 40%;
    padding: 2rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.container-avatar .block-avatar-menu .group-avatar{ 
    width: 170px;
    height: 170px;
    background-image: url(../img/interfaz/frame-avatar.png);
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container-avatar .block-avatar-menu .avatar{
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 100%;
    display: flex;
    margin: 1rem;
    justify-content: center;
    align-items: center;
    transition: 0.2s all;
    visibility: hidden;
    cursor: pointer;
} 

.container-avatar .block-avatar-menu .avatar.active{
    visibility: visible;
}
.container-avatar .block-avatar-menu .avatar:hover{
    transform: scale(0.9);
}

.container-avatar .block-avatar-menu .avatar img{
    width: 100%;
    height: 100%;
    border-radius: 100%;
    object-fit: cover;
}

.container-avatar .block-avatar-menu .group-arrows{
    position: absolute;
    width: 254px;
}

.container-avatar .block-avatar-menu .group-arrows .arrow{
    position: absolute;
    width: 50px;
    height: 60px;
    cursor: pointer;
}

.container-avatar .block-avatar-menu .group-arrows .a-left{ left: 0; }
.container-avatar .block-avatar-menu .group-arrows .a-right{ right: 0; }


.container-avatar .block-avatar-menu .group-arrows .arrow img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.2s all;
}


.container-avatar .block-avatar-menu .group-arrows .arrow img:first-of-type{ opacity: 1; }
.container-avatar .block-avatar-menu .group-arrows .arrow img:last-of-type{ opacity: 0; }

.container-avatar .block-avatar-menu .group-arrows .arrow:hover img:first-of-type{ opacity: 0; }
.container-avatar .block-avatar-menu .group-arrows .arrow:hover img:last-of-type{ opacity: 1; }

.container-avatar .block-avatar-nick{ 
    position: absolute;
    right: 10%;
    top: 40%;
    width: 35%;
    height: 60%;
    padding: 3rem 2rem 1rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

input{
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    width: 80%;
    max-width: 300px;
    height: 60px;
    font-size: 1.6rem;
    text-align: center;
    background-color: transparent;
    border: none;
    outline: none;
    margin: 0.5rem 1rem;
    color: #000;
 } 

 .input-nick, .input-room, .input-limit, .input-round, .input-word {
    background-image: url('../img/interfaz/bg-nombre.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
 }


[class^="btn"] { 
    font-family: 'Poppins', sans-serif;
    width: 270px;
    height: 70px;
    font-size: 1.5rem;
    background-color: transparent;
    /*border: 5px solid #ff0;*/
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    margin: 1rem;
 }

 [class^="btn"]:hover{
    scale: 1.1;
    transform: scale(1.1);
    transition: .6s ease;
}

.btn-start, .btn-send-word{
    background-image: url('../img/interfaz/btn-jugar.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
}

.btn-create-room{
    background-image: url('../img/interfaz/btn-room.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
}

#LayerRooms fieldset{
    width: 80%;
    text-align: center;
    border: none;
}

#LayerRooms fieldset h3{ color: #fcee21; margin-bottom: 0rem; }


.container-rooms{
    background-image: url('../img/interfaz/bg-sala.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #25094f;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.block-rooms-avalaible{
    position: relative;
    top: 14%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.room-list{
    width: 68%;
    height: 145px;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    top: 145%;
    position: absolute;
    font-weight: 500;
}

.item-room{
    background-image: url('../img/interfaz/bg-room-name.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    position: relative;
    width: 100px;
    height: 100px;
    margin: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-room.locked{
    opacity: 0.6;
    filter: grayscale(1);
}

.item-room::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.item-room .users{
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.block-create-room{
    position: absolute;
    width: 40%;
    height: 100%;
    background: #25094f;
    right: -100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.6s all;
}

.block-create-room.active{
    right: 0;
}

.block-create-room::before{
    content: "Crear Sala";
    color: transparent;
    width: 150%;
    height: 100%;
    position: absolute;
    right: 100%;
    background-image: url('../img/interfaz/logo-dibujalo.png');
    background-position: center 50%;
    background-repeat: no-repeat;
    background-size: cover;
    /*background: #220b4c;*/
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
}

.btn-open-room{
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 17%;
    right: 20%;
    border-radius: 100%;
    border: 4px solid #faee56;
    color: #faee56;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
}

.btn-open-room::after{ 
    content: "Crear Sala";
    position: absolute;
    font-size: 1.3rem;
    white-space: nowrap;
    top: 110%;
}

.btn-close-room{
    position: absolute;
    background-image: url('../img/interfaz/times.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    top: 10%;
    right: 0;
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.btn-close-room::after{
    /*content: "Cerrar";*/
    position: absolute;
    top: 114%;
    font-size: 1.4rem;
    background-image: url('../img/interfaz/times-hover.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btn-close-room :hover{
    background-image: url('../img/interfaz/times-hover.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btn-create-room{
    position: absolute;
    width: 70%;
    left: 13%;
    bottom: 5%;
}

.word{
    background-image: url('../img/interfaz/bg-word.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #000;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    padding: 1rem 4rem;
    height: auto;
    width: 230px;
    z-index: 10;
}

.container-game{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #25094f;
}

.container-game .block-timer {
    position: absolute;
    left: 0;
    top: 12%;
    right: 0;
    width: 120px;
    background: #ff9e37;
    border-radius: 10px;
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 auto;
    border: 3px solid #cb7e2d;
    box-shadow: 0 0 2px 2px #ff9e37;
}

.container-game .block-waiting-users{
    background-image: url('../img/interfaz/bg-wait-users.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #25094f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.wrapper-game{
    position: absolute;
    width: 96%;
    max-width: 1190px;
    height: 540px;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0%;
}

.container-game .block-game-drawer{
    width: 60%;
    height: 80%;
    display: none;
}

.container-game .block-game-guess{
    width: 60%;
    height: 80%;
    display: none;
}

/*.block-game-drawer canvas{
    cursor: url(../img/interfaz/cursor.png), auto;
    background:gray;
    width:200px;
    height:200px;
}*/

.block-game-drawer .draw-word{
    position: absolute;
    top: 4%;
    left: 13%;
    margin: 0 auto;
    display: block;
}

.block-game-canvas {
    position: relative;
    width: 100% !important;
    height: 100% !important;
}

#TabletDrawer{ top: 20%; }
#TabletGuess{ top: 6%; }

.block-game-canvas canvas {
    position: relative;
    border: #8300ff 13px solid;
    border-radius: 10px;
}

.block-game-canvas .tools{
    position: relative;
    width: 650px;
    display: flex;
}

.block-game-canvas .tools .colors{
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}


 
.block-game-canvas .tools .colors > div{
    width: 40px;
    height: 40px;
    margin: 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.block-game-canvas .tools .colors > div:hover{ transform: scale(0.9); }

.block-game-canvas .tools .sizes{
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.block-game-canvas .tools .sizes > div{
    width: 40px;
    height: 40px;
    margin: 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.block-game-canvas .tools .sizes > div.active{
    display: flex;
    border: 2px solid #fff;
    background: #8300ff;
}

.block-game-canvas .tools .sizes > div:hover{ transform: scale(0.9); }

.block-game-canvas .tools .sizes .dot {
    background-color: #fff;
    border-radius: 100%;
}

.block-game-canvas .tools .sizes .size[data-size="xs"] .dot{ width: 6px; height: 6px; }
.block-game-canvas .tools .sizes .size[data-size="md"] .dot{ width: 12px; height: 12px; }
.block-game-canvas .tools .sizes .size[data-size="lg"] .dot{ width: 18px; height: 18px; }

.block-game-canvas .form-word{
    position: absolute;
    width: 80%;
    display: flex;
    align-items: center;
    top: 400px;
    left: 23%;
}

.block-game-instruction {
    position: absolute;
    top: 0% !important;
    left: -5%;
    width: 110%;
    height: 100%;
    /*background-color: #25094f;*/
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10 !important;
}

.block-game-instruction.active {
    display: flex;
}

.block-game-instruction .modal {
    background-image: url('../img/interfaz/bg-round.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
    display: flex;
    justify-content: center;
    width: 500px;
    height: 500px;
}

.block-game-instruction .modal .title{
    position: absolute;
    top: 35%;
    text-align: center;
    color: #25086B;
}

.block-game-instruction .modal h2{
    top: 45%;
    position: absolute;
    color: #25086b;
}

.container-game .wrapper-user-list {
    background-image: url('../img/interfaz/bg-users.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 0%;
    right: 0%;
    width: 30%;
    height: 80%;
}

.container-game .block-game-users{
    position: relative;
    top: 20%;
    width: 90%;
    height: 60%;
    margin: auto;
    overflow-y: auto;
}

.container-game .block-game-users .item-user{
    background-color: #ff9e37;
    border-radius: 30px;
    position: relative;
    left: 10%;
    width: 80%;
    height: 60px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 1rem;
}

.container-game .block-game-users .item-user .avatar{
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    box-shadow: 2px 2px 3px #35353b;
    margin-right: 12px;
}

.container-game .block-game-users .item-user .name{
    width: 140px;
    font-size: 1.2rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #441093;
}

.item-user .name i{ visibility: hidden; }
.item-user.user-drawer {background: #2ddc88 !important; border-radius: 30px;}
.item-user.user-drawer .name i{ visibility: visible; }


.wrapper-history-text{
    background-image: url('../img/interfaz/bg-users.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    position: absolute;
    top: 80%;
    right: 0%;
    width: 30%;
    height: 25%;
    padding: 1rem;
    border-radius: 10px;
    box-sizing: border-box;
}

.wrapper-history-text ul{
    width: 80%;
    height: 88%;
    margin: 6px 12px;
    overflow-y: auto;
}

.wrapper-history-text li strong{
    color: #6cd98f;
}

.container-game .block-game-chat {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
}


.container-game .block-game-chat ul{
    position: relative;
    width: 100%;
    margin: 0; 
    height: 80%;
    overflow-y: auto;
    background-color: #fff;
    color: #000;
}

.container-game .block-game-chat .chat-form{
    position: relative;
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.container-game .block-game-chat .chat-form input{
    width: 80%;
    max-width: initial;
}

.block-end-game{
    background-color: #220b4c;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.block-end-game.active{
    display: block;
}

.wrapper-end-game{
    background-image: url(../img/interfaz/bg-final.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 600px;
    height: 600px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrapper-end-game h1 { color: #441093; }

.score-users{
    width: 90%;
    max-height: 367px;
    overflow-y: auto;
}

.score-users .item-user{
    position: relative;
    width: 320px;
    height: 60px;
    display: flex;
    background-color: #ffac53;
    justify-content: space-between;
    align-items: center;
    margin: 1rem auto;
    border-radius: 100px;
}

.score-users .item-user img{
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-right: 0.5rem;
}

.score-users .item-user .score{
    font-weight: 700;
    background: #8300ff;
    padding: 0.2rem 0.4rem;
    border-radius: 7px;
    width: 45px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.score-users .item-user .pos{
    width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #441093;
}

.score-users .item-user .name{
    width: 140px;
    font-size: 1.2rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #441093;
}

.wrapper-end-game .btn-finalizar{
    position: absolute;
    width: 100px;
    height: 100px;
    top: -10px;
    left: -60px;
    border: none;
    outline: none;
}

.wrapper-end-game .btn-finalizar img{ 
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    outline: none;
}

.btn-finalizar :hover{
    background-image: url('../img/interfaz/times-hover.png');
    background-position: center;
    background-repeat: no-repeat;
}

.block-responsive {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5vw;
    box-sizing: border-box;
    background-color: #000;
    visibility: hidden;
}

@media (max-width: 550px) {
    .block-create-room {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .block-responsive{
        visibility: visible;
    }
}

@media (max-height: 700px) {
    .block-responsive{
        visibility: visible;
    }
}