#accessibility-button {
  position: fixed !important;
  bottom: 1rem;
  right: 80px;
  z-index: 9998;
  background-color: rgb(255, 255, 0);
  background-image: url("https://www.expolpedagogika.sk/wcag-expol/imgs/ico-acces-btn.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  color: black;
  border-radius: 50%;
  cursor: pointer;
  width: 55px;
  height: 55px;
  transform: none !important;
  filter: none !important;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px 0px;
}

.button-acces-active {
  background-color: black;
  background-image: url("https://www.expolpedagogika.sk/wcag-expol/imgs/ico-active-acces.png") !important;
}

#accessibility-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999999991;
  background: #ff0;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  width: auto;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 10px;
  justify-content: center;
}

#accessibility-panel > *:first-child {
  grid-column: 1 / -1; /* Roztiahne cez oba stĺpce */
}

.panel-pristupnosti-header {
  font-size: 2rem;
  font-weight: 600;
}

#accessibility-panel button {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  border: none;
  background-color: white;
  color: black;
  border-radius: 8px;
  text-align: left;
}

#accessibility-panel button:hover {
  background-color: #ccc;
}

.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

.grayscale_wcag {
  filter: grayscale(100%);
}

.underline-links a {
  text-decoration: underline !important;
}

.site-content.grayscale {
  filter: grayscale(100%);
}

.read-me.reading-highlight {
  background-color: yellow !important;
  color: black !important;
}

.hide-images_wcag img {
  display: none !important;
}

.hide-images_wcag [style*="background"],
.hide-images_wcag [style*="background-image"] {
  background: none !important;
}

.hide-images__wcag * {
  background-image: none !important;
}

#reading-ruler {
  position: fixed;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(255, 255, 0, 0.3);
  border-top: 1px solid #db5858;
  border-bottom: 2px solid rgb(61, 59, 59);
  pointer-events: none;
  display: none;
  z-index: 9998;
}

.img-alt-marked {
  border: 3px dashed rgb(80, 231, 34) !important;
}

.img-alt-current {
  border: 4px solid #f00 !important;
}

.color-inversion {
  mix-blend-mode: difference;
  background-color: #000 !important;
  color: white !important;
}

/* .color-inversion img,
.color-inversion video {
  filter: invert(100%) hue-rotate(180deg) !important;
} */

/*  ---------- */

#accessibility-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10000;
}

#accessibility-modal .modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 80%;
  overflow-y: auto;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

#accessibility-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

#accessibility-modal .modal-close-btn {
  margin-top: 20px;
  padding: 8px 16px;
}
/* ----------------------------------- */
.read-me {
  font-size: 1em;
}

.test-title {
  color: red;
  font-size: 3em;
}

.modal-sec {
  padding: 16pt 0;
  font-weight: bold;
}

.modal-detail {
  padding: 5pt 0;
  text-align: justify;
  font-size: 11pt;
}

.highlight-reading {
  background-color: yellow;
  text-decoration: underline;
}
