.posts {
  background-color: hsla(193, 88%, 13%, 0.379);
  border-radius: 20px;
  border: rgba(255, 255, 255, 0.228) 1px solid;
  padding: 20px;
  margin-top: 20px;
  font-size: 1rem;
}

.posts a {
  color: bisque;
  text-decoration: none;
  border: rgba(245, 245, 245, 0.526), 1px, solid;
  padding: 7px;
  border-radius: 10px;
  background-color: hsla(191, 24%, 61%, 0.232);
  font-size: 1rem;
}

.posts a:hover,
a:active {
  background-color: #7892bf8e;
}

hr {
  width: 75px;
  border-color: rgb(220, 169, 245);
}

.posts h1 {
  font-family: "Bitcount Prop Single", system-ui, sans-serif;
  font-size: 2.5rem;
  padding: 5px;
  margin: 5px;
}

.posts h3 {
  font-family: "Bitcount Prop Single", system-ui, sans-serif;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.5rem;
}

.posts strong {
  font-family: "Bitcount Prop Single", system-ui, sans-serif;
  /* font-size: 1.6rem; */
}
.objava {
  text-align: left;
  padding-inline: 20px;
  position: relative;
  margin-top: 20px;
  background-color: hsla(191, 83%, 9%, 0.496);
  padding-bottom: 30px;
  border-radius: 10px;
}

.objava h1 {
  text-align: center;
  padding-top: 50px;
}

.description a {
  padding: 2px;
  border-radius: 0px;
}

.description > * {
  padding-block: 25px;
}
.label {
  position: absolute;
  padding: 3px;
  /* margin-left: 10px; */
  /* margin-top: 10px; */
  color: rgb(2, 18, 33);
  background-color: rgba(249, 196, 255, 0.564);
  top: 10px;
  left: 10px;
  border-radius: 3px;
}

.urejaj {
  position: absolute;
  padding: 3px;
  /* margin-right: 10px; */
  /* margin-top: 5px; */
  /* color: rgb(2, 18, 33);
  background-color: rgba(249, 196, 255, 0.564); */
  top: 10px;
  right: 10px;
  border-radius: 3px;
}

.post-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-left: 0px;
  /* padding-right: 20px; */
}

.post-nav li:last-child {
  margin-left: auto;
}

.post-nav {
  background-color: hsla(191, 83%, 9%, 0.496);
  padding: 7px;
  border-radius: 10px;
}
.post-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1lh;
  width: min(100% - 2rem, 700px);
  box-sizing: border-box;
  padding: 1rem;
  border: solid 1px rgba(245, 222, 179, 0.196);
  background-color: rgba(155, 238, 238, 0.165);
  border-radius: 10px;
  margin: 2rem auto;
}

.post-form > form {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.post-form .form-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding-block: 5px;
}

.post-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  border: 0;
  background: wheat;
}

.post-form input::placeholder {
  color: #9f9f9f;
  opacity: 1;
}
.post-form trix-editor {
  text-align: left;
}
.post-form trix-editor {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.post-form trix-toolbar .trix-button-row {
  flex-wrap: wrap;
  height: auto;
}

.post-form .cf-turnstile {
  max-width: 100%;
}
trix-toolbar .trix-button {
  filter: invert(1);
}

.post-button {
  margin-top: 10px;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 3px solid transparent;
  color: rgb(91, 5, 86);
}

.post-button:hover,
.post-button:focus-visible {
  background: white;
  color: darkcyan;
}

input,
button {
  font: inherit;
}

.objava-seznam {
  margin-bottom: 20px;
  margin-top: 40px;
}

.notice {
  position: relative;
  margin-inline: auto;
  top: 1rem;
  z-index: 1000;

  padding: 1rem 1.25rem;
  border-radius: 0.75rem;

  background: #1f2937;
  color: white;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.alert {
  position: relative;
  margin-inline: auto;
  top: 1rem;
  z-index: 1000;

  padding: 1rem 1.25rem;
  border-radius: 0.75rem;

  background: #1f2937;
  color: brown;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast {
  position: fixed;
  top: 3vh;
  left: 50%;
  z-index: 1000;

  transform: translateX(-50%);

  width: max-content;
  max-width: min(24rem, calc(100vw - 2rem));

  padding: 0.9rem 1.2rem;

  border-radius: 0.75rem;

  font-size: 0.95rem;
  line-height: 1.4;

  box-shadow: 0 10px 30px rgb(0 0 0 / 20%);

  animation: toast-in 0.3s ease-out;
}

.toast--notice {
  background: #e6f7ed;
  color: #185c37;
}

.toast--alert {
  background: #fde8e8;
  color: #8a2020;
}

.toast--out {
  animation: toast-out 0.3s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -0.5rem);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -0.5rem);
  }
}
