@import "index.css";

* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

.menu a:nth-child(1) {
  background: var(--back-light);
}

/* Prompts 1 and 2 */

.prompt {
  margin-top: 2ch;
}

.prompt, .prompt2 {
  line-height: 1;
  margin-left: 1ch;
}

.prompt2 {
  opacity: 0;
  animation: run 1s steps(1, end) 1s forwards;
}

.start, .pointer, .gradient, .time, .directory, .separator, .outside-separator, .term-text {
  vertical-align: middle;
}

.term-text {
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

.command {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  animation: type 1s steps(9, end) forwards;
}

.command2 {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 0;
  animation: type 1s steps(12, end) 2.5s forwards;
}

.cursor {
  position: absolute;
  width: 1ch;
  height: 1em;
  animation: blink 1s steps(1) infinite, enter 1s steps(1, end) 1s forwards;
}

.cursor2 {
  position: absolute;
  width: 1ch;
  height: 1em;
  animation: blink 1s steps(1) infinite, enter2 1s steps(1, end) 3s forwards;
}

.start {
  color: var(--gray);
}

.gradient {
  color: var(--gray);
}

.time {
  background: var(--gray);
  color: var(--fore);
}
.directory {
  background: var(--green);
  color: var(--back);
}

.separator {
  background: var(--green);
  color: var(--gray);
}

.outside-separator {
  color: var(--green);
}

.pointer {
  color: var(--green);
}

/* Fastfetch Output */

.output {
  display: flex;
  flex-direction: row;
}

.output2 {
  position: relative;
  border: 0;
  white-space: normal;
  margin-right: 2ch;
}

.output2 p {
  white-space: normal;
  margin-left: 2ch;
  opacity: 0;
  animation: run 1s steps(1, end) 3s forwards;
}

@media (min-width: 1340px) {
  .output2 {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    border-left: 2px solid var(--back-light);
    margin-top: 4.25ch;
  }
}

.fast-img {
  opacity: 0;
  margin: 2em;
  max-width: 15em;
  max-height: 15em;
  width: 30vw;
  height: 30vw;
  animation: run 1s steps(1, end) 1s forwards;
}

.output ul {
  opacity: 0;
  list-style-type: none;
  width: 15em;
  height: auto;
  margin-left: -4vw;
  animation: run 1s steps(1, end) 1s forwards;
}

ul li:nth-child(1) span {
  color: var(--red);
}

ul li:nth-child(2) span {
  color: var(--green);
}

ul li:nth-child(3) span {
  color: var(--fore-dim);
}

ul li:nth-child(4) span {
  color: var(--yellow);
}

ul li:nth-child(5) span {
  color: var(--orange);
}

ul li:nth-child(6) span {
  color: var(--blue);
}

.colors {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  gap: 1ch;
  margin-top: 0.5ch;
}

.colors li {
  width: 1ch;
  height: 1ch;
  border-radius: 100%;
}

.colors li:nth-child(1) {
  background: var(--red);
}

.colors li:nth-child(2) {
  background: var(--green);
}

.colors li:nth-child(3) {
  background: var(--fore-dim);
}

.colors li:nth-child(4) {
  background: var(--yellow);
}

.colors li:nth-child(5) {
  background: var(--orange);
}

.colors li:nth-child(6) {
  background: var(--blue);
}

/* Animations */

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

@keyframes blink {
  0% {opacity:1;}
  50% {opacity:0;}
  100% {opacity:1;}
}

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

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

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