:root {
  --bg-color: #1a1b26;
  --current-line: #24283b;
  --foreground: #c0caf5;
  --comment: #565f89;
  --cyan: #7dcfff;
  --green: #9ece6a;
  --orange: #ff9e64;
  --pink: #f7768e;
  --purple: #bb9af7;
  --red: #f7768e;
  --yellow: #e0af68;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 15px 20px;
  min-height: 100%;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  color: var(--foreground);
  background: var(--bg-color);
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px;
  font-weight: 590;
  line-height: 1.3em;
  letter-spacing: 0.05em;
  overflow-x: hidden;
  cursor: text;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--current-line);
  background-color: var(--purple);
}

::-moz-selection {
  color: var(--current-line);
  background-color: var(--purple);
}

textarea {
  left: -1000px;
  position: absolute;
  font-size: 16px;
}

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

.cursor {
  font-size: 12px;
  color: var(--yellow);
  background-color: var(--yellow);
  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;
  min-height: 50px;
  height: auto;
  padding: 8px 0;
  color: var(--green);
  -webkit-tap-highlight-color: transparent;
}

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

#liner::before {
  color: var(--purple);
  content: '➜ guest@ivopereira:' attr(data-path) '$';
}

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

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

p {
  display: block;
  line-height: 1.3em;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.05em;
  animation: typing 0.5s steps(30, end);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.no-animation {
  animation: typing 0 steps(30, end);
}

.margin {
  margin-left: 20px;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.index {
  color: #dcdccc;
}

.color2 {
  color: var(--orange);
}

.color3 {
  color: var(--red);
}

.color4 {
  color: var(--pink);
}

.command {
  color: var(--green);
  text-shadow: 0 0 5px var(--green);
}

.project-title {
  color: var(--pink);
  text-shadow: 0 0 5px var(--purple);
  font-size: 1.2rem;
}

.project-stack {
  color: var(--green);
  text-shadow: 0 0 5px var(--green);
  font-size: 0.8rem;
}

.error {
  color: var(--orange);
}

.white {
  color: #fff;
}

.inherit,
a {
  color: #9c8394;
}

a {
  text-decoration: inherit;
}

a:hover {
  background: var(--purple);
  color: var(--current-line);
}

a:focus {
  outline: 0;
}

@media only screen and (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 14px;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }

  p {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    animation: none !important;
    white-space: normal !important;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-stack {
    font-size: 0.7rem;
  }

  #liner::before {
    font-size: 0.9em;
  }

  #command {
    min-height: 44px;
  }
}

@media only screen and (max-width: 480px) {
  body {
    padding: 5px;
    font-size: 12px;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }

  p {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    animation: none !important;
  }

  .cursor {
    width: 8px;
    max-width: 8px;
  }

  #command {
    min-height: 44px;
  }
}

@supports (-webkit-touch-callout: none) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  body {
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

.prevent-zoom {
  touch-action: manipulation !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
