@font-face {
  font-family: "Comic Mono";
  src: url('font/ComicMono.ttf') format("truetype");
}

:root {
  --bg: #110011CC;
  --fg: #ff00bb;
  --inputFg: #ff55ff;
  --headerGlow: #aa00ee;
  --headerFg: #cc88cc;
  --border: #ee00ee;
  --shadow: #660066;
  --directory: #ff55ff;
  --prompt: #ff55ff;
  --cursor: #ff88ff;
  --listItem: var(--fg);
  --listTitle: var(--fg);
  --link: var(--fg);
  --tree: var(--fg);

  --fontSize: 13px;
  --fontFamily: "Comic Mono", monospace;
}

body.dark {
  /* Empty definition to handle switching back to "dark" as default */
}

header, footer {
  font-variant: small-caps;
  color: var(--headerFg);
  font-family: 'Segoe UI', 'Open Sans', sans-serif;
  font-size: 16px;
  text-shadow: 1px 1px 10px var(--headerGlow);
}

header {
  margin: 0;
  padding: 0;
  width: 50%;
}

footer {
  margin-top: 8px;
  text-align: center;
  width: 40%;
}

pre {
  margin: 0;
  padding: 0;
  font-size: var(--fontSize);
  line-height: var(--fontSize);
}

h1 {
  font-weight: lighter;
  margin-bottom: 4px;
}

a, a:visited { 
  text-decoration: #9900cc underline dotted;
  color: var(--inputFg);
}

a:hover {
  color: var(--cursor);
  text-shadow: 1px 1px 15px var(--cursor);
}

body {
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: url('img/background.jpg') 0 0 no-repeat fixed;
  background-size: cover;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--fontFamily);
  font-size: var(--fontSize);
  backdrop-filter: brightness(30%);
}

#terminal {
  background-color: var(--bg);
  box-sizing: border-box;
  width: 50%;
  height: 60%;
  box-shadow: 1px 1px 20px var(--shadow);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5em 0em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#terminal-content {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: scroll;
  padding: 0em 1em;

  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  scrollbar-width: none
}

/* Hide scrollbar for Chrome, Safari and Opera */
#terminal-content::-webkit-scrollbar {
  display: none;
}

#terminal-content p {
  margin: 0px;
}

/**
* Prompt Styling
*/
.prompt {
  display: flex;
  margin-bottom: -7px;
}

#prompt-input {
  background-color: transparent;
  border: none;
  color: var(--inputFg);
  flex-grow: 1;
  margin-top: 0;
  margin-left: 4px;
  font-family: var(--fontFamily);
  font-size: var(--fontSize);
}

#prompt-input:focus {
  outline: none;
}

.prompt-title::after {
  background-image: url('img/heartbrush.png');
  background-repeat: no-repeat;
  background-size: 8px;
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-bottom: -3px;
  margin-left: 0.5em;
}

.prompt-title {
  color: var(--prompt);
  padding: 0.5em 0em;
}

.prompt-cursor {
  color: var(--cursor);
  margin-left: 0.5em;
}

.prompt-text {
  padding: 0.5em;
  flex-grow: 1;
  margin-left: -0.5px !important;
}

/**
* Terminal Output generic styles
*/

.terminal-output {
  margin: 0.2em 0em;
}

.default-list {
  margin: 0px;
  padding: 0em 1em;
}

/**
* LS Command Styling
*/

.ls-list {
  list-style: none;
  margin: 0px;
  padding: 0px;
  display: flex;
  flex-wrap: wrap;
}

.ls-item {
  padding: 0em 0.5em;
}

.ls-item.directory {
  color: var(--directory);
}

/**
* Tree Command Styling
*/

.tree-list {
  margin: 0px;
  padding: 0em 0em 0em 1.25em;
  list-style: none;
}

.tree-list-item {
  color: var(--fg);
  position: relative;
  padding: 0.25em 0em 0em 0.1em;
}

.tree-list-item::before,
.tree-list-item::after {
  content: "";
  position: absolute;
  left: -0.8rem;
}

.tree-list-item::before {
  border-top: 1px solid var(--tree);
  top: 0.8em;
  width: 0.75em;
}

.tree-list-item::after {
  border-left: 1px solid var(--tree);
  height: 100%;
  top: 0.3em;
}

.tree-list-item:last-child::after {
  /* Create the right angle on the last child */
  height: 0.5em;
}

.tree-list-item.directory {
  color: var(--directory);
}

@media screen and (max-width: 1300px) {
  #terminal, header {
    width: 75%;
  }
}