body {
  background-color: #eee;
  user-select: none;

  font-family: "Afacad Flux", system-ui;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}

.end-msg {
  position: absolute;
  font-size: 24px;
  top: 210px;
  left: 370px;
}
.end-score {
  position: absolute;
  font-size: 16px;
  left: 330px;
  top: 240px;
}

#main {
  position: relative;
  overflow: hidden;
  width: 800px;
  height: 500px;
  border: 1px solid gray;
  background-image: url(bg.png);
}

#splash {
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
  text-align: center;
  padding-top: 350px;
  line-height: 24px;
  cursor: pointer;
}

.task-msg {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  font-size: 22px;
  padding: 3px;
  color: #aea383;
  background-color: #00000070;
}

.header {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-style: normal;
}

.text {
  font-family: "Afacad Flux", system-ui;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}

.title-wrapper {
  width: 100%;
  height: 100%;
  background-color: transparent;
  transition: background-color 2s ease-in;
}

.title-wrapper.black {
  background-color: black;
}

.title-wrapper .title {
  color: transparent;
  transition: color 2s ease-in;
  line-height: 500px;
  text-align: center;
  font-size: 50px;
}

.title-wrapper .title.with-subtitle {
  font-size: 30px;
  text-decoration: underline;
  text-underline-offset: 12px;
  line-height: 220px;
}

.title-wrapper .subtitle {
  color: transparent;
  transition: color 2s ease-in;
  text-align: center;
  font-size: 48px;
}

.title-wrapper.black .title, .title-wrapper.black .subtitle {
  color: white;
}

.title-wrapper .eraser {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 0px;
  left: 700px;
  background-color: black;
  box-shadow: #000 -30px 0px 50px 50px;
  transition: left 3s ease-in;
}

.title-wrapper .eraser.on {
  left: 200px;
}

.narrative-wrapper {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
  padding: 28px;
  font-size: 32px;
  cursor: pointer;
  line-height: 1.1em;
}

.narrative-wrapper .text {
  margin-bottom: 16px;
}

.narrative-wrapper .text.spaced {
  margin-top: 48px;
  color: gray;
}

.narrative-wrapper span {
  color: green;
  font-weight: 600;
}

.timer-wrapper {
  position: absolute;
  left: 100px;
  top: 400px;
}

.timer-wrapper .label {
  color: white;
  opacity: 0.3;
  text-align: center;
}

.timer-wrapper .bar {
  width: 500px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.3);
}

.timer-wrapper .bar .value {
  width: 100%;
  /* width re-set from JS */
  height: 32px;
  background-color: rgba(239, 161, 51, 0.3);
}

.target-marker {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  border: 2px solid green;
  cursor: pointer;
}

.target-marker.small {
  width: 20px;
  height: 20px;
}

.target-marker:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.target-marker.clicked {
  background-color: rgba(123, 190, 8, 0.2);
}
