.log {
  padding: 1em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0px;

  overflow: hidden;
  background-color: var(--main-color);
  font-size: 0.8em;
  position: relative; /* Needed for z-index to work properly */
  /* text-wrap: balance; */
  white-space: pre-wrap;
  /* word-wrap: break-word; */
  /* hyphens: auto; */
  overflow-wrap: break-word;
  transition: all 0.5s ease-in-out;
}

/* EARTHBOUND STYLE CHATBOX 
  https://codepen.io/whoisryosuke/pen/QVvZmj*/

.chatbox {
  min-width: 5em;
  position: relative;
  vertical-align: top;
  border-radius: 1px;
  transform: translateY(0);
  transition: transform linear 150ms;
  box-shadow: 0 0 0 2px pink, /* dark grey */ 0 0 0 5px #68d0b8,
    /* minty blue */ 0 0 0 7px #f7e8a8, /* white */ 0 0 0 9px dimgray; /* black */
}

.narrative-image {
  background-color: #9e5b70;
  height: 80vh;
}

.narrative {
  height: 20px;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: auto;
  /* transform: scale(2); /* or whatever scale you like */
  text-shadow: 2px 2px 4px #864141;
  transition: all 0.3s ease-in-out;
}

.narrative.bigsize {
  height: 80vh;
  width: 40vw;
  margin-right: 2em;
}
.narrative.bigsize * {
  font-size: 1rem;
  color: azure;
}

#narrative-step {
  z-index: 2;
  padding: 0.5em;
  display: flex;
  opacity: 0;
  gap: 1%;
  width: 20vw;
  height: 20vh;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
  transform: rotate(0deg);
  /* position: fixed; */
  transition: all 0.3s ease-in-out;
  top: 0;
  background: radial-gradient(#ee9293, rgb(91, 70, 120) 52.94%, #2e3040);
}

#narrative-step.maximize {
  width: 100vw;
  height: 100vh;
  opacity: 0.98;
  transform: rotate(360deg);
}

.container-left-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30%;
  height: 80%;
  margin-left: 2em;
}

.optionText {
  border: solid 2px white;
  border-radius: 5px;
  padding: 0.5em;
}

/* #text * {
    color: #383838 !important;
  } */
#text:hover {
  overflow: auto;
  opacity: 1;
  background-color: #505050;
}

#text:hover * {
  color: lightgrey;
  opacity: 1;
}

#current {
  margin-bottom: 0;
  padding-bottom: 0;
  margin-top: 0;
  padding-top: 0;
}
.word {
  display: inline-block;
  white-space: nowrap;
}
#current.letter {
  display: inline-block; /* better for transform/opacity */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}
#current .letter.visible {
  opacity: 1;
  transform: translateY(0);
}
#previous {
  margin-top: 0;
  padding-top: 0;
  color: grey;
  opacity: 95%;
  font-weight: regular;
}

#previous * {
  color: grey;
  opacity: 95%;
  font-weight: regular;
}
.regularText > * {
  font-weight: bold;
  color: lightgrey;
}
.logText > * {
  font-weight: bold;
  color: white;
}
.exploreText > * {
  font-weight: bold;
  color: var(--secondary-color);
}
