/* Body */
/*body {
  background: #ebeff2;
  color: #666666;
  font-family: "RobotoDraft", "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}*/

/* Pen Title */
.pen-title {
  padding: 50px 0;
  text-align: center;
  letter-spacing: 2px;
}
.pen-title h1 {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 300;
}
.pen-title h1 span {
  display: block;
  margin: 0 0 10px;
  color: #d64c4c;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}
.pen-title span {
  font-size: 12px;
}
.pen-title span .fa {
  color: #d64c4c;
}
.pen-title span a {
  color: #d64c4c;
  font-weight: 600;
  text-decoration: none;
}

/* Rerun Button */
.rerun {
  margin: 0 0 30px;
  text-align: center;
}
.rerun a {
  cursor: pointer;
  display: inline-block;
  background: #d64c4c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  border-radius: 3px;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}
.rerun a:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

/* Scroll To Bottom */
#scrollToBottom, #codepen, #portfolio {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #d64c4c;
  width: 56px;
  height: 56px;
  border-radius: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  color: #ffffff;
  text-align: center;
}
#scrollToBottom:hover, #codepen:hover, #portfolio:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
#scrollToBottom i, #codepen i, #portfolio i {
  line-height: 56px;
}

/* CodePen */
#codepen {
  bottom: 96px;
  right: 36px;
  background: #363636;
  width: 44px;
  height: 44px;
  -webkit-animation: buttonFadeInUp 1s ease;
          animation: buttonFadeInUp 1s ease;
}
#codepen i {
  line-height: 44px;
}

/* Portfolio */
#portfolio {
  bottom: 150px;
  right: 43px;
  background: #d64c4c;
  width: 30px;
  height: 30px;
  -webkit-animation: buttonFadeInUp 1s ease;
          animation: buttonFadeInUp 1s ease;
}
#portfolio i {
  line-height: 30px;
}

/* Tip */
#tip {
  max-width: 600px;
  border-radius: 3px;
  margin: 0 auto 100px;
  line-height: 1.7em;
  text-align: center;
}
#tip h1 {
  margin: 0 0 10px;
  color: #333333;
  font-size: 24px;
  font-weight: 300;
}
#tip p {
  margin: 0 0 10px;
  color: #666666;
}
#tip p b {
  font-weight: 600;
}
#tip code {
  display: block;
  background: #232e34;
  margin: 0 0 100px;
  padding: 10px 20px;
  color: #CDD3DE;
  letter-spacing: 2px;
  text-align: left;
}
#tip code h1 {
  dsplay: block;
  background: #263238;
  margin: -10px -20px 20px;
  padding: 10px 20px;
  color: #CDD3DE;
  font-size: 18px;
}
#tip code h1:before {
  content: '\f121';
  display: inline-block;
  margin: 0 10px 0 0;
  color: #546E7A;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
}
#tip code p {
  color: inherit;
}
#tip code p:nth-child(2) {
  color: #C3E88D;
}
#tip code p span {
  color: #C38FE5;
}
#tip code p span:nth-child(2), #tip code p span:nth-child(3), #tip code p span:nth-child(4) {
  color: #FF5370;
  /* color: #C3E88D; */
}

