html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary, time, mark, audio, video {
 margin: 0; padding: 0; border: 0;
 font-size: 100%; font: inherit;
 vertical-align: baseline;
 -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, 
hgroup, menu, nav, section { display: block; }
body {
    color: #040404;
    font: normal 16px/20px 'Coming Soon', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #e7e7e2 url('bknd.png') repeat;
    overflow: hidden;
}

.center { text-align: center; }
.white { background: #FFF; }

#stage {
    position: relative;
    width: 320px; height: 430px;
    margin: 0 auto;
    background: #e7e7e2 url('bknd.png') repeat;
    overflow: hidden;
}

.element {
    display: block;
    padding: 14px 20px 10px;
    
    background: #FCFCF7;
    color: #040404;
    text-decoration: none;
    
    -webkit-border-radius: 3px; 
    -moz-border-radius: 3px;
    border-radius: 3px;
    
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.element.clickable::selection { background: transparent; }
.element.clickable::-moz-selection { background: transparent; }
.element.clickable:active { background: #CCC; }

.element.clickable.red { background: #D88 !important; text-shadow: 0 0 3px #FFF; }
.element.clickable.black { background: #999 !important; text-shadow: 0 0 3px #FFF; }
.element.clickable:active { opacity: 0.7; }


.card {
    position: absolute;
    -webkit-border-radius: 5px; 
    -moz-border-radius: 5px;
    border-radius: 5px;
    
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.4);
    box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.card.red { color: #D00; }
.card.black { color: #111; }
.card > .suit { font: normal 32px/32px sans-serif; }
.card > .suit.top {
    position: absolute;
    top: 2px; left: 8px;
}
.card > .suit.bottom {
    position: absolute;
    bottom: 2px; right: 8px;
}
.card > .number {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    font-size: 64px;
    line-height: 145px;
    text-align: center;
}

/* Home Screen */
#title {
    position: absolute;
    top: -160px; left: 70px;
    width: 180px;
}
#start_5 {
    position: absolute;
    bottom: 148px; right: -183px;
    width: 180px;
}
#start_10 {
    position: absolute;
    bottom: 84px; right: -183px;
    width: 180px;
}
#about {
    position: absolute;
    bottom: 20px; right: -183px;
    width: 180px;
}

/* Game Screen */
#status {
    position: absolute;
    top: -160px; left: 10px;
    width: 300px;
}
#status > span { font-weight: bold; }
#last_card {
    position: absolute;
    top: 138px; left: -103px;
    width: 100px; height: 140px;
    background: #FFF;
}
#next_card {
    position: absolute;
    top: 138px; right: -103px;
    width: 100px; height: 140px;
    background: #FFF;
}
#low {
    position: absolute;
    bottom: 84px; left: -96px;
    width: 93.33333333px;
}
#high {
    position: absolute;
    bottom: 84px; right: -96px;
    width: 93.33333333px;
}
#same {
    position: absolute;
    bottom: -45px; left: 110px;
    width: 100px;
}
#red {
    position: absolute;
    bottom: 20px; left: -153px;
    width: 150px;
}
#black{
    position: absolute;
    bottom: 20px; right: -153px;
    width: 150px;
}
#history {
    position: absolute;
    top: 66px; right: 0px;
    height: 45px; width: 320px;
}
.hcard {
    float: left;
    margin: 2px;
    width: 28px; height: 40px;
    
    background: #FFF;
    
    -webkit-border-radius: 3px; 
    -moz-border-radius: 3px;
    border-radius: 3px;
    
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.4);
    box-shadow: 0 1px 2px rgba(0,0,0,.4);
    
    text-align: center;
}
.hcard.red { color: #D00; }
.hcard.black { color: #111; }

#winner {
    position: absolute;
    top: 0; right: -323px;
    width: 320px; height: 430px;
    background: rgba(0, 0, 0, 0.35);
}
#winner_message {
    position: absolute;
    top: 100px; left: 0;
    width: 100%; height: 200px;
    padding: 20px 0;
    background: #FFF;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.4);
    box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
#winner_message > h2 {
    text-align: center;
    font-size: 28px;
    line-height: 38px;
}
#winner_message > p {
    text-align: center;
    margin: 20px 0;
}
#back_home {
    margin: 20px auto;
    width: 200px;
}

.dummy_card {
    position: absolute;
    top: 70px;
    width: 100px; height: 140px;
    background: #FFF;
}
.card.left { left: -103px; }
.card.right { right: -103px; }