body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#gameCanvas {
    display: block;
}

#nameInputContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 2;
}

#nameInput {
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    width: 200px;
}

#nameSubmit {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

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

#gameOverContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    z-index: 3;
}

#playAgainButton {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

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

#userList {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    text-align: center;
}

#connectionStatus {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    z-index: 1000;
    transition: opacity 0.5s;
}

/* Стили для кнопки "Новая игра" */
#newGameButton {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 1100;
    display: none;
    /* Изначально скрыта */
}

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