* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: dodgerblue;
  height: 100vh;
  display: flex;
  font-family: "Bubblegum Sans", cursive;
}

.memory-game-title {
  width: 300px;
  height: 640px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.memory-game {
  width: 640px;
  height: 640px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  perspective: 1000px;
}

.memory-card {
  width: calc(25% - 10px);
  height: calc(33.333% - 10px);
  margin: 5px;
  position: relative;
  transform: scale(1);
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.memory-card:active {
  transform: scale(0.97);
  transition: transform 0.2s;
}

.memory-card.flip {
  transform: rotateY(180deg);
}

.font-face,
.back-face {
  width: 100%;
  height: 100%;
  padding: 20px;
  position: absolute;
  border: 2px solid midnightblue;
  box-shadow: 5px 5px 35px midnightblue, 0 0 35px midnightblue;
  background-color: aqua;
  border-radius: 20%;
  backface-visibility: hidden;
  cursor: pointer;
}

.font-face {
  transform: rotateY(180deg);
  box-shadow: 5px 5px 35px magenta inset, 0 0 35px magenta inset;
}

.back-face:hover {
  background-color: #0dd6f8;
  border-color: aqua;
}

img {
  width: 50px;
  height: 100px;
}

.title-image {
  width: 300px;
  height: 300px;
  cursor: pointer;
}

h1 {
  font-size: 90px;
  color: midnightblue;
  text-shadow: -3px -3px 1px white;
  cursor: pointer;
}

.memory-game-menu {
  width: 200px;
  height: 640px;
  margin: auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

button,
a {
  font-size: 20px;
  font-family: "Bubblegum Sans", cursive;
  width: 120px;
  height: 120px;
  background-color: cyan;
  color: midnightblue;
  text-shadow: 2px 2px 2px white;
  letter-spacing: 1.7px;
  border: 3px solid dodgerblue;
  border-width: 3px 6px;
  border-radius: 50%;
  box-shadow: 20px 15px midnightblue, 2px 5px 25px white, -5px -1px 5px wheat;
  transition: 0.3s;
  padding: 10px 30px;
  margin: 10px;
  cursor: pointer;
}

button:hover {
  font-size: 30px;
  color: blue;
  background-color: #0dd6f8;
  border-color: aqua;
  box-shadow: 0 15px blue, 3px 5px 50px mediumaquamarine, 10px -3px 5px white;
  transform: translateY(-7px);
}

h1:hover {
  color: aqua;
  text-shadow: 5px 0 2px magenta, -1px -1px 0 white, -7px -8px 1px blue;
  transform: translateX(50px);
}
.title-image:hover {
  transform: translateX(100px);
}

.menu-image {
  width: 50px;
  height: 50px;
}

#trueModal {
  height: 400px;
  width: 400px;
  color: midnightblue;
  background-color: aquamarine;
  border: 5px solid midnightblue;
  border-radius: 25px;
  box-shadow: 0 0 60px midnightblue inset, 3px 5px 50px mediumaquamarine,
    10px -3px 5px white;
  text-align: center;
}

#trueModal button {
  font-size: 17px;
  width: 150px;
  height: 50px;
  border-radius: 25%;
}

p {
  font-size: 25px;
}

a {
  text-decoration: none;
  padding-top: 40px;
}

a:hover {
  font-size: 30px;
  color: blue;
  background-color: #0dd6f8;
  border-color: aqua;
  box-shadow: 0 15px blue, 3px 5px 50px mediumaquamarine, 10px -3px 5px white;
  transform: translateY(-7px);
}
