* {
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Press Start 2P', cursive;
  font-size: 16px; /* Recommended for clarity */
}


header {
    text-align: center;
    padding: 10px;
}

footer {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

section {
    align-items: center;
}

.lives {
  display: flex;
  gap: 10px;
  font-size: 24px;
}

#audio-toggle {
    cursor: pointer;
    display: inline-block;        /* importante para transform */
    transition: transform 0.2s ease, color 0.2s ease; /* animação suave */
}

#audio-toggle:hover {
    transform: scale(1.2) translateX(10%);       /* aumenta 20% */
    color: red;                   /* opcional: muda cor */
}

.grid {
    background-color: white;
    width: 1000px;
    height: 360px;
    position: relative;
    border: solid 1px black;
    margin-top: 100px
}

.user {
    position: absolute;
    width: 100px;
    height: 20px;
    background-color: purple;
}

.block{
    position: absolute;
    width: 100px;
    height: 20px;
    
}

.ball {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    border: solid 2px black;
    background-color: white;
}

.container {
    display: flex;
    justify-content: center;
    margin: 16px;
}

.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 1000;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    max-width: 360px;
}

.overlay-content h2 {
    margin-bottom: 16px;
    font-size: 28px;
}

.overlay-content p {
    margin-bottom: 24px;
    line-height: 1.4;
}

#start-button, #high-scores-button, #clear-high-scores {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    padding: 12px 20px;
    cursor: pointer;
    border: 2px solid white;
    background: transparent;
    color: white;
    transition: background 0.2s ease, color 0.2s ease;
}

#start-button:hover, #high-scores-button:hover, #clear-high-scores:hover {
    background: white;
    color: black;
}

.hidden {
    display: none !important;
}

.overlay table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 12px;
}

.overlay table td {
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}