/* 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 */
@font-face {
  font-family: "W95FA";
  src: url("/W95F.otf") format("opentype");
}

/* crt effect */
.crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

@keyframes flicker {
  0% {
  opacity: 0.27861;
  }
  5% {
  opacity: 0.34769;
  }
  10% {
  opacity: 0.23604;
  }
  15% {
  opacity: 0.10626;
  }
  20% {
  opacity: 0.18128;
  }
  25% {
  opacity: 0.10626;
  }
  30% {
  opacity: 0.18128;
  }
  35% {
  opacity: 0.23604;
  }
}

.crt::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

:root {
  --page-bg-image: url("https://file.garden/aibIK07w9ytLWurj/city%20skyline%20dithered2.jpg");
  --page-bg-opacity: 0.8;
}

/* body */

body {
  position: relative;
  margin: 0;
  font-family: "W95FA", sans-serif;
  color: #d9b3ff;
  font-weight: normal;
  background: #070216;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--page-bg-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--page-bg-opacity);
  pointer-events: none;
}

.floating-title {
  font-family: W95FA;
  font-size: 95px;
  font-weight: bold;

  color: #FFDBF5;
  text-shadow:
    0 0 5px rgba(170, 0, 255, 0.8),
    0 0 10px rgba(170, 0, 255, 0.6),
    0 0 20px rgba(170, 0, 255, 0.4);

  animation: crtFlicker 4s infinite;
}

@keyframes crtFlicker {

  0% {
    opacity: 1;
  }

  97% {
    opacity: 1;
  }

  98% {
    opacity: 0.95;
  }

  99% {
    opacity: 0.98;
  }

  100% {
    opacity: 1;
  }

}

.title-row {
  position: absolute;
  top: 95px; /* pushes BOTH titles down */
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 170px; /* space between them */
  align-items: center;
  
  z-index: 9999;
}

.window, 
.mini {
  border: 2px solid rgba(131, 28, 145, 1);
  background: rgba(131, 28, 145, 0.06);
  box-shadow: 0 0 10px rgba(131, 28, 145, 0.25); /* reduced glow */
}

a {
  color: #d9b3ff;
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  text-shadow: 0 0 6px rgba(170, 0, 255, 0.7);
  color: #f0d6ff;
}

.mini {
  border: 2px solid rgba(131, 28, 145, 1);
  background: rgba(131, 28, 145, 0.06);
  box-shadow: 0 0 10px rgba(131, 28, 145, 0.25);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 200px;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.left, .right {
  margin-top: 40px;
}

.guestbook-box {
  box-sizing: border-box;
  overflow: hidden;
  width: 200px;
  margin-top: 15px;
  padding: 9px;
  
  border: 1px solid rgba(131, 28, 145, 0.8);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 8px rgba(170, 0, 255, 0.15);
  text-align: center;
}

.guestbook-text {
  font-size: 14px;
  line-height: 1.2;
}

/* link styling */
.guestbook-link {
  display: inline-block;

  margin-top: 4px;

  font-size: 18px;
  font-weight: bold;
  font-style: italic;

  color: #d9b3ff;
  text-decoration: none;

  text-shadow: 0 0 6px rgba(170, 0, 255, 0.4);
}

.guestbook-link:hover {
  text-shadow:
    0 0 6px rgba(170, 0, 255, 0.8),
    0 0 12px rgba(170, 0, 255, 0.6);
}

.guestbook-logo {
  width: 28px;
  height: 28px;

  margin-top: 8px;

  display: block;
  margin-left: auto;
  margin-right: auto;

  opacity: 0.9;

  filter: drop-shadow(0 0 6px rgba(170, 0, 255, 0.4));
}

.side {
  width: 220px; /* change freely without affecting middle */
  position: relative;
  overflow: visible;
}

.mini-body {
  padding: 8px;
}

.scroll-box {
  height: 120px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(131, 28, 145, 0.8);
  background: rgba(0,0,0,0.2);
  font-size: 13px;
}

.scroll-box::-webkit-scrollbar {
  width: 8px;
}

.scroll-box::-webkit-scrollbar-track {
  background: rgba(60, 0, 90, 0.2);
  border: 1px solid rgba(180, 80, 255, 0.2);
}

.scroll-box::-webkit-scrollbar-thumb {
  background: rgba(180, 80, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(170, 0, 255, 0.4);
}

.scroll-box::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 120, 255, 0.7);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 4px 6px;
}

.changelog-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.changelog-title {
  font-weight: bold;
  font-size: 26px;
  color: #d9b3ff;
  letter-spacing: 1px;
}

.custom-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.custom-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 14px;
}

.custom-list li::before {
  content: "•";
  position: absolute;
  left: 0;

  text-shadow:
    0 0 4px rgba(170, 0, 255, 0.8),
    0 0 8px rgba(170, 0, 255, 0.6);
}

