@font-face {
      font-family: "JunegullRegular";
      src: url("JunegullRegular.eot");
      src: url("JunegullRegular.eot?#iefix")format("embedded-opentype"),
      url("JunegullRegular.woff") format("woff"),
      url("JunegullRegular.ttf") format("truetype");
      font-style: normal;
      font-weight: normal;
  }
body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100vh;
  background-color: #1A1A1A;
  font-family:'JunegullRegular', normal;
  background-image: url(images/repeat_bg.jpg);
    background-size: auto;
  font-size: 2.2rem;
}

.info {
  position: relative;
  width: 100%;
  max-width: 950px;
}
body .button img {
  width: 200px;
  position: absolute;
  right: 10px;
  bottom: 12px;
}
.btn-sound {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(images/icon-sound-on.svg);
  background-size: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 999;
  -webkit-animation: pulse 1s linear infinite;
          animation: pulse 1s linear infinite;
}
.btn-sound:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
}
.btn-sound:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10%;
  margin: auto;
  width: 120%;
  height: 1px;
  background-color: white;
  -webkit-box-shadow: 0 0 0 2px black;
          box-shadow: 0 0 0 2px black;
  -webkit-transform: rotate(35deg);
          transform: rotate(35deg);
}
@media (min-width: 450px) {
  .btn-sound {
    position: absolute;
    top: 20px;
    right: 10px;
    bottom: auto;
  }
}
.btn-sound.is-playing {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/225363/icon-sound-on.svg);
  -webkit-animation: shake 10s 0.6s 3;
          animation: shake 10s 0.6s 3;
}
.btn-sound.is-playing:before {
  display: none;
}

.score {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: flex-end;
  padding: 12px;
  font-size: 1.2rem;
  text-align: center;
  text-transform: normal;
  color: white;
  background-color: rgba(26, 26, 26, 0.8);
  z-index: 99;
}
.score  a {
  margin-right: 200px;
}
.score  a img {
  width: 85%;
}
.score .wins {
  margin-right: 85px;
}
.score > * {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-right: 45px;
  padding-top: 2px;
}
.score > * span {
  position: absolute;
  top: 0;
  left: 100%;
  bottom: 0;
  margin-left: 6px;
  font-size: 1.4em;
  color: #DBB6AB;
}
.score > * span.is-updating {
  -webkit-animation: bounce 1s;
          animation: bounce 1s;
}
.score > * span.last-turn {
  color: red;
}

main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  max-width: 950px;

  padding: 0 0;
}

.card,
.success-icon {
  position: relative;
  margin: 1%;
  padding-top: 36px;
  padding-left: 12px;
  width: 123px;
  height: 148px;
  cursor: pointer;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transition: -webkit-transform 0.4s ease-out;
  transition: -webkit-transform 0.4s ease-out;
  transition: transform 0.4s ease-out;
  transition: transform 0.4s ease-out, -webkit-transform 0.4s ease-out;
  border-radius: 3px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: 2px solid #3b2e07;
}

.is-selected,
[data-matched=true] {
  -webkit-transform: translate3d(0, 0, 0) rotateY(180deg);
          transform: translate3d(0, 0, 0) rotateY(180deg);
}

[data-matched=true] {
  -webkit-animation: matchSuccess 0.4s ease-out 3;
          animation: matchSuccess 0.4s ease-out 3;
}

