@keyframes bounceIn {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #ffffff url('../img/geometry2.png'); /* Background pattern from Subtle Patterns */
    font-family: 'Coda', cursive;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

/*
 * Styles for the deck of cards
 */

.deck {
    width: 660px;
    min-height: 680px;
    background: linear-gradient(210deg, #02ccba 0%, #aa7ecd 100%);
    padding: 32px;
    border-radius: 10px;
    box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 3em;
}

.deck .card {
    height: 125px;
    width: 125px;
    background: #2e3d49;
    font-size: 0;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
}

.deck .card.open {
    transform: rotateY(0);
    background: #02b3e4;
    cursor: default;
}

.deck .card.show {
    font-size: 33px;
}

.deck .card.match {
    cursor: default;
    background: #02ccba;
    font-size: 33px;
/*    animation:  bounceIn;*/
}

.wrong {
  background: #c41b00 !important;
}

/*
 * Styles for the Score Panel
 */

.score-panel {
    text-align: left;
    width: 345px;
    margin-bottom: 10px;
}

.score-panel .stars {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
}

.hide {
  display: none !important;
}

.show {
  display: inline-block;
}

.showPanel {
  display: block !important;
}

.score-panel .stars li {
    list-style: none;
    display: inline-block;
}

.score-panel .restart {
    float: right;
    cursor: pointer;
}

span {
  padding-left: 10px;
}
/* Styles for the winner popup */

.winner-background {
  background-color: rgba(128, 128, 128, 0.5);
  width: 100vw;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  display: none;
}

.winner-popup {
  margin: auto;
  width: 400px;
  background: white;
  padding: 30px 50px;
  border-radius: 10px;
  box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
  transform: translate(0%, 80%);
}

.winner-popup .heading-section {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #664b7b;
}

.winner-popup .close {
  color: #664b7b;
  font-weight: bold;
}

.winner-popup .stats-section {
  padding-left: 8%;
}

.winner-popup .buttons {
  display: flex;
  padding-top: 20px;
  text-align: center;
  justify-content: space-between;
}

.button {
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  background-color: #aa7ecd;
}