body { 
    font-family: sans-serif; 
    background: linear-gradient(120deg, 
    #000000 0%, 
    #0f0404 34%, 
    #020101 66%, 
    #000000 100%
    );
    min-height: 99vh;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/*h1 Text: TicTacShoot*/
h1 {
    font-family: 'Nosifer';
    color: #e63b28;
    letter-spacing: 2px;
    font-size: 5rem;
    text-shadow: 2px 4px 6px #220000, 0 0 10px #e74c3c80;
    margin-bottom: 30px;
    user-select: none;
}
    
/*h3 Text: Offene Räume*/
h3 {
    color: #e63b28;
    letter-spacing: 2px;
    text-shadow: 2px 4px 6px #220000, 0 0 10px #e74c3c80;
    margin-bottom: 30px;
    user-select: none;
}

/* Basis-Styling für Buttons */
button { 
    padding: 5px 10px;
    font-size: 16px;
    margin: 0 5px;
    color: #ffffff;
    background-color: #e63b28;
    border-radius: 12px;
}

input[type="text"] {
    padding: 8px 15px;
    font-size: 16px;
    margin: 0 5px 10px 5px;
    color: #ffffff;
    background-color: rgba(40, 0, 0, 0.8);
    border: 2px solid #e63b28;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
}

input[type="text"]::placeholder {
    color: #e63b28aa;
}

input[type="text"]:focus {
    border-color: #ff4736;
    background-color: rgba(40, 0, 0, 0.9);
    box-shadow: 0 0 8px rgba(230, 59, 40, 0.5);
}

#status {
    color: #e76152d7;
}

#currentPlayerDisplay {
    color: #e74d3cd7;
}

#roomListContainer {
    color: #ffffffd7;
}

#gameField {
    display: none; 
    margin-bottom: 50px;
}

#gameStatus {
    font-family: 'Nosifer';
    font-size: 30px;
    font-weight: bold;
    color: #e63b28;
    letter-spacing: 2px;
    text-shadow: 2px 4px 6px #220000, 0 0 10px #e74c3c80;
    margin-bottom: 30px;
    user-select: none;
}

#board {
    width: 100%;
    margin: auto;
}

#board > div {
    display: flex;
    justify-content: center; 
    margin-bottom: 10px; 
}

#TicTacShootProbability {
    color: white
}

.SubBody {
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;   
    width: 100%;
    max-width: 750px;
    margin: 40px auto;
    transition: min-height 0.2s;
    max-height: none;
}

.gameButton {
    width: 100px;
    height: 100px;
    border: 2px solid rgb(0, 0, 0);
    font-size: 44px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gameButton.x {
    background-color: #000000;
    color: #ffffff;
    text-shadow: 2px 4px 6px #220000, 0 0 10px #e74c3c80;
    border: 2px solid rgb(255, 255, 255);
}

.gameButton.o {
    background-color: #000000;
    color: #e63b28;
    text-shadow: 2px 4px 6px #220000, 0 0 10px #e74c3c80;
    border: 2px solid rgb(255, 0, 0);
}
    
.room-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    color: #fff;
    background: rgba(40,0,0,0.5);
    border-radius: 12px;
    overflow: hidden;
    font-size: 1.08rem;
}

.room-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e63b28a0;
    text-align: center;
}

.room-table th {
    padding: 10px 8px;
    border-bottom: 1px solid #e63b28a0;
    text-align: center;
    background: #e63b28;
    color: #fff;
    font-family: 'Nosifer';
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.room-table tr:last-child td {
    border-bottom: none;
}

.room-table button {
    padding: 3px 14px;
    font-size: 1rem;
    background: #862b20d3;
    color: #fff;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 6px;
    cursor: pointer;                  
    transition: background .15s;      
}

.room-table button:hover {
    background: #ff4736;
}
    
.white-player {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px #000000 !important;
}

.red-player {
    color: #e63b28 !important;
    text-shadow: 2px 2px 4px #000000 !important;
}   
