.container {
    display: flex;
    height: 50vh;
    width: 100%;
    justify-content: center;
}
.rooms-list {
    width: 40vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}
.rooms-list.hidden {
    display: none;
}
.rooms-list div[slot="title"] {
    width: 100%;
    min-height: 40px;
}
.rooms-list .row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 40px;
}
.rooms-list div[slot="content"] {
    height: 100%;
    width: 100%; /* for chrome on ubuntu */
}
.rooms-list div[slot="content"] .row:first-child {
    margin-top: 10px;
}
.rooms-list div[slot="content"] .row {
    border-bottom: var(--border-light);
    height: 10%;
    display: flex;
    align-items: center;
}
.rooms-list div[slot="content"] .row:hover {
    cursor: pointer;
    background-color: rgba(0,0,0, 0.3);
}
.rooms-list div[slot='actions'] {
    display: flex;
}

.rooms-list .row .col {
    width: 100px;
    box-sizing: border-box;
}
.rooms-list .row .col:first-child {
    width: 50%;
}
.rooms-list .row .col:last-child {
    width: 50px;
    text-align: right;
}
.rooms-list .row .col img {
    width: 20px;
    height: 20px;
}

.rooms-real-money-not-selected,
.rooms-real-money,
.new-room {
    width: 15vw;
}
.rooms-real-money form[slot="content"],
.new-room form[slot="content"] {
    padding: 0 10px;
}
.rooms-real-money form[slot="content"] .input-group,
.new-room form[slot="content"] .input-group {
    margin-top: 15px;
}

.room-created div[slot="actions"],
.new-room div[slot="actions"]  {
    display: flex;
}

.rooms-real-money #moneyPrizesDescription {
    width: 100%;
    text-align: center;
}

.rooms-real-money-not-selected div[slot="content"] {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 32px;
}

.room-created {
    width: 15vw;
}
.room-created div[slot="content"] {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.room-created div[slot="content"] .title {
    font-size: 32px;
    text-align: center;
    border: none;
}
.room-created div[slot="content"] .room-link {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.room-created div[slot="content"] .room-buttons {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.room-created div[slot="content"] .room-buttons * {
    margin: 5px 0;
}
.room-created label.hidden {
    display: none;
}

#selectMapPopup .window {
    width: auto;
    min-height: 30vh;
}
#selectMapPopup .content {
    width: 40vw;
    min-height: 40vh;
    max-height: 40vh;
    overflow-y: scroll;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 5px;
}
#selectMapPopup .content .game-map {
    min-width: 190px;
    width: 190px;
    margin: 5px;
    box-sizing: border-box;
    border: var(--border-light);
}
#selectMapPopup .content .game-map.active,
#selectMapPopup .content .game-map:hover {
    /*border: 1px solid black;*/
    box-shadow: 4px 3px 4px 1px #ffc200;
    cursor: pointer;
}

#selectMapPopup .content .game-map img {
    width: 100%;
    height: 190px;
}
#selectMapPopup .content .game-map div {
    height: 40px;
    width: 100%;
    background-color:  rgb(223 255 0 / 31%);
    display: flex;
    justify-content: center;
    align-items: center;
}

#mapEditorPopup .window {
    min-width: 40vw;
    max-width: 100vw;
    min-height: 40vh;
    max-height: 100vh;
    /* height: 800px; on chrome ubuntu buttons out of the window */
}
#mapEditorPopup .content {
    height: 100%;
}
#mapEditorPopup .content .canvasMapEditorBlock {
    position: relative;
    width: 600px;
    height: 650px;
}
@media only screen and (max-height: 900px) {
  #mapEditorPopup .content .canvasMapEditorBlock {
    zoom: 100%;
  }
}

#mapEditorPopup .content .canvasMapEditorBlock > * {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 0;
    left: 0;
}

#mapEditorPopup .content canvas {
    margin: 40px 0;
    border: 1px solid black;
}
#mapEditorPopup .content .instruments {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0 0 20px 0;
}

#mapEditorPopup .content .instruments > .btn {
    margin: 0 10px;
    width: auto;
    height: auto;
    padding: 10px;
}

#roomGameTab .actions{
    /*border-top: var(--border-light);*/
}
#roomGameTab .input-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 50px;
    margin-right: 20px;
}

#new-room-link-input:hover {
    cursor: pointer;
}

#registrationPopup .window,
#authorizationPopup .window {
    width: 20vw;
    min-width: 20vw;
}
#registrationPopup .telegram-mini-app-auth,
#authorizationPopup .telegram-mini-app-auth {
    display: flex;
    background-color: #27a7e8;
    font-size: 10px;
    margin-top: 10px;
}
#registrationPopup .telegram-mini-app-auth img,
#authorizationPopup .telegram-mini-app-auth img {
    width: 30px;
    height: 30px;
    padding-right: 10px;
}

#registrationPopup .telegram-desktop-auth,
#authorizationPopup .telegram-desktop-auth {
    margin-top: 10px;
    text-align: center;
}

#balanceInfoPopup .content .amount {
    font-size: 50px;
    margin-top: 20px;
    text-shadow: -1px 0 gray, 0 1px gray, 1px 0 gray, 0 -1px gray;
    color: var(--color-clickable);
    max-width: 50vw;
}

