#lobby-screen {
    margin: 0 auto;
}

.lobby-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.lobby-container h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #3997cc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lobby-card {
    background-color: #404040;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
}

.status-section {
    text-align: center;
    margin-bottom: 30px;
}

.status-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

#player-count {
    color: #3997cc;
    font-weight: bold;
}

#status-message {
    color: #ccc;
    font-size: 1rem;
}

.join-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#username-input {
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #3997cc;
    border-radius: 8px;
    background-color: #505050;
    color: white;
    outline: none;
    transition: all 0.3s;
}

#username-input:focus {
    border-color: #5ab7ec;
    background-color: #555;
}

#username-input::placeholder {
    color: #999;
}

#join-button {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #3997cc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#join-button:hover:not(:disabled) {
    background-color: #5ab7ec;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(57, 151, 204, 0.4);
}

#join-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.waiting-section {
    text-align: center;
    padding: 20px;
}

.waiting-section p {
    font-size: 1.2rem;
    color: #3997cc;
    margin-top: 20px;
}

.spinner {
    border: 4px solid #505050;
    border-top: 4px solid #3997cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    .lobby-card {
        min-width: 300px;
        padding: 30px 20px;
    }

    .lobby-container h1 {
        font-size: 2rem;
    }
}
