/* Font Face Declarations */
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBM_Plex_Serif/IBMPlexSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBM_Plex_Serif/IBMPlexSerif-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBM_Plex_Serif/IBMPlexSerif-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBM_Plex_Serif/IBMPlexSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/Titillium_Web/TitilliumWeb-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/Titillium_Web/TitilliumWeb-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono/JetBrainsMonoNerdFont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono/JetBrainsMonoNerdFont-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono/JetBrainsMonoNerdFont-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background: #0f1b2e;
  line-height: 133%;
  font-size: 0.98em;
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  
  
/*Miscellanous custom styling for various elements.*/
h1, h2, h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  color: #eaf2ff;
  font-weight: 500;
  }
  
a {
  color: #4da3ff;
  }

a:hover, a:focus {
  color: #9cc9ff;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
blockquote {
  border-left: #4da3ff 3px solid;
  background: #dbe9ff;
  padding: 0.1px 0.75rem;
  margin: 0 1.5rem;
  }

hr {
  width: 75%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  }
  
/*Sticky navigation links at the top of the page.*/
.quick-nav {
  position:fixed;
  z-index: 999;
  width: 100%;
  background: #050d1a;
  text-align: right;
  color: #fff;  
  font-size: 0.875em;
  font-family: "JetBrains Mono", "Courier New", monospace;
  }
  
.navbar {
  padding: 1px 25px;
  }
  
.navbar a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding: 5px 4px;
  margin: 0 2px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  }
  
