:root {
    --cinza-fundo: #1a1a1a;
    --cinza-tabuleiro: #2a2a2a;
    --cinza-borda: #444;
    --cobra-cabeca: #4caf50;
    --cobra-corpo: #388e3c;
    --roxo-comida: #9b30ff;
    --cor-texto: #e0e0e0;
}

*{
    margin: 0;
    padding: 0;
}

.logo-png{
    position: fixed;
    top: 50px;
    left: 50px;
    z-index: 1000;
}

.logo-png img{
    width: 80px;
    height: 80px;
}

.water-mark {
    display: flex;
    position: fixed;
    bottom: 10px;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    gap: .5rem;
}

.water-mark strong{
    color: #a259ff;
}

.water-mark img{
    width: 20px;
    height: 20px;
    opacity: 0.5;
    margin-bottom: -0.2rem;
}

body {
    margin: 0;
    background: var(--cinza-fundo);
    color: var(--cor-texto);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: sans-serif;
    user-select: none;
}
  
canvas {
    background: var(--cinza-tabuleiro);
    border: 2px solid var(--cinza-borda);
}
  
#score {
    position: absolute;
    top: 20px;
    font-size: 24px;
}

/* Adicionando estilo aos botões */
.controls {
    position: absolute;
    bottom: 70px;
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #444;
    color: var(--cor-texto);
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

.countdown{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: var(--cor-texto);
    font-weight: bold;
    display: none;
    z-index: 1001;
    animation: countdownScale 1s ease-in-out;
}

@keyframes countdownScale {
    0% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

.game-over-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    font-weight: bold;
    color: red;
    display: none;
    z-index: 1002;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
