/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.game-table {
    width: 600px;
    height: 600px;
    margin: 0 auto;
    padding: 10px;

    position: relative;
}
.game-settings {
    width: 600px;
    margin: 50px auto 50px;
}
.game-settings label {
    float: left;
    width: 200px;
}
.game-settings input {
    display: block;
    margin-left: 200px;
    margin-bottom: 10px;
}
.game-settings .controls {}
.game-settings .controls button {
    padding: 4px 10px;
}
.game-area {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-radius: 50% 50% 50% 50%;
    box-shadow: 5px 5px 10px #303030 inset;
    background-color: #134B00;
}
.game-table-border {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-radius: 50% 50% 50% 50%;
    box-shadow: -1px -1px 5px #F7F9F7 inset;
    background-color: #045203;
}
.game-counter {
    background: none repeat scroll 0 0 #004704;
    border-radius: 50% 50% 50% 50%;
    box-shadow: 1px 1px 3px #093300 inset;
    color: #BABABA;
    height: 34px;
    line-height: 34px;
    position: absolute;
    text-align: center;
    width: 34px;
}
.card {
    background: url("../img/1000px-Svg-cards-2.0.svg.png") 0 0 transparent no-repeat;
    width: 77px;
    height: 112px;
    position: absolute;
    z-index: 100;
}
.card.frozen {
    /*-webkit-transform:rotate(50deg);
    -moz-transform:rotate(50deg);
    -o-transform:rotate(50deg);
    -ms-transform:rotate(50deg);
    transform:rotate(50deg);*/

    opacity: 0.7;
}
.card.sA {
    background-position: 0px 0px
}
.card.s2 {
    background-position: -77px 0px
}
.card.s3 {
    background-position: -154px 0px
}
.card.s4 {
    background-position: -231px 0px
}
.card.s5 {
    background-position: -308px 0px
}
.card.s6 {
    background-position: -385px 0px
}
.card.s7 {
    background-position: -462px 0px
}
.card.s8 {
    background-position: -539px 0px
}
.card.s9 {
    background-position: -616px 0px
}
.card.s10 {
    background-position: -693px 0px
}
.card.sJ {
    background-position: -770px 0px
}
.card.sQ {
    background-position: -847px 0px
}
.card.sK {
    background-position: -924px 0px
}
.card.cA {
    background-position: 1px -112px
}
.card.c2 {
    background-position: -76px -112px
}
.card.c3 {
    background-position: -153px -112px
}
.card.c4 {
    background-position: -230px -112px
}
.card.c5 {
    background-position: -307px -112px
}
.card.c6 {
    background-position: -384px -112px
}
.card.c7 {
    background-position: -461px -112px
}
.card.c8 {
    background-position: -538px -112px
}
.card.c9 {
    background-position: -615px -112px
}
.card.c10 {
    background-position: -692px -112px
}
.card.cJ {
    background-position: -769px -112px
}
.card.cQ {
    background-position: -846px -112px
}
.card.cK {
    background-position: -923px -112px
}
.card.hA {
    background-position: 1px -224px
}
.card.h2 {
    background-position: -76px -224px
}
.card.h3 {
    background-position: -153px -224px
}
.card.h4 {
    background-position: -230px -224px
}
.card.h5 {
    background-position: -307px -224px
}
.card.h6 {
    background-position: -384px -224px
}
.card.h7 {
    background-position: -461px -224px
}
.card.h8 {
    background-position: -538px -224px
}
.card.h9 {
    background-position: -615px -224px
}
.card.h10 {
    background-position: -692px -224px
}
.card.hJ {
    background-position: -769px -224px
}
.card.hQ {
    background-position: -846px -224px
}
.card.hK {
    background-position: -923px -224px
}
.card.dA {
    background-position: 1px -336px
}
.card.d2 {
    background-position: -76px -336px
}
.card.d3 {
    background-position: -153px -336px
}
.card.d4 {
    background-position: -230px -336px
}
.card.d5 {
    background-position: -307px -336px
}
.card.d6 {
    background-position: -384px -336px
}
.card.d7 {
    background-position: -461px -336px
}
.card.d8 {
    background-position: -538px -336px
}
.card.d9 {
    background-position: -615px -336px
}
.card.d10 {
    background-position: -692px -336px
}
.card.dJ {
    background-position: -769px -336px
}
.card.dQ {
    background-position: -846px -336px
}
.card.dK {
    background-position: -923px -336px
}
.card.shirt {
    background-position: -153px -448px
}












/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
