/* ... (seus estilos existentes) ... */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #222;
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    overflow: hidden;
}

.game-container {
    position: relative;
    display: inline-block;
}

#gameCanvas {
    border: 2px solid #fff;
    display: block;
    background-color: #000;
}

/* Estilos para as telas de UI */
#uiOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.screen {
    display: none;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen h1, .screen h2 {
    margin-top: 0;
    color: #ffff00;
}

.screen button {
    padding: 10px 20px;
    font-size: 1.2em;
    margin-top: 20px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

#levelTitle {
    font-size: 2.5em;
}

#finalScore {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Estilo para o botão de controle de música */
.game-control-button {
    position: absolute;
    top: 10px; /* Distância do topo */
    right: 10px; /* Distância da direita */
    font-size: 24px; /* Tamanho do caractere UNICODE */
    cursor: pointer;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 20; /* Garante que fique acima do canvas e das telas de overlay */
    transition: background-color 0.3s ease;
}

.game-control-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Classe para indicar que a música está tocando */
.music-playing {
    color: #ffff00; /* Amarelo quando tocando */
}