* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #000;
  color: #00ff00;
  font-family: monospace;
  padding: 30px;
}

a {
  color: #00ffff;
  text-decoration: none;
}

a:hover {
  color: #ff00ff;
}

.layout {
  display: flex;
  justify-content: center;
}

.terminal-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  flex: 1;
  border: 1px solid #00ff00;
  padding: 20px;
  background-color: #111;
  box-shadow: 0 0 20px #0f0;
  margin-top: 20px;
  min-height: 400px;
  max-width: 100%;
  gap: 20px;
}

.terminal-content {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.link-columns {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 340px;
}

.link-box {
  padding: 12px;
  font-family: monospace;
  font-size: 14px;
  border: 2px dashed currentColor;
  animation: border-dash 1s linear infinite;
  box-shadow: 0 0 8px currentColor;
  text-align: center;
}

.link-box a {
  color: currentColor;
  text-decoration: none;
  display: inline-block;
}

.link-box a:hover {
  text-decoration: underline;
  animation: glitch 0.6s infinite;
}

.magenta { color: #ff00ff; }
.yellow  { color: #ffff00; }
.orange  { color: #ff8800; }
.bluegreen { color: #4EEDA8; }
.peach { color: #FFC7B3; }
.cyan { color: cyan; }
.rose { color: #FF7066; }

#access_line {
  font-weight: 900;
  font-size: 20px;
  color: red;
}

pre {
  margin: 0;
  padding: 0;
}

.ascii-art {
  display: flex;
  justify-content: center;
  white-space: pre;
  font-family: monospace;
  color: #00ff00;
  padding: 0;
  margin: 0;
}

#terminal-output {
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.4;
  margin-top: 10px;
  word-break: break-word;
}

.cursor {
  display: inline-block;
  animation: blink 0.7s steps(1) infinite;
}

.typed-line {
  font-family: monospace;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  margin: 0;
}

.blink_me {
  animation: blinker 1s linear infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes blinker {
  50% { opacity: 0; }
}

@keyframes border-dash {
  0%, 100% { border-style: dashed; }
  50%      { border-style: dotted; }
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translateX(-1px); }
  40% { transform: translateX(1px); }
  60% { transform: translateY(-1px); }
  80% { transform: translateY(1px); }
}

@media (max-width: 768px) {
  .terminal-box {
    flex-direction: column;
  }

  .link-columns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  
  .ticker-strip {
    display: none;
  }
  
  #leftAd,
  #rightAd {
    display: none;
  }
  
  .inline-access-ticker {
      justify-content: center;
      flex-direction: column;
      text-align: center;
    }
  
    #access_line {
      display: block;
      margin: 0 auto;
      text-align: center;
    }
}

.terminal-output-line {
  color: white;
}

.access-bar {
  display: flex;
  align-items: center;
  border-top: 1px dashed #00ff00;
  border-bottom: 1px dashed #00ff00;
  padding: 6px 0;
  margin-bottom: 10px;
  overflow: hidden;
}

#access_line {
  font-weight: bold;
  font-size: 22px;
  color: red;
  text-align: left;
  margin: 0 0 10px 0;
  white-space: nowrap;
}

.inline-access-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  white-space: nowrap;
}

.ticker-strip {
  flex: 1;
  overflow: hidden;
  border-top: 1px dashed #00ff00;
  border-bottom: 1px dashed #00ff00;
  padding: 6px 0;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 40s linear infinite;
  color: #00ff00;
  font-family: monospace;
}

.blue {
  color: blue;
  border-color: blue;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.bouncer {
  position: fixed;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #00ff00;
  background-image: none;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 12px #00ff00, 0 0 24px #00ff00;
  opacity: 0.3;
  z-index: 10000;
  pointer-events: auto;
  transition:
    width 0.35s ease-out,
    height 0.35s ease-out,
    opacity 0.35s ease-out,
    background-color 0.35s,
    background-image 0.35s;
}

.bouncer:hover {
  width: 320px;
  height: 320px;
  background-image: url('cat.gif');
  opacity: 1;
}

@keyframes slideInLeft {
  from { transform: translateX(-200%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-200%); opacity: 0; }
}

.top-banner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 20px 30px 0 30px;
  flex-wrap: wrap;
}

.vapor-box {
  flex: 1;
  max-width: 300px;
  background: #111;
  color: #0f0;
  border: 1px solid #0f0;
  font-family: monospace;
  font-size: 12px;
  box-shadow: 0 0 10px #0f0;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transform: scale(0.8);
  filter: blur(6px);
  pointer-events: none;
  visibility: hidden; /* START HIDDEN */
  transition: visibility 0s linear 3s; /* Delay hiding until after fade-out */
}

.vapor-box.hide {
  display: none;
}

.vapor-box.vapor-in {
  animation: vaporIn 3s ease forwards;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.vapor-box.vapor-out {
  animation: vaporOut 3s ease forwards;
  pointer-events: none;
  visibility: visible;
  transition: visibility 0s linear 3s; /* Hide after animation completes */
}

@keyframes vaporIn {
  0%   { opacity: 0; transform: scale(0.8); filter: blur(8px); }
  50%  { opacity: 1; transform: scale(1.05); filter: blur(1px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes vaporOut {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(0.8); filter: blur(6px); }
}

#notice {
  color: gray;
  text-align: center;
}

.tooltip {
  position: absolute;
  top: 70px;
  left: 70%;
  transform: translateX(-50%);
  background: #111;
  color: #0f0;
  padding: 2px 6px;
  border: 1px solid #0f0;
  font-size: 16px;
  font-family: monospace;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.tooltip.flipped {
  transform: translateX(-50%) scaleX(-1); /* flip text only when bouncer is flipped */
}

.bouncer:hover .tooltip {
  display: block;
}

.underline_link {
  text-decoration: underline;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #111;
  border: 1px solid #0f0;
  color: #0f0;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  font-family: monospace;
  box-shadow: 0 0 15px #0f0;
  text-align: center;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  background: #000;
  color: #4EEDA8;
  border: 1px solid #4EEDA8;
  font-family: monospace;
}

.modal-content button {
  background: #4EEDA8;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 24px;
  color: #0f0;
  cursor: pointer;
}
