body {
    margin: 0;
    padding: 0;
    background: black;
    overflow: hidden;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: Arial, sans-serif;
}

.central-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    text-align: center;
}

.central-btn:hover {
    background-color: #333;
}

#singlePlayerStartScreen {
    gap: 20px;
}

#singlePlayerStartScreen h2 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

#initialRankingList {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    max-width: 300px;
}

#initialRankingList li {
    margin: 5px 0;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    margin: 10px 0;
}

button:hover {
    background-color: #333;
}

#startSinglePlayerGameBtn, #backToStartScreenSinglePlayerBtn,
#startMultiplayerGameBtn, #backToStartScreenMultiplayerBtn {
    display: block;
}

#pongCanvas {
    background: black;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

#leftLives, #rightLives {
    position: absolute;
    top: 10px;
    display: flex;
    align-items: center;
}

#leftLives {
    left: 10px;
}

#rightLives {
    right: 10px;
}

.life {
    width: 20px;
    height: 20px;
    background: red;
    display: inline-block;
    margin-right: 5px;
}

#scoreGoalsContainer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 18px;
    z-index: 10;
}

#scoreDisplay, #goalsDisplay {
    margin: 5px 0;
}

#leftPower, #rightPower {
    position: absolute;
    top: 40px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

#leftPower {
    left: 10px;
}

#rightPower {
    right: 10px;
}

.power-display.power-shield {
    color: #0000FF; /* Azul para escudo */
}

.power-display.power-lightning {
    color: #800080; /* Roxo para raio */
}

.power-display.power-reverse {
    color: #FF0000; /* Vermelho para inversão */
}

.power-display.power-grow {
    color: #00FF00; /* Verde para crescer */
}

.power-display.power-growBall {
    color: #FFA500; /* Laranja para aumentar bola */
}

@media (max-width: 600px) {
    button {
        width: 150px;
        font-size: 16px;
    }
    .central-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}
