/* Darkmode: Allgemeine Farben */
[data-bs-theme="dark"] {
  background-color: #1a1a1a; /* Dunkler Hintergrund */
  color: #f8f9fa; /* Helle Schriftfarbe */
}

[data-bs-theme="dark"] iframe {
  background-color: black;
}

[data-bs-theme="dark"] body {
  background: linear-gradient(
    90deg,
    #000000 0%,
    #000000 50%,
    #2a2a2a 50.1%,
    #2a2a2a 100%
  );
}

/* Navbar im Darkmode */
[data-bs-theme="dark"] .navbar {
  background-color: #333333; /* Dunkleres Grau für die Navbar */
  color: #f8f9fa;
}

/* Sidebar im Darkmode */
[data-bs-theme="dark"] .right-sidebar {
  background-color: #2a2a2a; /* Dunkler Hintergrund für die Sidebar */
  color: #f8f9fa;
}

[data-bs-theme="dark"] .right-sidebar li {
  background-color: #2a2a2a; /* Dunkler Hintergrund für die Sidebar */
  color: #f8f9fa;
}

/* Tabellen im Darkmode */
[data-bs-theme="dark"] .table {
  background-color: #2a2a2a; /* Dunkler Tabellenhintergrund */
  color: #f8f9fa;
}

[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background-color: #3a3a3a; /* Abwechselnde Zeilenfarbe */
}

[data-bs-theme="dark"] .table th,
[data-bs-theme="dark"] .table td {
  border-color: #444444; /* Dunklere Rahmenfarbe */
}

/* Tooltips im Darkmode */
[data-bs-theme="dark"] .tooltip {
  background-color: #444444; /* Dunkler Tooltip-Hintergrund */
  color: #f8f9fa; /* Helle Schriftfarbe */
  border: 1px solid #555555;
}

/* Modal im Darkmode */
[data-bs-theme="dark"] .modal-content {
  background-color: #2a2a2a; /* Dunkler Hintergrund für Modals */
  color: #f8f9fa;
  border: 1px solid #444444;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
  background-color: #333333; /* Abgesetzter Hintergrund für Header und Footer */
  border-color: #444444;
}

/* Slider im Darkmode */
[data-bs-theme="dark"] #volumeSlider::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    #ffc107 0%,
    #ffc107 var(--value),
    #444444 var(--value),
    #444444 100%
  );
}

[data-bs-theme="dark"] #volumeSlider::-webkit-slider-thumb {
  background-color: #ffc107; /* Gelber Thumb */
  border-color: #333333;
}

/* SVGs im Darkmode */
[data-bs-theme="dark"] #eye-able-logo {
  filter: invert(1) hue-rotate(180deg); /* Invertiert helle SVGs */
}

/* Links im Darkmode */
[data-bs-theme="dark"] a {
  color: #ffc107; /* Gelbe Links */
}

[data-bs-theme="dark"] a:hover {
  color: #e0a800; /* Dunkleres Gelb beim Hover */
}

/* helle schriftfarbe für linktext */
[data-bs-theme="dark"] a#eyeAbleLink {
  color: #f8f9fa; /* Helle Schriftfarbe für den Link */
}

[data-bs-theme="dark"] .audio-toolbar {
  background-image: none;
  background-color: #121212;
}

[data-bs-theme="dark"] .right-sidebar .btn,
[data-bs-theme="dark"] .audio-toolbar .btn {
  mix-blend-mode: normal;
  background-color: #121212;
}

[data-bs-theme="dark"] .right-sidebar .btn::before,
[data-bs-theme="dark"] .audio-toolbar .btn::before {
  content: none;
}

[data-bs-theme="dark"] .right-sidebar .btn img,
[data-bs-theme="dark"] .audio-toolbar .btn img {
  filter: invert(1);
}

[data-bs-theme="dark"] .right-sidebar .btn:hover,
[data-bs-theme="dark"] .audio-toolbar .btn:hover {
  filter: invert(1);
}

