html {
  width: 100%;
  margin: 0;
  display: flex;
}

body {
  margin: 0;
  width: 100%;
  padding: 0 !important;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}

#root {
  height: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

.highLightMark {
  background-color: rgba(255, 255, 0, 0.4);
  /* color: rgba(255, 255, 0, 0); */
}

@media (max-width: 600px) {
  body.viewer-mobile-topbar-offset .MuiDialog-root .MuiDialog-paper {
    margin-top: 60px;
    margin-top: var(--viewer-mobile-topbar-height, 60px);
    max-height: calc(100% - 60px);
    max-height: calc(100% - var(--viewer-mobile-topbar-height, 60px));
  }

  body.viewer-mobile-topbar-offset .MuiDialog-root .MuiDialog-paperFullScreen {
    height: calc(100% - 60px);
    height: calc(100% - var(--viewer-mobile-topbar-height, 60px));
  }
}

#contentContainer {
  width: 100% !important;
}

.is-website-mode #contentContainer {
  padding-top: 0 !important;
}

.is-website-mode .idrviewer-page {
  margin: 0 !important;
}

.is-website-mode.auto-fit .idrviewer-page {
  margin-left: auto !important;
  margin-right: auto !important;
}

.presentation-mode {
  background-color: #0f1418;
}

.document-mode-with-one-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.document-mode-with-one-page-light-viewer {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.idrviewer-page {
  margin-left: auto;
  margin-right: auto;
}

.document-mode-with-one-page #contentContainer {
  height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
}

.spinner {
  font-size: 18px;
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}

.spinner .spinner-blade {
  position: absolute;
  left: 0.4629em;
  bottom: 0;
  width: 0.074em;
  height: 0.2777em;
  border-radius: 0.0555em;
  background-color: transparent;
  transform-origin: center -0.2222em;
  animation: spinner-fade 1s infinite linear;
}
.spinner .spinner-blade:nth-child(1) {
  animation-delay: 0s;
  transform: rotate(0deg);
}
.spinner .spinner-blade:nth-child(2) {
  animation-delay: 0.083s;
  transform: rotate(30deg);
}
.spinner .spinner-blade:nth-child(3) {
  animation-delay: 0.166s;
  transform: rotate(60deg);
}
.spinner .spinner-blade:nth-child(4) {
  animation-delay: 0.249s;
  transform: rotate(90deg);
}
.spinner .spinner-blade:nth-child(5) {
  animation-delay: 0.332s;
  transform: rotate(120deg);
}
.spinner .spinner-blade:nth-child(6) {
  animation-delay: 0.415s;
  transform: rotate(150deg);
}
.spinner .spinner-blade:nth-child(7) {
  animation-delay: 0.498s;
  transform: rotate(180deg);
}
.spinner .spinner-blade:nth-child(8) {
  animation-delay: 0.581s;
  transform: rotate(210deg);
}
.spinner .spinner-blade:nth-child(9) {
  animation-delay: 0.664s;
  transform: rotate(240deg);
}
.spinner .spinner-blade:nth-child(10) {
  animation-delay: 0.747s;
  transform: rotate(270deg);
}
.spinner .spinner-blade:nth-child(11) {
  animation-delay: 0.83s;
  transform: rotate(300deg);
}
.spinner .spinner-blade:nth-child(12) {
  animation-delay: 0.913s;
  transform: rotate(330deg);
}

@keyframes spinner-fade {
  0% {
    background-color: black;
    background-color: var(--color, black); /* Use CSS variable with fallback */
  }
  100% {
    background-color: transparent;
  }
}

.text-container.unexpanded {
  height: 118px; /* Adjust the height as needed */
  overflow: hidden;
  position: relative;
  white-space: normal;
}

.text-container.unexpanded::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px; /* Adjust the height of the fade as needed */
  background: linear-gradient(
    to top,
    white,
    rgba(255, 255, 255, 0)
  );
  background: linear-gradient(
    to top,
    var(--inverse-color, white),
    rgba(255, 255, 255, 0)
  );
}

.text-container.expanded {
  max-height: none;
  background: none;
}

.text-content {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-content.expanded {
  -webkit-line-clamp: unset;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word; /* Ensures long words break properly */
  overflow-wrap: break-word; /* Ensures long words break properly */
}

.text-content > a {
  word-break: break-all; /* Ensures long words break properly */
  overflow-wrap: break-word; /* Ensures long words break properly */
}

.see-more {
  position: absolute;
  background: white;
  background: var(--inverse-color, white);
  color: #0086ff;
  color: var(--color, #0086ff);
  cursor: pointer;
  align-self: flex-end;
  bottom: 0;
  font-weight: bold;
  padding-left: 3px;
  text-decoration: underline;
}

.chat-link {
  text-decoration: none;
  color: #0086ff;
}

.chat-link:visited {
  color: #0086ff;
}

