body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #121212;
    color: #ffffff;
    transition: background 0.5s; /* Transição suave para o degradê */
}

body.game-over {
    background: linear-gradient(135deg, #ff5722, #ff9800); /* Degradê no fundo */
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #1e88e5;
    color: white;
    transition: background-color 0.3s;
    margin: 10px;
}

button:hover {
    background-color: #1565c0;
}

.tic-tac-toe-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin-bottom: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    cursor: pointer;
}

.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: none; /* Inicialmente escondido */
    z-index: 1000;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #ff5722;
    margin-top: 5px;
    transition: width 3s linear; /* Animação de 3 segundos */
}

footer {
    width: 100%;
    text-align: center;
    background-color: #121212;
    color: #ccc;
    padding: 5px 0;
    margin-top: auto;
}

footer a {
    color: #ff5722;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
} 
footer a {
    color: #ff5722;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
} 

#gameOverMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    display: none; /* Inicialmente escondido */
    z-index: 1000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente para contraste */
}

#restartButton {
    position: absolute;
    top: calc(50% + 60px); /* Aumenta o espaço vertical abaixo da mensagem */
    left: 49%; /* Move o botão para o centro */
    transform: translate(-50%, 0);
    display: none; /* Inicialmente escondido */
    z-index: 1000;
    padding: 10px 20px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restartButton:hover {
    background-color: #1565c0;
}

/* Estilos específicos para o jogo da cobrinha */
#gameCanvas {
    background-color: #181825; /* Cor de fundo do canvas do jogo da cobrinha */
    border: 2px solid #ffffff; /* Borda do canvas */
}

#score {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff; /* Cor do texto do score */
    margin-top: 10px; /* Espaço acima do score */
}