/* Card */
.card {
  z-index: 1;
  position: relative;
  background: #ffffff;
      /* width: 250px; */
    width: 22%;
    height: 430px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  /*overflow-x: hidden;
  overflow-y: hidden;*/
      display: inline-block;
    margin: 10px !important;
}
.card .panel {
  position: absolute;
  width: 100%;
  /*background: #363636;*/
  background: rgb(103, 56, 119);
  padding: 30px;
  box-sizing: border-box;
  color: #ffffff;
  margin-bottom: 0px; 
}
.card .panel:last-child {
  bottom: 0;
}
.card .panel .rank {
  display: inline-block;
  font-size: 42px;
  font-weight: 100;
}
.card .panel .suit {
  display: inline-block;
  padding: 6px 0 0 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  float: right;
}
.card .panel .icon {
  background: #ffffff;
  width: 47px;
  height: 47px;
  margin: 15px 0 -54px -10px;
  padding: 13px;
  border-radius: 100%;
  line-height: 47px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.card .panel .icon svg {
  display: block;
  height: 100%;
  margin: 0 auto;
}
.card .panel.bottom {
/*  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);*/
}
.card .content {
  display: table;
  width: 100%;
  height: 480px;
  padding: 110px 20px;
  box-sizing: border-box;
  text-align: center;
}
.card .content div {
  display: table-cell;
  vertical-align: middle;
}
.card .content svg {
  margin: 10px;
}
.card .content svg:nth-child(6), .card .content svg:nth-child(7), .card .content svg:nth-child(8), .card .content svg:nth-child(9), .card .content svg:nth-child(10) {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.card .content.one svg {
  -webkit-transform: scale(2);
          transform: scale(2);
}
.card .content.two svg:nth-child(2), .card .content.three svg:nth-child(2) {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.card .content.four {
  padding: 0 100px;
}
.card .content.four svg:nth-child(3), .card .content.four svg:nth-child(4) {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.card .content.five, .card .content.six {
  padding: 0 70px;
}
.card .content.five svg:nth-child(4), .card .content.five svg:nth-child(5), .card .content.six svg:nth-child(4), .card .content.six svg:nth-child(5) {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.card .content.seven, .card .content.eight {
  padding: 0 60px;
}
.card .content.seven svg:nth-child(5), .card .content.eight svg:nth-child(5) {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.card .content.jack, .card .content.queen, .card .content.king {
  padding: 0 100px;
}
.card .content.jack svg, .card .content.queen svg, .card .content.king svg {
  margin: 0;
}
.card .content.jack svg:nth-child(3), .card .content.queen svg:nth-child(3), .card .content.king svg:nth-child(3) {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.card .content.jack span, .card .content.queen span, .card .content.king span {
  display: block;
  width: 100%;
  margin: 0 0 3px;
  text-align: center;
}
.card .content.jack span:before, .card .content.jack span:after, .card .content.queen span:before, .card .content.queen span:after, .card .content.king span:before, .card .content.king span:after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  margin: 0 3px;
}
.card .content.jack span.red:before, .card .content.jack span.red:after, .card .content.queen span.red:before, .card .content.queen span.red:after, .card .content.king span.red:before, .card .content.king span.red:after {
  background: #ea474c;
}
.card .content.jack span.black:before, .card .content.jack span.black:after, .card .content.queen span.black:before, .card .content.queen span.black:after, .card .content.king span.black:before, .card .content.king span.black:after {
  background: #35424a;
}

/* Animation Level: 1 */
.card {
  position: relative;
  margin: 0 auto 100px;
  -webkit-animation: card 1s ease;
          animation: card 1s ease;
}
.card .panel {
  -webkit-animation: slideInTop 3s ease;
          animation: slideInTop 3s ease;
}
.card .panel:last-child {
  -webkit-animation: slideInBottom 3s ease;
          animation: slideInBottom 3s ease;
}
.card .panel .rank {
  -webkit-animation: fadeInBottom 4s ease;
          animation: fadeInBottom 4s ease;
}
.card .panel .suit {
  -webkit-animation: fadeInRight 4s ease;
          animation: fadeInRight 4s ease;
}
.card .panel .icon {
  -webkit-animation: scaleIn 3s ease;
          animation: scaleIn 3s ease;
}
.card .content {
  -webkit-animation: spinIn 3s ease;
          animation: spinIn 3s ease;
}
.card .ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #f7f7f7;
  width: 30px;
  height: 30px;
  border-radius: 100%;
  margin: -15px 0 0 -15px;
  -webkit-animation: ripple 1.5s ease;
          animation: ripple 1.5s ease;
  opacity: 0;
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}
.card .ripple:nth-child(2) {
  background: #ffffff;
  -webkit-animation-delay: 1.3s;
          animation-delay: 1.3s;
}


@media (max-width: 1024px) {
  .card {
    /*width: 30%;
    margin: 14px !important;*/
    width: 30%;
    margin: 1% !important;
  }
}

@media (max-width: 768px) {
  .card {
    width: 47%;
    margin: 1% !important;
  }
}


@media (max-width: 420px) {
  .card {
    width: 100%;
    margin: 5px !important;
  }
}

/* Keyframes */
@-webkit-keyframes card {
  0% {
    -webkit-transform: translateY(200%) rotate(90deg);
            transform: translateY(200%) rotate(90deg);
  }
}
@keyframes card {
  0% {
    -webkit-transform: translateY(200%) rotate(90deg);
            transform: translateY(200%) rotate(90deg);
  }
}
@-webkit-keyframes ripple {
  0% {
    display: block;
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(50);
            transform: scale(50);
    opacity: 0;
  }
}
@keyframes ripple {
  0% {
    display: block;
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(50);
            transform: scale(50);
    opacity: 0;
  }
}
@-webkit-keyframes spinIn {
  0% {
    opacity: 0;
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
  }
  66% {
    opacity: 0;
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
  }
  90% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
@keyframes spinIn {
  0% {
    opacity: 0;
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
  }
  66% {
    opacity: 0;
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
  }
  90% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
@-webkit-keyframes scaleIn {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  75% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
}
@keyframes scaleIn {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  75% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
}
@-webkit-keyframes slideInTop {
  0% {
    top: -200px;
    opacity: 0;
  }
  66% {
    top: -200px;
    opacity: 0;
  }
  100% {
    top: 0;
  }
}
@keyframes slideInTop {
  0% {
    top: -200px;
    opacity: 0;
  }
  66% {
    top: -200px;
    opacity: 0;
  }
  100% {
    top: 0;
  }
}
@-webkit-keyframes slideInBottom {
  0% {
    bottom: -200px;
    opacity: 0;
  }
  66% {
    bottom: -200px;
    opacity: 0;
  }
  100% {
    bottom: 0;
  }
}
@keyframes slideInBottom {
  0% {
    bottom: -200px;
    opacity: 0;
  }
  66% {
    bottom: -200px;
    opacity: 0;
  }
  100% {
    bottom: 0;
  }
}
@-webkit-keyframes fadeInBottom {
  0% {
    -webkit-transform: translateY(120%);
            transform: translateY(120%);
    opacity: 0;
  }
  60% {
    -webkit-transform: translateY(30%);
            transform: translateY(30%);
    opacity: 0;
  }
}
@keyframes fadeInBottom {
  0% {
    -webkit-transform: translateY(120%);
            transform: translateY(120%);
    opacity: 0;
  }
  60% {
    -webkit-transform: translateY(30%);
            transform: translateY(30%);
    opacity: 0;
  }
}
@-webkit-keyframes fadeInRight {
  0% {
    -webkit-transform: translateX(120%);
            transform: translateX(120%);
    opacity: 0;
  }
  60% {
    -webkit-transform: translateX(30%);
            transform: translateX(30%);
    opacity: 0;
  }
}
@keyframes fadeInRight {
  0% {
    -webkit-transform: translateX(120%);
            transform: translateX(120%);
    opacity: 0;
  }
  60% {
    -webkit-transform: translateX(30%);
            transform: translateX(30%);
    opacity: 0;
  }
}
@-webkit-keyframes buttonFadeInUp {
  0% {
    bottom: 30px;
    opacity: 0;
  }
}
@keyframes buttonFadeInUp {
  0% {
    bottom: 30px;
    opacity: 0;
  }
}
