body {
    height: 97dvh;
}

@font-face {
    font-family: "Roboto Mono";
    src: url(external/RobotoMono.woff2);
}

.app {
    font-family: "Roboto Mono", monospace;
}

input {
    font-family: inherit;
    font-size: 15px;
}

.desktop-app {
    display: flex;
    width: 85%;
    margin: 0 auto;
}

.mobile-app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat {
    flex: 1;
}

.mobile-app .chat {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.mobile-app .chat .messages {
    flex: 1;
}

.desktop-app .info {
    margin-left: 40px;
}

.info input[type=checkbox] {
    margin: 0;
}

.info .row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 22px;
    white-space: nowrap;
}

.mobile-app .info .row {
    height: 28px;
}

.chat .messages {
    height: 400px;
    overflow-y: scroll;
}

.chat .messages .message {
    display: flex;
    justify-content: space-between;
}

.chat .messages .message:hover {
    background-color: #d6ffd6;
}

.chat .messages .message .content {
    word-break: break-word;
}

.chat .messages .message .content .author {
    font-weight: bold;
}

.chat .messages .message .timestamp {
    flex-shrink: 0;
    color: darkgray;
    margin-left: 15px;
    margin-right: 15px;
}

.chat .new-message-form {
    display: flex;
    margin-top: 10px;
    height: 28px;
}

.mobile-app .chat .new-message-form {
    height: 40px;
}

.chat .new-message-form .nickname {
    max-width: 150px;
    margin-right: 5px;
}

.chat .new-message-form .new-message {
    flex: 1;
    margin-right: 5px;
}

.players-list {
    margin-top: 15px;
}

.players-list ul {
    margin-top: 2px;
}

.team1 {
    color: red;
}
.team2 {
    color: blue;
}
.team3 {
    color: gold;
}
.team4 {
    color: greenyellow;
}
.team5 {
    color: green;
}
.connected {
    color: #3cc93c;
}
.connecting {
    color: orange;
}
.disconnected {
    color: red;
}
.unknown {
    color: grey;
}

ul.navbar {
    max-height: 40px;
    list-style-type: none;
    display: flex;
    padding: 0;
    margin-top: 0;
    border: 1px solid black;
}
ul.navbar li {
    flex: 1;
    display: flex;
    border-right: 1px solid black;
}
ul.navbar li:last-child {
    border-right: 0;
}

.icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex: 1;
}
.icon-btn:hover {
    background-color: #f5f5f5;
}
.icon-btn.selected {
    background-color: #e0e0e0;
}
.icon-btn img {
    flex: 1;
}