.navbar a:hover, .footer a:hover, .navbar a:focus, .footer a:focus {
  color: #cfe4ff;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
  
/*Header image.*/
.header {
  height: 350px;
  background: linear-gradient(rgba(5, 13, 26, 0.6), rgba(5, 13, 26, 0.4)), url(/img/pexels-4254548-crop2.jpg);
  }

/*Title bar with icon and title/tagline.*/
.title {
  background: #2a4f7a;
  min-height: 60px;
  margin-bottom: -25px;
  text-align: right;
  }
  
.title-text, .title-pic {
  padding:0;
  margin: 0;
  display: inline-block;
  vertical-align: top;
  }
  
/*Contains the text tagline.*/
.title-text {
  padding-right: 1em;
  width: calc(85vw - 110px);
  line-height: 167%;
  margin-top: -3px;
  padding-bottom: 15px;
  }
  
.title-text h1 {
  padding:0;
  font-size: 32px;
  color: #ffffff;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  }

.title-text p {
  color: #dbe7ff;
  font-family: "Noto Sans", sans-serif;
  }
  
/*Contains the profile pic. This can be left out and should still look okay.*/
.title-pic {
  height: 100px;
  margin-right: 100px;
  margin-top: -25px;
  border: 5px solid #2a4f7a;
  border-radius: 10px;
  }
  
.title-pic img {
  height: 100%;
  overflow: hidden;
  }
  
/*Contains the main content and sidebar.*/
.page-wrapper {
  padding: 0 100px 100px;
  margin: 0 auto;
  background: linear-gradient(rgba(30, 60, 100, 1), rgba(15, 30, 60, 0.4)), url(/img/fancy1.png);
  padding-bottom: 500px; /* NEW: reserves space for tall sidebar (chatbox) */
  }

/*Contains the sidebar boxes.*/
.sidebar {
  width: 320px;
  margin: 50px 0;
  position: absolute;
  }
  
.sidebar h1 {
  font-size: 1.2rem;
  background: #2a4f7a;
  color: #fff;
  padding: 12px 10px 10px 10px;
  margin: auto;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  }
  
.sidebar a {
  display: block;
  border-left: 3px solid #4da3ff;
  background: #cfe4ff;
  padding: 5px;
  margin: 10px 0;
  color: #0a1a33;
  text-decoration: none;
  font-family: "Noto Sans", sans-serif;
  }

.sidebar a img {
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
  }
  
.sidebar a:hover, .sidebar a:focus {
  background: #b7d7ff;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
.sidebar, .main {
  display: inline-block;
  }

/*Contains main content boxes.*/
.main {
  margin: 50px 100px 50px 350px;
  width: auto;
  width: calc(100vw - 550px);
  }

/*Main content section headings*/
.main h1 {
  color: #eaf2ff;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  }
  
  
/*Basic container type for subsections of main and sidebar divs*/
.box {
  margin-bottom: 15px;
  }
  
/*Inner content div for boxes. Padding goes here so sidebar headers etc can keep their no-margin look.*/
.inner {
  background: #f2f6ff;
  padding: 10px 25px;
  }

.inner p {
  font-family: "Noto Sans", sans-serif;
  }

.inner img {
  max-width: 100%; /*Prevent image overflow.*/
  height: auto;
  border-radius: 5px; /*Give images in content rounded corners.*/
  }
  
.box, .title-pic img {
  border-radius: 5px;
  overflow: hidden; /*Force inner divs to conform to rounded corners.*/
  }
  
  
/*Footer section.*/
.footer {
  background: #050d1a;
  color: #fff;
  padding: 5px 20px;
  font-size: 0.75em;
  padding-bottom: 10px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  }
  
.footer a {
  color: #9cc9ff;
  font-family: "JetBrains Mono", "Courier New", monospace;
  }

/*Individual column of the footer. You can have 3 of these at the current given width.*/
.footer-column {
  width: 25%;
  margin: 5px 10px;
  display: inline-block;
  vertical-align: top;
  }

.footer-column-with-badges {
  text-align: left;
  }

.footer-badges {
  margin-top: 10px;
  }

.footer-column-ad {
    width: 300px;
    text-align: center;
    float: center;
}
  
.footer {
    overflow: hidden;
}  

.footer-badges a,
.footer-badges img {
  display: inline-block;
  vertical-align: middle;
  }

.footer-badges a + img,
.footer-badges a + a {
  margin-left: 10px;
  }

.footer-badges .html5-badge + a {
  margin-left: 0;
  }

.cc-badge {
  height: 31px;
  width: auto;
  display: inline-block;
  }

.html5-badge {
  height: 31px;
  width: auto;
  display: inline-block;
  }

.kde-badge {
  height: 31px;
  width: auto;
  display: inline-block;
  }

.neocities-button {
  height: 31px;
  width: auto;
  display: inline-block;
  }


/*Adapt to narrower screens.*/
@media(max-width: 900px) {
  .page-wrapper {
    padding: 0 50px 80px;
    }
  
  .sidebar {
    width: 25vw;
    }
    
  .main {
    margin: 50px 0 50px calc(25vw + 30px);
    width: calc(75vw - 150px);
    }
    
  .title-pic {
    margin-right: 7vw;
    }
    
  .title-text {
    padding-left: 1vw;
    padding-right: 2vw;
    }
  
  }
  
/*Mobile layout.*/
@media(orientation: portrait) {  
  .page-wrapper {
    padding-top: 0.1px;
    padding-bottom: 60px;
    }
  
  .sidebar, .main {
    display: block;
    margin: 0 auto;
    position: static;
    width: 100%;    
    }
    
  .sidebar {
    margin-top: 50px;
    }
    
  .main {
    margin-top: 30px;
    margin-bottom: 30px;
    }
    
    
  }
  
/***
For really narrow screens which cause the title text to wrap. 
You may need to adjust the width at which this kicks in to fit 
your own title.
***/
@media(max-width: 500px) {
  .header {
    height: 60vw;
    }
  
  .title {
    padding-right: 0;
    }
  
  .title-text {
    margin-top: -5px;
    }
    
  .title-text h1 {
    font-size: 6vw;
    line-height: 75%;
    }
    
  .title {
    height: calc(auto - 25px);
    }
    
  .page-wrapper {
    padding: 0.1px 7vw 60px;
    }
    
  /*For extra narrow screens where the columns would get too skinny.*/
  .footer-column {
    display: block;
    width: 100%;
    margin: 0 auto;
    }
  }


/* ================================
   Hybrid Web 2.0 × Web 3.0 polish
   bottom override layer
================================ */

/* ---------- global polish ---------- */
:root {
  --glass-bg: rgba(10, 20, 40, 0.55);
  --glass-border: rgba(140, 180, 255, 0.25);
  --soft-glow: rgba(120, 170, 255, 0.35);
  --panel-bg: rgba(242, 246, 255, 0.92);
}

body {
  background: linear-gradient(
    180deg,
    #0f1b2e 0%,
    #0c1626 100%
  );
}

/* ---------- fix title backgrounds ---------- */
h1, h2, h3 {
  background: none !important;
}

/* ---------- glass top bar ---------- */
.quick-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* ---------- glass footer ---------- */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -6px 30px rgba(0,0,0,0.4);
}

/* subtle highlight line */
.footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--soft-glow),
    transparent
  );
  margin-bottom: 6px;
}

