* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00c853;
    /* Green color */
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

#messages {
    position: fixed;
    top: 25px;
    bottom: 50px;
    left: 0;
    right: 200px;
    overflow-y: auto;
    padding: 15px;
    overflow-wrap: break-word;
}

#messages span.username {
    font-weight: bold;
}

#spacer {
    height: calc(100vh - 32px - 5em);
}

#onlineUsersList {
    font-weight: bold;
    padding: 8px;
}

p {
    margin-top: 0;
    margin-bottom: 8px;
}

p:last-of-type {
    margin: 0;
}

#onlineUsersList {
    /* display: none; */
    word-break: break-all;
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: 25px;
    bottom: 50px;
    width: 200px;
    border-left: none;
}

::-webkit-scrollbar {
    display: none;
}

@media(max-width:600px) {
    #onlineUsersList {
        display: none;
    }

    #messages {
        right: 0;
    }
}

.msger-inputarea {
    height: 50px;
    display: flex;
    position: fixed;
    padding: 10px;
    border-top: var(--border);
    background: #eee;
    width: 100%;
    bottom: 0;
    left: 0;
}

.msger-inputarea * {
    padding: 4px;
    border: none;
    border-radius: 3px;
    font-size: 1em;

}

.msger-input {
    flex: 1;
    background: #ddd;
}

.msger-send-btn {
    margin-left: 10px;
    background: rgb(0, 196, 65);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.23s; */
}

.msger-send-btn:hover {
    background: rgb(0, 180, 50);
}

/* 
#chat-input {
    position: fixed;
    width: 100%;
    height: 32px;
    bottom: 0;
    left: 0;
    border: none;
    border-top: none;
    padding-left: 32px;
    outline: none;
}

#chatroom::before {
    z-index: 1;
    display: block;
    content: ">";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-weight: bold;
    color: #888;
    -webkit-text-stroke-width: 2px;
} */

#name-form {
    position: fixed;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
}

#name-input {
    position: fixed;
    font-size: 200%;
    top: calc(50% - 1em);
    left: calc(50% - 8em);
    width: 16em;
    height: 2em;
    margin: 0;
    text-align: center;
    border: 1px solid #bbb;
}

#name-form p {
    position: fixed;
    top: calc(50% + 3em);
    width: 100%;
    text-align: center;
}

#room-form {
    position: fixed;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    font-size: 200%;
    margin-top: calc(50vh - 3em);
    text-align: center;
}

#room-name {
    font-size: inherit;
    border: 1px solid #bbb;
    height: 2em;
    width: 16em;
    padding-left: 1em;
}

#room-form button {
    font-size: inherit;
    border: 1px solid #bbb;
    background-color: #eee;
    height: 2em;
}

@media(max-width:660px) {

    #name-input,
    #room-form {
        font-size: 150%;
    }

    #name-form p {
        font-size: 75%;
    }
}

@media(max-width:500px) {

    #name-input,
    #room-form {
        font-size: 100%;
    }

    #name-form p {
        font-size: 50%;
    }
}

#go-public {
    width: 4em;
}

#go-private {
    width: 20em;
}