* {
    font-family: Arial;
}

body {
    margin: 0;
    width: calc(100% - 6px);
    height: 100vh;
}

h1 {
    display: inline-block;
}

#auth * {
    font-size: 24px;
}

#auth {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

form {
    padding: 30px;
    display: inline-block;
    border: solid black;
    margin: 5px;
}

#messages {
    overflow-y: scroll;
    width: 100%;
    height: fit-content;
    border-style: solid;
    display: inline-block;
    height: calc(100vh - 250px);
}
#messages > div {
    display: flex;
    margin-left: 10%;
    margin: 10px;
}
#messages div div:not(.buttons) {
    overflow-wrap: break-word;
    width: 30vw;

    border-style: solid;
    border-width: 3px;
    border-color: gray;
    border-radius: 20px;
    padding: 3px;
}
.buttons { text-align: center; }
.buttons:hover { opacity: 1 !important; }

#messages > div.ownMessage {
    margin-left: 50%;
}

#messages div.ownMessage div {
    background-color: rgb(237, 237, 255);
}

.button {
    display: inline-block;
}

.time {
    color: gray;
    display: flex;
    justify-content: flex-end;
}

#main {
    
}

#chat {
    margin-left: 8px;
    display: inline-block;
    width: 80%;
}

#online {
    float: right;
    margin-right: 2%;
}

.admin::after, .moderator::after, .bot::after, .normal::after, .slob::after
{ vertical-align: super; color: black; font-size: .5em; margin-left: 2px; }

.admin     { color: #f7c600; } .admin::after     { content: "admin"; }
.bot       { color: orange;  } .bot::after       { content: "bot"; }
.moderator { color: blue;    } .moderator::after { content: "mod"; }
.normal    { color: green;   }
.slob      { color: rgb(172, 118, 0);    } .slob::after      { content: "slob"; }

#messages :not(div) {
    margin: 2px;
}
#logout {
    float: right;
}
#msg, #main button {
    font-size: 24px;
}
#emojibar {
    margin-top: 10px;
}
#emojis {
    margin-top: 10px;
    width: 50%;
    overflow: auto;
    height: 150px;
    background: gainsboro;
    border-style: solid;
}
.emoji {
    user-select: none;
    display: inline-block;
    padding: 10px;
    margin: 0;
}
.emoji:hover {
    background: gray;
}