body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    color: #333;
}

#container {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

#name-selection p {
    font-size: 1.1rem;
    color: #666;
}

.names {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.name-btn {
    background-color: #c90000;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.name-btn:hover {
    background-color: #e60000;
    transform: scale(1.05);
}

.name-btn:disabled {
    background-color: #d3a0a0;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none;
}

#wait-message {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

#lobby-status {
    margin-top: 1rem;
}
#player-list {
    list-style-type: '✅ ';
    padding-left: 0; /* Removed old padding */
    font-size: 1.1rem;
    color: #555;
    /* Center the list items */
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

#countdown-screen h1 {
    font-size: 5rem;
    color: #2c9a2c;
    margin-top: 0;
}

#result-screen h1 {
    font-size: 3rem;
    color: #0275d8;
    background-color: #f5faff;
    padding: 1rem;
    border-radius: 10px;
    border: 2px dashed #0275d8;
}

#result-screen p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 0.5rem;
}