/* CSS Variables - Hack The Box inspired palette */
:root {
  --bg-dark: #0b121f;
  --panel-main: #111927;
  --panel-alt: #1a2332;
  --panel-deep: #0f1724;
  --accent: #9fef00;
  --accent-soft: #c5f467;
  --accent-cyan: #2ee7b6;
  --border-soft: rgba(159,239,0,.28);
  --shadow-green: rgba(159,239,0,.22);
  --text: #ffffff;
  --muted: #a4b1cd;
}

/* Fonts */
@font-face {
  font-family: "lulo";
  src: url("../fonts/lulo.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "avenir";
  src: url("../fonts/avenir.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color:var(--bg-dark);
  background-image:
    linear-gradient(rgba(11,18,31,.72), rgba(11,18,31,.78)),
    url("../gfx/backgroundHeadshot.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  padding-top:74px;
  display: flex;
  flex-direction: column;
  font-family:'helvetica', sans-serif;
  color:#fff;
  font-size:22px;
}

#fade{
  opacity:0;
  transition:opacity .35s ease;
}

#fade.loaded{
  opacity:1;
}

#fade.fade-out{
  opacity:0;
}

p,input,textarea{
  font-family:'helvetica', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family:'Montserrat',sans-serif;
}

#hero h1{
font-family:'lulo', sans-serif;
letter-spacing:4px;
text-transform:uppercase;
line-height:1;
}

a {
  color: #ffffff;
  text-decoration: none;
}

a:visited {
  color: #a4b1cd;
}

a:hover,
a:focus {
  color: #ffffff;
  text-decoration: none;
}

/* Button and Interactive Elements */
a > .menu-button,
a > .signup-button {
  color: inherit;
}

.menu-toggle{
  display:none;
  background:none;
  border:none;
  color:#ffffff;
  font-size:34px;
  cursor:pointer;
  padding:1rem;
  margin:0 auto;
}

#menu{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:2rem;
  width:min(1220px,95%);
  margin:0 auto;
  padding:1rem 0;
}

@media (max-width:820px){
  .menu-bar{
    text-align:center;
  }

  .menu-toggle{
    display:block;
  }

  #menu{
    display:none;
    flex-direction:column;
    gap:.5rem;
    padding:0 0 1rem;
  }

  #menu.open{
    display:flex;
  }

  #menu a{
    padding:.75rem 1rem;
  }
}

/* Button appearance */
.menu-button,
.signup-button {
  margin: 0 .5rem;
  padding: .5rem 1rem;
  border: none;
  background: var(--accent);
  color: #0b121f;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

.signup-button {
  font-size: 21px;
  display: inline-block;
  width: 140px;
  text-align: center;
}

.outline-button{
  display:inline-block;

  padding:18px 56px;

  border:2px solid #9fef00;

  color:#ffffff;
  text-decoration:none;

  font-family:'avenir',sans-serif;
  font-size:14px;
  letter-spacing:1px;

  background:rgba(0,0,0,.08);

  transition:.25s ease;
}

.outline-button:hover{
  background:rgba(159,239,0,.12);
  box-shadow:0 0 12px var(--shadow-green);
  color:#ffffff;
}

/* Typography Variations */
.myname{
font-size:62px;
letter-spacing:4px;
}

.myskills{
  font-family:"avenir", sans-serif;
  letter-spacing:4px;
  line-height:1.7;
}

/* Smaller Text Elements */
.mission-text,
#footer {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 14px;
  color: inherit;
}

.mission-text {
  margin-top: 0.5rem;
}

.mission-card{
  width:70%;
  margin:auto;
  padding:2rem;
  background:rgba(17,25,39,.86);
  backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  box-shadow:0 0 24px rgba(0,0,0,.32);
}


/* Layout and Centering */
#top{
position:absolute;
top:0;
}

#mission,
#projects{
  width: min(1220px, 95%);
  margin: 0 auto;
  box-sizing: border-box;
}

#menu,
#footer{
  width:min(1220px,95%);
  margin:0 auto;
}

.menu-bar{
  width:100%;
  background:var(--panel-main);

  position:fixed;
  top:0;
  left:0;

  z-index:1000;
}