.desktop {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding-top: 215px;
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 8px;
}

.section-header img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.section-header h1,
.section-header h2 {
  margin: 0;
  font-weight: bold;
  color: #d9b3ff;
}

.section-header h1 {
  font-size: 40px;
}

.section-header h2 {
  font-size: 28px;
}

.window {
  width: 700px;
}

.window h1 {
  font-size: 40px; /* size of the middle container header font */
  font-weight: bold; /* size of the middle container header weight */
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  background: rgba(60, 0, 90, 0.6);
  border-bottom: 2px solid rgba(131, 28, 145, 1);
}

.controls {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(180, 80, 255, 0.6);
}

.controls span:hover {
  background: rgba(255, 200, 255, 0.9);
  box-shadow: 0 0 6px rgba(170, 0, 255, 0.6);
}
.content {
  padding: 8px;
  height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}

.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-track {
  background: rgba(60, 0, 90, 0.2);
  border: 1px solid rgba(180, 80, 255, 0.2);
}

.content::-webkit-scrollbar-thumb {
  background: rgba(180, 80, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(170, 0, 255, 0.4);
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 120, 255, 0.7);
}

.container.slideshow {
  position: relative;
  max-width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  border: 2px solid rgba(131, 28, 145, 0.8);
  box-shadow: 0 0 12px rgba(170, 0, 255, 0.15);
}

.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  vertical-align: middle;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  padding: 10px 14px;

  color: #d9b3ff;
  font-weight: normal;
  font-size: 22px;

  background-color: rgba(131, 28, 145, 0.7);
  border: 1px solid rgba(180, 80, 255, 0.5);

  user-select: none;
  transition: 0.2s;
}

.next { right: 0; }
.prev { left: 0; }

.prev:hover, .next:hover {
  background-color: rgba(90, 0, 179, 0.9);
  box-shadow: 0 0 10px rgba(170, 0, 255, 0.4);
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 10px;
}

.big-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px 10px;

  background: rgba(131, 28, 145, 0.12);
  border: 2px solid rgba(131, 28, 145, 0.9);
  box-shadow: 0 0 10px rgba(170, 0, 255, 0.2);

  color: #d9b3ff;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;

  transition: 0.2s;

  user-select: none;
}

.big-btn:hover {
  background: rgba(131, 28, 145, 0.25);
  box-shadow: 0 0 14px rgba(170, 0, 255, 0.4);
}

.left-btn {
  flex: 1.3;
}

.mid-btn {
  flex: 1;
}

.right-btn {
  flex: 1;
}

.bottom-window {
  width: 650px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-top: 20px;
  padding: 8px 0;
  overflow: hidden;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 10s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.menu-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.menu-links li {
  margin-bottom: 8px;
}

.menu-links a {
  color: #d9b3ff;
  text-decoration: none;
}

.menu-links a:hover {
  text-shadow:
    0 0 4px rgba(170, 0, 255, 0.8),
    0 0 8px rgba(170, 0, 255, 0.6);
}

.support-box {
  box-sizing: border-box;
  overflow: hidden;
  width: 200px;
  margin-top: 15px;
  padding: 9px;

  border: 1px solid rgba(131, 28, 145, 0.8);
  background: rgba(0,0,0,0.2);

  box-shadow: 0 0 8px rgba(170, 0, 255, 0.15);
}

.support-top {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.support-smiley {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.support-title {
  text-align: right;

  font-size: 20px;
  font-weight: bold;

  line-height: 1.1;
}

.support-text {
  text-align: center;

  margin-top: 10px;

  font-size: 14px;
}

.support-link {
  display: inline-block;

  margin-top: 4px;

  font-size: 18px;
  font-weight: bold;
  font-style: italic;

  color: #d9b3ff;
  text-decoration: none;
}

.support-link:hover {
  text-shadow:
    0 0 6px rgba(170, 0, 255, 0.8),
    0 0 12px rgba(170, 0, 255, 0.6);
}

.secret-button-wrap {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
}

.secret-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: block;
}

.secret-button img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(170, 0, 255, 0.35));
  transition: filter 0.2s ease;
}

.secret-button:hover img {
  filter: drop-shadow(0 0 12px rgba(170, 0, 255, 0.6));
  transform: none;
}

.secret-window {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100vw - 32px));
  min-height: 360px;
  display: flex;
  flex-direction: column;
  background: rgba(10, 2, 28, 0.96);
  border: 2px solid rgba(131, 28, 145, 1);
  box-shadow: 0 0 18px rgba(170, 0, 255, 0.28);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.secret-window.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.secret-window.is-activated {
  transform: translate(-50%, -50%) scale(1.02);
}

.secret-window-titlebar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 8px;
  background: rgba(60, 0, 90, 0.8);
  border-bottom: 2px solid rgba(131, 28, 145, 1);
  cursor: grab;
}

