/* Elektronska kartoteka SUP-a (budva.predmeti.com) - terminal iz 1985:
   zelena slova na crnom, linije skeniranja, blago treperenje, font VT323. */
:root {
  --zelena: #39ff6a;
  --zelena-tamna: #1f9e3f;
  --zuta: #ffcf3a;
  --crna: #050805;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--crna); }
body {
  color: var(--zelena);
  font-family: "VT323", "Courier New", monospace;
  font-size: 22px;
  line-height: 1.25;
  text-shadow: 0 0 4px rgba(57, 255, 106, .55);
  -webkit-text-size-adjust: 100%;
}
.crt {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  display: flex;
  flex-direction: column;
}
/* linije skeniranja i zatamnjene ivice ekrana */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.28) 3px, rgba(0,0,0,0) 4px),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,.65) 100%);
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .crt { animation: treperenje 6s infinite steps(1); }
}
@keyframes treperenje {
  0%, 100% { opacity: 1; }
  47% { opacity: .96; }
  48% { opacity: 1; }
  82% { opacity: .97; }
  83% { opacity: 1; }
}
.zaglavlje {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 2px solid var(--zelena-tamna);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.natpis {
  font-size: 44px;
  line-height: .95;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(57,255,106,.8), 3px 3px 0 rgba(31,158,63,.6);
}
.status {
  text-align: right;
  color: var(--zuta);
  text-shadow: 0 0 4px rgba(255,207,58,.55);
  white-space: nowrap;
  font-size: 20px;
}
.ekran { flex: 1; cursor: text; }
#izlaz { white-space: pre-wrap; word-break: break-word; }
#izlaz .red { min-height: 1.25em; }
#izlaz .dokument { margin: 6px 0 10px; }
#izlaz .zuto { color: var(--zuta); text-shadow: 0 0 4px rgba(255,207,58,.55); }
#izlaz .crta { color: var(--zelena-tamna); }
.plejer { margin: 4px 0 10px; }
.plejer audio { width: 100%; max-width: 420px; height: 36px; filter: sepia(1) hue-rotate(70deg) saturate(3) brightness(.9); }
.red-unosa { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.red-unosa[hidden] { display: none; }
#oznaka { white-space: nowrap; }
#unos {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--zelena);
  caret-color: var(--zelena);
  font: inherit;
  font-size: 22px; /* 16+ da telefon ne zumira */
  text-shadow: inherit;
  padding: 0;
}
a { color: var(--zuta); }
.noscript { color: var(--zuta); padding: 20px; }
@media (max-width: 600px) {
  body { font-size: 19px; }
  .crt { padding: 12px 16px 32px; }
  .natpis { font-size: 30px; letter-spacing: 2px; }
  .status { font-size: 16px; text-align: left; width: 100%; display: flex; gap: 14px; }
  #unos { font-size: 19px; }
}
