/* Fix box-sizing everywhere for consistent padding, margins, etc. */
html
{
    box-sizing: border-box;
}

*, *:before, *:after
{
    box-sizing: inherit;
}

/* Speed up touch delay on mobile. */
html
{
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

/* Clear out overlapping margin-top. Should be done on more elements than just p. Fixes extra bouncing whitespace in slideToggle animations. */
p
{
    margin-top: 0;
    margin-bottom: 1em;
}


body
{
    font-family: sans-serif;
    text-align: center;
}

main
{
}

label
{
    display: block;
    text-align: left;
    font-weight: bold;
    margin: 0 1em 0.5em 1em;
}

footer
{
    margin-top: 50px;
    padding: 0px 1em;
    color: #ccc;
    font-size: 0.9em;
}

a
{
    color: #000;
}

a:hover
{
    text-decoration: none;
}

.debug-block
{
    display: none;
    margin: 3em 1em;
    padding: 1em;
    background: #111;
    color: #999;
    border-radius: 5px;
    text-align: left;
/*
    text-shadow: 0px 1px 1px #000;
*/
}

.debug-block a
{
    color: #999;
}

table.bingo-card
{
    margin: 0 auto 1em auto;
    width: 100%;
    max-width: 900px;
    background: #ddd;
    border-collapse: separate;
    border-spacing: 3px;
    padding: 15px 30px 30px 30px;
    border-radius: 30px;
}

table.bingo-card td,
table.bingo-card th
{
    padding: 20px 10px;
    background: #fff;
    height: 100px; /* Do instead of min-height for tables. */
}

table.bingo-card th
{
    font-size: 500%;
    background: none;
    width: 20%;
}

table.bingo-card .free-space
{
    font-weight: bold;
    font-size: 200%;
}

@media only screen and (max-width : 900px)
{
    main
    {
        padding: 0 3px;
    }

    table.bingo-card
    {
        padding: 10px 4px 30px 4px;
    }

    table.bingo-card td,
    table.bingo-card th
    {
        padding: 14px 5px;
        height: 80px; /* Do instead of min-height for tables. */
    }

    table.bingo-card th
    {
        font-size: calc(40px + (80 - 40) * ((100vw - 375px) / (900 - 375)));
    }

    table.bingo-card td
    {
        font-size: calc(10px + (16 - 10) * ((100vw - 375px) / (900 - 375)));
    }

    table.bingo-card .free-space
    {
        font-size: calc(18px + (32 - 18) * ((100vw - 375px) / (900 - 375)));
    }

}

a.button
{
    padding: 15px 25px;
    border: 3px solid black;
    border-radius: 30px;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: #000;
    transition: background 0.3s, color 0.3s;
/*    width: 140px; */
    margin: 0 0 5px 0;
}

a.button:hover,
a.button.active
{
    color: #000;
    background: #fff;
}

/*
a.button.active:hover
{
    color: #fff;
    background: #000;
}
*/