.footer-bar {
  width: 100%;
  background: var(--panel-main);
}

#footer-placeholder {
  margin-top: auto;
}

/* Menu Styles */
#menu a{
padding:.6rem 1rem;
letter-spacing:1px;
font-weight:600;
}

#menu a:hover{
color:#c5f467;
}

/* Spacing */
#menu, #footer {
  padding: 1rem 0;
}

/* Hero Section */
#hero{
  width:min(538px,95%);
  margin:0 auto;
  min-height:calc(100vh - 74px);
  display:flex;
  align-items:center; 
  justify-content:flex-start;
  background:rgba(17,25,39,0);
  text-align:left;
}

#mynameskills{
  max-width:538px;
  text-shadow:2px 2px 4px rgba(0,0,0,.65);
}

#hero img {
  max-width:320px;
  width:100%;
  border-radius:12px;
}

#hero h2 {
  font-family:"avenir",sans-serif;
  font-size:26px;
  color:#c5f467;
}

/* View Projects Section */
.viewprojects{
  max-width:900px;
  margin:0 auto;

  padding:1rem 1rem;

  background: rgba(17,25,39,.72);

  border-radius:6px;
}

.viewprojectsintro{
  font-family:"avenir", sans-serif;
  font-size:15px;
  line-height:1.8;
  max-width:680px;
  margin:0 auto 2rem auto;
}

/* Experience Section/Resume */
#experience{
  scroll-margin-top:74px;
  width:100%;
  padding:4rem 0;

  background:
    linear-gradient(
      rgba(17,25,39,.55),
      rgba(17,25,39,.78)
    ),
    url("../gfx/backgroundResume.jpg");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.experiencepanel{
  width:638px;
  max-width:95%;

  margin:0 auto;

  padding:0rem 1.5rem 0rem;

  background:rgba(26,35,50,.52);

  border-radius:4px;
}

/* heading */
.experiencetitle{
  font-family:"lulo", sans-serif;
  font-size:44px;
  letter-spacing:-2px;
  text-align:center;
  text-shadow:2px 2px 4px rgba(0,0,0,.35);
}

.experiencesubtitle{
  font-family:"avenir", sans-serif;
  text-align:center;
  letter-spacing:6px;
  font-size:20px;
  margin-bottom:2rem;
}

.experienceintro,
.job,
.job li{
  font-family:"avenir", sans-serif;
  color:#a4b1cd;
}

.job h2{
  font-family:"avenir", sans-serif;
  font-size:22px;
  color:#ffffff;
  margin-bottom:2px;
}

.technicalskills,
.technicalskills li{
  font-family:"avenir", sans-serif;
  color:#a4b1cd;
}

.technicalskills p{
  font-family:"avenir", sans-serif;
  font-size: 14px;
  color:#a4b1cd;
  margin-top: 1px;
}

.technicalskills h2{
  font-family:"avenir", sans-serif;
  font-size: 22px;
  color:#ffffff;
  margin-bottom:2px;
}

.technicalskills h4{
  font-family:"avenir", sans-serif;
  font-size: 18px;
  color:#c5f467;
  margin-top: 1px;
  margin-bottom:2px;
}

.certifications,
.certifications li{
  font-family:"avenir", sans-serif;
  color:#a4b1cd;
}

.certifications p{
  font-family:"avenir", sans-serif;
  font-size: 14px;
  color:#a4b1cd;
  margin-top: 1px;
}

.certifications h2{
  font-family:"avenir", sans-serif;
  font-size: 22px;
  color:#ffffff;
  margin-bottom:2px;
}

.certifications h4{
  font-family:"avenir", sans-serif;
  font-size: 18px;
  color:#a4b1cd;
  margin-top: 1px;
  margin-bottom:2px;
}

.labs,
.labs li{
  font-family:"avenir", sans-serif;
  color:#a4b1cd;
}

.labs p{
  font-family:"avenir", sans-serif;
  font-size: 14px;
  color:#a4b1cd;
  margin-top: 1px;
  margin-bottom: 1px;
}

.labs h2{
  font-family:"avenir", sans-serif;
  font-size: 22px;
  color:#ffffff;
  margin-bottom:2px;
}

