/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* COLOR THEME */
:root {
  --primary-color: #ff0000;
  --secondary-color: #6c757d;
  --background-color: rgb(17, 16, 20, 0.99);
  --text-color: #fefffe;
  --btn-text: #eee;
  --link-text: #87a9f1;
  --link-text-hover: #256aff;
  --btn-color: #333;
  --btn-color2: #727272;
  --btn-color3: #555;
  --btn-shadow: #111;

  --cli-font-family: "cli";
  --cli-font-size: 16px;
  --cli-text-color: cyan;
  --terminal-color: #546375;
  --terminal-header: rgba(190, 190, 190, 0.08);
}

@font-face {
  font-family: "cli";
  src: url(media/fonts/ubi.ttf);
}

/* UNIVERSALS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "cli", "Arial", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;

  background-color: var(--background-color);

  position: relative;

  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  width: clamp(10dvw, 750px, 95%);
  height: clamp(10dvh, 400px, 95%);

  background: var(--background-color);
  border: 1px solid var(--terminal-color);
  box-shadow: 0 0 10px var(--terminal-color);

  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;

  transform: translate(-50%, -50%);
}

.terminal-container a {
  color: var(--link-text);
  text-decoration: none;
  border-bottom: 1px dotted var(--link-text);
}
.terminal-container a:hover {
  color: var(--link-text-hover);
  border-bottom: 1px solid var(--link-text-hover);
}

.terminal {
  width: 100%;
  max-width: 800px;
  height: 70%;

  flex: 1;

  display: flex;
  flex-direction: column;
}
.terminal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--terminal-color) var(--background-color);
  overflow-y: auto;
  padding: 10px;
}
.terminal::-webkit-scrollbar {
  width: 8px; /* Adjust width for vertical scrollbar */
  height: 8px; /* Adjust height for horizontal scrollbar */
}

.terminal::-webkit-scrollbar-thumb {
  background-color: var(--terminal-color); /* Scrollbar color */
  border-radius: 4px; /* Round the edges for a sleek look */
}

.terminal::-webkit-scrollbar-thumb:hover {
  background-color: var(--terminal-color); /* Slightly brighter on hover */
}

.terminal::-webkit-scrollbar-track {
  background: var(--background-color); /* Match terminal background */
  border-radius: 4px; /* Optional: smooth track edges */
}

.terminal-header {
  position: relative;
  top: 0;
  right: 0;
  padding: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--terminal-header);
  width: 100%;
}
.terminal-header span {
  margin-left: 12px;
}

.minimize-btn {
  background: transparent;
  color: var(--terminal-color);
  border: 1px solid white;
  font-size: 24px;
  cursor: pointer;
  padding: 0 10px 7px 10px;
  transition: background 150ms ease;
}
.minimize-btn:hover {
  color: var(--cli-text-color);
  background: var(--btn-color3);
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgb(51, 51, 51, 0.5);
  border-top: 1px solid rgba(138, 138, 138, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
}
.taskbar-item-container {
  /* position: relative; */
  /* background-color: red; */
  width: clamp(10dvw, 750px, 95%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.taskbar-item {
  display: inline-block;
  color: white;
  padding: 5px 10px;
  background: var(--btn-color3);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.taskbar-btns {
  display: flex;
  gap: 12px;
  margin: 2px;
}
.taskbar-item:hover {
  background: #665353;
}
/* Minimized State */
.terminal-container.minimized {
  transform: translate(-100%, 100%) scale(0%);
  opacity: 0;
  pointer-events: none;
}

.taskbar-item.active {
  background: #444;
}
.taskbar-item.active:hover {
  background: var(--btn-color2);
}

#output {
  white-space: pre-wrap;
}

.input-line {
  display: flex;
  align-items: center;
  font-family: var(--cli-font-family);
  font-size: var(--cli-font-size);
  color: var(--cli-text-color, cyan); /* Matches user command color */
  background: transparent;
  border: none;
  outline: none;
  caret-color: var(--cli-text-color, cyan); /* Ensures the cursor matches */
}

.prompt {
  margin-right: 8px;
}

#input {
  background: transparent;
  border: none;
  outline: none;
  flex-grow: 1;
  font-family: inherit;
  color: inherit;
  font-size: 16px;
}

.command {
  color: var(--command-color, cyan);
  font-size: 16px;
}

.response {
  color: var(--btn-text);
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* Ensure it stays in the background */
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure it covers the container while maintaining aspect ratio */
  z-index: -1;
}
#static-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Adjust opacity for desired static intensity */
  z-index: 0;
}

/* BUTTONS */
.btn-icon {
  width: 25px;
  height: auto;
  stroke: var(--btn-text);
  fill: var(--btn-text);
}

.btn {
  background: var(--btn-color3);
  color: var(--btn-text);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}

.clickable {
  background: var(--btn-color3);
  border: var(--link-text) 1px solid;
}

.clickable:hover {
  background-color: var(--btn-color2);
  cursor: pointer;
}

.clickable:active {
  background: var(--btn-color3);
  box-shadow: 0 2px var(--btn-shadow);
  transform: translateY(-2px);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }
}
