/* Slideshow container */
.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.slideshow-container .mySlides > img {
  max-height: 500px;
  margin: 0 auto;
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.mySlides {
  position: relative;
  display: flex;
  overflow: hidden;
  background-color: lightgray;
  touch-action: pan-y;
  user-select: none;
}

.slider-caption {
  margin-bottom: 22px;
  font-size: 16px;
  color: gray;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  z-index: 5;
  width: auto;
  margin-top: -22px;
  padding: 16px !important;
  color: #000099;
  font-weight: bold;
  font-size: 22px;
  transition: color 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease;
  border: none;
  border-radius: 0 3px 3px 0;
  background-color: transparent;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:disabled,
.next:disabled {
  opacity: 0.6;
}

/* On hover, add a black background color with a little bit see-through */
@media (hover: hover) {
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #e11229;
  }
}

/* Slide number text (1/3 etc) */
.slide-number {
  color: #f2f2f2;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  z-index: 5;
}

/* The dots/bullets/indicators */
.dots-container {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background: #fff;
  border: 0.5px solid #000099;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active {
  background-color: #000099;
}

.dot:hover {
  background-color: #717171;
}

.quiz {
  max-width: 600px;
  margin: 0 auto 20px;
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz .quiz__next-text {
  display: none;
}

.quiz--started .quiz__start-text {
  display: none;
}

.quiz--started .quiz__next-text {
  display: initial;
}

.quiz--ended .next {
  display: none;
}

.quiz .mySlides {
  background-color: #fff;
}

.quiz__block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 15px 0;
  text-align: left;
}

.quiz p {
  margin: 5px 0;
}

.quiz__block label {
  display: flex;
  align-items: center;
}

.quiz__block input {
  margin-right: 10px;
}

.quiz .prev,
.quiz .next {
  position: initial;
  z-index: 5;
  width: auto;
  margin-top: 10px;
  padding: 5px 16px !important;
  color: #fff;
  font-size: 16px;
  border-radius: 3px;
  background-color: #000099;
}

/* Zoom styles */
.zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.zoom-image {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  cursor: default;
}

.zoom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 40px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  transition: color 0.3s ease;
}

.zoom-close:hover {
  color: #000099;
}

[data-zoomable] {
  position: relative;
  display: block;
  cursor: zoom-in;
}

[data-zoomable] img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-zoomable]::after {
  content: "";
  position: absolute;
  top: calc(50% - 24px);
  left: calc(50% - 24px);
  z-index: 2;
  width: 48px;
  height: 48px;
  color: #000099;
  background-image: url("lupa.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

/* Fading animation */
.fade__img {
  text-align: center;
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
