html,
body {
  overflow: hidden; /* avoid scrolling the page instead of the text-content */
}

main#text-wrapper {
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.main-nav__controls { /* hide "+" and "-" buttons */
  opacity: 0;
  pointer-events: none;
}

.text-card {
  background-color: white;
  position: relative;
  margin-top: 30px;
  height: calc(100dvh - 140px);
  width: 45%;
  min-width: 600px;
  max-width: 800px;
}

.text-card__content {
  height: 100%;
  width: calc(100% - 12px);
  overflow-y: scroll;
  padding: var(--spacer-xlg);
}

.text-card__overlay {
  position: absolute;
  height: 100px;
  width: 100%;
  left: 0px;
  pointer-events: none;
  z-index: 10;
}

.text-card__overlay--top {
  top: 0px;
  background: linear-gradient(180deg, #ffffff 40%, transparent 100%);
}

.text-card__overlay--bottom {
  bottom: 0px;
  background: linear-gradient(180deg, transparent 0%, #ffffff 60%);
}

.content {
  white-space: pre-line;
  font-size: var(--font-size-lg);
  line-height: 1.5rem;
  color: black;
}

.text-nav--close {
  top: 0px;
  right: calc(-15% - 20px);
}

/* scroll bar */
.text-card__content::-webkit-scrollbar {
  width: 16px !important;
  display: block !important;
}

.text-card__content::-webkit-scrollbar-button {
  display: block !important;
  height: 60px !important;
  background-color: #ffffff !important;
}

.text-card__content::-webkit-scrollbar-track {
  background: #f2f2f2 !important;
  border-right: 12px solid #ffffff !important;
  background-clip: padding-box !important;
}

.text-card__content::-webkit-scrollbar-thumb {
  background: #959595 !important;
  border-right: 12px solid #ffffff !important;
  background-clip: padding-box !important;
  border-radius: 0px !important;
}

.text-card__content::-webkit-scrollbar-thumb:hover {
  background: #7a7a7a !important;
}

@media (max-width: 950px) {
  .text-nav--close {
    top: 20px;
    right: 20px;
  }

  .dark .btn--close {
  filter: invert(0) !important;
}

}

@media (max-width: 568px) {
  .text-card {
    width: calc(100% - 20px);
    height: calc(100dvh - 200px);
    margin-top: 0px;
    min-width: 0px;
  }

  .text-card__content {
    padding: var(--spacer-xlg) var(--spacer-md);
  }

.text-card__content::-webkit-scrollbar {
  width: 9px !important;
}

  .text-card__content::-webkit-scrollbar-track {
  border-right: 5px solid #ffffff !important;
}

.text-card__content::-webkit-scrollbar-thumb {
  border-right: 5px solid #ffffff !important;
}

  .content {
    font-size: var(--font-size-md);
    line-height: 1.2rem;
  }
}
