body {
  margin: 0;

  background: url("./img/backgroundImg5.jpg") no-repeat;
  background-size: cover;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

#memory-board {
  background-color: #dddddd20;
  width: 674px;
  height: 510px;
  padding: 70px;
  margin: 0px auto;
  border-radius: 84px;
  box-shadow: inset 0px 0px 20px -6px #615961;
}

.card {
  display: inline-block;
  perspective: 300px;
  transform-style: preserve-3d;
  position: relative;
}

.card.turned {
  pointer-events: none;
}

.card.turned .front {
  transform: rotateY(0deg);
}
.card.turned .back {
  transform: rotateY(180deg);
}

#info-box {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 105%;
  transform: translate(-50%, -50%);
  display: none;
  background-color: rgb(237, 225, 129);
  opacity: 0.9;
  border-radius: 10px;
  text-align: center;
  padding: 0.5rem;
}

.card .back,
.card .front {
  width: 71px;
  height: 71px;
  margin: 10px;
  padding: 20px;
  font-size: 64px;
  transition: transform 0.6s ease;
}

.card .back {
  background-color: #456783;
}

.card .front {
  position: absolute;
  left: 0;
  top: 0;
  transform: rotateY(-180deg) translateZ(1px);
  backface-visibility: hidden;
}

#score {
  background-color: rgba(215, 44, 44, 0.8);
  border-radius: 8px;
  font-size: 15px;
  width: 152px;
  padding: 10px;
}

.flex-box {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

#start-game {
  appearance: none;
  background-color: rgba(215, 40, 40, 0.9);
  border: 1px solid rgba(215, 44, 44, 0.8);
  border-radius: 14%;
  border-width: 0 0 4px;
  color: #fff;
  cursor: pointer;
  font-family: din-round, sans-serif;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  padding: 1em 1.5em;
  position: relative;
}

#restart-game {
  appearance: none;
  background-color: rgba(215, 40, 40, 0.8);
  border: 1px solid rgba(215, 40, 40, 0.8);
  border-radius: 14%;
  border-width: 0 0 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  padding: 1em 1.5em;
  position: relative;
}

h1 {
  color: rgba(215, 40, 40, 0.9);
  font-weight: bolder;
  font-family: "Lucida Handwriting", "Arial Narrow", Arial, sans-serif;
  font-size: 4.5rem;
  text-align: center;
  text-shadow: 0px 0px 20px #969696;
}

h2 {
  margin-top: 0;
  color: #456783;
  font-weight: bolder;
  font-size: 32px;
  text-align: center;
  text-shadow: 1px red;
}

p {
  font-size: 18px;
  text-align: center;
}
