:root {
    --bright: #21bceb;
    --bright2: rgb(101, 75, 233);
    --hilight: rgb(170, 25, 214);
    --red: rgb(223, 18, 35);
    --red2: rgb(168, 45, 97);
    --pink: rgb(229, 121, 233);
    --orange: rgba(219, 140, 66, 0.8);
    --yellow: rgb(242, 231, 22);
    --shadow: rgba(7, 1, 8, 0.897);

    --txt: rgb(239, 239, 239);
    --txt-darker: rgb(161, 161, 161);

    --dark: rgb(16, 16, 16);
    --darker: rgba(7, 6, 7, 0.308);
    --light: rgb(40, 40, 40);
    --border: rgb(17, 17, 17);

    --b-size: 6px;
    --b-radius: 6px;
    --bx-shadow: -3px 0px 13px -3px var(--shadow), 10px 0px 13px -7px var(--shadow), -1px 12px 13px 7px rgba(0,0,0,0);
    --font-h1: clamp(32px, 5vw, 48px);
    --font-h2: clamp(24px, 4vw, 40px);
    --font-h3: clamp(20px, 3vw, 32px);
    --font-h4: clamp(18px, 2vw, 26px);
    --heading-spacing: 3px;

    --gray: rgb(21, 21, 21);
    --gray2: rgb(31, 31, 31);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  scrollbar-width: auto;
  scrollbar-color: var(--txt) var(--dark);
  font-family: "Source Code Pro", monospace;
}

body, html {
  line-height: 1.2;
  min-height: 100%;
  font-size: clamp(14px, 1.4vw, 16px);
  scroll-behavior: smooth;
  color: var(--txt);
  background-color: var(--dark);
}

#main-content a, #main-content a:link, #main-content a:visited, #main-content a:active, #main-content a:focus, footer a:visited, footer a:active, footer a:focus, footer a { letter-spacing: 1px; text-shadow: 2px 2px 3px var(--shadow); font-weight: bolder; color: var(--pink); text-decoration: none; }
#main-content a:hover, footer a:hover { transition: 0.7s; color: var(--bright); text-decoration: underline dotted; }

strong { font-weight: bolder; color: var(--bright2); text-shadow: 2px 2px 3px var(--shadow); }

h1, h2, h3, h4 { transition: 0.36s; letter-spacing: 4px; color: var(--txt-darker); text-shadow: 4px 4px 3px var(--shadow); border-bottom: 2px dashed rgba(128, 128, 128, 0.72); margin: 0 0 10px 5px; padding: 0 15px 10px 10px; }
h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }
h4 { font-size: var(--font-h4); }

h1::before, h2::before, h3::before, h4::before { font-family: 'Material Symbols Outlined'; display: inline-block; vertical-align: middle; margin-right: 0.2em; content: "numbers"; }

h1:hover, h2:hover, h3:hover, h4:hover { color: rgba(73, 62, 76, 0.756); }

.img-style { border: var(--b-size) solid var(--dark); outline: 2px solid var(--darker); border-radius: var(--b-radius); box-shadow: var(--bx-shadow); position: relative; left: 25%; max-width:50%; display: inline-block }

