﻿/* GBT33 z drsenjem po BIOšablonah, animacija korakov (stran video/gbt33_biosablone.html).
   Vse je omejeno na #gbt33, da ne vpliva na ostalo stran. */
#gbt33 {
  --g3-card: #ffffff; --g3-ink: #1f2328; --g3-muted: #5f6670;
  --g3-line: #dcd8cf; --leva: #1e6fd9; --desna: #e0661b; --hl: #ffd400;
  container-type: inline-size;
  margin: 1.5em 0 2em;
  color: var(--g3-ink);
  line-height: 1.5;
}
#gbt33 * { box-sizing: border-box; }

/* Gumbi: predloga ima svoje sloge za gumbe (tudi barvo z !important), tu jih ponastavimo */
#gbt33 button {
  font: inherit; font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  height: auto; line-height: 1.4; box-shadow: none;
  color: var(--g3-ink) !important; background: #fff; border: 1px solid var(--g3-line); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
#gbt33 button:hover { background: #f1efe9; }
#gbt33 button.primary { background: var(--g3-ink); color: #fff !important; border-color: var(--g3-ink); min-width: 120px; }

#gbt33 .tabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
#gbt33 .tab { border-radius: 8px 8px 0 0; border-bottom: 3px solid transparent; font-weight: 600; }
#gbt33 .tab.on { background: var(--g3-ink); color: #fff !important; border-color: var(--g3-ink); border-bottom-color: var(--hl); }

#gbt33 .grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
@container (max-width: 820px) { #gbt33 .grid { grid-template-columns: 1fr; } }

#gbt33 .card { background: var(--g3-card); border: 1px solid var(--g3-line); border-radius: 10px; }
#gbt33 .stage { position: relative; padding: 10px; }
#gbt33 .board { position: relative; width: 100%; aspect-ratio: 572 / 412; }
#gbt33 .board.del-2 { aspect-ratio: 939 / 681; }   /* BŠ št. 8 */
#gbt33 .board img, #gbt33 .board svg { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
#gbt33 .board img { border-radius: 4px; max-width: none; }

#gbt33 .hud { position: absolute; left: 12px; top: 12px; background: rgba(20,22,26,.86); color: #fff;
  border-radius: 8px; padding: 6px 12px; min-width: 140px; pointer-events: none; }
#gbt33 .hud .lab { font-size: .8rem; opacity: .85; }
#gbt33 .hud .num { font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
#gbt33 .hud.hidden { display: none; }

#gbt33 .caption { margin: 10px 4px 2px; min-height: 3em; font-size: 1.05rem; }
#gbt33 .caption b { font-weight: 700; }
#gbt33 .caption b.L { color: var(--leva); }
#gbt33 .caption b.D { color: var(--desna); }

#gbt33 .controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 4px 4px; }
#gbt33 .speed { margin-left: auto; display: flex; gap: 4px; align-items: center; color: var(--g3-muted); font-size: .9rem; }
#gbt33 .speed button { padding: 4px 9px; }
#gbt33 .speed button.on { background: var(--g3-ink); color: #fff !important; border-color: var(--g3-ink); }

#gbt33 .side-wrap { position: relative; min-height: 420px; }
#gbt33 .side-wrap > .side { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
@container (max-width: 820px) {
  #gbt33 .side-wrap { min-height: 0; }
  #gbt33 .side-wrap > .side { position: static; }
  #gbt33 ol.steps { max-height: 330px; }
}
#gbt33 .side { padding: 14px; }
#gbt33 .side h3 { font-size: 1rem; margin: 0 0 8px; }
#gbt33 .prog { float: right; font-weight: 400; font-size: .85rem; color: var(--g3-muted); }
#gbt33 ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; position: relative;
  flex: 1 1 auto; min-height: 110px; overflow-y: auto; }
#gbt33 ol.steps li { counter-increment: s; padding: 7px 8px 7px 34px; margin: 0; border-radius: 7px; cursor: pointer;
  position: relative; font-size: .9rem; line-height: 1.35; }
#gbt33 ol.steps li::before { content: counter(s); position: absolute; left: 8px; top: 7px; width: 20px; height: 20px;
  border-radius: 50%; background: #ece9e2; text-align: center; font-size: .75rem; line-height: 20px; }
#gbt33 ol.steps li:hover { background: #f4f2ec; }
#gbt33 ol.steps li.cur { background: #fff6c9; }
#gbt33 ol.steps li.cur::before { background: var(--g3-ink); color: #fff; }
#gbt33 ol.steps li.swap { border-top: 1px dashed #c9c3b6; margin-top: 4px; }
#gbt33 ol.steps li.swap::after { content: "menjava rok"; display: block; font-size: .72rem; color: var(--g3-muted); }

#gbt33 .legend { flex: none; display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; margin: 12px 0 0; }
#gbt33 .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px;
  margin-right: 5px; border: 2px solid #fff; box-shadow: 0 0 0 1px #999; }
#gbt33 .dot.L { background: var(--leva); }
#gbt33 .dot.D { background: var(--desna); }
#gbt33 .terms { flex: none; margin-top: 14px; font-size: .8rem; line-height: 1.35; color: var(--g3-muted); border-top: 1px solid var(--g3-line); padding-top: 8px; }
#gbt33 .terms p { margin: 0 0 4px; }

/* ---------------------------------------------------------------------------
   Stran Video vsebina (video/_video.html): slika animacije GBT33 s povezavo na
   animacijo in oblika posnetka pod njo, ki je bila prej zapisana v HTML.
   --------------------------------------------------------------------------- */

/* posnetek z oznako video */
figure.video video.video-posnetek {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* slika s povezavo, na primer na animacijo */
figure.animacija a.video-slika {
  display: block;
  border: 0;
  line-height: 0;
}
figure.animacija a.video-slika img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 0 0 4px;      /* predloga slikam doda večji spodnji odmik, tu je enak kot pri posnetku */
}

/* Slika animacije na strani Video vsebina: ni figure.video, da je lightbox ne odpre kot posnetek */
figure.animacija {
  margin: 0 0 1.2em;
  width: 100%;
}
figure.animacija figcaption {
  text-align: left;
  font-style: italic;
  line-height: 1.3;
  color: #444;
}
figure.animacija figcaption::before {
  content: "\f030";
  font-family: "FontAwesome";
  margin-right: 8px;
  color: rgba(0, 0, 128, 0.6);
  font-style: normal;
  display: inline-block;
}
