html {
    touch-action: none;
}

body {
    overflow: hidden;
    background: white;
    color: black;
    user-select: none;
    touch-action: none;
}

body, button, input[type="text"], input[type="password"], input[type="submit"] {
    font: 1em Consolas;
}

.center {
    text-align: center;
}

.name-container {
    margin-top: 2.5em;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
}

#name {
    width: 100%;
}

.servers {
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
    padding-top: 0;
    width: 70%;
}

.server {
    border: solid 1px black;
    margin: 0.5em;
    padding: 0.5em;
    cursor: pointer;
}

.main-container {
    position: absolute;
    left: 0;
    top: 0;
    background: white;
}

.game-container {
    border: solid 1px black;
    position: relative;
}

.chat-container {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 999999;
}

.chat-textarea {
    display: block;
    width: 400px;
    height: 200px;
    resize: none;
    background: rgba(58, 55, 55, 0.45);
    color: white;
}

.chat-send {
    width: 400px;
}

.close-button {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 999999;
    cursor: pointer;
}

.mobile-ui {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.mobile-button {
    background: skyblue;
    color: white;
    width: 2em;
    height: 2em;
    border: solid 3px blue;
    border-radius: 0.3em;
    font-weight: bold;
    font-size: 1.5em;
}

.message {
    margin: 1.5em;
    padding: 1.5em;
    font-weight: bold;
    border-radius: 0.7em;
}

.error {
    background: #ff4b4b;
    color: #5e1010;
}

.ok {
    background: #8eff71;
    color: #0c5a12;
}

.popup-container {
    z-index: 999999;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup {
    background: white;
    border: solid 1px black;
}

.popup-close-btn {
    display: block;
    float: right;
}