body {
  background: url('obrazki/tlo.gif') lightyellow;
  text-align: center;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

#tytul {
  padding: 30px;
  color: darkblue;
}

form {
  background: url('obrazki/config.jpg') no-repeat center;
  background-size: cover;
  margin: 0 auto;
  padding: 20px;
  border: double 5px black;
  width: 90%;
  max-width: 600px;
}

.checkbox-columns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

form ul {
  list-style: none;
  padding: 0;
}

form li {
  text-align: left;
}

label {
  padding: 3px;
  color: darkblue;
  font-size: 1em;
}

input[type="checkbox"] {
  margin-right: 5px;
  transform: scale(1.2);
}

.controls {
  margin-top: 20px;
}

button {
  font-size: 1.2em;
  margin: 10px;
  padding: 10px 20px;
  cursor: pointer;
}

#opis {
  margin: 30px auto;
  color: darkblue;
  max-width: 600px;
  font-size: 1em;
}

#output img {
  max-width: 100%;
  height: auto;
}

#tekst {
  font-size: 160px;
  margin: 0;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.modal-content img {
  max-width: 100%;
  height: auto;
}

.modal-content p {
  font-size: 1.5em;
  margin: 10px 0;
}

#modal-close {
  margin-top: 15px;
  padding: 8px 16px;
  font-size: 1em;
  cursor: pointer;
}
