
#lobby-options {
    display: flex;
    gap: 5px;
}

.lobby-option-button {
    flex: 1;
}

.small-button {
    width: 130px;
}

#join-table-container {
    display: none;
}

#table-container {
    display: none;
    overflow-x: hidden;
}

#allow-guests-div {
    margin-bottom: 20px;
}

.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-element {
    margin-bottom: 0px;
}

.game-headers-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.game-header-icon-link {
    text-decoration: none;
    cursor: pointer;
        
}

#chat-bubble {
    width: 50px;
    height: auto;
    margin-top: 6px;
}

.chat-bubble-dot {
    transform-origin: center;
    /* fill: rgb(180, 178, 178); */
    fill: #000;
}

.chat-bubble-pulse {
    animation: pulse 1.5s infinite ease-in-out;
    fill: red;
}

.chat-bubble-pulse:nth-of-type(2) {
    animation-delay: 0.2s;
}

.chat-bubble-pulse:nth-of-type(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
      r: 2.5;
      opacity: 0.6;
    }
    50% {
      r: 3.5;
      opacity: 1;
    }
}

#table-chat-section {
    display: none;
}

#table-show-chat-button {
    display: inline-block;
}

#table-chat-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.chat-window {
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

#global-chat-window {
    height: 200px;  
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 5px;
    margin-bottom: 0px;
}

.chat-input button {
    padding: 5px 10px;
    width: 120px;
}

#table-chat-window-dialog {
    height: 200px;
}

#table-chat-window {
    height: 200px;
}


#table-other-players {
    display:flex;
    justify-content: space-evenly;
    align-items: flex-end;
    /* use media for properties below */    
    height: 120px;    
}

.table-other-player {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#table-other-player-1.table-other-player {
    display: none;
}

#table-other-player-2.table-other-player {
    display: none;
}

#table-other-player-3.table-other-player {
    display: none;
}

.table-other-player-cards {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.table-other-player-cards-image {
    object-fit: contain;
    /* use media for properties below */
    height: 40px;
}

.table-other-player-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* use media for properties below */
    flex-direction: column;    
    column-gap: 20px;
}

#table-bottom-player-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
}

.table-player-name {
    font-weight: bold;
}

.current-player {
    color: rgb(153, 20, 20);
}

#table-center-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    /* use media for properties below */    
    height: 100px;
}

#table-center-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.center-card {
    object-fit: contain;
    /* use media for properties below */
    height: 90px;                 
}

#table-bottom-player {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* use media for properties below */    
    height: 150px;
}

#table-bottom-player-cards {
    justify-content: center;
    display: grid;    
    grid-template-columns: repeat(auto-fit,  minmax(10px, max-content));
    /* use media for properties below */
    width: 290px;
    padding-top: 20px;
}

.bottom-player-card {
    /* use media for properties below */
    object-fit: contain;
    min-width: 70px;
    width: 70px;
    margin-left: -25px;
}

.card-selected {
    /* use media for properties below */
    transform: translateY(-15px);
}

#table-buttons {
    display: grid;
    align-items: center;
    justify-content: center;    
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto;
    /* use media for properties below */
    gap: 10px 10px;
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 576px) {
    #table-other-players {
        height: 145px;
    }
    .table-other-player-cards-image {
        height: 60px
    }
    .table-other-player-info {
        flex-direction: column;    
        column-gap: 20px;
    }
    #table-center-stack {
        height: 120px;
    }
    .center-card {
        height: 110px;                 
    }
    #table-bottom-player {
        height: 170px;
    }
    #table-bottom-player-cards {
        width: 400px;
        padding-top: 20px;
    }
    .bottom-player-card {
        min-width: 80px;
        width: 80px;
        margin-left: -25px;
    }
    .card-selected {
        transform: translateY(-15px);
    }
    #table-buttons {
        gap: 10px 10px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (min-width: 768px) {
    #table-other-players {
        height: 170px;
    }
    .table-other-player-cards-image {
        height: 80px
    }
    .table-other-player-info {
        flex-direction: column;    
        column-gap: 20px;
    }
    #table-center-stack {
        height: 160px;
    }
    .center-card {
        height: 150px;                 
    }
    #table-bottom-player {
        height: 200px;
    }
    #table-bottom-player-cards {
        width: 500px;
        padding-top: 20px;
    }
    .bottom-player-card {
        min-width: 100px;
        width: 100px;
        margin-left: -30px;
    }
    .card-selected {
        transform: translateY(-15px);
    }
    #table-buttons {
        gap: 10px 10px;
        padding-left: 40px;
        padding-right: 40px;
    }
    #table-chat-section {
        display: block;
    }
    #table-show-chat-button {
        display: none;
    }
    #table-show-chat-button {
        display: none;
    }
}

