html {
    box-sizing: border-box;
}

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

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

body {
    background: #796e6e;
    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(160deg, #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: rgb(46, 46, 40);
    cursor: default;
}

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

.deck .card.match {
    cursor: default;
    background: #440d02;
    font-size: 55px;
}

/*
 * 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;
}

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

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

.backgroundModel{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.918);
}
.bodyModel {
  position: relative;
  top: 50%;
  left: 50%;
  width: 400px;
  /*height: 400px;*/
  background: #ffffff;
  transform: translate(-50%, -70%);
  border-radius: 10%;
  background-color:#777799;
}
.headModel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 3px solid yellow;
  color: #FFFFFF;
}
.closeModel {
  font-weight: bold;
  font-size: 2rem;
}
.statsModel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  border-bottom: 3px solid yellow;
  color: #FFFFFF;
}
.buttonsModel{
  display: flex;
  justify-content: space-around;
  padding: 3rem;
}
.buttonModel {
  width: 60px;
  height: 30px;
  border-radius: 3%;
}
.hide {
  display: none;
}

footer {
  border-top: 1px solid #dbe2e8;
  margin-top: 1em;
  padding: 1em;
  text-align: center;
  color: #e4e7eb;
  font-size: 19px;
}
