@font-face {
      font-family: "Sfinga";
      src: url('/fonts/SfingaCond.otf') format('opentype'),
            url('/fonts/SfingaCond.woff') format('woff');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
}

:root {
      color-scheme: light;
      --surface: #4a5568;
      --surface-elevated: rgba(74, 85, 104, 0.88);
      --accent: #cccccc;
      --text: #eeeeee;
      --muted: #9da8b9;

      /* Nastavitve za opis-container */
      --factor: 3;
      --pt-to-px: 1.3333;
      --mm-to-px: 3.7795;

      /* Osnovne mere iz PDF-ja */
      --font-size-pt: 7;
      --block-width-mm: 11;
      --block-width-actual-mm: 10.6;

      /* Pretvorbe v px - izračunane vrednosti s faktorjem 3 */
      --font-size-px: 28px;
      /* 7 x 1.3333 x 3 = 25.6px */
      --block-width-px: 124.72px;
      /* 11 x 3.7795 x 3 = 124.72px */
      --block-width-actual-px: 120.18px;
      /* 10.6 × 3.7795 × 3 = 120.18px */

      /* editor area, fixed space */
      --block-overall-px: 250px;
      --block-overall-width-px: 360px;

      /* SFINGA FONT for web usage */
      --sfinga-font-family: "Sfinga";
      --sfinga-font-size-px: 28px;
      --sfinga-line-height: 1.1;
      --sfinga-letter-spacing: 0.02em;
      --sfinga-text-transform: uppercase;

}

body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #6b7280;
      color: var(--text);
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      line-height: 1.2;
}

main {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      padding: 3rem;
      border-radius: 8px;
      background-color: var(--surface-elevated);
      width: 100%;
      max-width: 1400px;
      text-align: center;
}

hr {
      width: 100%;
      border: 1px solid var(--muted);
      margin: 1rem 0;
}

p {
      margin: 0.25rem 1rem 0.25rem 1rem;
      font-size: 1rem;
      line-height: 1.2;
      color: var(--muted);
}

strong {
      color: var(--accent);
}

button {
      background-color: var(--accent);
      color: #000000;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      cursor: pointer;
}

button:hover {
      background-color: var(--muted);
      color: #000000;
}

.cols {
      display: grid;
      grid-template-columns: 600px 1fr 1fr;
      align-items: center;
      gap: 2rem;
}

@media (max-width: 768px) {
      .cols {
            grid-template-columns: 1fr;
      }
}

.col-opis {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      align-items: center;
      justify-content: center;
      height: 100%;
      background-color: #00000020;
      padding: 1rem;
}

.col-status {
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
      align-items: flex-start;
      justify-content: center;
      height: 100%;
      padding: 1rem;
}


/* main text container */
.opis-container {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #000000;
      width: var(--block-overall-width-px);
      height: var(--block-overall-px);
      background-color: #ffffff80;
      border-radius: 0.5rem;
      box-sizing: border-box;
      padding: 0.5rem;
      text-align: center;
      word-wrap: break-word;
      overflow-wrap: break-word;
      position: relative;
      margin: 1em;
}

/* dotted lines */
.opis-container::before,
.opis-container::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 2;
      pointer-events: none;
      box-sizing: border-box;
      transform: translate(-50%, -50%);
      border: 1px dashed var(--surface);
}

/* dotted lines vertical */
.opis-container::before {
      width: 100%;
      height: var(--block-width-actual-px);
      border-left: none;
      border-right: none;
}

/* dotted lines horizontal */
.opis-container::after {
      width: var(--block-width-actual-px);
      height: 100%;
      border-top: none;
      border-bottom: none;
}

/* opis block, white square */
.opis-block {
      width: var(--block-width-px);
      height: var(--block-width-px);
      background-color: #ffffff;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 0;
      pointer-events: none;
      box-sizing: border-box;

}


/* TEXT AREA, editor */
#input-opis {
      margin: 0;
      padding: 64px 0 0 0;
      /* calculation */
      display: block;
      width: var(--block-overall-width-px);
      height: var(--block-overall-px);
      max-height: var(--block-overall-px);
      background-color: transparent;
      border: none;
      outline: none;
      box-sizing: border-box;
      resize: none;
      color: #000000;
      text-align: center;
      
      overflow: hidden;
      position: relative;
      z-index: 1;
      /* FONT CALCULATION */
      font-family: var(--sfinga-font-family);
      font-weight: normal;
      font-style: normal;
      line-height: var(--sfinga-line-height);
      letter-spacing: var(--sfinga-letter-spacing);
      text-transform: var(--sfinga-text-transform);
      font-size: var(--sfinga-font-size-px);
      /* FONT CALCULATION */
     
      


}

#input-opis:focus {
      outline: none;
      border: none;
}

.code-block {
      display: block;
      color: var(--accent);
      text-align: left;
}

/* measurement span - mirrors input text font to measure width accurately */
#measure-span {
      display: inline-block;
      /* In English: shrink to content width */
      white-space: normal;
      /* <br> will create line breaks */
      color: #000000;
      max-width: none;
      /* Hidden but measurable */
      position: absolute;
      left: -99999px;
      top: -99999px;
      opacity: 0;
      pointer-events: none;

      /* FONT CALCULATION */
      font-family: var(--sfinga-font-family);
      font-weight: normal;
      font-style: normal;
      line-height: var(--sfinga-line-height);
      letter-spacing: var(--sfinga-letter-spacing);
      text-transform: var(--sfinga-text-transform);
      font-size: var(--sfinga-font-size-px);
      /* FONT CALCULATION */
}