body {
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(-20deg, #dfd2f3 0%, #fbfcdb 100%);
  min-height: 100vh;
  width: 100vw;
  margin: 0;
}
.win-overlay {
  display: none;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 50vw;
  height: 30vw;
  z-index: 10;
  color: white;
  background: tomato;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.win-overlay button,
.highscore-overlay button {
  margin-top: 10em;
  background: white;
  color: tomato;
}

.highscore-overlay {
  display: none;
  position: absolute;
  justify-content: center;
  width: 50vw;
  height: 80vh;
  z-index: 10;
  color: white;
  background: tomato;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.highscore-overlay button {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: tomato;
}
.game {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

input {
  padding: 1.2em 0;
  border: none;
  color: tomato;
}

::placeholder {
  color: tomato;
  padding-left: 1em;
}
.highscore-list {
  list-style: none;
}

.player-highscore {
  margin-bottom: 1em;
}

.hide {
  opacity: 0;
}

.game-board {
  margin: 30px auto;
  position: relative;
  overflow: hidden;
  width: 800px;
  height: 640px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  border-radius: 5px;
  gap: 10px;
  padding: 1rem;
}

.game-board img {
  padding: 12px;
  border-radius: 2px;
}

.game-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #245d6e;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 5px;
  transition: 0.4s background-color, 0.4s box-shadow;
}

.game-tile:hover {
  background-color: #334786;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.game-score {
  position: absolute;
  left: 50%;
  top: 0px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  background: tomato;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.button-container {
  display: flex;
}

button {
  margin: 0 auto;
  font-weight: bold;
  width: 10em;
  padding: 1.2em 0;
  border: none;
  background: tomato;
  color: white;
}
