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

:root {
  --terminal--bg: #000000;
  --terminal--header: #2E2E2E;
  --terminal--color: #ffffff;
  --terminal--header-color: #0C0C0C;

  --terminal--font: "JetBrains Mono", monospace;
}

html {
  font-size: 16px;
}

body, html {
  height: 100%;
  width: 100%;
  transition: all 0.3s ease;
}

body.light-mode .terminal {
  background-color: white;
  color: black;
  transition: all 0.3s ease;
}

body.light-mode header {
  background: #0000001f;
  transition: all 0.3s ease;
}

body.light-mode header ul li {
  background: #0c0c0c29;
  color: #000000;
  transition: all 0.3s ease;
}

body.light-mode .cmd-input {
  background-color: white;
  color: black;
  transition: all 0.3s ease;
}

body.light-mode .prompt {
  color: black;
  transition: all 0.3s ease;
}

body.night-transition {
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100px;
  background: var(--terminal--header);
  font-family: var(--terminal--font);
  padding: 0 10px;
  box-sizing: border-box;
}

header ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 1200px;
}

header ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--terminal--header-color);
  color: var(--terminal--color);
  border-top-right-radius: 30px;
  border-top-left-radius: 30px;
  width: 350px;
  max-width: 100%;
  height: 85px;
  font-size: 1.5rem;
  font-weight: 300;
  padding: 0 15px;
  box-sizing: border-box;
}

header ul img {
  width: 38px;
  height: 38px;
  position: relative;
  left: -15px;
  flex-shrink: 0;
}

.terminal {
  position: relative;
  padding: 20px ;
  height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--terminal--bg);
  color: var(--terminal--color);
  font-family: var(--terminal--font);
  font-size: 1.5rem;
  font-weight: 100;
  box-sizing: border-box;
}

.terminal::-webkit-scrollbar {
  width: 10px;
}

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

.terminal::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
  border: 2px solid #1e1e1e;
}

.terminal::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.terminal h3 {
  font-weight: 300;
  font-size: 1.5rem;
  word-break: break-word;
}

.input-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cmd-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--terminal--color);
  font-size: 1.5rem;
  font-weight: 100;
  min-width: 150px;
  max-width: 100%;
  box-sizing: border-box;
}

.output {
  margin-top: 20px;
  font-size: 1.5rem;
  font-family: var(--terminal--font);
  font-weight: 100;
  word-break: break-word;
}

@media (max-width: 480px) {
  header {
    height: auto;
    padding: 10px 5px;
  }

  header ul li {
    width: 100%;
    height: 60px;
    font-size: 1.2rem;
    border-radius: 20px;
  }

  header ul img {
    width: 28px;
    height: 28px;
  }

  .terminal {
    font-size: 1.1rem;
    height: calc(100vh - 80px);
    padding: 10px;
    overflow-x: clip;
  }

  .input-inline {
    font-size: 1.1rem;
    margin-top: 1rem;
    flex-wrap: unset;
  }

  .cmd-input {
    font-size: 1.1rem;
  }

  .output {
    font-size: 1.1rem;
    word-break: unset;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  header ul li {
    width: 60%;
    font-size: 1.3rem;
    height: 70px;
  }

  .terminal {
    font-size: 1.3rem;
    height: calc(100vh - 100px);
  }

  .input-inline {
    font-size: 1.3rem;
  }

  .cmd-input {
    font-size: 1.3rem;
  }

  .output {
    font-size: 1.3rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  header ul li {
    width: 40%;
    font-size: 1.4rem;
  }

  .terminal {
    font-size: 1.4rem;
    height: calc(100vh - 100px);
  }

  .input-inline {
    font-size: 1.4rem;
  }

  .cmd-input {
    font-size: 1.4rem;
  }

  .output {
    font-size: 1.4rem;
  }
}
