html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #111;
  overflow: hidden; /* ukrywa paski przewijania */
}

#viewer {
  position: relative;
  width: 100%;
  height: 100%; /* pełny viewport */
}

#viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* zachowuje proporcje obrazu */
  display: block;
}

#viewer svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

polygon {
  fill: rgba(255,255,255,0.0);
  stroke: red;
  stroke-width: 0;
  cursor: pointer;
  transition: fill 0.3s;
}

polygon:hover {
  fill: rgba(82,144,0,0.6);
}

/* Styl dla przycisku fullscreen */
#fullscreenBtn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

#fullscreenBtn:hover {
  background: rgba(0,0,0,0.7);
}

#logoLink {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

#logoLink img {
  width: clamp(40px, 3vw, 120px);
  height: auto;
}
