#join-game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 2.5rem;
    margin: 0;
    position: relative;
    background-color: var(--primary-color);
}

#join-game li:nth-child(2) {
    top: 1.2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    font: 3rem "Bengrraas", "Arial", sans-serif;
    font-weight: bold;
}

#join-game li a {
    text-decoration: none;
    color: var(--primary-color);
    background-color: var(--secondary-color);

}

#join-game li a:hover{
    background-color: #724728;
}

.container {
    margin-left: 5rem;
    display: grid;
    grid-template-columns: 1fr 10fr;
    gap: 15rem;
    align-items: start;
}


#player-info {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 1.5rem;
    margin-left: 4.5rem;
}

#player-info img {
    margin-top: 8rem;
    height: 20rem;
    width: 20rem;
    border-radius: 50%;
    border: 0.15rem solid var(--secondary-color);
}

#player-info p {
    font-size: 3rem;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* The outer body wrapper */
.table-body-scroll {
    max-height: 30rem;
    overflow-y: auto;
}

/* Match table layout in both tables */
.game-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}


/* Sticky-style header stays on top, body scrolls below */
.table-body-wrapper {
    max-height: 30rem;
    overflow-y: auto;
    width: 100%;
}

.table-wrapper {
    width: 90%;
    margin-top: 4rem;
    background-color: rgba(114, 71, 40, 0.2);
    border-radius: 1rem;
    overflow: hidden;
}

th {
    font: 1.5rem "Bengrraas", "Arial", sans-serif;
    font-weight: bold;
    padding: 1rem;
    border-bottom: 0.1rem solid black;
}

thead th {
    background-color: rgb(255, 211, 0, 0.75);
    color: var(--secondary-color);
    font: 1.5rem var(--custom-font);
    font-weight: bold;
    padding: 1rem;
    border-bottom: 0.125rem solid var(--secondary-color);
}

td {
    position: relative;
    padding: 1rem;
    text-align: center;
}


.game-button {
    display: block;
    min-width: 15rem;
    padding: 0.625rem;
    border: 0.125rem solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 1.25rem;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    background-color: var(--primary-color);
}

.game-button:hover{
    background-color: var(--primary-hover-color);
}

.game-state {
    background-color: rgba(114, 71, 40, 0.75);
    color: var(--primary-color);
    border: 0.125rem solid var(--primary-color);
    padding: 0.625rem 1rem;
    border-radius: 1.25rem;
}

.game-state:hover{
    background-color: var(--secondary-hover-color);
}


.player-box {
    color: var(--primary-color);
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    border: 0.125rem solid var(--primary-color);
    border-radius: 0.625rem;
    margin-left: 0.5rem;
    background-color: #724728;
}

/* Scrollbar styling */
.table-body-scroll::-webkit-scrollbar {
    width: 0.6rem;
}

.table-body-scroll::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 0.3125rem;
}

.table-body-scroll::-webkit-scrollbar-track {
    background-color: var(--primary-color);
}