@media (min-width: 1024px) {
    #table-other-players {
        height: 200px;
    }
    .table-other-player-cards-image {
        height: 100px
    }
    .table-other-player-info {
        flex-direction: column;    
        column-gap: 20px;
    }
    #table-center-stack {
        height: 200px;
    }
    .center-card {
        height: 190px;                 
    }
    #table-bottom-player {
        height: 260px;
    }
    #table-bottom-player-cards {
        width: 700px;
        padding-top: 30px;        
    }
    .bottom-player-card {
        min-width: 140px;
        width: 140px;
        margin-left: -30px;
    }
    .card-selected {
        transform: translateY(-25px);
    }
    #table-buttons {
        gap: 10px 10px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (min-width: 1280px) {
    #table-other-players {
        height: 170px;
    }
    .table-other-player-cards-image {
        height: 130px
    }
    .table-other-player-info {
        flex-direction: row;        
        column-gap: 20px;
    }
    #table-center-stack {
        height: 200px;
    }
    .center-card {
        height: 190px;                 
    }
    #table-bottom-player {
        height: 280px;
    }
    #table-bottom-player-cards {
        width: 1000px;
        padding-top: 30px;
    }
    .bottom-player-card {
        min-width: 150px;
        width: 150px;
        margin-left: -30px;
    }
    .card-selected {
        transform: translateY(-25px);
    }
    #table-buttons {
        gap: 10px 10px;
        padding-left: 40px;
        padding-right: 40px;
    }
} 

@media (min-width: 1536px) {
    #table-other-players {
        height: 170px;
    }
    .table-other-player-cards-image {
        height: 130px
    }
    .table-other-player-info {
        flex-direction: row;        
        column-gap: 20px;
    }
    #table-center-stack {
        height: 200px;
    }
    .center-card {
        height: 190px;                 
    }
    #table-bottom-player {
        height: 280px;
    }
    #table-bottom-player-cards {
        width: 1000px;
        padding-top: 30px;
    }
    .bottom-player-card {
        min-width: 150px;
        width: 150px;
        margin-left: -30px;
    }
    .card-selected {
        transform: translateY(-25px);
    }
    #table-buttons {
        gap: 10px 10px;
        padding-left: 40px;
        padding-right: 40px;
    }
}





/* ### Dialogs ### */
.dialog-bottom-controls-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    
}

.dialog-button {
    width: 100%;
}

/* ## Disconnect dialog ## */
.disconnected-player {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.disconnected-player-name {
    margin: 0px;
}
/* ## ./ Disconnect dialog ## */

/* ## Scores dialog ## */
#player-score-container {    
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    column-gap: 5px;
    margin-bottom: 10px;
}

.player-score-column {
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-score-column-username {
    font-weight: bold;
    margin-bottom: 5px;
}

#player-score-column-1.player-score-column {
    display: none;
}

#player-score-column-2.player-score-column {
    display: none;
}

#player-score-column-3.player-score-column {
    display: none;
}

#player-score-column-4.player-score-column {
    display: none;
}

.score-entry {
    padding: 0px;
    margin: 1px;
}
