.snake-game-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #282c34;
    color: #fff;
    border: 1px solid #555;
    width: 450px; /* Increase width for extra space */
    height: 650px; /* Increase height for extra space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
}

.snake-game-header {
    background-color: #3a3f4b;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 18px;
}

.snake-game-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.game-info {
    margin-top: 15px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the content horizontally */
    justify-content: center; /* Centers the content vertically */
}

#restart-button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #61dafb;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

#restart-button:hover {
    background-color: #21a1f1;
}

#game-timer {
    margin: 10px 0;
    font-size: 18px;
    color: #00ff00;
}

#game-over-message {
    margin: 10px 0;
    font-size: 20px;
    color: red;
}

#restart-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #61dafb;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

#restart-button:hover {
    background-color: #21a1f1;
}

canvas {
    border: 2px solid #fff;
    background: black;
}
