body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Amatic SC', cursive;
  letter-spacing: 10%;
}

#container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameContainer {
  position: relative;
  width: calc(100vh * 1.28);
  height: 100vh;
  overflow: hidden;
}

#startScreen,
#winScreen {
  button {
    font-family: inherit;
    font-weight: 700;
    font-size: 24pt;
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
  }

  h2,
  h3,
  p {
    font-weight: 400;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 7px;
    padding: 10px 20px;
    font-size: 18pt;
    margin: 0;
  }
}

#startScreen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/graey-cover.png");
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;

  p {
    margin: 0;
    padding: 5px;
    font-size: 12pt;
  }
}

#credits {
  position: absolute;
  bottom: 5px;
  right: 10px;
  color: azure;
}

#winScreen {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/graey-closing-art.png");
  background-size: contain;
  background-repeat: no-repeat;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .leftAlignButton {
    width: 80%;
    display: flex;
    justify-content: flex-start;
  }
}

#storySynopsis {
  margin-top: 20px;
  margin-bottom: 10px;
  max-width: 80%;
  text-align: center;
  overflow: hidden;
  height: 30%;

  h3 {
    font-size: 20pt;
    margin-bottom: 5px;
  }

  p {
    font-size: 18pt;
    overflow: scroll;
    box-sizing: border-box;
    height: 100%;
    position: relative;

    span {
      padding: 10px;
      padding-bottom: 60px;
      display: block;
      animation: scroll 120s linear forwards;
    }

    span.paused {
      animation-play-state: paused;
    }
  }

  #pauseScrollButton {
    position: absolute;
    padding: 0 3px 0 3px;
    right: 11%;
    top: 55%;
    font-size: 12pt;
  }
}

@keyframes scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

#background {
  position: absolute;
  width: calc(100vh * 1.28 * 5);
  height: 100vh;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left center;
}

#canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#puzzles {
  position: absolute;
  bottom: 50%;
  left: 20%;
  justify-content: center;
  align-items: center;
  display: none;
  font-size: 18pt;

  #villageBossInput {
    font-family: "Edu SA Beginner", cursive;
    font-weight: 700;
    font-size: 14pt;
    padding: 6px 12px;
    border: none;
    border-radius: 2px;
  }
}

#tutorial {
  position: absolute;
  top: 30%;
  left: 5%;
  width: 300px;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 5px;
  font-size: 16pt;
  color: white;
  display: none;
  flex-direction: column;

  ul {
    margin: 0;
    margin-top: 10px;
  }

  p {
    margin: 0;
    padding: 10px 10px 10px 10px;
  }
}

#imageFragmentDisplay {
  position: absolute;
  top: 40%;
  right: 40%;
  width: calc(200px * 0.8);
  height: 200px;
  display: none;
}

#gameOverlay {
  position: absolute;
  top: 10px;
  right: 30px;
  width: auto;
  z-index: 50;
  display: flex;
  gap: 20px;
  align-items: flex-start;

  #muteSounds {
    width: 40px;
    height: 40px;
    padding: 5px;

    svg {
      width: 100%;
      height: 100%;
    }
  }
}

#collectedImageFragmentDisplay {
  width: calc(100px * 0.8);
  height: 100px;
  display: none;
}