html {
  -webkit-text-size-adjust: none;
}

body {
  margin: 0;
  background-color: #000;
  color: #0f0;
  font-family: 'Press Start 2P', monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  gap: 0.1rem;
}

.header-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.session-status{
    font-size:1rem;
}

.header-name {
  color: #0f0;
  font-family: 'Monoton', monospace; 
  font-size: 6rem;
  font-style: italic;
  white-space: nowrap;
}

.retro-button {
    background-color: #0ff; /* cyan or pick any other */
    color: #000;
    border: 2px solid #0ff;
    padding: 0.5rem 1rem;
    padding: 0.4rem 0.8rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    cursor: pointer;
}

@media (hover: hover) {
  .retro-button:hover {
    background-color: #000;
    color: #0ff;
  }
}

.retro-button.pressed {
  background-color: #000;
  color: #0ff;
}

.retro-button:first-of-type {
  margin-left:50%;  
}

.terminal-bar {
  display: flex;
  border: 2px dotted #0f0;
  padding: 1rem;
  width: 100%;
  max-width: 800px;
  background-color: #000;
  gap: 1rem;
  width: 800px;
}

.terminal-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.terminal-title {
  color: #0f0;
  font-size: 1rem;
  white-space: nowrap;
}

.terminal-form-green {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex: 1;
  position: relative;
}

.terminal-form-green2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex: 1;
  position: relative;
}

.terminal-form-green3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex: 1;
  position: relative;
}

.terminal-form-green4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex: 1;
  position: relative;
}

.select-wrapper-fractal {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  pointer-events: auto;
}

.select-wrapper-fractal select {
  max-width: 150px;
  white-space: nowrap;      /*Prevent wrapping*/
  text-overflow: ellipsis;  /* Show "..." when truncated */
  overflow: hidden;
  background-color: #000;
  border: 2px solid #00ff00; /* green border */
  color: rgba(251, 252, 251, 0.64);
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.89rem;
  height: 2.4rem;
  max-height: 2.4rem;
  appearance: none;
  cursor: pointer;
}

.select-wrapper-fractal[data-role="region"] select {
  max-width: 110.5px;
}

.select-wrapper-fractal[data-role="country"] select {
  max-width: 124.4px;
}

.select-wrapper-fractal[data-role="index"] select {
  width: 110px;
}

.select-wrapper-fractal::after {
  content: '▼';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff00;
  pointer-events: none;
  font-size: 0.89rem;
  z-index: 2;
}

.select-wrapper-fractal.no-arrow::after {
  content: none;
}


.select-wrapper-green {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-bottom: 0.2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}


.select-wrapper-green.visible {
  opacity: 1;
  pointer-events: auto;
}

.select-wrapper-green select {
  width: auto !important;
  max-width: 300px;
  white-space: nowrap;      /*Prevent wrapping*/
  text-overflow: ellipsis;  /* Show "..." when truncated */
  overflow: hidden;
  background-color: #000;
  border: 2px solid #00ff00; /* green border */
  color: rgba(251, 252, 251, 0.64);
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.89rem;
  height: 2.4rem;
  max-height: 2.4rem;
  appearance: none;
  cursor: pointer;
}


.select-wrapper-green[data-role="color-spiral"] select {
  /* e.g. allow ~8 characters + arrow/padding space */
  max-width: 240px;
}

.select-wrapper-green[width="restrain"] select {
  /* e.g. allow ~8 characters + arrow/padding space */
  max-width: 167px;
}

.select-wrapper-green::after {
  content: '▼';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff00;
  pointer-events: none;
  font-size: 0.89rem;
  z-index: 2;
}

.select-wrapper-green.no-arrow::after {
  content: none;
}