img, video { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
.hidden { display: none !important; }
.clearfix::after { content: ""; display: table; clear: both; }

hr {
  width: 100%;
  height: 0;
  backdrop-filter: blur(12px);
  display: block;
  box-shadow: var(--bx-shadow);
  border: 3px solid var(--border);
  border-radius: var(--b-radius);
  background-color: var(--dark);
  margin: 5px 0 25px; 
  animation: hrFill 3.5s ease-out;
}

@keyframes hrFill {
	0% {
		opacity: 0.01;
		width: 1%;
	}

	100% {
		opacity: 0.99;
		width: 100%;
	}
}

/* ==========================
           AJAX SPINNER
========================== */
.loader { backdrop-filter: blur(25px); top: 50%; left: 50%; position: fixed; z-index: 99; width: 120px; --b: 16px; aspect-ratio: 1; border-radius: 80%; padding: 4px; background: conic-gradient(#10ca4800 40%,#0c73da) content-box; -webkit-mask: repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg), radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b))); -webkit-mask-composite: destination-in; mask-composite: intersect; animation:l4 0.75s infinite steps(10);}@keyframes l4 {to{transform: rotate(1turn)}}@keyframes l3 {to{transform: rotate(1turn)}}

/* ==========================
           SOCIAL
========================== */
.social-links { list-style: none; display: flex; justify-content: space-evenly; width:100%; text-shadow: 5px 5px 3px var(--shadow); padding: 20px; border-top: 2px solid var(--border); }
.social-icons li { font-size: 1.6rem;}
.social-icons { display:flex; vertical-align: middle; width: 100%;}
.social-links li:nth-child(odd) a { color: var(--orange);}
.social-links li:nth-child(even) a { color: var(--red); }
.social-icons li a { transition: color 0.3s ease; display: inline-block; border: none;}
.social-icons li a:hover { color: var(--bright); animation: bounceUp 0.9s ease; transition: 0.5s ease; outline: 4px solid var(--dark); outline-offset: 7px; border-radius: 3px; }

@keyframes bounceUp {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-8px); }
  60%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* ==========================
           NAV
========================== */
nav {
  font-size: 2.2rem;
  padding-top: 15px;
  letter-spacing: var(--heading-spacing);
  background-color: var(--gray);
  transition: 0.2s ease-in-out;
}

nav .link-li {
  text-shadow: 4px 4px 3px var(--shadow);
  color: var(--red);
  font-weight: 800;
}

nav .link-li-active {
  font-weight: 800;
  color: var(--bright);
  padding: 5px;
  text-shadow: 4px 4px 3px var(--shadow);
  background-color: var(--dark);
  border-top-left-radius: var(--b-radius);
  border-top-right-radius: var(--b-radius);
}

nav .link-li:hover, nav .link-li-active:hover, nav .link-li-active:active {
color: var(--bright);
  text-shadow: 4px 4px 3px var(--shadow);
  border-top-left-radius: var(--b-radius);
  border-top-right-radius: var(--b-radius);
  background-color: var(--gray2);
}

nav ul {
  gap: 6rem;
  list-style: none;
}

.menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
}

.menu li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 5px;
  user-select: none;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--red);
  margin: 5px 0;
  transition: 0.3s;
  box-shadow: 4px 4px 8px rgba(11, 11, 11, 0.95);
}

.hamburger:hover { color: var(--bright); }

/* ==========================
          CONTENT/LAYOUT
========================== */
#wrapper {
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--dark);
  display: flex;
}

#main-content {
  margin: 10px 10px 60px 10px;
  padding: 10px;
  text-align: justify;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  align-items: center;
} 

.content {
  width: 100%;
  margin: 10px;
  padding: 10px;
  box-shadow: var(--bx-shadow);
  min-height: 100%;
}

.content:nth-child(odd) {
  background-color: rgba(7, 6, 7, 0.666);
}

.content:nth-child(even) {
  background-color: var(--darker);
}

#specs-block {
  margin-top: 25px;
  gap: 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  color: var(--txt-darker);
  font-weight: 600;
  padding: 10px 0 10px;
  text-shadow: 4px 4px 3px var(--shadow);
  transition: 0.7s;
  border: 2px dashed rgba(128, 128, 128, 0.72);
  border-radius: 6px;
  background-color: rgba(191, 152, 196, 0.1);
}

#specs-block .material-symbols-outlined { font-size:3rem; }

#specs-block .material-symbols-outlined:hover { color: var(--bright); }

.icons-block {
  display: block;
  font-size: 2.2rem;
  text-shadow: 4px 4px 3px var(--shadow);
  color: var(--txt-darker);
  transition: 0.22s ease;
}

.quote-style {
    border: var(--b-size) solid var(--dark);
    padding: 15px 0 15px 25px;
    background-color: rgba(191, 152, 196, 0.1);
    border-radius: 6px;
    margin: 5px 0 5px 10px; 
    box-shadow: 4px 2px 7px var(--shadow);
    list-style-type: none;
}

.quote-style li::before { 
  color: rgb(114, 114, 114);
  font-family: 'Material Symbols Outlined';
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.2em;
  font-weight: 800;
  content: "double_arrow ";
}

footer {
  position: fixed;
  bottom:0;
  width: 100%;
  backdrop-filter: blur(12px);
  background-color: rgba(0, 0, 0, 0.6);
  border-top: 6px solid var(--darker);
  box-shadow: 0px -7px 9px 1px rgba(77,4,143,0.25);
  display:flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  color: var(--txt-darker);
  font-weight: 600;
  padding: 10px 0 10px;
  text-shadow: 4px 4px 3px var(--shadow);
}

