@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

:root {
  --color-alert-red: #e63946;
  --color-accent: blue;
  --color-interactive-blue: blue;
  --color-main: #f1faee;
  --color-secondary: #555555;
  --color-bg: #0a0a0a;
  --color-border: #222222;
  --color-text: #c0c0c0;
  --color-paragraph: var(--color-text);
  --color-code: #8e8e8e;
}

body {
  background-color: var(--color-bg);
  color: var(--color-paragraph);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  line-height: 1.7;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

body:not([data-view='main']) {
  margin: 30px auto 40px;
}

body > *:not(.background-css) {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.body-index {
  overflow: hidden;
}

.background-css {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.animated-line {
  position: absolute;
  bottom: 35%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  overflow: hidden;
}

.light {
  position: absolute;
  top: 0px;
  width: 100px;
  height: 20px;
  background: radial-gradient(circle, var(--color-alert-red) 0%, rgba(0, 0, 0, 0) 70%);
  animation: move-light 4s linear infinite;
  pointer-events: none;
  filter: blur(4px);
}

@keyframes move-light {
  0% { left: -100px; }
  100% { left: 100%; }
}

.flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-main);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: none;
}

@keyframes flashEffect {
  0% { opacity: 0; }
  20% { opacity: 0.8; }
  50% { opacity: 0.4; }
  100% { opacity: 0; }
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: start;
}

.container {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.arrow-btn {
  width: 50px;
  height: 50px;
  font-size: 20px;
  font-weight: bold;
  background-color: var(--color-bg);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.3s ease;
  margin: 20px;
  font-family: 'Orbitron', sans-serif;
}

.arrow-btn-left {
  margin: 20px 20px 20px -37px;
}

.arrow-btn:not(.active):hover {
  color: var(--color-interactive-blue);
  border: none;
  border-bottom: 2px solid var(--color-interactive-blue);
  box-shadow: 0 4px 15px 0px rgba(23, 61, 212, 0.7);
  font-weight: bold;
  padding-top: 1px;
  background-color: rgba(70, 68, 68, 0.3);
}

.arrow-btn.active,
.arrow-btn.active:hover {
  background-color: rgb(196, 5, 5);
  color: rgb(196, 5, 5);
  box-shadow: 0px 0px 20px 7px rgb(196, 5, 5);
  border: 5px double rgb(164, 9, 9);
  transform: scale(1.1);
}

.rolka-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -100%;
  left: 0;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-name: slideFromTop;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

@keyframes slideFromTop {
  from { top: -100%; opacity: 0; }
  to { top: 0; opacity: 1; }
}

.rolka-wrapper {
  position: relative;
}

.windows {
  display: flex;
  width: 135px;
  height: 750px;
  border: 2px solid var(--color-secondary);
  overflow-x: auto;
  overflow-y: auto;
  background-color: var(--color-bg);
  flex-wrap: nowrap;
  cursor: pointer;
}

.img-wrapper {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-bottom: 50px;
}

.img-wrapper img {
  display: block;
  height: auto;
  max-width: none;
  max-height: 1500px;
  user-select: none;
  pointer-events: none;
  transition: filter 0.3s ease;
}

.windows::-webkit-scrollbar {
  background-color: var(--color-border);
  height: 20px;
}

.windows::-webkit-scrollbar-thumb {
  background-color: var(--color-secondary);
  border-radius: 5px;
  width: 40px;
}

.windows::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-interactive-blue);
  padding: 2px;
  border: 2px solid var(--color-border);
}

.windows::-webkit-scrollbar-corner {
  background-color: var(--color-border);
}

.zoom-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.zoom-buttons button {
  background-color: var(--color-bg);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  padding: 10px 20px;
  font-size: 25px;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  font-family: 'Orbitron', sans-serif;
}

.zoom-buttons button:hover {
  color: var(--color-interactive-blue);
  border: none;
  border-bottom: 2px solid var(--color-interactive-blue);
  box-shadow: 0 4px 15px 0px rgba(23, 61, 212, 0.7);
  font-weight: bold;
  padding-top: 1px;
  background-color: rgba(70, 68, 68, 0.5);
}

.footer-reset {
  position: fixed !important; 
  top: 2vw !important;     
  left: 10vw !important;      
  bottom: auto !important;      
  right: auto !important;    
  
  /* Kontener nie musi mieć sztywnej wysokości, jeśli przycisk ją ma */
  width: auto;
  height: auto;
  z-index: 10001;
  display: block !important;
  pointer-events: auto !important;
}

