@layer base {
  /* Base styles */
  :root {
    --bg-color: rgba(0, 0, 0, 0.925);

    --bg-menu: #333;
    --text-color: white;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  backdrop-filter: blur(5px);
  margin: 0;
  padding: 1rem;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  font-family: "Victor Mono", monospace;
}

html {
  height: 100%;
  overflow-x: hidden;
}

.navbar {
  background-color: var(--bg-menu);
  color: var(--text-color);
  box-shadow: 0px 8px 8px -2px black;
  overflow: hidden;
  height: 3vh;
  margin: -1rem -1rem 1rem -1rem;
  line-height: 100%;
  display: flex;
  align-items: center;
  padding: 0.5rem 3rem;
  justify-content: space-between;
  font-size: 1.5em;

  @media screen and (max-width: 640px) {
    height: 7vh;
    padding: 0 0.5rem;
  }
}

.navbar a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0 1rem;
}

.terminal-frame {
  width: 95%;
  height: 82vh;
  border: 2px solid var(--bg-menu);
  margin: auto;
  background-color: black;
  box-shadow: 0px 8px 16px -4px black;
  position: relative;
  overflow: hidden;

  @media screen and (max-width: 640px) {
    width: 100%;
    height: 70vh;
    margin: 0.5rem auto;
  }

  p {
    margin-left: 1rem;
  }
}

.terminal-frame .input-line {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 5rem;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;

  @media screen and (max-width: 640px) {
    width: 100%;
  }
}

.terminal-frame .commands {
  color: rgb(182, 180, 180);
  font-family: "Victor Mono", monospace;
  font-size: 0.9em;
  white-space: nowrap;
  position: absolute;
  bottom: 4em;
  font-size: small;
}

.terminal-frame .input-line .prompt {
  color: white;
  font-family: "Victor Mono", monospace;
  font-size: 1em;
  white-space: nowrap;
  margin-right: 0.5rem;
}

.terminal-frame .input-line input {
  flex: 1;
  background-color: transparent;
  color: white;
  border: none;
  outline: none;
  font-family: "Victor Mono", monospace;
  font-size: 1em;
  padding: 0;
}

.terminal-output {
  width: 100%;
  height: 90%;
  max-height: 90%;
  overflow-y: scroll;
  padding-right: 1rem;
  box-sizing: border-box;
  padding-bottom: 20vh;

  @media screen and (max-width: 640px) {
    width: 100%;
    height: 63vh;
    margin: 0.5rem auto;
  }
}

.editor-content {
  direction: ltr;
  width: 100%;
  height: 100%;
  background-color: #1e1e1e;
  color: gray;
  border: 2px solid var(--bg-menu);
  box-shadow: 0px 8px 16px -4px black;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  font-family: "Victor Mono", monospace;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.file-editor {
  position: absolute;
  top: 5rem;
  right: 1rem;
  width: 40vw;
  height: 70vh;
  max-width: 90vw;
  max-height: 85vh;
  min-height: 15vh;
  min-width: 10vw;
  resize: both;
  overflow: auto;
  direction: rtl;
  background-color: #1e1e1e;
  color: white;
  border: 2px solid var(--bg-menu);
  box-shadow: 0px 8px 16px -4px black;
}

.file-input {
  flex: 1;
  background-color: transparent;
  color: white;
  border: none;
  border-top: 1px solid var(--bg-menu);
  outline: none;
  font-family: "Victor Mono", monospace;
  font-size: 1em;
  padding: 0;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 3rem;
  resize: none;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  clear: both;
}

.editor-command-input {
  width: fit-content;
  height: 1.5em;
  background-color: color(var(--bg-menu) a(0.5));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0.2rem;
  box-sizing: border-box;
  border: 1px solid gray;
  font-family: "Victor Mono", monospace;
  font-size: 1em;
  color: white;
  line-height: 1;
  text-align: left;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  outline: none;
}

.hidden {
  display: none;
}