.success {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background-image: url(images/repeat_bg.jpg) ;
  background-size: cover;
  z-index: 999;
  opacity: 0;
  -webkit-transform: translate3d(100%, 0, 0);
          transform: translate3d(100%, 0, 0);
  -webkit-transition: opacity 0.2s ease-out, -webkit-transform 0s 0.2s;
  transition: opacity 0.2s ease-out, -webkit-transform 0s 0.2s;
  transition: opacity 0.2s ease-out, transform 0s 0.2s;
  transition: opacity 0.2s ease-out, transform 0s 0.2s, -webkit-transform 0s 0.2s;
}
.success.is-visible {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 100px);
          transform: translate3d(0, 0, 100px);
  -webkit-transition: opacity 0.2s ease-out, -webkit-transform 0s;
  transition: opacity 0.2s ease-out, -webkit-transform 0s;
  transition: opacity 0.2s ease-out, transform 0s;
  transition: opacity 0.2s ease-out, transform 0s, -webkit-transform 0s;
}
.success .success-message {
  color: white;
  font-size: 2.5rem;
}
@media (min-width: 450px) {
  .success .success-message {
    font-size: 4rem;
	margin-top: 30px;
  }
}
.success .score {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: flex-end;
  margin-bottom: 6px;
  background-color: transparent;
}
@media (min-width: 600px) {
  .success .score {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    margin-bottom: 12px;
  }
}
.success .score > * {
  margin: 2px;
  padding: 8px 12px 4px;
  color: black;
  background-color: white;
  border-radius: 3px;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
@media (min-width: 450px) {
  .success .score > * {
    margin: 6px;
  }
}
.success .score > * span {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  margin-left: 8px;
  font-size: 1.5rem;
  color: #1fc9fb;
  z-index: 2;
}

.success-icon {
  position: relative;
  -webkit-transform: scale(1.5);
          transform: scale(1.5);
}
.success-icon .front {
  background-color: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transform: rotateY(0);
          transform: rotateY(0);
  opacity: 0;
  -webkit-transition: opacity 0.2s 0.4s;
  transition: opacity 0.2s 0.4s;
}
.is-visible .success-icon .front {
  opacity: 1;
  -webkit-animation: bounce 0.5s 0.4s ease-out forwards;
          animation: bounce 0.5s 0.4s ease-out forwards;
}

.btn-continue {
  position: relative;
  margin-bottom: 12px;
  padding: 6px 24px;
  font-family: 'JunegullRegular', normal;
  font-size: 2.2rem;
  cursor: pointer;
  color: white;
  background-color: #C9531D;
  border: none;
  border-radius: 6px;
  outline: none;
  -webkit-box-shadow: 0 1px 0 #e1662e, 0 4px 0 #a54418;
          box-shadow: 0 1px 0 #e1662e, 0 4px 0 #a54418;
}
.btn-continue:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}
.btn-continue:active {
  -webkit-transform: translateY(2px);
          transform: translateY(2px);
  -webkit-box-shadow: 0 2px 0 #a54418;
          box-shadow: 0 2px 0 #a54418;
}

.front,
.back {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  -webkit-box-shadow: -6px -6px 36px 2px rgba(0, 0, 0, 0.15) inset;
          box-shadow: -6px -6px 36px 2px rgba(0, 0, 0, 0.15) inset;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  overflow: hidden;
}
.front:before, .front:after,
.back:before,
.back:after {
  content: "";
  position: absolute;
  top: 36px;
  left: 12px;
  width: 6px;
  height: 6px;
}

.front {
  background-color: #DBB6AB;
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.back {
  background-color: white;
  -webkit-transform: rotateY(0);
          transform: rotateY(0);
  border-radius: 3px;
  background-image: url(images/cards/card_front.png);
  background-size: cover;
}
.back:before {
}

[data-type="mushroom"] .front:before {
  content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 50%;
    background-image: url(images/cards/card-1.png);
    height: 100%;
    width: 100%;
    background-size: cover;
}

[data-type="flower"] .front:before {
content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 50%;
    background-image: url(images/cards/card-2.png);
    height: 100%;
    width: 100%;
    background-size: cover;
}

[data-type="star"] .front:before {
content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 50%;
    background-image: url(images/cards/card-3.png);
    height: 100%;
    width: 100%;
    background-size: cover;
}

[data-type="coin10"] .front:after {
content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 50%;
    background-image: url(images/cards/card-4.png);
    height: 100%;
    width: 100%;
    background-size: cover;
}

[data-type="coin20"] .front:after {
content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 50%;
    background-image: url(images/cards/card-5.png);
    height: 100%;
    width: 100%;
    background-size: cover;
}


[data-type="1up"] .front:after {
content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 50%;
    background-image: url(images/cards/card-6.png);
    height: 100%;
    width: 100%;
    background-size: cover;
}

@-webkit-keyframes matchSuccess {
  0% {
    -webkit-transform: translate3d(0, 0, 0) rotateY(180deg) scale(1);
            transform: translate3d(0, 0, 0) rotateY(180deg) scale(1);
  }
  50% {
    -webkit-transform: translate3d(0, 0, 0) rotateY(180deg) scale(1.05);
            transform: translate3d(0, 0, 0) rotateY(180deg) scale(1.05);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) rotateY(180deg) scale(1);
            transform: translate3d(0, 0, 0) rotateY(180deg) scale(1);
  }
}

