@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  --bg: #0a0a0a;
  --fg: #F20000;
  --muted: #b0b0b0;
  --accent: #c8b8f5;
  --border: #2a2a2a;
  --card-bg: #141414;
  --tag-bg: #1a1a1a;
  --tag-border: #333;
  --hover: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://hyndzia.xyz/zdj.jpg');
  background-size: cover;
  background-position: center;
  z-index: -3;
  filter: brightness(0.4);
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: -2;
}

header {
  width: 100%;
  max-width: 700px;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.back-link {
  position: fixed;
  top: 15px;
  left: 15px;
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.5rem;
  color: #F20000;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.back-link:hover {
  background-color: #A30000;
  color: #121212;
  text-shadow: none;
}

h1 {
  font-size: 35px;
  font-weight: 600;
  color: #F20000;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  font-family: 'UnifrakturCook', cursive;
}

h1 span {
  color: var(--accent);
  font-family: 'UnifrakturCook', cursive;
}

.subtitle {
  color: #cfcfcf;
  font-size: 12px;
}

main {
  width: 100%;
  max-width: 700px;
  padding: 1rem 1.5rem 4rem;
}

footer {
  font-size: 0.8rem;
  color: #4a4949;
  background: transparent;
}

.section-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;

  background: rgba(20, 20, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  will-change: transform;
}

.file-item:hover {
  background: rgba(222, 4, 4, 0.08);
  border-color: rgba(222, 4, 4, 0.15);
  transform: translateY(-1px);
}

.file-item:active {
  transform: scale(0.97);
  filter: brightness(0.9);
}

.file-icon {
  font-size: 13px;
  width: 20px;
  text-align: center;
  color: var(--muted);
}

.file-name {
  flex: 1;
  font-size: 14px;
  color: #E8E8E8;
  word-break: break-all;
  font-weight: 500;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-size {
  font-size: 11px;
  color: var(--muted);
  min-width: 50px;
  text-align: right;
}

.file-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.file-tag.iso   { color: #85b7eb; border-color: #1a2d42; background: #0c1a26; }
.file-tag.zip   { color: #97c459; border-color: #1e2e0d; background: #111b08; }
.file-tag.img   { color: #f09595; border-color: #3a1010; background: #200a0a; }
.file-tag.tar   { color: #ef9f27; border-color: #3a2508; background: #201308; }
.file-tag.misc  { color: #c8b8f5; border-color: #2a1e4a; background: #160f2a; }
.file-tag.exe   { color: #f09595; border-color: #3a1010; background: #200a0a; }
.file-tag.gif   { color: #c8b8f5; border-color: #2a1e4a; background: #160f2a; }
.file-tag.js    { color: #ef9f27; border-color: #3a2508; background: #201308; }
.file-tag.py    { color: #85b7eb; border-color: #1a2d42; background: #0c1a26; }
.file-tag.mp4   { color: #f09595; border-color: #3a1010; background: #200a0a; }
.file-tag.wav   { color: #ef9f27; border-color: #3a2508; background: #201308; }
.file-tag.jpg   { color: #c8b8f5; border-color: #2a1e4a; background: #160f2a; }
.file-tag.zshrc { color: #97c459; border-color: #1e2e0d; background: #111b08; }
.file-tag.raw   { color: #d0d0d0; border-color: #3a3a3a; background: #121212; }
.file-tag.cpp   { color: #b4b2a9; border-color: #2c2c2a; background: #161614; }
.file-tag.blend { color: #ef9f27; border-color: #3a2508; background: #201308; }
.file-tag.cpp   { color: #ffd95e; border-color: #5a4a1a; background: #1f1a08; }
.file-tag.png   { color: #c8b8f5; border-color: #2a1e4a; background: #160f2a; }
.file-tag.mp3   { color: #ef9f27; border-color: #3a2508; background: #201308; }
.file-tag.flac  { color: #ef9f27; border-color: #3a2508; background: #201308; }
.file-tag.ogg   { color: #ef9f27; border-color: #3a2508; background: #201308; }
.file-tag.ai   { color: #7cf0ff; border-color: #06323a; background: #071b22; }
.file-tag.ml   { color: #b48cff; border-color: #2a1a3d; background: #120a1f; }
.file-tag.nn   { color: #ff7ad9; border-color: #3a1030; background: #1f0a18; }
.file-tag.torch { color: #ff6b6b; border-color: #3a1010; background: #200a0a; }
.file-tag.cuda { color: #76ffb0; border-color: #0f3a2a; background: #081f16; }

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.08s ease, color 0.1s, border-color 0.1s;
  will-change: transform;
position: relative;
  z-index: 2;
}

.copy-btn:hover {
  color: var(--fg);
  border-color: #444;
}

.copy-btn.copied {
  color: #97c459;
  border-color: #1e2e0d;
}

.add-mirror-area {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
}

.add-mirror-area h2 {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.add-mirror-area p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.add-mirror-area code {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
  color: #FAB732;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0 1rem;
}
.mirror-badge {
  font-size: 10px;
  color: var(--accent);
  background: #1a1230;
  border: 1px solid #2a1e4a;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  cursor: pointer;
}

.mirror-dropdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  margin-bottom: 6px;
  padding: 0.4rem 0.75rem;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(200, 184, 245, 0.15);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.12s ease;
}

.mirror-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.3rem 0.25rem;
  border-bottom: 1px solid var(--border);
}

.mirror-row:last-child {
  border-bottom: none;
}

.mirror-link {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  flex: 1;
}

.mirror-link:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
#rain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

body::before {
  z-index: 0;
}

body::after {
  z-index: 2;
}

header, main, footer {
  position: relative;
  z-index: 3;
}

.pixel-banner {
  display: block;
  margin: 10px auto;
  width: 100%;
  max-width: 100%;
  

  image-rendering: pixelated;

  border: 1px solid var(--border);
  border-radius: 6px;

  transition: box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}

.pixel-banner:hover {
  box-shadow:
    0 0 12px rgba(242, 0, 0, 0.6),
    0 0 25px rgba(242, 0, 0, 0.5),
    0 0 60px rgba(242, 0, 0, 0.35);

  filter: brightness(1.3) contrast(1.1);
}

.center-text {
	text-align: center;
}

html {
  font-size: 16px;
}

header,
main {
  width: 100%;
  max-width: 700px;
}

@media (max-width: 768px) {
  html {
    font-size: 6px;
  }
  header,
  main {
    max-width: 100%;
    padding: 1rem;
  }

  h1 {
    font-size: 40px;
	margin-top: 25px;
    letter-spacing: 0.1em;
  }

  .subtitle {
    font-size: 11px;
  }

  .file-item {
    padding: 0.5rem;
    font-size: 13px;
  }

  .file-size {
    display: none; 
  }

  .file-item:hover {
    transform: none;
  }

  .pixel-banner:hover {
    transform: none;
  }

  header {
    align-items: flex-start;
  }

  .back-link {
    font-size: 3.5rem;
    padding: 14px 18px;
    border-radius: 12px;
	position: static;
    margin-bottom: 10px;
  }

  .file-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .file-meta {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
  }

.section-label {
  margin-top: 11rem;
  margin-bottom: 2rem;
  padding-bottom: 0.6rem;
}

.add-mirror-area {
  margin-top: 11rem;

}

}