[data-bs-theme="dark"] .right-sidebar .btn:focus,
[data-bs-theme="dark"] .audio-toolbar .btn:focus {
  outline: 2px solid #ffffff;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  height: 100vh;
  /*background: linear-gradient(90deg, #F4EAFF 0%, #FFEBF1 32.5%, #FEF2E2 72.5%, #FFF7D7 100%);*/
  background-color: #ffffff;
  /* Background from left white to rigth #f9f9f9  with hard cut in the middle*/
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 50%,
    #f9f9f9 50%,
    #f9f9f9 100%
  );
}

header {
  background: #ffd050;
  color: black;
  text-align: center;
  padding: 10px;
  width: 100%;
  margin-bottom: 1rem;
}

.list-group {
  gap: 16px;
  padding: 8px;
}

.list-group-item {
  padding: 0;
  margin: 0;
}

.html-container {
  flex: 1;
  margin: 0 auto;
  /*border: 1px solid #ebebeb;*/
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

#html-viewer {
  background-color: rgb(255, 255, 255);
  height: 100%;
  overflow: hidden;
  padding: 0;
  flex: 1;
}

.rotate180deg {
  transform: rotate(180deg);
}

.container {
  width: 100%;
  max-width: 1600px !important;
}

.list-group-item {
  border: none;
  padding-right: 0;
  padding-left: 0;
}

.right-sidebar,
.right-sidebar li {
  background-color: #f9f9f9;
}

.right-sidebar {
  position: sticky;
  top: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

#html-content {
  /* padding: 1rem; */
  height: auto;
  width: 100%;
  display: block;
  overflow: hidden;
  /* border-right: solid 1px #5c6165; */
}

#audio-toolbar-container {
  width: 100%;
}

#pdf-canvas {
  width: 100%;
  display: block;
}

iframe {
  /* min-height: 65vh; */
  width: 100%;
  height: 100%;
  background-color: #fff;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow: scroll;
}

#pdf-frame {
  background-color: rgb(231, 231, 231);
  padding: 0;
}

/* Buttons */
#eye-able-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.list-group-item .btn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  --button-size: 1.75rem;
  width: calc(var(--button-size) * (3 / 1.75));
  aspect-ratio: 1;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn img,
.btn span {
  width: var(--button-size) !important;
  height: var(--button-size) !important;
  display: block;
  /* FÜR GRÖ?ERE SYMBOLE AUSKOMMENTIERT LASSEN */
  /* max-width: 90%;
  max-height: 90%; */
}

.list-group-item a img {
  min-width: 3rem;
  max-width: 100%;
  height: auto;
}

button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

.btn:focus {
  outline: 2px solid #121212;
}

.btn:hover {
  transform: scale(1.05);
}

.audio-toolbar {
  background: linear-gradient(
    90deg,
    #f4eaff 0%,
    #ffebf1 32.5%,
    #fef2e2 72.5%,
    #fff7d7 100%
  );
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.audio-toolbar li {
  gap: 8px;
}

.audio-toolbar .btn + span {
  margin: 0 !important;
}

.right-sidebar .btn,
.audio-toolbar .btn {
  background-color: transparent;
  position: relative;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  box-shadow: none !important;
  margin: 0 !important;
}

.right-sidebar .btn::before,
.audio-toolbar .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background-color: #121212;
  mix-blend-mode: overlay;
}

#playPauseButton + .text-center {
  font-size: 0.875rem;
}

.audio-toolbar .btn img {
  width: 2.5rem;
  height: 2.5rem;
}

.right-sidebar .btn:hover::before,
.audio-toolbar .btn:hover::before {
  mix-blend-mode: normal;
}

/* Error page button styling - konsistent mit anderen Buttons */
.error-btn {
  width: 5rem !important;
  height: 5rem !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  border: none !important;
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.3s ease !important;
}

.error-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background-color: #121212;
  mix-blend-mode: overlay;
}

/* .error-btn:hover::before {
  mix-blend-mode: normal;
} */

.error-btn:hover {
  color: rgb(255, 255, 255) !important;
}

.error-btn:focus {
  outline: 2px solid #121212;
}

/* Dark mode für error buttons */
[data-bs-theme="dark"] .error-btn {
  background-color: #121212 !important;
}

[data-bs-theme="dark"] .error-btn::before {
  content: none;
}