.modal {
  align-items: center; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  justify-content: center; align-items: center; z-index: 1000;
  box-shadow: 4px 4px 3px rgba(0,0,0,1);
  transition: 0.5s;
  font-size: 14px;
}

.modal-content {
  background: #2d2d2d;
  padding: 10px;
  max-width: 80%;
  max-height: 80%;
  overflow: auto;
}

#closeBtn {
    position: absolute; top: 0px; right: 20px; font-size: 4rem;
    color: var(--red);  cursor: pointer;
}

#closeBtn:hover {
  color: var(--red2);
  transition: 0.3s ease-in;
}

.modal-block {
  border-radius: 4px;
  border: 2px solid var(--dark);
  position:relative; background:#1e1e1e;  padding:20px; max-width:95%; max-height:95%; overflow:auto;
  bottom: 25px;
}

#codeModal {
  backdrop-filter: blur(10px);
  display:none;margin:0;padding:25px; position:fixed; top:0; left:0; width:100%; height:100%; 
  background: rgba(0,0,0,0.7); justify-content:center; align-items:center;
}

#codeModal pre, 
#codeModal code {
    all: unset;
    display: block;
    font-family: "Source Code Pro", monospace;
    line-height: 1;
    white-space: pre;
    background: #1e1e1e;
    color: #ddd;
    text-shadow: none;

}

/*  ==========================
          FILELIST
========================== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
  outline: none;
  border: none;
  border-collapse: none;
  overflow: hidden;
  border-radius: 4px;
}

table td { padding: 5px; }
table th { padding: 5px; }

th { background-color: rgba(111, 103, 118, 0.293); margin-bottom: 5px;}
tr:nth-child(odd) { background: #2a1e2e21; }
tr:nth-child(even) { background: #2815612f; }

/* ==========================
        YOUTUBE/VIDEOS
========================== */
.youtube-wrapper, .emb {
  width: 320px;
  height: 180px;
  position: relative;
  margin: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 5px solid var(--red);
  border-radius: 4px;
  box-shadow: 5px 5px 7px var(--shadow);
  transition: 0.5s;
  outline: none;
}

.youtube-wrapper:hover, .emb:hover { border: 5px solid var(--orange); opacity: 0.6; transition: 0.7s ease; box-shadow: 10px 10px 13px var(--shadow); }
.youtube-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

.youtube-wrapper:nth-child(odd) { border: 5px solid var(--red); }
.youtube-wrapper:nth-child(even) { border: 5px solid var(--pink); }
.youtube-wrapper:hover {  border: 5px solid var(--yellow); }

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    opacity: 0.6;
    background: url('/img/playbutton.png') no-repeat;
    background-size: contain;
    backdrop-filter: blur(2px);
}

.play-overlay:hover { opacity: 0.3; filter: blur(5px); transition: 0.8s ease  ; }

.vidz {
    gap: 0.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (max-width: 920px) {
  nav ul { gap: 2rem; }
}

@media (max-width: 772px) {

  body, html { font-size: 0.8rem; }
  #wrapper, #content { min-height: 100%;}
  nav { padding: 10px; }
  .menu {
    width: 100%;
    display: inline-block; 
    text-align: center;
    border-left: 12px solid rgba(0,0,0,0);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .menu.open { max-height: 300px; }

  .menu .link-li {
    margin: 10px 5px;
    border-left: 12px solid var(--gray);
    display: flex; justify-content: center; transition: 0.3s ease-in-out; 
    border-bottom: none;
    padding: 5px;
  }

  .menu .link-li-active {
    color: var(--orange);
    background-color: rgba(109, 51, 99, 0.281);
    border-left: 12px solid var(--red2); 
    border-radius:6px;
    border-bottom: none;
    margin: 10px 5px;
    padding: 5px;
  }

  .menu.open { max-height: 300px; }
  .hamburger { display: block; }
  .hamburger.open div:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open div:nth-child(2) { opacity: 0; }
  .hamburger.open div:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hamburger:hover, .hamburger:active, .hamburger:focus { color: var(--hilight); }

  .social-icons li { font-size: 1rem;}

  footer {font-size:0.8rem;}
  
  .file-list { font-size: 0.6rem; }
  .td-mtime, .th-mtime { display: none; }

  h1, h2, h3 { letter-spacing: 1px; }
  #specs-block .material-symbols-outlined { font-size: 12px; gap: 0.1rem; }
}