.secret-window.is-dragging .secret-window-titlebar {
  cursor: grabbing;
}

.secret-window-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.secret-window-control {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(180, 80, 255, 0.7);
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.2);
}

.secret-window-close {
  background: rgba(255, 117, 183, 0.85);
}

.secret-window-content {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  overflow: hidden;
}

.secret-window-image-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 1px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
}

.secret-window-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(131, 28, 145, 0.8);
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  box-sizing: border-box;
}

.secret-action-btn {
  position: sticky;
  bottom: 0;
  width: calc(100% - 2px);
  min-height: 56px;
  padding: 0 10px;
  margin: 1px 1px 1px 1px;
  border-radius: 0;
  font-family: "W95FA", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: none;
  box-sizing: border-box;
}

.secret-action-btn.is-pressed {
  transform: scale(0.98);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 28px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 15px;

  background: rgba(7, 2, 22, 0.85);
  border-top: 1px solid rgba(131, 28, 145, 0.8);

  box-shadow: 0 0 10px rgba(170, 0, 255, 0.15);

  font-size: 14px;
  color: #d9b3ff;
  font-family: W95FA;

  z-index: 9999;
}

.footer-right {
  margin-right: 31px;
}

/* NOT FOUND PAGE */

.notfound-page {
  padding: 20px;
  color: #FEDAF4;
}

.notfound-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.notfound-face {
  font-size: 120px;
  font-weight: bold;
  line-height: 1;

  text-shadow:
    0 0 8px rgba(170, 0, 255, 0.5),
    0 0 16px rgba(170, 0, 255, 0.3);
}

.notfound-title {
  font-size: 60px;
  font-weight: bold;
  text-align: right;

  text-shadow:
    0 0 8px rgba(170, 0, 255, 0.5),
    0 0 16px rgba(170, 0, 255, 0.3);
}

.notfound-text {
  font-size: 28px;
  line-height: 1.8;
  max-width: 650px;

  text-shadow:
    0 0 4px rgba(170, 0, 255, 0.3);
}

.notfound-text a {
  color: #FEDAF4;
  text-decoration: underline;
  font-style: italic;
  font-weight: bold;
}

/* GALLERY PAGE */

.gallery-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 0;
}

.gallery-heading {
  margin: 0;
  text-align: center;
  color: #f0d6ff;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  text-shadow: 0 0 8px rgba(170, 0, 255, 0.35);
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .crt {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(6, 1, 16, 0.96);
  z-index: 200000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox-image {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 2px solid rgba(159, 93, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 24px rgba(170, 0, 255, 0.32);
}

.gallery-section {
  min-height: 0;
}

.gallery-section + .gallery-section {
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  align-content: start;
}

.gallery-grid-2x4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid-4x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid-3x2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  margin: 0;
  padding: 2px;
  border: 1px solid rgba(159, 93, 255, 0.8);
  background: rgba(13, 4, 26, 0.8);
  box-shadow: 0 0 8px rgba(170, 0, 255, 0.15);
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(131, 28, 145, 0.5);
}

.titled-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.titled-card figcaption {
  padding: 6px 8px;
  background: rgba(131, 28, 145, 0.12);
  border-top: 1px solid rgba(131, 28, 145, 0.8);
  color: #f0d6ff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 6px rgba(170, 0, 255, 0.25);
}

.page-break {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
  color: #d9b3ff;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(170, 0, 255, 0.25);
}

.page-break::before,
.page-break::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(131, 28, 145, 0), rgba(131, 28, 145, 0.9), rgba(131, 28, 145, 0));
  box-shadow: 0 0 8px rgba(170, 0, 255, 0.22);
}

/* SITEMAP */

.sitemap-subheader {
  margin-top: 25px;
  margin-bottom: 12px;
  
  text-shadow:
    0 0 5px rgba(170, 0, 255, 0.5),
    0 0 10px rgba(170, 0, 255, 0.3);
}

.sitemap-subheader h2 {
  font-family: W95FA;
  font-size: 28px;
  font-weight: bold;

}

/* CHATROOM */

.comment-window {
  border: 2px solid rgba(131, 28, 145, 0.8);
  background: rgba(131, 28, 145, 0.06);

  box-shadow:
    0 0 12px rgba(170, 0, 255, 0.25),
    inset 0 0 10px rgba(170, 0, 255, 0.08);

  padding: 10px;
  position: relative;
  overflow: hidden;
}

/* CRT scanlines */
.comment-window::before {
  content: "";
  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );

  pointer-events: none;
  opacity: 0.2;
}

.comment-frame {
  width: 100%;
  height: 253px;
  border: none;
  position: relative;
  z-index: 1;
}

.comments-message {
  text-align: center;
  text-shadow:
    0 0 5px rgba(170, 0, 255, 0.5),
    0 0 10px rgba(170, 0, 255, 0.3);
}