:root {
    --bright: #1ceb26;
    --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);

    --shadow: rgba(7, 1, 8, 0.897);

    --txt: rgb(208, 213, 251);
    --txt-darker: rgb(128, 115, 160);
    --dark: rgb(47, 44, 49);
    --darker: rgba(7, 6, 7, 0.308);
    --light: rgba(33, 27, 34, 0.425);
    --border: rgb(17, 16, 16);

    --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-base: clamp(16px, 1.5vw, 18px);
    --font-h1: clamp(32px, 5vw, 48px);
    --font-h2: clamp(24px, 4vw, 40px);
    --font-h3: clamp(20px, 3vw, 32px);
    --heading-spacing: 3px;
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  cursor: pointer;
  display: block;
  font-size: 2.2rem;
  text-shadow: 4px 4px 3px var(--shadow);
  color: var(--txt-darker);
  transition: 0.22s ease;
}

.material-symbols-outlined:hover { color: var(--orange);}

* {
  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.5;
  min-height: 100%;
  font-size: var(--font-base);
  scroll-behavior: smooth;
  color: var(--txt);
  background: linear-gradient(90deg, purple, orange);
  background-size: 200% 100%;
  animation: gradientMove 12s ease-in-out infinite alternate;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

a:link, a:visited, a:active, a:focus { letter-spacing: 1px; text-shadow: 4px 4px 3px var(--shadow); font-weight: bolder; color: var(--pink); text-decoration: none; }
a:hover { transition: 0.7s; color: var(--bright); }

strong { font-weight: bolder; color: var(--red2); }

h1, h2, h3 { letter-spacing: 4px; color: var(--txt-darker); text-shadow: 4px 4px 3px var(--shadow); }
h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

h1::before, h2::before, h3::before {
  font-family: 'Material Symbols Outlined';
  font-variation-settings:
    'FILL' 0,
    'wght' 8400,
    'GRAD' 0,
    'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.2em;
}

h1::before { content: "pageview"; }
h2::before { content: "file_open"; }
h3::before { content: "numbers"; }

p, span, li { font-size: var(--font-base); text-shadow: 4px 4px 3px var(--shadow);}

.social-icons li { font-size: 2.2rem;}

.img-style {
  border: var(--b-size solid --dark);
  border-radius: var(--b-radius);
  box-shadow: var(--bx-shadow);
  position: relative;
  left: 25%;
  max-width:50%;
}

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 {
  top: 50%; left: 50%; position: fixed; z-index: 99;
  backdrop-filter: blur(5px) opacity(0.9);
  filter: blur(5px) opacity(0.8);
  width: 75px;
  padding: 24px;
  aspect-ratio: 1;
  border-radius: 50%;
  outline-color: var(--hilight);
  outline-style: solid;
  outline-width: 16px;
  background: var(--red2);
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1.2s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}

/* ==========================
            NAV+SOCIAL
========================== */
.social-links {
  font-size: 2.5rem;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  text-shadow: 5px 5px 3px var(--shadow);
  padding: 10px;
 }

.social-icons { display:flex; vertical-align: middle; }
.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; }
.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 {
  letter-spacing: var(--heading-spacing);
  background-color:var(--dark);
  transition: 0.2s ease-in-out;
  padding: 10px 0;
}

nav .link-li { padding: 5px; color: var(--red); }

nav .link-li-active {
  padding: 5px;
  color: var(--orange);
  text-shadow: 4px 4px 3px var(--shadow);
  background-color: rgba(109, 51, 99, 0.281);
  border-radius: var(--b-radius); 
}

nav .link-li:hover, nav .link-li-active:hover, nav .link-li-active:active, nav a:focus {
  color: var(--bright);
  text-shadow: 4px 4px 3px var(--shadow);
  transition: 0.5s ease;
  outline: 4px solid var(--dark); outline-offset: 3px; border-radius: 3px;
}

.navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.nav-links {
  justify-content: center;
  display: flex;
  list-style: none;
  gap: 0.8rem;
}

