html, body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-text-size-adjust: none;
    width: 100%;
    height: 100%;
    position: fixed;
}
input[type=checkbox] {
    cursor: pointer;
}
.no-select{
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#overlays, #connecting {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
}
#connecting {
    z-index: 100;
}
#connecting-content {
    width: 330px;
    background-color: #fff;
    margin: 0 auto;
    border-radius: 25px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 10px 15px;
    position: relative;
}
#connecting-content::after{
    display: block;
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    transform: translateX(-15px);
    background: linear-gradient(90deg, transparent, rgba(187, 187, 187, 0.4), transparent);
    animation: shadowLoading 3s 1;
    animation-timing-function: linear;
    animation-iteration-count: 3;
}
@keyframes shadowLoading {
    100% {
    transform: translateX(255px);
    }
}
#title {
    text-align: center;    
}

#nick {
    width: auto; /* width: 52%; */
    flex: 1 1 auto;
    min-width: 0;
}
#skin {
    display: none;
}
#gallery-btn {
    padding: 6px 12px;
    top: 0;
    font-size: 16px;
    height: 34px;
    /* Visible when skins are loaded? */
}
#gallery-btn.has-bg{
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
    background-color: gray;
}

#menuBtn{
    position: fixed;
    top: 0;
    left: 0;
    width: 86px;
    height: 32px;
}
#helloDialog {
    max-height: 100%;
    overflow: auto;
    max-width: 94%;
    width: 400px;
    background-color: #fff;
    margin: 10px auto;
    border-radius: 15px;
    padding: 5px 15px 5px 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 4px 4px 7px #444;
}
#chat_textbox {
    transition: all .5s ease-in-out;
    position: absolute;
    z-index: 1;
    bottom: 10px;
    background: rgba(0, 0, 0, .1);
    border: 0px;
    outline: none;
    color: #333;
    height: 30px;
    text-indent: 12px;
    font-size: 16px;
    left: 10px;
    width: 240px;
    font-family: "Calibri";
}
#chat_textbox:focus {
    border: 1px solid #1f68a9;
}

.mb10{
    margin-bottom: 10px;
}
.flex-row{
    display: flex;
    margin-bottom: 6px;
}
.flex-row .icon-btn{
    width: 13%;
    top: 0;
    margin-left: 6px;
}
.flex-row .flex-auto{
    width: auto;
    flex: 1 1 auto;
}
.icon-btn.bg-gray{
    color: #333;
    background: lightgray;
    border: 1px solid darkgray;
}

#touchpad, #touchCircle, #splitBtn, #ejectBtn {
    position: fixed;
}
#touchpad, #splitBtn, #ejectBtn {
    z-index: 2;
}
#touchpad {
    /* width: 20vw; */
    /* height: 20vh; */
    width: 140px;
    height: 140px;
    left: 20px;
    bottom: 20px;
    pointer-events: none;
}
/*#touchpad-bounder{
    position: fixed;width: 180px;height: 180px;left: 0;bottom: 0;background: green;opacity: 0.2;
}*/
#touchpad .touch-shadow{
    width: 100%;
    height: 100%;
    position: absolute;
    background: #000;
    opacity: 0.16;
    border-radius: 50%;
}
#touchpad .touch-name{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    color: #808080ad;
    font-size: 16px;
    font-weight: lighter;
    letter-spacing: 4px;
}
#touchCircle {
    /* width: 4vw; */
    /* height: 4vw; */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f00;
    opacity: 0.3;
    z-index: 3;
}
#splitBtn, #ejectBtn {
    width: 8vw;
    height: 8vw;
    max-width: 60px;
    max-height: 60px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    background: #777;
    opacity: 0.4;
    background-size: contain;
}
#splitBtn {
    right: 18vw;
    bottom: 3vw;
}
#ejectBtn {
    bottom: 18vw;
    right: 3vw;
}
#playSounds:checked + #soundsVolume {
    display: inline;
}
#soundsVolume {
    display: none;
    width: 100px;
    height: 18px;
    padding: 0; /* IE fix */
    vertical-align: middle;
}

#settings{
    margin-bottom: 5px;
    position: relative;
}
#settings .content{
    filter: blur(4px);
}
#settings .options{
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 6px;
}
#settings .options label {
    margin-right: 10px;
    user-select: none;
    margin-bottom: 5px;
}
#settings .shadow{
    content: '';
    display: block;
    position: absolute;
    background: transparent;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
}
#settings .shadow .title{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;height: 100%;
    text-shadow: grey 0px 0px 4px;
    font-size: 16px;
    color: #333;
    min-width: 70px;
    min-height: 22px;
}

.blur-off .content {
    -webkit-animation: blur 1s;
    -moz-animation: blur 1s;
    animation: blur 1s;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
.blur-off .shadow{
    pointer-events: none;
}
.blur-off .shadow .title{
    -webkit-animation: moveLabelBack 1.2s;
    -moz-animation: moveLabelBack 1.2s;
    animation: moveLabelBack 1.2s;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
@keyframes blur {
    0% { filter: blur(4px); }
    25% { filter: blur(3px);}
    50% { filter: blur(2px);}
    75% { filter: blur(1px);}
    100% { filter: blur(0px);}
}
@keyframes moveLabelBack{
    0% {width: 100%;height: 100%;}
    90% {width: 10%;height: 10%;opacity: 0;}
    100% {width: 0%;height: 0%;opacity: 0;}
}

#instructions{
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin-bottom: 10px;
}