* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Courier New", Courier, monospace;
}

body {
  background-color: black;
  color: #00ff00;
  padding: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

#ascii {
  font-size: 4px;
  line-height: 2px;
  text-align: center;
}

a {
  color: #ff0;
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

#terminal {
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  color: #666;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding: 10px 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: black;
  z-index: 1;
}

#output {
  line-height: 1.5;
  margin: 20px 0;
  width: 100%;
  font-size: 18px;
}

.input-line {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.prompt {
  color: #00ff00;
  margin-right: 10px;
}

.welcome {
  display: flex;
  align-items: center;
  justify-content: center;
}

#input {
  flex: 1;
  background: transparent;
  border: none;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  outline: none;
  padding: 0;
  margin: 0;
  caret-color: transparent;
  width: 100%;
}

.cursor {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 8px;
  height: 16px;
  background-color: #00ff00;
  animation: blink 1s step-end infinite;
  transform: translateX(0);
}

.input-container {
  position: relative;
  flex: 1;
}

.ascii-header {
  text-align: center;
  color: #00ff00;
  font-family: monospace;
  width: 100%;
}

.ascii-header .name {
  font-size: 0.7em;
  margin-bottom: 8px;
}

.ascii-header .title {
  font-size: 4px;
}

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

.output-line {
  margin-bottom: 8px;
}

.user-input {
  color: #fff;
}

@media (max-width: 800px) {
  .ascii-header .name {
    font-size: 0.5em;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px 16px;
  }

  .terminal-header {
    font-size: 12px;
    padding: 5px 0;
    margin-bottom: 14px;
  }

  .ascii-header .name {
    font-size: 6px;
  }

  .ascii-header .title {
    font-size: 3px;
  }

  .output-line {
    font-size: 16px;
  }

  #input {
    font-size: 16px;
  }

  #output {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .ascii-header .name {
    font-size: 4px;
  }

  .ascii-header .title {
    font-size: 2px;
  }
}