/* ---------- title bar polish ---------- */
.title {
  background: linear-gradient(
    180deg,
    #2a4f7a 0%,
    #23456c 100%
  );
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* ---------- profile pic softening ---------- */
.title-pic {
  border-radius: 14px;
}

.title-pic img {
  border-radius: 10px;
}

/* ---------- sidebar cleanup ---------- */
.sidebar {
  background: transparent;
}

.sidebar .box {
  background: var(--panel-bg);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  overflow: hidden;
}

.sidebar h1 {
  background: linear-gradient(
    180deg,
    #2a4f7a 0%,
    #1e3c5f 100%
  ) !important;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* round sidebar links only (allowed) */
.sidebar a {
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.sidebar a:hover {
  transform: translateX(2px);
}

/* ---------- main content glass ---------- */
.inner {
  background: var(--panel-bg);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* ---------- box softening (no over-rounding) ---------- */
.box {
  border-radius: 8px;
}

/* ---------- link glow (web 2.0 nostalgia, restrained) ---------- */
a:hover {
  text-shadow: 0 0 6px rgba(120,170,255,0.4);
}

/* ---------- navbar links feel clickable ---------- */
.navbar a {
  border-radius: 6px;
  padding: 6px 8px;
}

.navbar a:hover {
  background: rgba(255,255,255,0.08);
}

/* ---------- subtle depth on page ---------- */
.page-wrapper {
  background-blend-mode: overlay;
}

/* fix profile icon layering */
.title-pic {
  background: #2a4f7a; /* anchors it back to the bar */
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.title-pic img {
  display: block;
  background: #2a4f7a;
}

.title-pic {
  transform: translateY(-6px);
}

#vfx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-badges img {
  margin: 0 !important;
  vertical-align: middle;
}

.footer-badges {
  gap: 6px;
}

/* some extras here */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.footer {
  padding-top: 10px;
}

a:focus-visible {
  outline: 2px solid #7aa2ff;
  outline-offset: 2px;
}

/* =========================================
   FINAL horizontal overflow + mobile fix
   ========================================= */

/* kill ghost horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* DESKTOP ONLY fix for vw overflow */
@media (min-width: 901px) {
  .main {
    width: calc(100% - 550px) !important;
    box-sizing: border-box;
  }
}

/* MOBILE: explicitly restore layout */
@media (max-width: 900px), (orientation: portrait) {
  .main,
  .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-wrapper {
    padding-left: 7vw;
    padding-right: 7vw;
  }
}

/* safety net: never allow background layers to widen page */
#vfx,
.header,
.page-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================================
   make main truly fill remaining width
   (desktop only)
   ========================================= */

@media (min-width: 1200px) {
  .main {
    margin-left: 350px !important; /* aligns with sidebar */
    margin-right: 0 !important;
    width: calc(100% - 350px) !important;
    max-width: none !important;
    box-sizing: border-box;
  }
}


/* =========================================
   MOBILE PERFORMANCE OVERRIDES
   do not touch above unless brave
   ========================================= */

@media (max-width: 900px) {
  /* disable expensive glass effects */
  .quick-nav,
  .footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    background: rgba(10,20,40,0.9) !important;
  }
}


/* safe guard for header */

.header {
  position: relative;
  height: 350px;
  background: #050d1a;
  overflow: hidden;
}

#galaxy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
