@import url("https://fonts.googleapis.com/css2?family=Open+Sans&family=Pacifico&display=swap");

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #fce6e6;
}

h1 {
  font-family: "Pacifico", cursive;
  position: relative;
  font-size: 4rem;
  margin: 1.5rem;
  color: #f9c0c0;
  text-shadow: 5px 3px 0px #b3281f;
}

span {
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  border: solid white 1px;
  font-weight: 600;
  padding: 0.3rem;
  position: absolute;
  color: #b3281f;
  text-shadow: none;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 9rem);
  column-gap: 2px;
  border: 10px solid #fce6e6;
}

.empty {
  width: 9rem;
  height: 9rem;
  background-color: #fce6e6;
  border: solid #fce6e6 1px;
}
.puzzle {
  background-color: #ffd3d3;
  position: relative;
  width: 9rem;
  height: 9rem;
  cursor: pointer;
}

img {
  position: absolute;
}

.first,
.fifth,
.third {
  bottom: 0;
}

.first {
  left: 50%;
  transform: translateX(-50%);
}

.third,
.sixth {
  right: 0;
}

.sixth,
.seventh,
.eighth {
  top: 0;
}

.hovered {
  background: #f4f4f4;
  border: dashed #ccc 1px;
}

.invisible {
  display: none;
}
