@import "./colourscheme.css";

body{
    background-color: rgb(var(--crust-color));
    color: rgb(var(--text-color));
    font-family: "Inconsolata", monospace;
    font-optical-sizing: auto;
    font-weight: 400; 
    letter-spacing: 1px;
}

p {
  margin: 0;
}

a:link {
  color: rgb(var(--skyblue-color));
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: rgb(var(--accent-color));
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: rgb(var(--red-color));
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: rgb(var(--yellow-color));
  background-color: transparent;
  text-decoration: underline;
}

.infobox {
  position: fixed; 
  margin: auto; 
  inset: 0;
  width: 800px; 
  height: 600px; 
  background-color: rgb(var(--base-color));
  border: solid rgb(var(--overlay-color)) 1px;
  display: grid; 
  box-shadow: 2px 2px 30px rgba(28, 28, 28, 0.5);
}

.infobox-titlebar {
  position: fixed; 
  width: 800px; 
  height: 35px; 
  background-color: rgb(var(--base-color));
  border-bottom: dotted rgb(var(--overlay-color)) 2px;
  display: flex;
  align-items: center;
}

.infobox-content {
  width: 800px;
  height: 565px; 
  margin-top: 35px; 
  margin-left: 200px; 
  display: inline;
  justify-content: center;
  align-items: center;
}

.directories-box{
  position: fixed; 
  width: 200px; 
  height: 560px; 
  margin-left: auto; 
  margin-top: 40px; 
  border-right: dotted rgb(var(--overlay-color)) 1px;
  background-color: rgb(var(--base-color));
  display: flex; 
  flex-direction: column; 
}

.folder-section {
  padding-top: 2px; 
  padding-left: 2px; 
  font-size: 15px; 
  width: auto; 
  height: auto; 
}

.folder-container {
  width: auto; 
  height: auto; 
}

.file-section{
  width: auto;
  height: 20px; 
  margin-right: auto;
}

.file-section:hover{
    background-color: rgb(var(--crust-color));
}

.crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

@keyframes flicker {
  0% {
  opacity: 0.27861;
  }
  5% {
  opacity: 0.34769;
  }
  10% {
  opacity: 0.23604;
  }
  15% {
  opacity: 0.10626;
  }
  20% {
  opacity: 0.18128;
  }
  25% {
  opacity: 0.10626;
  }
  30% {
  opacity: 0.18128;
  }
  35% {
  opacity: 0.23604;
  }
}

.crt::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}
.file-section--active {
  background-color: rgb(var(--surface-color));
  color: rgb(var(--accent-color));
}

[data-tab-trigger],
[data-folder-toggle] {
  cursor: pointer;
  user-select: none;
}

.tab-panel {
  transition: opacity var(--tab-transition, 180ms) ease;
}

.tab-panel--hidden {
  opacity: 0;
  pointer-events: none;
}

.tab-panel--visible {
  opacity: 1;
  pointer-events: auto;
}

.folder-container--collapsed {
  display: none;
}