.footer-reset .footer-button {

  width: 60px;
  height: 55px;
  padding: 5px;
  display: flex;            /* Flex wewnątrz przycisku, żeby wycentrować napis RESET */
  justify-content: center;
  align-items: center;
  
  background-color: #000;
  color: blue;
  border: 1px solid blue;   /* Powrót do cieńszej ramki */
  padding: 0;               /* Reset paddingu przy sztywnej szerokości */
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 5px;
  box-shadow: 0 0 10px blue;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-reset .footer-button:hover {
  color: var(--color-interactive-blue);
  border: none;
  border-bottom: 2px solid var(--color-interactive-blue);
  box-shadow: 0 4px 15px 0px var(--color-interactive-blue);
  font-weight: bold;
  padding-top: 1px;
  background-color: rgba(70, 68, 68, 0.5);
}

.footer-bar {
  width: 100%;
  left: 0;
  position: fixed;
  display: flex;
  align-items: end;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
  top: -80vh;
}

.footer-bar .footer-button {
  position: relative;
  width: 100px;
  height: 10px;
  padding: 9px 9px 16px;
  background-color: rgb(57, 6, 179);
  color: var(--color-bg);
  text-align: center;
  text-decoration: none;
  border-radius: 2px 0 0 2px;
  cursor: pointer;
  right: 0;
  transition: right 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
}

.footer-bar .footer-button:hover {
  background-color: var(--color-interactive-blue);
  color: var(--color-main);
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.header-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  color: var(--color-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(230, 57, 70, 0.7);
  margin: 0;
}

.header-subtitle {
  display: block;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  color: var(--color-paragraph);
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.manifest-status {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--color-secondary);
  background-color: #1a1a1a;
  padding: 4px 8px;
  margin-top: -10px;
  margin-bottom: 40px;
  display: inline-block;
  border: 1px solid var(--color-border);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.buttons {
  display: flex;
  gap: 15px;
}

a.button {
  background-color: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

a.button:hover {
  background-color: var(--color-interactive-blue);
  color: var(--color-main);
  box-shadow: 0 0 10px rgba(85, 85, 85, 0.5);
}

.intro-paragraph {
  font-size: 16px;
  color: var(--color-main);
  font-weight: 600;
  margin-bottom: 30px;
  text-transform: uppercase;
}

h2 {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  margin-top: 50px;
  margin-bottom: 20px;
  color: var(--color-main);
  padding-left: 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  overflow: hidden;
}

h2::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  height: 0;
  background-color: var(--color-accent);
}

h2 span {
  display: inline-block;
  opacity: 0;
  transform: translateX(60px);
}

h2.is-visible::before {
  animation: grow 0.4s forwards;
}

h2.is-visible span {
  animation: slideInText 0.6s forwards;
  animation-delay: 0.4s;
}

@keyframes grow {
  from { height: 0; }
  to { height: 100%; }
}

@keyframes slideInText {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.h2-command {
  padding-left: 25px;
}

.h2-command::before {
  content: '//';
  position: absolute;
  left: 0;
  width: 15px;
  height: 100%;
  color: var(--color-accent);
  font-size: 18px;
  opacity: 0.8;
  top: 0;
  transform: none;
  animation: none;
}

.h2-command.is-visible span {
  animation: none;
  opacity: 1;
  transform: none;
}

p {
  margin-bottom: 18px;
  text-align: justify;
  font-size: 15px;
}

strong {
  color: var(--color-main);
  font-weight: 700;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

li {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 15px;
  border-left: 3px solid var(--color-border);
  padding-left: 15px;
}

.command-key {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 10px;
  display: inline-block;
  width: 100px;
  text-transform: uppercase;
}

.action-desc {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-paragraph);
  font-weight: 400;
  text-transform: none;
}

hr {
  border: none;
  border-top: 1px solid rgb(204, 204, 204,0.7);
  margin: 40px 0;
  opacity: 0.3;
  width: 0;
  transition: width 0.6s ease;
}

hr.visible {
  width: 100%;
}

.robakowski-figure {
  margin: 20px 0;
  padding: 0;
}

.robakowski-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #333;
}

.robakowski-figure figcaption {
  text-align: center;
  font-size: 0.85em;
  color: #ccc;
  margin-top: 10px;
}

.container-information {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60%;
  max-width: 900px;
}

#startScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-main);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 15px;
  padding: 20px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10000;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: inset 0 0 50px rgba(230, 57, 70, 0.2);
  text-align: center;
}

.start-call {
  color: blue;
  white-space: nowrap;
}
.container-information p, 
.container-information .intro-paragraph {
  text-indent: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: justify;
}

.container-information {
  align-items: stretch !important; 
}

/* --- STYLE DLA SEKCE #09 IDENTYFIKACJA --- */

.operator-list {
    list-style: none;
    padding: 0;
}

.operator-list li {
    margin-bottom: 8px;
}

.user-name {
    color: var(--color-main);
    font-weight: bold;
}

.user-role {
    color: var(--color-interactive-blue);
}

.action-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.action-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.user-status {
    color: var(--color-accent);
    font-weight: bold;
}

.user-uid {
    opacity: 0.5;
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}
@media (max-width: 1700px) {
  .top-row {
    transform: scale(0.85);
  }
  }

@media (max-width: 1340px) {
  .top-row {
    margin-top: -50px!important;
  }
  .windows {
    border: 3px solid var(--color-secondary);
  }
}

@media (max-width: 1200px) {
  .top-row {
    transform: scale(0.80);
    margin-top: -90px!important;
  }
  .footer-bar {
    margin-top: 70px!important;
  }
    .light {
  top: -200px;

}
}

@media (max-width: 1070px) {
  .top-row {
    transform: scale(0.70);
    margin-top: -130px!important;
  }
    
    .light {
  top: -400px!important;

}
}

@media (max-width: 768px) {
  .footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
    z-index: 10000;
    margin-top: 670px!important;

}
        .light {
  top: -500px;
  }
  .footer-bar .footer-button {
    height: auto;
    padding: 5px 10px;
    border-radius: 2px;
    right: 0;
    text-align: center;
    font-size: 11px;
    transition: none;
    margin-top: -50px;
  }
  .footer-bar .footer-button::before {
    content: none;
  }
  .footer-bar .footer-button:hover {
    right: 0;
  }
  .footer-reset {
    position: absolute;
    top: -90px;
    left: 40%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10;
  }
  .windows {
    border: 4px solid var(--color-secondary);
  }
  .top-row {
    margin-top: -70px!important;
  }
}

@media (max-width: 740px) {
  .windows::-webkit-scrollbar {
    width: 20px;
  }
}
@media (max-width: 768px) and (min-width: 541px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .top-row {
    display: flex;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .arrow-btn-left {
    margin: 20px !important;
  }
  .footer-bar {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .footer-bar .footer-button {
    right: auto !important;
    margin: 0 10px !important;
  }
}
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-title-group {
    align-items: center;
    margin-bottom: 15px;
  }
  h1 {
    font-size: 28px;
  }
  .buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  a.button {
    width: 100%;
    text-align: center;
  }
  h2, .h2-command {
    padding-left: 15px;
    font-size: 18px;
  }
  .h2-command::before {
    content: '>';
    width: 10px;
    font-size: 16px;
  }
  .command-key {
    width: 70px;
    margin-right: 5px;
  }
  .robakowski-figure {
    margin: 15px 0;
  }
  .robakowski-figure figcaption {
    font-size: 0.75em;
    margin-top: 8px;
  }

}

@media (max-width: 540px) {
  .container {
    position: relative;
  }
  .top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: -80px !important;
  }
  .arrow-btn, .footer-reset {
    transform: scale(1.3);
  }
  .rolka-container {
    order: 1;
  }
  #leftBtn {
    order: 2;
    margin: 20px 75px;
  }
  #rightBtn {
    order: 3;
    margin: 20px 75px;
  }
  .footer-bar {
    position: relative !important;
    top: 0 !important;
    order: 4 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    margin-top: -130px !important;
    z-index: 9999 !important;
    width: 100% !important;
    height: 50px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .footer-bar .footer-button {
    margin: 0 10px !important;
    margin-top: 0 !important;
    right: auto !important;
    position: relative !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 15px !important;
    background-color: rgb(57, 6, 179) !important;
    color: white !important;
    font-size: 11px !important;
    border-radius: 4px;
  }
}

@media (max-width: 400px) {
  .top-row {
    margin-top: -170px !important;
  }
  .footer-bar {
    position: relative !important;
    top: 0 !important;
    margin-top: -190px !important;
    z-index: 9999 !important;
  }
  .footer-bar .footer-button {
    margin-top: 0px!important;
    position: relative !important;
    display: flex !important;
  }
  .top-row {
    transform: scale(0.55);
  }
  
    .light {
  top: -500px!important;

}
}

@media (orientation: landscape) {
  .top-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    width: 100vw;
  }
  .rolka-container {
    order: unset !important;
  }
}

/* --- RESPONYWNOŚĆ --- */

/* Dla średnich ekranów (np. tablety) */


@media (max-width: 1700px) {
  .footer-reset {
    left: 15px !important;
    top: 10px !important;
  }
  .footer-reset .footer-button {
    width: 50px;
    height: 45px;
    font-size: 11px;
  }
}

@media (max-width: 1600px) {
  .footer-reset {
    left: 5px !important;
  }
  }

/* Dla małych ekranów (telefony) */
@media (max-width: 768px) {
  .footer-reset {
    left: 50% !important;
    transform: translateX(-50%);
  }
}
