/* width */
::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    background: rgba(0,0,0,0.2);
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #888;
    background: #555;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
    background: #000;
  }

/* .confbox, */
#startcontact{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 5000;
    display: none;
}
#startcontact.startwaiting{
    display: block;
}
.box-in{
    position: absolute;
    background-color: royalblue;
    width: 300px;
    height: 300px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);

}
.confirm-box{
    padding: 20px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    font-family: sans-serif;
}
.startwaiting .confirm-box{
    display: none;
}
.confirm-box button{
    padding: 10px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    display: block;
    cursor: pointer;

}

#confirmcontact{
    display: none;
}

.confbox .confirm{
    background-color: salmon;
    border: 2px solid #fff;
}
.confbox .deny{
    background-color: transparent;
    border: 2px solid #fff;
}
.confbox span{
    color: salmon;
    font-weight: bold;
}


#wait-box{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
}
.startwaiting #wait-box{
    display: block;
}
#wait-box-anim{
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #000;
}
.startwaiting #wait-box-anim{    
    animation: waitboxanim 10s linear 1;
}
@keyframes waitboxanim{
    0%{
        width: 0;
        background-color: green;
    }
    50%{
        background-color: gold;
    }
    100% {
        width: 100%;
        background-color: red;
    }
}



#getdata{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: tomato;
    display: none;
    overflow-y: auto;
}
#getdata.show{
    display: block;
}
#getdata .content{
    position: absolute;
    top: 50%;
    left: 50%;
    /* height: 50%; */
    width: 500px;
    max-width: 100%;
    transform: translate(-50%,-50%);
    background: darkblue;
    padding: 25px;
    font-family: sans-serif;
}
#getdata .content h3{
    margin-top: 0;
    font-size: 2rem;
}
#getdata .content form{
    background: none;
}
#getdata .content p{
    font-size: 1rem;
}
#getdata .content input{
    font-size: 1rem;
    width: 100%;
    margin-top: 20px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
#userdatasend{
    background: darkorange;
    cursor: pointer;
}
#clearlocaldata{
    background: red url(../images/garbage.png) no-repeat center;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    z-index: 1000;
    cursor: pointer;
}

#select_avatar{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;

}
#select_avatar img{
    width: 30%;
    height: auto;
    display: block;
    border: 5px solid transparent;
}
#select_avatar img.selected{
    border-color: green;
    opacity: 0.8;
}
#select_color{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;

}
#select_color div{
    width: 30%;
    height: 50px;
    display: block;
    border: 5px solid transparent;
}
#select_color div.selected{
    border-color: #fff;
}


#calllist{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    /* min-height: 50px; */
    max-height: 20%;
    height: 20%;
    /* background: rgba(255,0,0,0.5); */
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
}
.calllistitem{
    padding: 10px 5px 5px;
    display: block;
    background: red;
    color: #fff;
    font-size: 14px;
    font-family: sans-serif;
    position: relative;
    box-sizing: border-box;
}
.calllistitem button{
    padding: 5px;
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-family: sans-serif;
    position: relative;
    cursor: pointer;
    border: none;
}
.calllistitem .waiting{
    position: absolute;
    left: 0;
    top: 0;
    height: 5px;
    width: 100%;
    background: #fff;
}
.calllistitem .waitingtime{
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: #0f0;
    animation: callistwaitinganimation 10s linear 1;
}
@keyframes callistwaitinganimation {
    0%{
        width:0%;
    }
    100%{
        width:100%;
    }
    
}


#videocall{
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    padding: 40px;
    box-sizing: border-box;
    z-index: 10000;
    display: none;
    transition: visibility 0s linear 300ms, opacity 300ms;
    visibility: hidden;
    opacity: 0;
}
#videocall.show{
    transition: visibility 0s linear 0s, opacity 300ms;
    visibility: visible;
    opacity: 1;
    display: block;
}
#videocall-in{
    position: absolute;
    top: 40px;
    left: 40px;
    bottom: 40px;
    right: 40px;
    
    background-color: rgba(0,0,0,0.8);    
    
}
#videocall-close{
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #000;    
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    /* transform: translate(-50%,-50%); */
    cursor: pointer;   
}

#videocall-iframe{
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    background-color: rgba(0,0,0,0.5);
    
}


#wait-box-txt{
    padding: 20px;
    font-family:sans-serif;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

#userslist{
    width: auto;
    position: absolute;
    bottom: 120px;
    right: -16px;
    right: 0px;
    max-height: 50%;
    height: 50%;
    /* height: 30px; */
    /* background-color: rgba(0,0,0,0.5); */
    z-index: 2000;
    overflow-y: scroll;
    overflow-x: hidden;
}
#userslist div{
    width: 100%;
    padding: 5px 5px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-family: sans-serif;
    border-bottom: 1px solid gray;
    box-sizing: border-box;
}
#userslist div button{
    width: 100%;
    padding: 5px 5px 5px 20px;
    cursor: pointer;
    background: url(../img/vc.png) no-repeat left center rgba(0,0,0,0.5);
    background-size: auto 40%;
    color: #fff;
    border: none;
    text-align: left;
}