.labs h4{
  font-family:"avenir", sans-serif;
  font-size: 18px;
  color:#a4b1cd;
  margin-top: 1px;
  margin-bottom:2px;
}

.labcard {
  font-family:"avenir", sans-serif;
  font-size: 16px;
  color:#a4b1cd;
}

.labcard h4 {
  font-family:"avenir", sans-serif;
  font-size: 16px;
  color:#c5f467;
}

.labstack {
  font-family:"avenir", sans-serif;
  font-size: 14px;
  font-weight: bold;
}

.lablist {
  font-family:"avenir", sans-serif;
  font-size: 14px;
  margin-top: 0px;
}

.experienceintro{
  text-align:center;
  font-size:16px;
  line-height:1.8;
  margin-bottom:3rem;
}

.job{
  margin-bottom:3rem;
}

.job h4{
  font-size:16px;
  letter-spacing: 2px;
  margin:.25rem 0;
  color:#c5f467;
}

.job p{
  margin:.2rem 0;
  font-size:14px;
}

.job ul{
  margin-top:.5rem;
  padding-left:1.5rem;
}

.job li{
  line-height:1.8;
  margin-bottom:.6rem;
}

.jobresponsibilities{
  font-size:14px;
}

.jobresponsibilities li {
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Footer Section */
#footer{
  width:min(1220px,95%);
  margin:0 auto;
  text-align:center;
  padding:1rem 0;
}


/* Color settings for different page sections */
#menu,
#mission {
  color: var(--text);
  background-color: var(--panel-main);
}

.brk {
  background-color: var(--panel-deep);
  padding: 1rem;
}

#footer {
  color: var(--text);
}

/* Description Section */
#description{
  text-align:center;
  max-width:538px;
  width:95%;
  padding:2rem 1rem;
  margin:0 auto;
  display:flex;
  justify-content:center;
}

#description p{
  font-family:"avenir", sans-serif;
  font-size:15px;
  line-height:1.8;
  margin:1rem 1rem;
}

#description .outline-button{
  display:inline-block;
}

/* Active Page Highlighting */
.active {
  color: #c5f467;
  text-decoration: underline;
}

/* Contact Form */
#contact{
  scroll-margin-top:74px;
  width:100%;
  padding:4rem 0;

  background:
    linear-gradient(
      rgba(17,25,39,.58),
      rgba(17,25,39,.78)
    ),
    url("../gfx/backgroundContact.jpg");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.contact-panel{
  width:min(620px,95%);
  margin:0 auto;
  padding:2.5rem 4rem 4rem;

  background:rgba(17,25,39,.78);
  box-sizing:border-box;
}

.contact-title{
  font-family:"avenir", sans-serif;
  font-size:24px;
  font-weight:400;
  letter-spacing:1px;
  text-align:center;
  margin:0 0 2rem;
  color:#ffffff;
}

.contact-intro{
  font-family:"avenir", sans-serif;
  font-size:15px;
  line-height:1.9;
  max-width:420px;
  margin:0 auto 2rem;
  color:#ffffff;
}

.contact-label{
  display:block;
  margin:0 0 .5rem;
  font-family:"avenir", sans-serif;
  font-size:13px;
  color:#ffffff;
}

.contact-input{
  width:100%;
  height:38px;
  margin-bottom:1.25rem;
  padding:.5rem .75rem;
  border:none;
  background:#0b0b0b;
  color:#ffffff;
  box-sizing:border-box;
  font-family:"avenir", sans-serif;
  font-size:14px;
}

.contact-textarea{
  height:120px;
  resize:vertical;
}

.contact-submit{
  width:100%;
  padding:.8rem 1rem;
  border:none;
  background:var(--accent);
  color:#0b121f;
  cursor:pointer;
  font-family:"avenir", sans-serif;
  font-size:14px;
}

.contact-submit:hover{
  background:var(--accent-soft);
  box-shadow:0 0 14px var(--shadow-green);
}

/* Project Grid */
.projectgrid {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
 gap:2rem;
}

/* Projects Page */
#project{
  width:100%;
  min-height:calc(100vh - 74px);
  padding:4rem 0;

  background-image:url("../gfx/backgroundProjects.jpg");
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-position:center;
}

