/* --- General layout --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.4;
  background-color: lightgoldenrodyellow;

}

/* --- Page wrapper --- */
#pageWrapper {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
}

/* --- Title bar --- */
#titleBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#storyTitle {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
}

/* --- Story text --- */
#textBox {
  margin: 20px 0;
  padding: 10px 20px;
  word-spacing: 0.3em;
  line-height: 1.4;
  background-color: #fafafa;
  border-radius: 4px;
  font-size: 16px;
}
a {
        color: #0e8c62;
      }
      h1 {
        text-align: center;
      }
      h2 {
        text-align: center;
      }
      h4 {
        text-align: right;
    }

/* --- Word states --- */
.masked {
  color: transparent;
  background-color: #ccc;
  padding: 0 2px;
}

.revealed {
  color: black;
}

.justRevealed {
  color: red;
  font-weight: bold;
}

/* --- Play area --- */
#playArea {
  margin-top: 20px;
}

.inputRow {
  display: flex;
  justify-content: space-between; /* left, center, right */
  align-items: center;
  margin-top: 10px;
}

#wordInput {
  width: 220px;
  flex: none;
}

#soloHelpButton {
  margin: 0 auto;
}

#giveUpButton {
  margin-left: auto;
}

#feedback {
  margin-top: 8px;
  color: darkred;
  font-style: italic;
  min-height: 1.2em;
}

/* --- End screen --- */
#endScreen {
  display: none;
  text-align: left;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
}

#endScreen button {
  margin: 10px 5px 0 0;
  font-size: 1em;
}
.buttonRow {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.buttonRow button {
  flex: 1;
  margin: 0 5px;
}
span.hinted {
  color: #555;       /* grey text */
  font-style: italic;
}