[data-bs-theme="dark"] .error-btn img {
  filter: invert(1);
}

[data-bs-theme="dark"] .error-btn:hover {
  filter: invert(1);
}

[data-bs-theme="dark"] .error-btn:focus {
  outline: 2px solid #ffffff;
}


.right-sidebar .btn:hover img,
.audio-toolbar .btn:hover img {
  filter: invert(1);
}

.audio-toolbar .form-range {
  margin: 0 0.5rem;
}

.audio-toolbar .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tooltips */

.custom-tooltip .tooltip-inner {
  font-size: 1.25rem;
}
/* Slider design */

:root {
  --easeOutBack: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --color-range-output: #383c42;
  --color-input-placeholder: #c3c4c6;
  --height-range-bounds: 22px;
  --background-color-range-thumb: #333940;
  --radius-range-thumb: 100px;
  --height-range-thumb: 24px;
  --width-range-thumb: 24px;
  --size-range-thumb-shadow: 25px;
  --color-range-thumb-shadow: rgba(0, 0, 0, 0.5);
  --shadow-offset-y-range-thumb: 4px;
  --shadow-offset-x-range-thumb: 0px;
  --border-width-range-thumb: 6px;
  --border-color-range-thumb: #fff;
  --width-range-track: 100%;
  --height-range-track: 4px;
  --radius-range-track: 100px;
  --fill-range-track: #e6e6e6;
  --fill-range-track-active: #1e211d;
  --height-range-output: 60px;
  --min-width-range-output: 32px;
  --padding-x-range-output: 20px;
  --size-range-output-arrow: 10px;
  --offset-y-range-output: 4px;
}

#volumeSlider {
  appearance: none;
  padding: 0;
  width: var(--width-range-track);
  height: var(--height-range-bounds);
  cursor: pointer;
  display: block;
}

#volumeSlider:focus {
  outline: none;
}

#volumeSlider[disabled] {
  opacity: 0.3;
  cursor: default;
}

#volumeSlider::-webkit-slider-runnable-track {
  box-sizing: border-box;
  width: var(--width-range-track);
  height: var(--height-range-track);
  background: linear-gradient(
    to right,
    var(--fill-range-track-active) 0%,
    var(--fill-range-track-active) var(--value),
    var(--fill-range-track) var(--value),
    var(--fill-range-track) 100%
  );
  border-radius: var(--radius-range-track);
  margin: calc(var(--height-range-bounds) / 2) 0;
}

#volumeSlider::-moz-range-track {
  box-sizing: border-box;
  width: var(--width-range-track);
  height: var(--height-range-track);
  background: linear-gradient(
    to right,
    var(--fill-range-track-active) 0%,
    var(--fill-range-track-active) var(--value),
    var(--fill-range-track) var(--value),
    var(--fill-range-track) 100%
  );
  border-radius: var(--radius-range-track);
  margin: calc(var(--height-range-bounds) / 2) 0;
}

#volumeSlider::-ms-track {
  box-sizing: border-box;
  width: var(--width-range-track);
  height: var(--height-range-track);
  background: transparent;
  border-color: transparent;
  color: transparent;
  margin: calc(var(--height-range-bounds) / 2) 0;
}

#volumeSlider::-ms-fill-lower {
  background: var(--fill-range-track-active);
  border-radius: var(--radius-range-track);
}

#volumeSlider::-ms-fill-upper {
  background: var(--fill-range-track);
  border-radius: var(--radius-range-track);
}

#volumeSlider::-webkit-slider-thumb {
  box-sizing: border-box;
  box-shadow: var(--shadow-offset-x-range-thumb)
    var(--shadow-offset-y-range-thumb) var(--size-range-thumb-shadow)
    var(--color-range-thumb-shadow);
  border: var(--border-width-range-thumb) solid var(--border-color-range-thumb);
  height: var(--height-range-thumb);
  width: var(--width-range-thumb);
  border-radius: var(--radius-range-thumb);
  background: var(--background-color-range-thumb);
  cursor: pointer;
  appearance: none;
  transform: translateY(-50%);
  margin-top: calc(var(--height-range-track) / 2);
}