.color-pickers-green {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 150px;
  pointer-events: auto;
  position: relative;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.color-pickers-green.visible {
  opacity: 1;
  pointer-events: auto;
}


.color-swatch-green {
  width: 34px;
  height: 34px;
  border: 2px solid #00ff00;
  background: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.color-swatch-green input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.queued-sessions {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 1rem;
}

.queued-sessions[margin="3D"] {
  /* e.g. allow ~8 characters + arrow/padding space */
  margin-left: 2rem;
}

.queued-sessions[margin="spiral"] {
  /* e.g. allow ~8 characters + arrow/padding space */
  margin-left: 4rem;
}

.queued-sessions[margin="fractal"] {
  /* e.g. allow ~8 characters + arrow/padding space */
  margin-left: 3rem;
}

.queued-sessions select {
  /* width: auto !important; */
  width: 250px;
  white-space: nowrap;      /*Prevent wrapping*/
  text-overflow: ellipsis;  /* Show "..." when truncated */
  overflow: hidden;
  background-color: #000;
  border: 2px solid #00ff00; /* green border */
  color: rgba(251, 252, 251, 0.64);
  padding: 0.4rem 2rem 0.4rem 0.6rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.92rem;
  height: 2.4rem;
  max-height: 2.4rem;
  appearance: none;
  cursor: pointer;
}

.queued-sessions::after {
  content: '▼';
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff00;
  pointer-events: none;
  font-size: 1rem;
  z-index: 2;
}

.queued-sessions.no-arrow::after {
  content: none;
}

/* Green form buttons (same as original .terminal-form buttons) */
.terminal-form-green button {
  background: none;
  border: 2px solid orange;
  color: orange;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.terminal-form-green button:first-of-type {
  margin-left: auto; /* same layout push */
}

/* .terminal-form-green button:hover {
  background-color: orange;
  color: #000;
} */

.terminal-form-green4 button {
  background: none;
  border: 2px solid orange;
  color: orange;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.terminal-form-green4 button:first-of-type {
  margin-left: auto; /* same layout push */
}

/* .terminal-form-green4 button:hover {
  background-color: orange;
  color: #000;
} */

.terminal-form-green2 button {
  background: none;
  border: 2px solid orange;
  color: orange;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.terminal-form-green3 button {
  background: none;
  border: 2px solid orange;
  color: orange;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.terminal-form-green2 button:first-of-type {
  margin-left: auto; /* same layout push */
}

.terminal-form-green3 button:first-of-type {
  margin-left: auto; /* same layout push */
}

/* .terminal-form-green2 button:hover {
  background-color: orange;
  color: #000;
} */

/* .terminal-form-green3 button:hover {
  background-color: orange;
  color: #000;
} */

.terminal-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex: 1;
}

.terminal-form select {
    max-width: 350px;
    background-color: #000;
    border: 2px solid #ffaa00;
    color: rgba(251, 252, 251, 0.64);
    padding: 0.4rem 0.1rem 0.4rem 0.6rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    appearance: none;
    position: relative;
    z-index: 1;
    cursor: pointer;
    
}

.terminal-block {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.custom-typing-output {
  font-family: 'Press Start 2P', monospace;
  color: #0f0;
  white-space: pre;
  padding-left: 2rem; /* align with input text */
  white-space: pre-line;
  line-height: 3; /* You can increase this value for more spacing */
}

.custom-typing-output-blue {
  font-family: 'Press Start 2P', monospace;
  color: cyan;
  white-space: pre;
  padding-left: 2rem; /* align with input text */
  white-space: pre-line;
  line-height: 3; /* You can increase this value for more spacing */
  position: relative;
}


.select-wrapper-markets {
    max-width: 350px;
    background-color: #000;
    border: 2px solid #ffaa00;
    color: rgba(251, 252, 251, 0.64);
    padding: 0.4rem 0.1rem 0.4rem 0.6rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    appearance: none;
    position: relative;
    z-index: 1;
    cursor: pointer;
    display: inline-block;
}

.select-wrapper-markets::after {
    content: '▼'; /* retro-style arrow */
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(255, 157, 0);
    pointer-events: none;
    font-size: 1rem;
    z-index: 2;
}

.terminal-form-blue {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: nowrap;
      flex: 1;
      position: relative;
}


.terminal-form-blue select {
    background-color: #000;
    border: 2px solid #00f2ff;
    color: rgba(251, 252, 251, 0.64);
    padding: 0.4rem 2rem 0.4rem 0.6rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    appearance: none;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* .terminal-form-green4 select {
    max-width: 350px;
    background-color: #000;
    border: 2px solid #ffaa00;
    color: rgba(251, 252, 251, 0.64);
    padding: 0.4rem 0.1rem 0.4rem 0.6rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    appearance: none;
    position: relative;
    z-index: 1;
    cursor: pointer; 
} */

/* simple row container — two selects (orientation+projection) will sit side-by-side here */
.row {
  display: flex;
  gap: 0.5rem; /* spacing between selects on the same row */
  align-items: center;
}

/* select wrapper */
.select-wrapper-blue {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-bottom: 0.1rem; /* rely on .row gap for spacing */
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* prevent interaction while hidden */
}

.select-wrapper-blue.visible {
  opacity: 1;
  pointer-events: auto;
}

/* keep select sizing natural but controlled (no stretched 100%) */
.select-wrapper-blue select {
  min-width: 150px;   /* nudges them to a readable size */
  max-width: 300px;   /* prevents wildly long dropdowns */
  width: auto;
  background-color: #000;
  border: 2px solid #00f2ff;
  color: rgba(251, 252, 251, 0.64);
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.89rem;
  height: 2.4rem;       /* fixed height for closed select */
  max-height: 2.4rem;
  appearance: none;
  cursor: pointer;
}

/* arrow */
.select-wrapper-blue::after {
  content: '▼';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(0, 255, 251);
  pointer-events: none;
  font-size: 0.89rem;
  z-index: 2;
}

.select-wrapper-blue.no-arrow::after {
  content: none;
}


/* independent container */
.color-pickers {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 150px;
  pointer-events: auto;
  position: relative;
  z-index: 1000; /* ensure it's above other UI overlays */
  opacity: 0;
  transition: opacity 0.4s ease;
  
}

/* clickable swatch visual */
.color-swatch {
  width: 34px;
  height: 34px;
  border: 2px solid #00f2ff;
  background: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative; /* new: so input can be absolutely positioned */
}

.color-swatch input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;       /* invisible but still clickable */
  cursor: pointer;
}

.color-pickers.visible,
.color-swatch.visible {
  opacity: 1;
  pointer-events: auto;
}

.terminal-form input[type="text"] {
  caret-color: transparent; /* hide the normal blinking line */
  position: relative;
  background: none;
  border: none;
  color: #0f0;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 0;
  outline: none;
  flex: 1; /* allows input to stretch */
  min-width: 150px;
}

.terminal-form input[type="text"]::after {
  content: '';
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 0.6em;
  height: 1em;
  background-color: #0f0; /* matches retro green text */
  animation: blink-cursor 1s steps(1) infinite;
  pointer-events: none;
}

.prompt-label {
  color: #0f0;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
}

.terminal-form button {
  background: none;
  border: 2px solid orange;
  color: orange;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.terminal-form button:first-of-type {
  margin-left: auto;  /* push first button & everything after right */
}

/* .terminal-form button:hover {
  background-color: orange;
  color: #000;
} */

@media (hover: hover) {
  .mobile-orange:hover {
    background-color: orange;
    color: #000;
  }
}

.mobile-orange.pressed {
  background-color: orange;
  color: #000;
}

.custom-options {
  position: absolute;
  top: 120%;
  left: 29%;
  display: flex;
  flex-direction: column;   /* stack rows vertically */
  gap: 0.4rem;              /* spacing between rows */
  align-items: flex-start;
  width: 80%;               /* increase width so it’s wider */
  max-width: 800px;         /* match max-width of terminal bar for consistency */
  padding-right: 1rem;  

  margin-top: 0.4rem;

  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
  /* removed flex-wrap and removed width:100% so selects keep their natural size */
}

.custom-options.show {
  max-height: 260px; /* enough for three rows */
  opacity: 1;
}

.terminal-bar-blue {
  border-color: cyan;
}

.terminal-bar-blue .terminal-title {
  color: cyan;
}

.terminal-bar-blue .terminal-form input[type="text"] {
  border-color: cyan;
  color: cyan;
}

.terminal-bar-blue .terminal-form button {
  background-color: cyan;
  color: #000;
}


.input-wrapper {
  position: relative;
  display: inline-flex;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #0f0;
  align-items: center;
  min-width: 200px;
  height: 1em;
  line-height: 1em;
}

.input-wrapper input::placeholder {
  color: rgba(193, 200, 193, 0.742); /* subtle retro look */
}

.input-wrapper input[type="text"] {
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  border: none;
  color: #0f0;
  caret-color: transparent; /* hide native caret */
  font-family: inherit;
  font-size: inherit;
  outline: none;
  width: 100%;
  z-index: 2;
}

.input-mirror {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  font: inherit;
  padding: 0; /* match input */
}


.custom-caret {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  background-color: #0f0;
  animation: blink-cursor 1s steps(1) infinite;
  position: absolute;
  top: 0;
  z-index: 1;
}

.input-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(218, 225, 218, 0.672);
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  pointer-events: none;
  animation: blink-cursor 1s steps(1) infinite;
  white-space: nowrap;
}


@media (max-width: 300px) {
  .terminal-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .terminal-form {
    width: 100%;
  }
}

@keyframes blink-cursor {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}

.suggestions-box {
  display: none;
  position: absolute;
  background: black;
  border: 1px solid #444;
  max-height: 180px;
  overflow-y: auto;
  z-index: 9999;
  margin-top: 4px;
  font-size: 14px;

  top: 100%;
  left: 0;

}

.suggestion-item {
  padding: 6px 8px;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #222;
}

.zoom-container {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left; /* zoom feat */
  will-change: transform;
}

.hidden {
  display: none;
}
