/* Hirdetőtábla: a kép cserélhető a hirdetotabla mappában. */
.notice-board {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  transition: visibility .25s step-end, opacity .25s ease;
}

.notice-board__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.notice-board__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid rgba(202, 160, 32, .68);
  border-radius: 10px;
  background: #070707;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .72), 0 0 34px rgba(202, 160, 32, .16);
  transform: translateY(0) scale(1);
  transition: transform .25s ease;
}

.notice-board__panel img {
  display: block;
  width: 100%;
  height: auto;
}

.notice-board__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(202, 160, 32, .74);
  border-radius: 50%;
  background: rgba(9, 9, 9, .8);
  color: var(--gold);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.notice-board__close:hover,
.notice-board__close:focus-visible {
  outline: 0;
  background: var(--gold);
  color: #151515;
  transform: scale(1.08);
}

.notice-board.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility .25s step-start, opacity .25s ease;
}

.notice-board.is-hidden .notice-board__panel { transform: translateY(10px) scale(.98); }

body.notice-board-open { overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .notice-board { padding: 15px; }
  .notice-board__panel { border-radius: 7px; }
  .notice-board__close { top: 7px; right: 7px; width: 34px; height: 34px; font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .notice-board,
  .notice-board__panel,
  .notice-board__close { transition: none; }
}