#balanceInfoPopup .content .msg {
    margin: 10px 0 20px 0;
}
#balanceWithdrawalFailRequestPopup .content .msg {
    margin: 10px 30px 20px 30px;
}

#enterMoneyRoomPopup .window,
#balanceWithdrawalSuccessRequestPopup .window,
#balanceWithdrawalFailRequestPopup .window,
#balanceWithdrawalPopup .window,
#balanceFillUpPopup .window {
    max-width: 30vw;
    min-width: 10vw;
}

#balanceWithdrawalPopup .description,
#balanceWithdrawalPopup .input-group,
#balanceFillUpPopup .description,
#balanceFillUpPopup .input-group {
    /*width: 80%;*/
    display: flex;
    justify-content: center;
}
#balanceFillUpPopup .input-group > div {
    display: flex;
}
#balanceWithdrawalPopup .input-group input,
#balanceFillUpPopup .input-group input {
    width: 100%;
}
#balanceFillUpPopup .input-group .btn {
    width: 50px;
    height: 30px;
}

#enterMoneyRoomPopup .description,
#balanceWithdrawalPopup .description,
#balanceFillUpPopup .description {
    font-size: 12px;
    padding: 10px 10px 0 10px;
    border-top: var(--border-light);
    margin-top: 10px;
}

#moneyRoomDescriptionPopup  .desc {
    width: 450px;
    text-align: center;
    font-size: 12px;
}
#moneyRoomDescriptionPopup .grid-title {
    margin: 0 0 10px 0;
    text-decoration: underline;
}
#moneyRoomDescriptionPopup .grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#moneyRoomDescriptionPopup .row {
    display: flex;
    border: 1px solid black;
}

#moneyRoomDescriptionPopup .row:not(:first-child) {
    border-top: none;
}
#moneyRoomDescriptionPopup .col {
    width: 150px;
    padding: 10px 0;
    text-align: center;
    border-right: 1px solid black;
    font-size: 12px;
}
#moneyRoomDescriptionPopup .col:last-child {
    border-right: none;
}
#connectMoneyGameButtonCancel {
    display: none;
}

#user-info-block {
    display: flex;
    justify-content: center;

    flex-direction: column;
    padding-left: 10px;
}

#logoutButton,
#loginButton {
    text-transform: uppercase;
}

@media only screen and (max-width: 1024px) {
    .settings {
        display: none;
    }

    .body {
        height: 100%;
        display: grid;
        grid-template-rows: 50px 130px 60px calc(100% - 260px);
    }
    .input-group {
        text-align: left;
    }

    .tabs {
        margin-top: 0;
        height: auto;
        box-sizing: border-box;
    }
    .new-room {
        display: none;
    }
    .rooms-list {
        width: 100%;
        height: auto;
    }
    .rooms-list div[slot="title"] {
        font-size: 16px;
    }
    .rooms-list div[slot="content"] {
        font-size: 14px;
    }
    .rooms-list .row .col {
        width: 20%;
        text-align: right;
    }
    .rooms-list .row .col:first-child {
        padding-left: 10px;
        width: 40%;
        text-align: left;
        overflow-wrap: break-word;
    }
    .rooms-list .row .col:last-child {
        width: 10%;
    }
    .rooms-list .row .col:nth-child(2) {
        text-align: center;
    }

    #roomGameTab {
        height: 100%;
    }
    #roomGameTab .input-group {
        /*height: 100px;*/
    }
    #roomGameTab .input-group label {
        font-size: 15px;
    }
    #roomGameTab .input-group input {
        height: 30px;
    }
    .rooms-list div[slot='actions'] {
        min-height: unset;
    }
    .rooms-list div[slot="content"] .row {
        height: unset;
        min-height: 30px;
        padding: 5px 0;
    }
    .rooms-real-money-not-selected {
        display: none;
    }
    .rooms-real-money {
        width: 100%;
    }

    block-element > .actions {
        display: flex;
    }
    block-element > .actions > * {
        margin: 0 5px;
    }
    #roomGameTab .input-group:last-child {
         height: 20px;
    }

    #moneyRoomDescriptionPopup .desc {
        width: 100%;
    }

    #moneyRoomDescriptionPopup .col  {
        width: 100px;
    }
    #roomGameTab .input-group {
        margin-right: 5px;
    }
    #connectMoneyGameButtonCancel {
        display: flex;
    }
    .new-room {
        width: 100%;
    }
    #selectMapPopup .content {
        width: auto;

        text-align: unset;
    }
    #selectMapPopup .content .game-map img {
        width: 140px;
        height: 140px;
    }
    #selectMapPopup .content .game-map {
        min-width: 140px;
        width: 140px;
    }
    #mapEditorPopup .content .canvasMapEditorBlock {
        zoom: unset;
        position: relative;
    }
    #mapEditorPopup .content .canvasMapEditorBlock > * {
        width: auto;
        height: auto;
    }

    #mapEditorPopup .content canvas {
         margin: unset;
        border: 1px solid black;
    }
    #mapEditorPopup .content .instruments {
        padding: 20px 0 20px 0;
    }
    #mapEditorPopup .content {
        overflow-y: auto;
    }
    .room-created {
        width: 100%;
    }
    .room-created div[slot="actions"] {
        display: flex;
        justify-content: space-around;
        width: 90%;
    }
}