body {
  margin: 0;
  padding: 11px; /* Adjust padding for better mobile experience */
  min-height: 99%;
  color: #8470FF;
  background: #f1faf7;
  font-family: "Space Mono";
}

.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

::selection,
::-moz-selection {
  color: #f1faf7;
  background-color: #1c2134;
}

textarea {
  left: -1000px;
  position: absolute;
}

b {
  font-weight: bold;
  text-decoration: underline;
}

/* Cursor */
.cursor {
  font-size: 12px;
  line-height: 1.5em;
  color: #8470ff;
  background-color: #8470ff;
  position: relative;
  opacity: 1;
  height: 1.5em;
  width: 10px;
  max-width: 10px;
  transform: translateY(4px);
  overflow: hidden;
  text-indent: -5px;
  display: inline-block;
  text-decoration: blink;
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

#command {
  cursor: text;
  height: 50px;
  color: #8470ff;
}

#liner {
  line-height: 1.3em;
  margin-top: -2px;
  animation: show 0.5s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

#liner::before {
  color: #8470ff;
  content: "guest@slate:$";
}

#liner.password::before {
  content: "Password:";
}

@keyframes show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Typing Animation */
p {
  display: block;
  line-height: 1.5em;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  letter-spacing: 0.05em;
  animation: typing 0.5s steps(30, end);
}

@media only screen and (max-width: 600px) {

  p {
    display: block;
    line-height: 1.5em;
    margin: 0;
    overflow: hidden;
    white-space: normal;
    margin: 0;
    letter-spacing: 0.05em;
    animation: none;
    text-align: justify;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.no-animation {
  animation: typing 0 steps(30, end);
}
.margin {
  margin-left: 20px;
}
/* Colors */
.index,
.color2 {
  color: #333e70;
}

.color3,
.command,
.error,
.inherit,
a {
  color: #8470ff;
}

.command,
.error {
  color: #ff6f59;
}

.white,
a {
  color: #f1faf7;
}

/* Links */
a {
  text-decoration: none;
  padding: 0px;
  color: #1c2134;
  background-color: #b8ee00;
  line-height: 2em;
}

a:hover {
  background: #8470ff;
  color: #1c2134;
}

a:focus {
  outline: 0;
}


/* Adjustments for text cutting off on the right side */
html, body, #terminal {
  max-width: 100%;
}

/* Make mobile fonts 75% smaller */
@media only screen and (max-width: 600px) {
  body,
  #terminal,
  #before {
    max-width: none;
  }

  p,
  .no-animation {
    font-size: 90%;
  }

  #liner::before {
    content: "guest@slate:$";
    font-size: 90%;
  }

  #liner {
    font-size: 90%;
  }

  .cursor {
    font-size: 90%;
  }
}