.decrypt-text {
  text-align: justify;
  text-align-last: left; /* Prevents last line from being stretched */
  white-space: normal;
  line-height: 1.2;
  font-family: inherit; /* Use theme's font instead of monospace */
  word-spacing: normal; /* Ensures proper spacing between words */
  color: #f9b000;
}

.decrypt-word {
  display: inline;
  white-space: nowrap; /* Prevents word from breaking */
}

.decrypt-char {
  display: inline;
  min-width: 1ch;
  white-space: pre;
}

.decrypt-space {
  display: inline;
  white-space: normal; /* Allow spaces to wrap normally */
}

/* Kiedy litera jest odszyfrowana (np. ma klasę 'decoded'), zmieniamy kolor */
.decrypt-char.decoded {
  transition: color 0.3s ease;
  color: #dedede; /* kolor odszyfrowanej litery, np. zielony */
}

/* Additional CSS to improve text justification */
.decrypt-text::after {
  content: "";
  display: inline-block;
  width: 100%;
}