* {
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  line-height: 20px;
  font-size: medium;
}

html, body {
  background-color: transparent;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}
em {
  font-style: normal;
  font-size: 200%;
  background-color: #ece5e5;
}
.center {
  margin: auto;
  margin-top: 3em;
  width: min(70em, calc(100vw - 24px));
  max-width: 100%;
  padding: 5px;
  background-color: #b9916c;
}
.panelBorder {
  border-style: double;
  padding: 1px;
}
.narrativeText {
  background-color: #ece5e5;
  font-size: larger;
}
.startText {
  background-color: #ece5e5;
  text-align: center;
  font-size: x-large;
  margin: 10px;
  line-height: 30px;
}
.questText {
  background-color: #ece5e5;
  text-align: left;
  font-size: medium;
  margin: 10px;
  line-height: 30px;
  border:double;
  border-width: thick;
  padding: 0.5em;
  line-height: 2;
}
.gameOverText {
  background-color: #ece5e5;
  text-align: center;
  font-size: large;
  margin: 10px;
  line-height: 25px;
}
.gameTitle {
  background-color: #ece5e5;
  text-align: center;
  font-size: x-large;
  padding: 25px;
}
.clickableLinkListItems {
  background-color: #ece5e5;
  display: flex;
  list-style-type: square;
  padding-left: 3px;
  padding-top: 0.5em;
}
.interactableLinkListItems {
  background-color: #ece5e5;
  display: contents;
  padding-left: 3px;
  padding-top: 0.5em;
}
.directionNoLink {
  font-size: medium;
  line-height: 20px;
  color: black;
  font-style: normal;
  text-decoration: none;
  background-color: #ece5e5;
  opacity: 50%;
  width: 4em
}
.directionA:link {
  font-size: medium;
  line-height: 20px;
  color: black;
  font-style: normal;
  text-decoration: none;
  background-color: #ece5e5;
  width: 4em;
}
.directionA:visited {
  font-size: medium;
  line-height: 20px;
  color: black;
  font-style: normal;
  text-decoration: none;
  background-color: #ece5e5;
  width: 4em;
}
.gameOveHeader {
  text-align: center;
  font-size: x-large;
  background-color: #ece5e5;
  padding-top: 10px;
}
.startA:link {
  font-size: x-large;
  line-height: 20px;
  color: black;
  font-style: normal;
  text-decoration: none;
  background-color: #ece5e5;
  margin: 30px;
}
.startA:visited {
  font-size: x-large;
  line-height: 20px;
  color: black;
  font-style: normal;
  text-decoration: none;
  background-color: #ece5e5;
}
.locationTitle {
  font-size: medium;
  background-color: #ece5e5;
  padding-top: 1em;
}
.locationText {
  font-size: x-large;
  background-color: #ece5e5;
  margin: 2%;
}
.sectionTitle {
  font-size: small;
  background-color: #ece5e5;
}
.narrativeTitle {
  text-align: center;
  font-size: x-large;
  background-color: #ece5e5;
}
.narrativeListItem, .listItem, .gameOverListItem, .startGameListItem, .popupListItem, .closeButtonListItem {
  border: 10px #000000;
  border-style: double;
  background-color: #ece5e5;
  padding: 1%;
  float: left;
  width: 100%;
}
.narrativeListItem  {
  height: 230px;
}
.gameOverListItem {
  height: fit-content;
  align-content: center;
  text-align: center;
  display: grid;
}
.startGameListItem {
  height: fit-content;
  text-align: center;
  display: grid;
}
.listItem {
  height: fit-content;
}
.locationListItem {
  border: 10px #000000;
  border-style: double;
  background-color: #ece5e5;
  width: 895px;
  padding: 1%;
  float: left;
  height: 100px;
  text-align: center;
  width: 100%;
}
.horizontalList {
  list-style-type: none;
  overflow: auto;
  background-color: #ece5e5;
  border-style: double;
  padding-left: 0px;
  display: flex;
  justify-content: space-between;
  margin: 0.5px;
}
.horizontalListItem {
  border: 10px #000000;
  border-style: double;
  float: left;
  padding: 1%;
  padding-bottom: 3%;
  background-color: #ece5e5;
  height: 150px;
  width: 100%;
}
.inventoryListItem {
  border: 10px #000000;
  border-style: double;
  background-color: #ece5e5;
  width: 100%;
  padding: 1%;
  float: left;
  height: 150px;
}

.popup-position{
  display:block;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.7);
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.popup-wrapper{
  text-align: left;
  background-color: rgba(0,0,0,0);
}
#popup-container{
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 70em;
    margin-top: 10%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10000;
}
.popupListItem {
  height: fit-content;
  text-align: center;
  padding-top: 2em;
  padding-bottom: 2em;
  font-size: x-large;
  line-height: 1em;
}
.closeButtonListItem {
  height: fit-content;
  text-align: center;
  display: initial;
}
.closeButtonListItem:hover + .closeModal{
  height: fit-content;
  text-align: center;
}
.closeModal:link {
  font-size: large;
  line-height: 20px;
  color: black;
  font-style: normal;
  text-decoration: none;
  background-color: #ece5e5;
  margin: 1%;
  border-style: double;
  width: 3em;
  padding-left: 1em;
  padding-right: 1em;
}
.closeModal:visited {
  font-size: large;
  line-height: 20px;
  color: black;
  font-style: normal;
  text-decoration: none;
  background-color: #ece5e5;
  margin: 1%;
}
.closeModal:hover {
  font-size: large;
  line-height: 20px;
  font-style: normal;
  text-decoration: none;
  background-color: #ebc7c7;
  margin: 1%;
}

.rubricBlock {
  background-color: #ece5e5;
  border-style: double;
  border-width: thick;
  padding: 0.5em;
}

.levelBadge {
  display: inline-block;
  background-color: #ece5e5;
  border-style: double;
  border-width: thick;
  padding: 0.1em 0.5em;
  margin-bottom: 0.25em;
}

.epilogueSelect {
  background-color: #ece5e5;
  border-style: double;
  border-width: thick;
  padding: 0.2em 0.4em;
  text-align: left;
  text-align-last: left;
}

.epilogueGrid {
  background-color: #ece5e5;
}

.epilogueRow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75em;
  background-color: #ece5e5;
  margin: 0.25em 0;
}

.epilogueLabel {
  display: inline-block;
  min-width: 14em;
  background-color: #ece5e5;
}

.tabs {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
  background-color: #ece5e5;
  margin: 10px;
}

.tabButton {
  background-color: #ece5e5;
  border-style: double;
  border-width: thick;
  padding: 0.35em 0.6em;
  cursor: pointer;
  font-size: medium;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.tabButtonActive {
  background-color: #ebc7c7;
}

.tabButton em {
  font-size: 130%;
  line-height: 1;
  background-color: #ece5e5;
}

.tabPanel {
  background-color: #ece5e5;
}