/* style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    text-align: center; 
    background-color: #222; 
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
}
h1 {
    margin-top: 15px;
    color: #ff5500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.game-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 20px auto;
}
canvas { 
    background: #444; 
    display: block; 
    margin-right: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
button { 
    padding: 10px 20px; 
    font-size: 16px; 
    margin-top: 10px; 
    cursor: pointer; 
    background-color: #ff5500;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #ff7700;
    transform: scale(1.05);
}
#lyrics { 
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-line; 
    font-size: 16px; 
    text-align: left; 
    width: 300px; 
    padding: 15px;
    border-radius: 5px;
    background-color: #333;
    border: 1px solid #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

/* Estilo para palavras reveladas e removidas */
#lyrics span {
    transition: visibility 0.3s, color 0.3s;
    padding: 1px 2px;
    border-radius: 3px;
}

#lyrics span[style="visibility: visible;"] {
    color: #ffcc00; /* Cor destacada para palavras recém-reveladas */
    animation: wordReveal 1s ease-out;
}

@keyframes wordReveal {
    0% { color: #ff5500; background-color: rgba(255, 85, 0, 0.2); }
    100% { color: #ffcc00; background-color: transparent; }
}

/* Barra de rolagem personalizada */
#lyrics::-webkit-scrollbar {
    width: 8px;
}

#lyrics::-webkit-scrollbar-track {
    background: #222;
    border-radius: 10px;
}

#lyrics::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

#lyrics::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Estilos responsivos */
@media (max-width: 700px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    canvas {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    #lyrics {
        width: 90%;
        max-width: 300px;
    }
}