* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  font-family: "JetBrains Mono", monospace;
  background-color: #000000;
  color: #ffffff;
  height: 100%;
  font-size: 14px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #1e1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  cursor: pointer;
  transition: opacity 0.5s ease-in-out;
}

.overlay-content {
  text-align: center;
  padding: 1rem;
}

.overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.enter-text {
  color: #ff5252;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  padding: 1rem;
}

.terminal-window {
  background-color: rgba(30, 30, 30, 0.95);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 600px;
  height: 400px;
  overflow: hidden;
}

.terminal-header {
  background-color: #2d2d2d;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #3d3d3d;
}

.terminal-title {
  color: #cccccc;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  user-select: none;
}

.minimize,
.maximize,
.close {
  background-color: #3f3f3f;
  color: #cccccc;
}

.terminal-content {
  padding: 0.5rem;
  height: calc(400px - 30px);
  overflow-y: auto;
}

#output {
  margin-bottom: 0.5rem;
}

.input-line {
  display: flex;
  align-items: center;
}

.prompt {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  white-space: nowrap;
}

.root-text {
  color: #ff5252;
}

.path-text {
  color: #569cd6;
}

.prompt-symbol {
  margin-right: 4px;
}

#user-input {
  background-color: transparent;
  border: none;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  flex-grow: 1;
  margin-left: 4px;
  outline: none;
}

.output-line {
  margin-bottom: 0.25rem;
  white-space: pre-wrap;
  color: #cccccc;
  font-size: 0.9rem;
}

/* Scrollbar styling */
.terminal-content::-webkit-scrollbar {
  width: 6px;
}

.terminal-content::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #3d3d3d;
  border-radius: 3px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: #4d4d4d;
}

/* Media query for larger screens */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  .terminal-window {
    max-width: 800px;
    width: 800px;
    height: 500px;
  }

  .terminal-header {
    padding: 0.75rem;
  }

  .terminal-title {
    font-size: 0.9rem;
  }

  .terminal-buttons span {
    width: 16px;
    height: 16px;
    font-size: 14px;
  }

  .terminal-content {
    padding: 1rem;
    height: calc(500px - 35px);
  }

  .prompt,
  #user-input {
    font-size: 1rem;
  }

  .output-line {
    font-size: 1rem;
  }
}
