/* =========================================================
   BOOT STATE CONTROL
   ========================================================= */

body.booting #command {
  display: none;
}

body.ready #command {
  display: block;
}

/* =========================================================
   BASE LAYOUT
   ========================================================= */

body {
  margin: 0;
  padding: 15px 20px;
  min-height: 99%;
  width: 97%;
  min-width: 550px;
  color: #519975;
  background: #211D1B;
  font-family: cursor, monospace;
  overflow-x: hidden;
}

::selection {
  color: #211830;
  background-color: #519975;
}

::-moz-selection {
  color: #211830;
  background-color: #519975;
}

textarea {
  position: absolute;
  left: -1000px;
}

/* =========================================================
   TERMINAL TEXT
   ========================================================= */

p {
  display: block;
  line-height: 1.3em;
  margin: 0;
  white-space: normal;
  letter-spacing: 0.05em;
  animation: typing 0.5s steps(30, end);
}

.no-animation {
  animation: none;
}

.margin {
  margin-left: 20px;
}

@keyframes typing {
  from { visibility: hidden; }
  to   { visibility: visible; }
}

/* =========================================================
   COMMAND LINE / PROMPT
   ========================================================= */

#command {
  cursor: text;
  height: 50px;
  color: #73ABAD;
}

/* the prompt row */
#liner {
  line-height: 1.3em;
  margin-top: -2px;
  opacity: 0;
}

/* show prompt ONLY when ready */
body.ready #liner {
  animation: show 0.5s ease forwards;
  opacity: 1;
}

/* prompt prefix */
#liner::before {
  color: #519975;
  content: "guest@itscookie.net:~$";
}

/* password mode */
#liner.password::before {
  content: "Password:";
}

@keyframes show {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   CURSOR (CRT STYLE)
   ========================================================= */

.cursor {
  font-size: 12px;
  color: #73ABAD;
  background-color: #73ABAD;
  position: relative;
  opacity: 1;
  height: 1.5em;
  width: 10px;
  max-width: 10px;
  transform: translateY(4px);
  overflow: hidden;
  display: inline-block;
  animation: blinker 1s steps(2) infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

/* =========================================================
   COLORS / UTILITIES
   ========================================================= */

.index { color: #DCDCCC; }

.bold { font-weight: bold; }

.color2 { color: #B89076; }
.color3 { color: #9C8394; }

.online {
  color: #211D1B;
  background: #519975;
}

.offline {
  color: #211D1B;
  background: #995151;
}

.command {
  color: #73ABAD;
  text-shadow: 0 0 5px #73ABAD;
}

.error { color: #B89076; }

.white { color: #fff; }

.inherit,
a {
  color: #9C8394;
}

a {
  text-decoration: inherit;
}

a:hover {
  background: #73ABAD;
  color: #211830;
}

a:focus {
  outline: 0;
}

/* =========================================================
   IMAGES / EXTRAS
   ========================================================= */

.cat-image {
  display: block;
  margin: 20px 0;
  max-width: 50vw;
  max-height: 50vh;
  object-fit: contain;
}

.link {
  cursor: pointer;
  text-decoration: underline;
}

.link:hover {
  opacity: 0.8;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 450px) {
  body {
    font-size: 11px;
  }
}

/* =========================================================
   Power ON
   ========================================================= */

/* Power screen overlay */
#power-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 450ms ease;
}

/* Fade it out */
#power-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Optional: power text vibe */
.power-text {
  color: #6f9;
  font-family: monospace;
  opacity: 0.75;
  letter-spacing: 0.08em;
  animation: powerPulse 1.4s ease-in-out infinite;
}

@keyframes powerPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}

/* Smooth background transition when powering on */
body {
  transition: background-color 450ms ease;
}

/* While power screen is visible (true black) */
body.power-off {
  background: #000 !important;
}

/* When boot begins, go to your normal terminal background */
body.power-on {
  background: #211D1B !important; /* your terminal bg */
}
