@font-face {
  font-family: "System";
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/86186/terminal_copy.ttf");
}

@font-face {
  font-family: "System Mono";
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/86186/sys.ttf")
    format("truetype");
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "System", monospace;
  background: #001b3a;
  color: #fff;
  overflow-x: hidden;
  text-shadow: 1px 1px #000;
  image-rendering: pixelated;
  font-size: 16px;
}

body::-webkit-scrollbar {
  display: none;
}

.scanlines::before {
  content: "";
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 999;
  animation: flicker 0.2s infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.08;
  }
  50% {
    opacity: 0.15;
  }
}

.vault-header {
  text-align: center;
  font-size: 2rem;
  padding: 1.5rem;
  background: #000;
  border-bottom: 3px solid #00b0ff;
  color: #ffff00;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.folder {
  margin: 2rem auto;
  max-width: 800px;
  border: 2px solid #004c8c;
  background: #0a0a0a;
  padding: 1.25rem;
  box-shadow: inset 0 0 0 2px #002c5c;
}

.folder h2 {
  font-size: 1.2rem;
  color: #00b0ff;
  cursor: pointer;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.folder h2:hover {
  color: #ffff00;
}

.file {
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.file.visible {
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid #003366;
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.file span {
  color: #ccc;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.file .description {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
  font-style: italic;
}

.file a {
  color: #ffff00;
  font-size: 0.9rem;
  text-decoration: none;
}

.file a:hover {
  text-decoration: underline;
}

.icon {
  font-size: 1rem;
}

#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
}

#modal-content {
  background: #111;
  padding: 1rem;
  border: 2px solid #004c8c;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: "System Mono";
  color: #00b0ff;
}

.modal-player {
  width: 100%;
}

.ascii {
  color: #00b0ff;
  font-size: 0.65rem;
  line-height: 1.2;
  white-space: pre;
  text-align: center;
  margin-top: 2.5rem;
}

.rain {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 998;
}

.raindrop {
  position: absolute;
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}
