body {
    margin: 0;
    padding: 0;
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: sans-serif;
}

#game-container {
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    background: #222;
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    z-index: 10;
    background: rgba(0,0,0,0.85);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    width: 420px;
}

#char-selection {
    margin-bottom: 15px;
}

.char-options {
    display: flex;
    gap: 10px;
}

.char-card {
    background: rgba(255,255,255,0.05);
    padding: 10px 5px;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: 0.2s;
}

.char-card:hover {
    background: rgba(255,255,255,0.15);
}

.char-card.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.char-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #fff;
}

.char-card small {
    font-size: 12px;
    color: #bbb;
    display: block;
    line-height: 1.4;
}

#ui-layer h2 {
    margin-top: 0;
    font-size: 20px;
    text-align: center;
}

#ui-layer h3 {
    margin: 10px 0;
    font-size: 16px;
    color: #4CAF50;
}

#host-section {
    display: flex;
    margin-bottom: 10px;
}

#host-name {
    flex-grow: 1;
    margin-right: 10px;
    padding: 8px;
}

button {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

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

input {
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

hr {
    border-color: #555;
    margin: 15px 0;
}

#room-list {
    max-height: 180px;
    overflow-y: auto;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
}

.room-item span {
    font-size: 14px;
}

.room-item button {
    background-color: #2196F3;
}

.room-item button:hover {
    background-color: #1976d2;
}

#status {
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
    text-align: center;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.menu-buttons button {
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

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

.empty-slot {
    color: #888;
    font-weight: normal;
    font-size: 14px;
    margin-left: 10px;
}

.settings-options {
    margin-top: 20px;
    font-size: 16px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
}

#customization-menu {
    max-height: 80vh;
    overflow-y: auto;
}
