/* Shared styles for the demo pages.  The canvas keeps its own resolution
   (its width and height attributes) and is shown as wide as the page
   allows, up to that size, keeping its shape. */

body
{
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 16px;
    font-family: sans-serif;
    line-height: 1.45;
    color: #222;
    background: #f4f4f6;
}

canvas
{
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    background: #000;
}

kbd
{
    padding: 1px 5px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background: #fff;
    font-size: 0.9em;
}

.controls
{
    padding: 8px 12px;
    background: #e6e8ee;
}