.projectpanel{
  width:780px;
  max-width:95%;
  margin:0 auto;
  padding:2rem 1.5rem;

  background:rgba(17,25,39,.82);
  border-radius:4px;
}

.projecttitle{
  font-family:"lulo", sans-serif;
  font-size:44px;
  letter-spacing:-2px;
  text-align:center;
  text-shadow:2px 2px 4px rgba(0,0,0,.35);
  margin:0 0 2rem;
}

.projectcard{
  margin-bottom:1.5rem;
  padding:1rem;
  background:rgba(17,25,39,.72);
  border-radius:6px;
}

.projectcard summary{
  display:flex;
  align-items:center;
  gap:1.25rem;
  cursor:pointer;
  list-style:none;
}

.projectcard summary::-webkit-details-marker{
  display:none;
}

.projecticon{
  width:128px;
  height:128px;
  object-fit:cover;
  flex-shrink:0;
}

.projectsummary h2{
  font-family:"avenir", sans-serif;
  font-size:20px;
  letter-spacing:2px;
  color:#a4b1cd;
  margin:0 0 .5rem;
}

.projectsummary p,
.projectfull p{
  font-family:"avenir", sans-serif;
  font-size:14px;
  line-height:1.8;
  color:#a4b1cd;
  margin:0;
}

.projectfull{
  margin-top:1.25rem;
  padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.12);
}

.projectfull h2{
  font-family:"avenir", sans-serif;
  font-size:18px;
  letter-spacing:2px;
  color:#ffffff;
  margin:0 0 .5rem;
}

.projectfull br,
.projectfull h2,
.projectfull h3,
.projectfull h4 {
    scroll-margin-top: 90px;
}

.projectbuttons{
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  align-items:center;
  gap:1rem;   /* space between buttons */
  margin-top:1.5rem;
}

.projectbutton{
  cursor:pointer;
  display:inline-block;
  padding:10px 10px;
  border:2px solid #9fef00;
  color:#ffffff;
  text-decoration:none;
  font-family:'avenir',sans-serif;
  font-size:14px;
  letter-spacing:1px;
  background:rgba(17,25,39,.9);
  transition:.25s ease;
}

.projectlist{
  font-family:"avenir", sans-serif;
  font-size:13px;
  letter-spacing:2px;
  color:#a4b1cd;
  margin:0 0 0rem;
  margin-top:3px;
  margin-bottom: 18px;
}

.projectpreview{
  display:block;
  width:min(700px,100%);
  margin:2rem auto;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 20px rgba(0,0,0,.25);
}

@media (max-width: 600px) {
  .projectcard summary {
    flex-direction: column;
    text-align: center;
  }
}

.inline-wiki-content{
  display:none;
  margin-top:1.5rem;
  padding:1.5rem;
  background:rgba(17,25,39,.82);
  border-radius:4px;
}

.inline-wiki-content.open{
  display:block;
}

/* Source Code Formatting */
.code-modal{
  display:none;

  position:fixed;
  inset:0;

  background:rgba(0,0,0,.72);

  justify-content:center;
  align-items:center;

  z-index:3000;
}

.code-modal.open{
  display:flex;
}

.code-window{
  position:relative;
  width:min(900px,90vw);
  height:min(650px,80vh);

  background:#0b121f;
  border:1px solid #444;
  border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);

  display:flex;
  flex-direction:column;

  overflow:hidden;
}

.code-header{
  background:#111927;
  color:#a4b1cd;
  padding:14px 52px 14px 20px;
  font-family:Consolas, monospace;
  font-size:14px;
  border-bottom:1px solid #333;
  flex-shrink:0;
}

.code-close{
  position:absolute;
  top:8px;
  right:12px;

  background:none;
  border:none;
  color:#ccc;
  font-size:28px;
  cursor:pointer;
  z-index:2;
}

#codeBlock{
  margin:0;
  padding:24px;

  flex:1;
  min-height:0;

  overflow:auto;

  font-family:Consolas, monospace;
  font-size:14px;
  line-height:1.6;

  color:#a4b1cd;
  background:#0b121f;
  box-sizing:border-box;
}