.hamburger { display: none; cursor: pointer;}
#menu-icon { font-size: 3rem; }

/* ==========================
          CONTENT/LAYOUT
========================== */

#wrapper {
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--dark);
  border-bottom: var(--b-size) solid var(--border);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#main-content {
  margin: 25px 25px 75px;
  padding: 25px;
  text-align: justify;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  box-shadow: var(--bx-shadow);
  border: var(--b-size) solid var(--border);
  border-radius: var(--b-radius);
  background-color: var(--dark);
  align-items: center;
} 

.content {
  width: 100%;
  background-color: var(--darker);
  margin: 15px;
  padding: 25px;
  border-left: 10px solid var(--red2);
  border-radius: 6px;
  box-shadow: var(--bx-shadow);
  height: 100%;
  transition: 0.5s ease-in;
}

.content:nth-child(odd) {
  border-left: 10px solid var(--hilight);
}

.content:nth-child(even) {
  border-left: 10px solid var(--red2);
}

.content:hover, .content:focus {
  border-left: 10px solid var(--orange);
}

#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);
}

#specs-block .material-symbols-outlined {
  font-size:3rem;
}

.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;
    background-color: rgba(191, 152, 196, 0.192);
    border-radius: 12px;
    margin: 10px 0 10px 25px; 
    box-shadow: 4px 2px 7px var(--shadow);
}

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,0.8);
    transition: 0.5s;
      font-size:1rem;
}

.modal-content {
  background: #2d2d2d;
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
  max-height: 80%;
  overflow: auto;
}

#closeBtn {
    position: absolute; top: 15px; right: 20px; font-size: 4rem;;
    color: var(--red);  cursor: pointer;
}

#closeBtn:hover {
  color: var(--red2);
  transition: 0.3s ease-in;
}

.modal-block {
    border-radius: 24px;
    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;           /* nuke inherited styles */
    display: block;
    font-family: "Source Code Pro", monospace;
    font-size: 1rem;
    line-height: 1.4em;
    white-space: pre;
    background: #1e1e1e;  /* fallback if hljs theme misses */
    color: #ddd;
    text-shadow: none;    /* kill shadows */
}

/*  ==========================
          FILELIST
========================== */
.file-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.file-grid div { padding: 6px; }

.file-grid .header { font-weight: bold; border-bottom: 1px solid #666; }

.file-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    border: 1px solid #ccc;
}
.file-header, .file-row {
    display: contents;
}
.file-header > div {
    font-weight: bold;
    background: #f0f0f0;
    padding: 6px;
    border-bottom: 1px solid #ccc;
}
.file-row > div {
    padding: 6px;
    border-bottom: 1px solid #eee;
}
.file-row:nth-child(even) > div {
    background: #fafafa;
}

/* ==========================
        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;
}

.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; }

.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-in-out; }

.vidz {
    gap: 0.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (max-width: 768px) {

  #wrapper, #content { min-height: 100%;}

  nav { margin: 0; padding:0; line-height: 2.1rem; }
  nav .link-li {  color: var(--pink); }
  nav .link-li-active, .link-li {
    width: 100%;
    transition: 0.7s;
    margin: 0; padding:0;
    display: inline-block; 
    text-align: center;
  }
  nav ul li { gap:0.3rem; }
  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.show { display: flex; }
  .nav-links.show li { display: flex; justify-content: center; transition: 0.3s ease-in-out; }
  .nav-links.show li:hover { background-color: rgba(40, 73, 95, 0.212); }
  nav .link-li-active { color: var(--orange); background-color: rgba(109, 51, 99, 0.281);  border-left: 12px solid var(--red2); border-radius:6px; padding-right:12px; }

  .hamburger {
    padding:0;
    margin:0;
    color: var(--red);
    transition: 0.3s;
    display: inline-block;
  }

  .hamburger:hover, .hamburger:active, .hamburger:focus {
    color: var(--hilight);
  }

  .social-icons li { font-size: 1.2rem;}

}