/* Estilo base herdado */
body {
    background-color: #000;
    color: #00ffcc;
    font-family: 'Share Tech Mono', monospace;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,255,204,0.03), rgba(0,255,204,0.03) 1px, transparent 1px, transparent 3px);
    z-index: 0;
    pointer-events: none;
}

.console {
    border: 2px solid #00ffcc;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px #00ffcc;
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: auto;
    height: 90vh;
    overflow-y: auto;
}

h1, h2 {
    text-shadow: 0 0 5px #00ffcc;
    margin-bottom: 10px;
}

.menu, .submenu, .text-display {
    display: none;
}

.visible {
    display: block;
}

.button {
    display: block;
    padding: 8px 12px;
    margin: 6px 0;
    background-color: rgba(0, 255, 204, 0.1);
    border: 1px solid #00ffcc;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background-color: rgba(0, 255, 204, 0.3);
}

.back {
    margin-top: 10px;
    font-size: 16px;
    color: #0f0;
    cursor: pointer;
    display: inline-block;
}

.blinking-cursor {
    display: inline-block;
    width: 10px;
    background-color: #00ffcc;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { background-color: transparent; }
}

.terminal-text {
    white-space: pre-wrap;
    font-size: 20px;
    margin-top: 10px;
    text-align: justify;
    line-height: 1.3;
}
  
.text-display a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #00ffcc;
}

.text-display a:hover {
    color: #0f0;
    border-bottom: 1px dashed #0f0;
}

.console {
  height: 90vh;
  overflow-y: auto;
}

/* Estilização da scroll bar na .console (Chrome/Edge) */
.console::-webkit-scrollbar {
  width: 6px;
}

.console::-webkit-scrollbar-track {
  background: transparent;
}

.console::-webkit-scrollbar-thumb {
  background-color: #00ffcc;
  border-radius: 3px;
}

/* Estilização para Firefox */
.console {
  scrollbar-width: thin;
  scrollbar-color: #00ffcc transparent;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
    font-size: 16px;
    height: auto;
    overflow-y: auto;     /* ← permitir scroll normal em mobile */
  }

  .console {
    padding: 15px;
    height: auto;
    max-width: none;
    box-shadow: none;
    border: 1px solid #00ffcc;
  }

  h1, h2 {
    font-size: 18px;
    text-align: center;
  }

  .button {
    font-size: 16px;
    padding: 10px;
  }

  .terminal-text {
    font-size: 16px;
    line-height: 1.4;
  }

  .back {
    font-size: 14px;
  }
}

/* ==== Voltar ao Hub ==== */
.voltar {
    margin-bottom: 12px;
}

.voltar a {
    color: #00ffcc;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin-left: -0.5rem;
    border-radius: 4px;
    text-shadow: 0 0 5px #00ffcc;
    transition: background-color 0.3s;
}

.voltar a:hover {
    background-color: rgba(0, 255, 204, 0.15);
}
