/* Lobby styles for the multiplayer Aeroplane Chess game */

#lobby, #waitingRoom {
    width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #444;
    margin-bottom: 15px;
}

.lobby-container, .waiting-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.player-info, .room-list-container {
    width: 48%;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.color-selection {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.1);
}

.color-option.red {
    background-color: red;
}

.color-option.blue {
    background-color: blue;
}

.color-option.yellow {
    background-color: yellow;
}

.color-option.green {
    background-color: green;
}

.room-controls {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.room-controls input {
    flex: 1;
    margin-right: 10px;
}

.room-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.room-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.room-item:hover {
    background-color: #f9f9f9;
}

.room-item:last-child {
    border-bottom: none;
}

.players-list {
    margin: 20px 0;
    width: 100%;
}

.player-item {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.player-ready {
    color: #00ff00;
    font-weight: bold;
}

.waiting-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#roomNameDisplay {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}
