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;
}
.chatblock__button.chatblock__visability {
    height: 30px;
    width: 34px;
    position: absolute;
    left: 10px;
    bottom: 10px;
    color: #000;
    font-size: 14px;
    line-height: auto;
    text-align: center;
    background-color: #e37955;
    border: 0 solid #e37955;
    border-radius: 10px 1px 1px 5px;
    outline: 0;
    transition: .3s;
    cursor: pointer;
    z-index: 301
}

#chat_textbox.chatblock__textarea {
    height: 30px;
    width: 400px;
    position: absolute;
    left: 46px;
    bottom: 10px;
    color: #fff;
    font-size: 14px;
    text-indent: 6px;
    background-color: #444;
    -webkit-transition: opacity .4s ease-in-out;
    -moz-transition: opacity .4s ease-in-out;
    -o-transition: opacity .4s ease-in-out;
    transition: opacity .4s ease-in-out;
    box-sizing: border-box;
    border: 0;
    border-radius: 0 10px 10px 0;
    outline: 0;
    opacity: .5;
    padding: 4px;
    margin: 0;
    z-index: 301
}

#chat_textbox.chatblock__textarea:focus {
    background: #444;
    opacity: 1
}

@media (max-width: 557px) {
    #chat_textbox.chatblock__textarea {
        width:264px
    }
}

@media (max-width: 425px) {
    #chat_textbox.chatblock__textarea {
        left:42px;
        height: 26px;
        width: 175px;
        font-size: 11px;
        padding: 0
    }

    button.chatblock__button.chatblock__visability {
        height: 26px;
        width: 30px;
        font-size: 11px
    }
}

.chatblock__scrollbar {
    display: none;
    width: 12px;
    height: 182px;
    position: absolute;
    bottom: 54px;
    left: 10px;
    background: rgba(0,0,0,.1);
    box-sizing: border-box;
    border: 1px solid #666;
    border-radius: 3px;
    overflow: hidden;
    z-index: 301
}

#updates-feed>div>i,.chatblock__scrollbar--active {
    display: block
}

.chatblock__scrollbar-thumb {
    display: block;
    width: 10px;
    height: 22px;
    position: absolute;
    bottom: 0;
    margin: 0;
    background-color: #fc7200;
    opacity: .75;
    border-radius: 1px;
    touch-action: none
}

.right-menu,.text-block {
    width: 300px;
    height: 250px;
    overflow: hidden
}

.chatblock__scrollbar-thumb:hover {
    opacity: .85
}

#challenge-coins,#free-coins,#reward-booster,#reward-coins,.chatblock__scrollbar-thumb:active,.pretty.p-svg input:checked~.state .svg {
    opacity: 1
}

.chatblock--opacity #chat_textbox.chatblock__textarea,.chatblock--opacity .chatblock__scrollbar,.chatblock--opacity button.chatblock__button.chatblock__visability {
    opacity: .2
}

#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: 350px;
    background-color: #fff;
    margin: 100px auto;
    border-radius: 15px;
    padding: 5px 15px;
}
#title {
    padding: 10px;
    text-align: center;
}
#nick {
    width: 65%;
}
#skin {
    width: 33%;
    float: right;
}
#nick, #skin {
    display: inline;
}
#gamemode {
    margin-top: 5px;
    width: 100%;
}
#helloDialog {
    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%);
}

#footer {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}
#play-btn {
    width: 85%;
    margin-bottom: 10px;
}
#spectate-btn {
    width: 13%;
    float: right;
    top: 0;
}
#play-btn, #spectate-button {
    display: inline;
}
#gallery-btn {
    width: 100%;
    margin-bottom: 5px;
    display: none; /* Visible when skins are loaded */
}
#touchpad, #touchCircle, #splitBtn, #ejectBtn {
    position: fixed;
}
#touchpad, #splitBtn, #ejectBtn {
    z-index: 2;
}
#touchpad {
    background: #000;
    opacity: 0.3;
    width: 20vw;
    height: 20vh;
    left: 0;
    bottom: 0;
}
#touchCircle {
    width: 4vw;
    height: 4vw;
    border-radius: 2vw;
    background: #f00;
    opacity: 0.3;
    z-index: 3;
}
#splitBtn, #ejectBtn {
    width: 8vw;
    height: 8vw;
    border-radius: 4vw;
    background: #777;
    opacity: 0.5;
}
#splitBtn {
    right: 18vw;
    bottom: 0;
}
#ejectBtn {
    bottom: 18vw;
    right: 0;
}
#playSounds:checked + #soundsVolume {
    display: inline;
}
#soundsVolume {
    display: none;
    width: 100px;
    height: 18px;
    padding: 0; /* IE fix */
    vertical-align: middle;
}
#settings label {
    margin-right: 10px;
    user-select: none;
}

#cm_close__settings {
    background: none;
    border: none;
}

.ch-lang {
    margin-bottom: 10px;
}

.ch-lang__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ch-lang__flag {
    width: 32px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.2s;
}

.ch-lang__flag:hover {
    transform: scale(1.1);
}