pre{
  position:relative;
  padding:1.25rem;
  background:#0b121f;
  border:1px solid var(--border-soft);
  border-radius:10px;
  color:#a4b1cd;
  overflow:auto;
  font-family:Consolas, monospace;
  font-size:14px;
}

/* Copy button */
.code-copy-btn{
  position:absolute;
  top:0px;
  right:0px;

  background:rgba(26,35,50,.85);
  border:1px solid rgba(255,255,255,.2);
  border-radius:10px;
  color:#ffffff;
  font-size:12px;
  padding:4px 8px;
  cursor:pointer;
}

.code-copy-btn:hover{
  background:rgba(159,239,0,.2);
}

/* Wiki Page */
#wiki-page{
  width:100%;
  min-height:calc(100vh - 74px);
  padding:4rem 0;

  background-image:url("../gfx/wikiBackground.jpg");
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-position:center;
}

.wiki-layout{
  width:min(1180px,95%);
  margin:0 auto;

  display:grid;
  grid-template-columns:280px 1fr;
  gap:2rem;
}

.wiki-sidebar,
.wiki-content{
  background:rgba(17,25,39,.82);
  border-radius:4px;
}

.wiki-sidebar{
  padding:1.5rem;
  align-self:start;
  position:sticky;
  top:100px;
}

.wiki-title{
  font-family:"lulo", sans-serif;
  font-size:34px;
  letter-spacing:-2px;
  text-align:center;
  margin:0 0 2rem;
}

.wiki-topic{
  margin-bottom:1rem;
}

.wiki-topic summary{
  cursor:pointer;
  font-family:"avenir", sans-serif;
  font-size:16px;
  color:#ffffff;
  letter-spacing:1px;
  margin-bottom:.75rem;
}

.wiki-link{
  display:block;
  width:95%;

  margin:.35rem 0;
  padding:.6rem .75rem;
  border-radius:10px;
  border:none;
  background:rgba(26,35,50,.88);

  color:#a4b1cd;
  text-align:left;

  font-family:"avenir", sans-serif;
  font-size:14px;

  cursor:pointer;
}

.wiki-link:hover,
.wiki-link.active{
  background:rgba(159,239,0,.15);
  color:#ffffff;
}

.wiki-content{
  padding:2rem;
}

.wiki-section{
  display:none;
}

.wiki-section.active{
  display:block;
}

.wiki-section h2{
  font-family:"avenir", sans-serif;
  font-size:24px;
  letter-spacing:2px;
  color:#ffffff;
  margin-top:0;
}

.wiki-section p,
.wiki-section li{
  font-family:"avenir", sans-serif;
  font-size:14px;
  line-height:1.8;
  color:#a4b1cd;
}

.wikiimage{
  display:block;
  max-width:480px;
  width:100%;
  height:auto;

  margin:2rem auto;

  cursor:pointer;

  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 6px 20px rgba(0,0,0,.25);
}

.wikidata {
  font-family:"avenir", sans-serif;
  font-size:14px;
  line-height:1.8;
  color:#a4b1cd;
}

.wikidata p{
  margin-top: 1px;
  margin-bottom: 1px;
}

.wikidata h2{
  font-family:"avenir", sans-serif;
  font-size:22px;
  line-height:1.8;
  color:#ffffff;
}

.wikidata h4{
  font-family:"avenir", sans-serif;
  font-size:14px;
  line-height:1.8;
  color:#ffffff;
  margin-bottom: 1px;
}

.wikidata table{
  border-color: #a4b1cd;
  margin-left: auto;
  margin-right: auto;
  font-family:"avenir", sans-serif;
  font-size:14px;
  line-height:1.8;
  color:#ffffff;
}

.wikidata td{
  border: #a4b1cd solid 1px;
  background: #111927;
  padding: 4px 15px;
}

.wikidata ul{
  font-family:"avenir", sans-serif;
  font-size:14px;
  line-height:1.8;
  color:#a4b1cd;
  margin-top: 1px;
}

.wikidata ol{
  font-family:"avenir", sans-serif;
  font-size:14px;
  line-height:1.8;
  color:#a4b1cd;
  margin-top: 1px;
}

.wikidata h2,
.wikidata h3,
.wikidata h4 {
    scroll-margin-top: 90px;
}

