/* The game fills the browser window, so no page margin and no scrollbars. */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background: ivory;
}

#game canvas {
    display: block; /* kills the inline-element gap under the canvas */
    position: fixed;
    top: 0;
    left: 0;
}

/* Sits on top of the canvas, bottom centre, clear of the score in the corner. */
#overlay {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

#overlay a {
    color: #2f65ad;
}

#overlay button {
    font-family: inherit;
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid #bbb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

#overlay button:hover {
    background: #f0f0f0;
}

kbd {
    padding: 1px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f5f5f5;
    font-family: monospace;
}

/* On a narrow phone the row would overflow, so let it wrap. */
@media (max-width: 520px) {
    #overlay {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90vw;
        white-space: normal;
    }
}
