/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
  @font-face {
  font-family: "VPPixel";
  src: url("fonts/VPPixel-Simplified.otf") format("opentype");
}

  @font-face {
  font-family: "Saitamaar";
  src: url("fonts/Saitamaar-Regular.otf") format("opentype");
}

  @font-face {
  font-family: "Fairfax";
  src: url("fonts/FairfaxItalic.ttf") format("truetype");
}

h1, h2, h3 {
  font-family: "VPPixel", monospace;
}

html {
  font-size: 20px;
}

body {
  background-color: #ffffff;
  margin: 0;
  font-family: "Saitamaar", monospace;
  font-size: 25px;
}

.left-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 80px;
  height: 100vh;
  background-color: #000;
  z-index: 998;
}

body::before {
  bottom: -200px; /* was 45px before*/
  content: "+\A\A*\A\A·\A\A+\A\A*\A\A·\A\A+\A\A*\A\A·\A\A+\A\A*\A\A·\A\A+\A\A*\A\A·\A\A+\A\A*\A\A·";
  position: fixed;
  top: auto; /* was missing entirely*/
  left: 0;
  width: 80px;
  height: 80vh;
  font-family: "VPPixel", monospace;
  font-size: 12px;
  color: #fff;
  white-space: pre;
  line-height: 2;
  text-align: center;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-left: 0px;
}

.logo {
  height: 60px;
  margin-right: 30px;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  font-family: "VPPixel", monospace;
  font-size: 22px;
  background-color: transparent;
  color: #000;
  padding: 6px 14px;
  text-decoration: none;
}

nav a:hover {
  background-color: #000;
  color: #fff;
}

main {
  max-width: 900px;
  margin-left: 240px; /* tweak this number to taste */
  padding: 40px 20px;
}

.sparkle-wrapper {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
}

.sp-plus {
  font-family: monospace;
  font-size: 14px;
  color: #333;
  line-height: 1;
  image-rendering: pixelated;
}

.sp-medium {
  width: 4px;
  height: 4px;
  background: #333;
  image-rendering: pixelated;
}

.sp-small {
  width: 2px;
  height: 2px;
  background: #333;
  image-rendering: pixelated;
}

.ascii-bg {
  position: fixed;
  top: 100px;
  right: -55px;
  height: 100vh;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 1664px) {
  .ascii-bg {
    right: 50%;
    transform: translateX(50%);
    opacity: 0.3;
  }

  main {
    margin-left: auto;
    margin-right: auto;
  }

  header {
    margin-left: auto;
    margin-right: auto;
  }
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 205px;
  max-width: 850px;
}

.h1-main {
  display: block;
}

.h1-sub {
  display: block;
  font-size: 1.6em;
  color: #bfbfbf;
  margin-top: -15px;
}

.pmain {
  display: block;
}

.psub {
  display: block;
  margin-top: 20px;
}

.pacc {
  display: block;
  font-size: 1em;
  font-family: "Fairfax", monospace;
  margin-top: 45px;
}

.accent {
  color: #000;
}

.bar-controls {
  position: fixed;
  left: 0;
  top: 20px;
  width: 80px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 999;
}

.bar-controls a {
  font-family: "VPPixel", monospace;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
}

.bar-controls a:hover {
  color: #000;
  background: #fff;
}

.text-link {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  background-color: #000;
  color: #fff;
  text-decoration: none;
  padding: 1px 3px;
}

.text-link::after {
  content: " ⮺";
  font-size: 1em;
}

.highlight {
  background-color: #e0e0e0;
  padding: 1px 4px;
}

.italic {
  font-family: "Fairfax", monospace;
  margin-top: 30px;
  font-size: 1.2em;
  opacity: 0.5;
}

.bar-label {
  position: fixed;
  left: 24px;
  bottom: auto;
  top: 190px; 
  width: 40px;
  font-family: "VPPixel", monospace;
  font-size: 18px;
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  z-index: 999;
  letter-spacing: 3px;
}

.menu-toggle {
  display: none;
  font-family: "VPPixel", monospace;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.contact-form {
  position: fixed;
  right: 300px;
  top: 200px;
  width: 600px;
  font-size: 22px;
}

.contact-form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  font-family: "Saitamaar", monospace;
  border: 1px solid #000;
  box-sizing: border-box;
  font-size: 22px;
}

.contact-form button {
  margin-top: 16px;
  padding: 8px 20px;
  font-family: "VPPixel", monospace;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
}

.contact-form button:hover {
  background-color: #fff;
  color: #000;
  outline: 2px solid #000;
}

.fallback-link {
  display: block;
  margin-top: 30px;
  font-size: 16px;
  color: #666;
  text-decoration: underline;
}

.fallback-link:hover {
  color: #000;
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    background: #fff;
    width: 100%;
    padding: 20px;
  }

  nav.nav-open {
    display: flex;
  }
  
  html {
    font-size: 14px; /* down from 20px */
  }

  .left-bar {
    width: 50px;
  }

  body::before {
    width: 50px;
  }

  .bar-label {
    left: 12px;
    width: 25px
  }
  
  .bar-controls {
    width: 50px;
  }
}

@media (max-width: 1700px) {
  .contact-form {
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
  }
}

.gallery-wrapper {
  position: absolute;
  right: 300px;
  top: 150px;
  width: 700px;
}

.gallery-group {
  position: static; 
  margin-bottom: 60px;
}

.gallery-group h2 {
  margin-bottom: 18px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item p {
  margin-top: 8px;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 1700px) {
  .gallery-wrapper {
    position: static;
    width: 100%;
    max-width: 550px;
    margin: 40px auto;
    right: auto;
    top: auto;
  }
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

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

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
}

.lightbox-content p {
  color: #fff;
  margin-top: 16px;
  font-size: 18px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.video-item {
  margin-bottom: 50px;
  width: 700px;
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid #000;
  display: block;
}

.video-item p {
  margin-top: 10px;
  font-size: 16px;
}

.video-desc {
  font-family: "Saitamaar", monospace;
  line-height: 1.5;
  color: #333;
}

.gallery-portrait .gallery-item img {
  height: 350px;
  object-fit: contain;
}

@media (max-width: 1700px) {
  .video-item {
    width: 100%;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }
}

.pdf-link {
  font-size: 1.3em;
  font-family: "VPPixel", monospace;
  display: inline-block;
  margin-bottom: 8px;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  position: relative;
  overflow: auto;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
  transition: max-width 0.3s ease, max-height 0.3s ease;
}

.lightbox-content img.zoomed {
  max-width: none;
  max-height: none;
  width: 150%;
  cursor: zoom-out;
}