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

body,
html {
  font-family: "JetBrains Mono", monospace;
  background-color: #1e1e1e;
  color: #ffffff;
  height: 100%;
  font-size: 14px;
  padding-top: 50px;
}

.nav-bar {
  background-color: #1a1a1a;
  padding: 0.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease-in-out;
  height: 50px;
  display: flex;
  align-items: center;
}

.nav-bar.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-bar ul {
  list-style-type: none;
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-bar a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  display: block;
  white-space: nowrap;
}

.nav-bar a:hover,
.nav-bar a:focus {
  color: #ff5252;
}

.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: flex-start;
  min-height: calc(100vh - 50px);
  padding: 1rem;
  padding-top: 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: 100%;
  max-width: 500px;
  overflow: hidden;
  margin-top: 1rem;
}

.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: 60vh;
  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;
  word-wrap: break-word;
}

.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;
}

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

/* Common Styles */
body {
  font-family: "JetBrains Mono", monospace;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  margin: 0 auto;
  padding: 2rem;
}

/* Header Styles */
.header {
  background-color: #2d2d2d;
  padding: 1rem;
  border-bottom: 2px solid #ff5252;
  margin-bottom: 2rem;
}

.header h1 {
  color: #ff5252;
  text-align: center;
}

/* Common Colors */
.terminal-style,
.terminal-text {
  font-family: "JetBrains Mono", monospace;
  color: #569cd6;
}

/* Common Card Styles */
.card-shadow {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Terminal-like Elements */
.terminal-box {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

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

  .nav-bar {
    padding: 0.5rem 1rem;
    height: 60px;
  }

  .nav-bar a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

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

  .enter-text {
    font-size: 3rem;
  }

  .terminal-window {
    max-width: 700px;
    margin-top: 0;
  }

  .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: 70vh;
  }

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

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