@keyframes matchSuccess {
  0% {
    -webkit-transform: translate3d(0, 0, 0) rotateY(180deg) scale(1);
            transform: translate3d(0, 0, 0) rotateY(180deg) scale(1);
  }
  50% {
    -webkit-transform: translate3d(0, 0, 0) rotateY(180deg) scale(1.05);
            transform: translate3d(0, 0, 0) rotateY(180deg) scale(1.05);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) rotateY(180deg) scale(1);
            transform: translate3d(0, 0, 0) rotateY(180deg) scale(1);
  }
}
@-webkit-keyframes bounce {
  0% {
    -webkit-transform: scale(0.1);
            transform: scale(0.1);
  }
  20% {
    -webkit-transform: scale(1.4);
            transform: scale(1.4);
  }
  40% {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
  60% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  80% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes bounce {
  0% {
    -webkit-transform: scale(0.1);
            transform: scale(0.1);
  }
  20% {
    -webkit-transform: scale(1.4);
            transform: scale(1.4);
  }
  40% {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
  60% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  80% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@-webkit-keyframes shake {
  2% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
  4% {
    -webkit-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
  6% {
    -webkit-transform: rotate(5deg);
            transform: rotate(5deg);
  }
  8% {
    -webkit-transform: rotate(-5deg);
            transform: rotate(-5deg);
  }
  10% {
    -webkit-transform: rotate(10deg);
            transform: rotate(10deg);
  }
  12% {
    -webkit-transform: rotate(-10deg);
            transform: rotate(-10deg);
  }
  14% {
    -webkit-transform: rotate(5deg);
            transform: rotate(5deg);
  }
  16% {
    -webkit-transform: rotate(-5deg);
            transform: rotate(-5deg);
  }
  18% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
  20% {
    -webkit-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
  22% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
}
@keyframes shake {
  2% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
  4% {
    -webkit-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
  6% {
    -webkit-transform: rotate(5deg);
            transform: rotate(5deg);
  }
  8% {
    -webkit-transform: rotate(-5deg);
            transform: rotate(-5deg);
  }
  10% {
    -webkit-transform: rotate(10deg);
            transform: rotate(10deg);
  }
  12% {
    -webkit-transform: rotate(-10deg);
            transform: rotate(-10deg);
  }
  14% {
    -webkit-transform: rotate(5deg);
            transform: rotate(5deg);
  }
  16% {
    -webkit-transform: rotate(-5deg);
            transform: rotate(-5deg);
  }
  18% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
  20% {
    -webkit-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
  22% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
}
@-webkit-keyframes pulse {
  50% {
    opacity: 0.6;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.6;
  }
}
@media (max-width: 800px) {
  .card {
    width: 90px;
    height: 95px;
  }
  .score  a {
    margin-right: 20px;
  }
}
@media (max-width: 600px) {
  .card {
    padding-top: 18px;
    padding-left: 6px;
    width: 60px;
    height: 75px;
  }
  .card .front:before,
  .card .front:after,
  .card .back:before,
  .card .back:after {
    top: 18px;
    left: 6px;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
}
