.scroll-result {
  background-color: #fff5e6; /* light parchment */
  border-left: 5px solid #8d4b00;
  padding: 15px 0px 10px 15px; /* top, right, bottom, left */
  margin-top: 10px;
  text-align: left;
  line-height: 1.5; /* Adjust this value to control spacing between lines */
}

.mishap {
  background-color: #fff5e6; /* light parchment */
  border-left: 5px solid #e53e3e;
  padding: 20px;
  margin-top: 0px;
  text-align: center;
}

.mishap-name {
  display: block;
  font-size: 2rem; /* larger text for name */
  color: #c53030; /* bold red */
  font-weight: bold;
  margin-bottom: 0px;
}

.mishap-effect {
  display: block;
  font-size: 1.3rem;
  color: #742a2a;
  line-height: 1.4; /* Reduced line spacing */
}

.hide-effect .effect-text {
  display: none;
}

.button-inactive {
  background-color: #4a5568 !important; /* gray-700 */
  cursor: pointer;
}

.button-inactive:hover {
  background-color: #2d3748 !important; /* darker gray */
}

/* Scrolls page result box */
.scroll-result-box {
  line-height: 1.35;
  text-indent: 0;
  min-height: 735px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
  padding: 1.25rem;
}

/* Placeholder text inside the empty scroll result box */
#placeholder-text.scroll-placeholder {
  color: #3f29008f;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
  padding: 0 1rem;
  margin: 0;

  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Generated scroll and mishap output */
.scroll-result-box .scroll-result,
.scroll-result-box .mishap,
.scroll-result-box p,
.scroll-result-box div,
.scroll-result-box li {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

/* iPad vertical / tablet portrait */
@media (max-width: 1100px) and (orientation: portrait) {
  .scroll-result-box {
    min-height: 950px;
  }
}

/* phones */
@media (max-width: 640px) {
  .scroll-result-box {
    min-height: 350px;
    padding: 1rem;
  }

  #placeholder-text.scroll-placeholder {
    font-size: 1.7rem;
  }
}