* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.profile {
    display: flex;
    padding: 0 12px 0 12px;
    flex-direction: column;
    margin: 12px 0 12px 0;
}

.profile_header {
    font-weight: bold;
    font-size: 14px;
    padding-bottom: 4px;
}

.avatars-box {
    scroll-behavior: smooth;
    width: 320px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
}
.avatar {
    flex: 0 0 64px;
    height: 64px;
    cursor: pointer;
}
.avatar.selected {
    border: 1px solid #000;
    border-radius: 12px;
}
.avatar:hover {
    opacity: 0.5;
}

.room {
    display: flex;
    padding: 0 12px 12px 12px;
    flex-direction: column;
    margin: 12px 0 12px 0;
    max-height: calc(100% - 80px - 100px);
    overflow-y: scroll;
}

.bold {
    font-weight: bold;
}

body {
    font: 13px Helvetica,
    Arial;
}

.takeseat {
    padding: 5px;
    margin: 3px;
}

input {
    padding: 5px;
    margin: 3px;
}

div#env {
    display: inline-block;
    width: 60%;
    height: 100%;
    border: 1px solid lightslategray;
    position: fixed;
    left: 0;
}

#messages {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    list-style-type: none;
}

#messages_chat {
    border-top: 1px solid black;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    list-style-type: none;
}

.winner {
    background: lightgreen;
}

#raise {
    position: relative;
}

.raise_value {
    position: absolute;
    top: 24px;
    z-index: 99999;
    left: 8px;
}

#seats {
    border-top: 1px solid black;
    margin-top: 6px;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gamer_data_cards img {
    width: 49px;
    height: 73px;
}

.gamer_data img {
    width: 39px;
    height: 53px;
}

.gamer_cards {
    display: flex;
}

#sharedcards img {
    width: 49px;
    height: 73px;
}

.gamer_data_profile {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.gamer_data {

}

#mycards {
    margin-top: 6px;
}

div#logs {
    display: flex;
    flex-direction: column;
    width: 40%;
    height: calc(100% - 163px);
    position: fixed;
    right: 0;
}

#tech {
    border-top: 1px solid black;
    margin-top: 6px;
    padding-top: 6px;
}

div#cmds_rooms {
    width: 100%;
    flex: 1;
    /*min-height: 45px;*/
}

.room_create_wrapper {
    display: flex;
    gap: 8px;
    color: #FFF;
}

.room_enter_data {
    display: flex;
    align-items: center;
}

#room_enter_wrapper {
    display: flex;
    align-items: center;
}

div#cmds_wrapper {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    width: 100%;
}

div#cmds {
    width: 100%;
    flex: 1;
    min-height: 45px;
}

.others {
    width: 100%;
    flex: 1;
    background: lightgray;
}

.hide {
    display: none;
}

form {
    background: #000;
    color: #fff;
    padding: 3px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

form input#m {
    border: 0;
    padding: 10px;
    width: 40%;
    margin-right: 0.5%;
}

form button#send {
    width: 5%;
    background: rgb(130, 224, 255);
    border: 1px solid black;
    padding: 10px;
}

div.dialog {
    display: inline-block;
    border: 1px solid lightgray;
    vertical-align: top;
    background: silver;
    color: black;
}

div.dlgheader {
    text-align: right;
    background: lightgray;
}

div.dlgfooter {
    text-align: right;
}

div.cmd {
    display: inline-block;
}

.cmd_mini {
    cursor: pointer;
    background: lightcyan;
    border: 1px solid black;
    padding: 4px;
    margin: 3px;
}

button.cmd {
    background: rgb(130, 224, 255);
    border: 1px solid black;
    padding: 10px;
    margin: 3px;
}

label.cmd {
    width: 80px;
    padding: 5px;
    margin: 3px;
}

input.cmd {
    padding: 5px;
    margin: 3px;
}

.list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.list li {
    padding: 1px 10px;
}

.list li:nth-child(odd) {
    background: #eee;
}

li.active,
div.active {
    background: lightyellow;
}

li.active,
div.active {
    background: lightyellow;
    border: 1px solid black;
}

li.inactive,
div.inactive {
    background: lightgray;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 8px;
    min-width: 320px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.modal-content input {
    padding: 5px;
    margin: 3px;
}

.modal-content label {
    font-size: 14px;
    color: #333;
}

.modal-content button {
    background: rgb(130, 224, 255);
    border: 1px solid black;
    padding: 10px;
    margin: 3px;
    cursor: pointer;
}
