/*This css codes are modified based on the listing reference*/
/*Ref: http://codepen.io/gavincox/pen/AKkch*/
/*Ref: http://designshack.net/articles/css/css-card-tricks/*/

/* Grid where holds the poker cards :) */
.grid, .grid-sm {
  width: 100%;
  min-height: 86px;
  border: 7px solid #030;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  border-radius: 15px;
  padding-left: 15px;
  padding-right: 40px;
  position: relative;
  margin: 2% auto;
  zoom: 1;
}

.grid-sm {
  min-height: 64.5px;
}

.grid:before, .grid:after, .grid-sm:before, .grid-sm:after {
  content: "";
  display: table;
}

.grid:after, .grid-sm:after {
  clear: both;
}

.grid > li, .grid-sm > li {
  /*0.70*/
  width: 39.9px;
  height: 61.6px;
  margin: 10px -23px 10px 0px;
  top: 0px;
  left: 0px;
  position: relative;
  float: left;
  list-style: none;
  -moz-border-radius: 7px;
  -webkit-border-radius: 7px;
  border-radius: 7px;
  -moz-box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.5), 0 0 3px #966432;
  -webkit-box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.5), 0 0 3px #966432;
  box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.5), 0 0 3px #966432;
  -moz-transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -moz-backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-perspective: 1000;
  -webkit-perspective: 1000;
  perspective: 1000;
  -moz-transform: translateZ(0deg);
  -webkit-transform: translateZ(0deg);
  transform: translateZ(0deg);
  background-color: #fff;
  background-image: url("http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/whitey.png");
}

.grid-sm > li {
  /*0.70 x 0.75*/
  width: 29.925px;
  height: 46.2px;
  margin: 10px -20px 10px 0px;
}

/*.grid > li.selected {*/
  /*-moz-box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.3), 0 0 50px rgba(255, 255, 200, 0.8);*/
  /*-webkit-box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.3), 0 0 50px rgba(255, 255, 200, 0.8);*/
  /*box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.3), 0 0 50px rgba(255, 255, 200, 0.8);*/
/*}*/

/*.grid > li:hover {*/
  /*cursor: pointer;*/
  /*-moz-box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.3), 0 0 50px rgba(255, 255, 200, 0.8);*/
  /*-webkit-box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.3), 0 0 50px rgba(255, 255, 200, 0.8);*/
  /*box-shadow: inset 0 0 80px rgba(150, 100, 50, 0.3), 0 0 50px rgba(255, 255, 200, 0.8);*/
/*}*/

.grid > li[data-value*='♣'][data-value], .grid > li[data-value*='♠'][data-value],
.grid-sm > li[data-value*='♣'][data-value], .grid-sm > li[data-value*='♠'][data-value]{
  color: #222;
}

.grid > li[data-value*='♦'][data-value], .grid > li[data-value*='♥'][data-value],
.grid-sm > li[data-value*='♦'][data-value], .grid-sm > li[data-value*='♥'][data-value]{
  color: #a00;
}

.grid > li[data-value]:before, .grid > LI[data-value]:after,
.grid-sm > li[data-value]:before, .grid-sm > LI[data-value]:after {
  text-align: center;
  content: attr(data-value);
  width: 1em;
  position: absolute;
  font-size: 1.8em;
  line-height: 0.75em;
}

.grid > li[data-value]:after, .grid-sm > li[data-value]:after {
  right: 0;
  bottom: 4%;
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.grid > li[data-value=' '][data-value] > p, .grid-sm > li[data-value=' '][data-value] > p {
  width: 90%;
  height: 92%;
  margin: 5% auto 0;
  background-image: url("http://www.titanui.com/wp-content/uploads/2013/01/Violet-Classical-Pattern-Background-1.jpg");
  background-position: center center;
  -moz-border-radius: 7px;
  -webkit-border-radius: 7px;
  border-radius: 7px;
}