.wikidata pre {
    max-width: 800px;
    overflow-x: auto;
    white-space: pre;
}



.wikitopic summary{
  font-family:"avenir",sans-serif;
  font-size:20px;
  color:#ffffff;
  cursor:pointer;
  margin-bottom:1px;
}

.wikisubtopic{
  margin-top: 1px;
  margin-left:1rem;
  margin-top: 1px;
  margin-bottom: 1px;
}

.wikisubtopic summary{
  font-family:"avenir",sans-serif;
  font-size:18px;
  color:#ffffff;
  cursor:pointer;
}

.wikisubtopic .wiki-link{
  margin-left:1rem;
}

/* Plus Icons */
details summary{
  list-style:none;
}

details summary::-webkit-details-marker{
  display:none;
}

details summary::marker{
  display:none;
}

#wiki-page details > summary::before{
  content:"+";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:17px;
  height:17px;
  border:2px solid #a4b1cd;
  color:#a4b1cd;
  margin-right:.6rem;
  font-size:13px;
  font-weight:bold;
  line-height:1;
  position:relative;
  top:-3px;
}

#wiki-page details[open] > summary::before{
  content:"-";
}

/* Bash Boxes */
.terminal{
background:#0b121f;
color:#a4b1cd;
border-radius:10px;
overflow:hidden;
font-family:monospace;
box-shadow:0 4px 12px rgba(0,0,0,.3);
max-width:800px;
width:100%;
margin:20px auto;
}

.terminal-header{
background:#111927;
padding:10px 14px;
display:flex;
justify-content:space-between;
align-items:center;
}

.dot{
width:12px;
height:12px;
border-radius:50%;
display:inline-block;
}
.red{background:#ff5f56;}
.yellow{background:#ffbd2e;}
.green{background:#27c93f;}

.title{
margin-left:0px;
color:#a4b1cd;
font-size:.9rem;
}

.terminal pre{
margin:0;
padding:12px;
overflow-x:auto;
white-space:pre;
}

.terminal code{
display:block;
padding-left:0;
margin-left:0;
margin-top: 10px;
text-align:left !important;
}

/* PowerShell Header */
.powershell-header{
  background:#012456; /* classic PowerShell blue */
  color:#ffffff;
  border-bottom:1px solid rgba(255,255,255,.18);
}

.powershell-header .title{
  color:#ffffff;
  font-size:.9rem;
}

/* Windows Dialog Buttons */
.window-dots{
  display:flex;
  gap:10px;
  align-items:center;
}

.powershell-header .dot{
  width:12px;
  height:12px;
  border-radius:2px;
  display:inline-block;
  background:#ffffff;
  opacity:.85;
}

.window-buttons{
  display:flex;
  gap:18px;
  color:white;
  font-family:Arial, sans-serif;
  font-size:14px;
}

/* Windows colors */
.powershell-header .minimize{
  background:#d1d5db;
}

.powershell-header .maximize{
  background:#d1d5db;
}

.powershell-header .close{
  font-family: Arial, sans-serif;
  background:#ef4444;
}

/* Video Player */
.video-thumb{
width:150px;
height:150px;
object-fit:cover;
cursor:pointer;
border-radius:10px;
border:1px solid #333;
transition:.25s ease;
}

.video-thumb:hover{
transform:scale(1.03);
}

/* Expanded overlay */
.video-modal{
display:none;
position:fixed;
inset:0;
z-index:9999;
background:rgba(0,0,0,.85);
justify-content:center;
align-items:center;
}

/* Full-size video */
.video-modal video{
max-width:90vw;
max-height:85vh;
border-radius:12px;
box-shadow:0 0 30px rgba(0,0,0,.5);
}

/* Close button */
.close-video{
position:absolute;
top:20px;
right:30px;
font-size:42px;
color:white;
cursor:pointer;
}

.video-wrapper{
position:relative;
display:inline-block;
}

/* icon button */
.video-toggle{
position:absolute;
top:8px;
right:8px;
background:rgba(0,0,0,.1);
border:none;
padding:6px;
border-radius:8px;
cursor:pointer;
z-index:20;
}

.video-toggle img{
width:24px;
height:24px;
display:block;
}

.video-toggle:hover{
background:rgba(0,0,0,.75);
}

/* expanded view close button */
.modal-btn{
position:absolute;
top:20px;
right:30px;
}

/* modal */
.video-modal{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.85);
justify-content:center;
align-items:center;
z-index:9999;
}

.video-modal video{
max-width:90vw;
max-height:85vh;
}

/* Mini table preview */
.table-preview-wrapper{
    width:480px;
    height:320px;
    max-width:100%;
    position:relative;
    margin:20px auto;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #333;
}

.table-preview{
    width:1200px;
    height:800px;
    border:0;
    transform:scale(.4);
    transform-origin:top left;
    pointer-events:none;
}

/* Expand button over preview */
.table-expand-btn{
    position:absolute;
    top:10px;
    right:10px;
    z-index:5;
    padding:8px 12px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:rgba(0,0,0,.75);
    color:#fff;
}

/* Full table modal */
.table-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(0,0,0,.85);
    padding:60px 30px 30px;
}

.table-full{
    width:100%;
    height:100%;
    border:0;
    border-radius:10px;
    background:#fff;
}

/* Collapse button */
.table-collapse-btn{
    position:absolute;
    top:18px;
    right:30px;
    z-index:10000;
    padding:8px 12px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:#c62828;
    color:#fff;
}

/* Image Lightbox */
.image-lightbox{
  display:none;

  position:fixed;
  inset:0;

  background:rgba(0,0,0,.82);

  justify-content:center;
  align-items:center;

  z-index:4000;
}

.image-lightbox.open{
  display:flex;
}

.image-lightbox img{
  max-width:90vw;
  max-height:90vh;
  width:auto;
  height:auto;

  box-shadow:0 20px 60px rgba(0,0,0,.6);
}

.lightbox-close{
  position:fixed;
  top:24px;
  right:32px;

  background:none;
  border:none;

  color:#ffffff;
  font-size:32px;
  cursor:pointer;
}

@media (max-width:820px){
  .wiki-layout{
    grid-template-columns:1fr;
  }

  .wiki-sidebar{
    position:static;
  }
}

/* Screenshot Opener (Magnifying Glass) */
.screenshot-open{
  background:none;
  border:none;
  color:#a4b1cd;
  font-size:12px;
  cursor:pointer;
}

.screenshot-lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.82);
  justify-content:center;
  align-items:center;
  z-index:5000;
}

