.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin: 2rem auto;
}

.content-container {
    display: block;
    background-color: white;
    padding: 1rem 3rem 1rem 3rem;
}

.input-item {
    width: inherit;
    min-width: 300px;
    font-family: yekan, serif;
}

.error-list {
    background-color: rgb(236, 93, 93);
    padding: 10px;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
}


.tab-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 2rem 1rem 0 1rem;
    margin-left: 10%;
    margin-right: 10%;
}

.tab-label {
    background-color: rgb(236, 234, 234);
    border-bottom: 0.3rem solid #cac5c5;
    outline: none;
    cursor: pointer;
    padding: 1rem;
    text-align: center;
    font-family: BTitr;
}

.tab-button:checked + .tab-label {
    background-color: rgb(179, 224, 241);
    border-bottom: 0.3rem solid rgb(102, 102, 212);
    padding: 1rem;
}

.tab-content {
    flex-direction: column;
    display: none;
    border: none;
    background-color:rgba(255, 255, 255, 0.4);
    flex: 1 1;
    margin: 2rem 1rem 1rem 1rem;
    padding: 2rem 1rem 1rem 1rem;
    overflow: auto;
    margin-left: 10%;
    margin-right: 10%;
}

/* display: block causes the element to be visible, since the default value is none */
#create-lobby {
    display: block;
}

/* Create room form - two columns, labels stay on one line */
.create-room-form {
    display: grid;
    grid-template-columns: minmax(180px, auto) 1fr minmax(180px, auto) 1fr;
    gap: 0.9rem 1.5rem;
    align-items: center;
    max-width: 900px;
}

.create-room-form .form-label {
    white-space: nowrap;
    min-width: 160px;
    font-weight: bold;
    font-family: yekan, serif;
}

.create-room-form .input-item {
    min-width: 140px;
    width: 100%;
    box-sizing: border-box;
}

.create-room-form .input-item[type="checkbox"] {
    min-width: auto;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}

.create-room-form .form-textarea {
    min-height: 60px;
    resize: vertical;
}

/* Force custom-words and chance rows to start on new row, input spans rest */
.create-room-form .form-label-row-start {
    grid-column: 1;
}

.create-room-form .form-field-wide {
    grid-column: 2 / -1;
    min-width: 0;
}

.create-room-form .range-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.create-room-form .range-wrapper input[type="range"] {
    flex: 1;
    min-width: 80px;
}

.create-room-form .create-room-btn {
    grid-column: 1 / -1;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.create-room-form .create-room-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

.content-container {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.join-lobby-data {
    display: flex;
    flex-direction: row;
    flex: 1;
    height: 100%;
}

.table-wrapper-wrapper {
    display: flex;
    flex-direction: column;
    flex: 3;
    margin: 1rem;
    overflow: hidden;
}

.table-wrapper {
    flex: 1;
    border: 1px solid slategray;
    background-color: rgba(255, 255, 255, 0.5);
    overflow-y: scroll;
}

#refresh-button {
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    background: #4a90d9;
    color: white;
    border: none;
}

#refresh-button:hover {
    background: #357abd;
}

.join-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    background: #5cb85c;
    color: white;
    border: none;
}

.join-btn:hover:not(:disabled) {
    background: #4cae4c;
}

button{
    font-family: yekan, serif;
}

#lobby-table {
    width: 100%;
}

.lobby-details {
    display: grid;
    grid-template-columns: max-content auto;
    grid-template-rows: min-content min-content min-content min-content min-content min-content min-content minmax(min-content,4rem);
    column-gap: 2rem;
    row-gap: 1rem;
    flex: 2;
    margin: 1rem;
    padding: 1rem;
    background-color: rgb(226, 226, 226);
    overflow: auto;
}

.lobby-detail {
    font-weight: bold;
}

table {
    border: 0;
    border-collapse: collapse;
}

td, th {
    text-align: left;
    padding: 0 5px 0 5px;
}

th {
    background-color: white;
    position: sticky;
    top: 0;
    padding: 0.2rem;
}

tr:nth-child(2n) {
    background-color: rgb(219, 219, 219);
}

tr:hover {
    background-color: rgb(248, 148, 164);
}

#join-button:disabled {
    cursor: not-allowed;
}

#join-button {
    grid-column-start: 1;
    grid-column-end: 3;
}

tr[selected="true"] {
    background-color: #6464de;
}


#sibzaminigames {
    position: fixed;
    bottom: 20px;
    left: -5px;
    z-index: 99;
    outline: none;
    cursor: pointer;
    padding: 15px;
}
