/*
Theme Name: Minimal Child
Template: twentytwentyone
*/
body {
  margin: 0;
  background: #0e0e0e;
  color: #f2f2f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
}
/* --- Terminal base --- */

.terminal {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-output {
  width: 90%;
  max-width: 720px;
  line-height: 1.6;
  font-size: 1rem;
}

.terminal-output p {
  margin: 0 0 0.6rem 0;
}

/* choices (yes / no) */

.choices span {
  margin-right: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
}

.choices span:hover {
  opacity: 1;
}

/* menu */

.menu-item {
  opacity: 0.6;
}

.menu-item.active {
  opacity: 1;
}
.menu-item::before {
  content: "  ";
}

.menu-item.active::before {
  content: "> ";
}

.menu-item {
  cursor: pointer;
}
/* =========================
   PHOTO SECTION — TERMINAL
   ========================= */

#photo-section {
  position: absolute;
  inset: 0;
  padding: 2rem;
}

/* path in alto a sinistra */
.terminal-path {
  position: fixed;
  top: 2.4rem;
  left: 1rem;

  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.5;
  text-transform: uppercase;

  z-index: 10;
}

/* layout principale */
.photo-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  height: 100%;
  align-items: flex-start;
  margin-top: 3.2rem;
}

.file-list {
  margin-top: 0;
  line-height: 1.6;
}

/* lista file */
.file-list {
  font-size: 0.95rem;
}

.file-item {
  opacity: 0.5;
  cursor: pointer;
  margin-bottom: 0.4rem;
}

.file-item.active {
  opacity: 1;
}

/* preview immagine */
.photo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview img {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
}

/* loading UI centrata */
#photo-loading {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.loading-bar {
  letter-spacing: 2px;
  margin-top: 0.4rem;
}
/* terminal cursor for photo files */

.file-item::before {
  content: "  ";
}

.file-item.active::before {
  content: "> ";
}
/* =========================
   SYSTEM INFO (TIME / DATE)
   ========================= */

#sys-info {
    z-index: 20;
  position: fixed;
  top: 0.9rem;
  left: 1rem;

  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  opacity: 0.4;

  font-feature-settings: "tnum";
}

#sys-info .sep {
  margin: 0 0.6rem;
}
/* =========================
   SYSTEM COMMANDS (Q / B)
   ========================= */

#sys-commands {
  position: fixed;
  top: 0.9rem;
  right: 1rem;
  text-align: right;

  display: flex;
    flex-direction: column;
  gap: 1.2rem;

  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  opacity: 0.4;
  z-index: 20;
}

#sys-commands .cmd {
  cursor: pointer;
}

#sys-commands .cmd:hover {
  opacity: 0.8;
}
/* =========================
   REAL LOADING BAR
   ========================= */

#photo-loading {
  text-align: center;
}

.loading-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.loading-bar {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

#loading-progress {
  min-width: 14ch;
}

#loading-percent {
  opacity: 0.5;
}
/* =========================
   VIDEO SECTION
   ========================= */

#video-section {
  position: absolute;
  inset: 0;
  padding: 2rem;
}

#video-section video {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.15s linear;
}

/* loading video (stesso linguaggio di photo) */
#video-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
/* terminal cursor for video files */

.video-item::before {
  content: "  ";
}

.video-item.active::before {
  content: "> ";
}
#music-commands {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-family: monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
  text-align: right;
  pointer-events: none; /* solo informativo */
  opacity : 0.4;
}

#music-commands span {
    font-size: 12px;
    color: rgba(254, 253, 253, 0.6);
    opacity: 0.8;
  
}
.info-output {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  padding: 20px;
}

/* griglia leggera */
body[data-page="info"] .info-output::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
#info-section {
  display: flex;
  flex-direction: column;
  gap: 16px; /* spazio fisso sotto la path */
}

.info-output {
  margin: 0;
  white-space: pre-wrap;
}
.info-footer {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 12px;
}

.info-footer p {
  margin: 2px 0;
}
#info-section {
  position: relative;
  height: 100%;
}

.info-output {
  white-space: pre-wrap;
  margin-top: 3rem;
   text-align: left;        /* allineamento */
  font-size: 12px;         /* più piccolo (prova 11–13) */
  line-height: 1.5;
  opacity: 0.78;           /* meno aggressivo */
  letter-spacing: 0.02em;
}
/* =========================
   INFO PAGE – LAYOUT FIX
   ========================= */

.info-page .terminal {
  align-items: flex-start;
  justify-content: flex-start;
}

/* comandi stile terminal, fissi a destra */
.info-controls {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  text-align: right;
  font-size: 0.75rem;
  opacity: 0.85;
}

.info-controls p {
  margin: 0.2rem 0;
}
#lang-switch {
  opacity: 0.8;
  font-size: 0.75rem;
}
#info-section .terminal-path {
  margin-bottom: 20px;
}

.info-output {
  white-space: pre-wrap;
  line-height: 1.6;
    max-width: 600px;
  margin-left: 80px;
  margin-top: 4rem;
  padding-right: 320px; /* spazio per l’immagine */
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.78;
  letter-spacing: 0.02em;
  text-align: left;
}
/* Nasconde header WordPress (titolo sito) */

.page-info .site-header,
.page-info .site-branding,
.page-info .site-title {
  display: none !important;
}



.info-portrait img {
  width: 75%;
  image-rendering: pixelated;
  opacity: 0.5;
  filter: contrast(1.05);
   border: 1px solid rgba(255,255,255,0.15);
  padding: 8px;
}
#info-section {
  position: relative;
  height: 100%;
}
.info-portrait {
  position: fixed;
  top: 140px;
  right: 150px;
  width: 220px;
  pointer-events: none;
  z-index: 5;
}
#music-command {
  position: fixed;
  bottom: 24px;
  right: 24px; /* oppure left se preferisci */
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.45;
  pointer-events: none;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}
#intro-line {
  opacity: 0.75;          /* prova tra 0.65 e 0.85 */
  letter-spacing: 0.02em;
  white-space: pre-wrap;
}
#question {
  opacity: 0.6;           /* prova tra 0.6 e 0.8 */
  font-size: 12px;
  margin-top: 1.2rem;
  letter-spacing: 0.02em;
}
#mini-menu {
  position: fixed;
  top: 6rem;        /* subito sotto QUIT / BACK */
  right: 1rem;

  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  opacity: 0.65;
  z-index: 30;
}

.mini-item {
  opacity: 0.5;
  cursor: pointer;
}

.mini-item.active {
  opacity: 1;
}

.mini-item::before {
  content: "  ";
}

.mini-item.active::before {
  content: "> ";
}
#menu,
#menu .menu-item {
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}