#volumeSlider::-moz-range-thumb {
  box-sizing: border-box;
  box-shadow: var(--shadow-offset-x-range-thumb)
    var(--shadow-offset-y-range-thumb) var(--size-range-thumb-shadow)
    var(--color-range-thumb-shadow);
  border: var(--border-width-range-thumb) solid var(--border-color-range-thumb);
  height: var(--height-range-thumb);
  width: var(--width-range-thumb);
  border-radius: var(--radius-range-thumb);
  background: var(--background-color-range-thumb);
  cursor: pointer;
}

#volumeSlider::-ms-thumb {
  box-sizing: border-box;
  box-shadow: var(--shadow-offset-x-range-thumb)
    var(--shadow-offset-y-range-thumb) var(--size-range-thumb-shadow)
    var(--color-range-thumb-shadow);
  border: var(--border-width-range-thumb) solid var(--border-color-range-thumb);
  height: var(--height-range-thumb);
  width: var(--width-range-thumb);
  border-radius: var(--radius-range-thumb);
  background: var(--background-color-range-thumb);
  cursor: pointer;
}

/* MODAL DESIGN */

#descriptionModal > div > div > div.modal-footer > button {
  border-radius: 0.25rem;
  color: #000000;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  width: fit-content;
  height: fit-content;
}

#descriptionModal > div > div > div.modal-footer > button:hover::before {
  mix-blend-mode: color;
}

#descriptionModal > div > div > div.modal-footer > button:hover {
  color: #ffffff !important;
}

#descriptionModal > div > div > div.modal-footer > button:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 174, 0, 0.25);
}

.modal-body {
  padding: 1rem;
}

.table {
  width: 100%;
  color: #212529;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

.table .button-icon {
  width: 2rem;
  height: 2rem;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-striped {
  margin: 0;
}

#eyeAbleLink {
  color: #000000;
  text-decoration: none;
}

@media (max-width: 899px) {
  .list-group {
    padding: 2px;
  }
}

@media (max-width: 766px) {
  .list-group {
    gap: 16px;
  }

  .audio-toolbar {
    padding: 8px;
  }

  /* Sidebar nach oben um nicht mit audio-toolbar zu überlappen */
  .right-sidebar {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    flex-wrap: nowrap;
    overflow-y: hidden;
    align-items: flex-start;
    height: auto !important;
    overflow-y: hidden;
    align-self: start;
    order: -1;
  }

  .right-sidebar .list-group-item {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 3rem;
    align-self: center;
  }

  .right-sidebar .list-group-item img {
    width: 2rem;
    height: 2rem;
  }

  .list-group-item button {
    max-width: 3rem;
    max-height: 3rem;
  }

  .right-sidebar .list-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto !important;
  }

  ul {
    height: auto;
  }

  #getPdfButton {
    margin-top: 0;
  }

  .mt-auto {
    margin-top: 0 !important;
  }

  body
    > div
    > div
    > div.right-sidebar.col-12.col-md-1.p-0.d-flex.flex-column.flex-md-column.justify-content-start.align-items-start.h-100.h-md-auto
    > ul
    > li.mt-auto.list-group-item.d-flex.align-items-center {
    margin-bottom: 0 !important;
  }

  #inner-container {
    display: flex;
    flex-direction: column;
  }

  body > div > div > div.col-12.col-md-11.ps-0.pe-0 {
    flex-grow: 1;
  }

  #eye-able-logo {
    height: 100%;
    width: auto;
  }

  /* AUDIO TOOLBAR DESIGN */

  .audio-toolbar {
    overflow-y: hidden;
  }

  .audio-toolbar .btn {
    flex: 1 1 auto;
    width: 3rem;
    height: 3rem;
    margin: 0 !important;
  }

  .audio-toolbar .btn img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .volume-control {
    display: none !important;
  }

  #inner-container > div.col-12.col-md-11.ps-0.pe-0 {
    display: contents;
  }
}

@media (max-width: 992px) {
  #increaseZoomLevelButton,
  #decreaseZoomLevelButton,
  #toggleContrastButton,
  #getPdfButton {
    max-width: 75%;
  }
}


