body, html {
    background:#000;
    color:#fff;
}

/* NON usiamo * { color: #fff !important } perché rompe le eccezioni */

/* Layout base */
body {
    background:#000;
    color:#fff;
    font-family: monospace;
}

/* Contenitori principali */
header,
#terminalOutput,
#viewport {
    background:#000;
    border:2px solid #fff;
}

/* Riga input terminale */
.inputLine span {
    color:#fff;
}

#terminalInput {
    background:#000;
    border:2px solid #fff;
    color:#fff;
}

/* Stili di output */
.sys {
    color:#fff;
}

.warn {
    color:#fff;
    text-decoration: underline;
}

/* ERROR: sfondo bianco, testo nero */
.err {
    background:#fff;
    color:#000 !important;
    padding:2px;
}

/* BREAKING NEWS TICKER */
#breakingNewsTicker {
  width: 100%;
  background: #111;
  color: #fff;
  font-family: monospace;
  padding: 3px 0;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 1px solid #300;
  font-size: 1.6em; 
  font-weight: bold; 

}

#breakingNewsTicker span {
  display: inline-block;
  padding-left: 100%;
  animation: tickerScroll 18s linear infinite;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* STATUS BAR */
#statusBar {
  background: #000;
  color: #fff;
  font-family: monospace;
  padding: 4px 8px;
  border-bottom: 1px solid #333;
}

/*** FULLSCREEN ENDGAME ***/
#endgameScreen {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:black;
  color:#eee;
  display:none;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  text-align:center;
  padding:40px;
  font-family: "Courier New", monospace;
  z-index:999999;
}

#endgameScreen h1 {
  font-size: 2em;
  margin-bottom: 20px;
}

#endgameScreen p {
  max-width: 800px;
  line-height: 1.6;
  color: #ccc;
  font-size: 1.2em;
}

#staticViewports {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 10px;
}

.staticViewport {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border: 2px solid #fff;
  background:#000;
}

#main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

@font-face {
    font-family: "MyFont";
    src: url("assets/VT323-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html, body, * {
    font-family: "MyFont", monospace !important;
}

#introOverlay {
  position: fixed;
  top:0; left:0;
  width: 100%; height: 100%;
  z-index: 99999999;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

#introOverlay .intro-box {
  max-width: 700px;
  text-align: center;
  font-family: monospace;
  border: 1px solid #555;
  padding: 40px;
  background: #000;
  color: #fff;
}

#introOverlay h1 {
  font-size: 2em;
  margin-bottom: 20px;
}

#introOverlay p {
  line-height: 1.6;
  font-size: 1.2em;
}