.screenshot-lightbox.open{
  display:flex;
}

.screenshot-lightbox img{
  max-width:90vw;
  max-height:90vh;
  width:auto;
  height:auto;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}

.screenshot-close{
  position:fixed;
  top:24px;
  right:32px;
  background:none;
  border:none;
  color:#ffffff;
  font-size:32px;
  cursor:pointer;
}

/* Info icon */
.info-open{
  background: rgba(26,35,50,.85);
  border:none;
  color:#ffffff;
  font-size:11px;
  margin-left: 2px;
  padding: 2px 5px;
  border-radius:4px;
  padding-bottom: 0px;
  padding-top: 2px;
  cursor:pointer;
}

/* Modal overlay */
.info-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.8);
  justify-content:center;
  align-items:center;
  z-index:6000;
}

.info-modal.open{
  display:flex;
}

.wiki-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.wiki-modal-content {
    background: #111;
    color: #fff;
    width: min(800px, 95vw);
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.wiki-modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 2;
}

/* Window */
.info-window{
  position:relative;
  width:min(600px,90vw);
  max-height:80vh;
  background:rgba(17,25,39,.96);
  border-radius:6px;
  padding:1.5rem;
  overflow:auto;
}

/* Close button */
.info-close{
  position:absolute;
  top:10px;
  right:14px;
  background:none;
  border:none;
  color:#fff;
  font-size:22px;
  cursor:pointer;
}

/* Content styling */
.info-content h2{
  margin-top:0;
}

.info-content p{
  font-family:"avenir", sans-serif;
  font-size:14px;
  line-height:1.8;
  color:#a4b1cd;
}

/* Adjustments for smaller screens */
@media (max-width: 480px) {
  #menu, #contact, #footer {
    padding: 0.75rem 0;
  }
}