/* Limit header width and center it */
/* Header .window matches #site-header width and is centered */
#header-placeholder .window {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Fonts ===== */
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://files.catbox.moe/1za99g.woff") format("woff");
}

@font-face { 
  font-family: ecoder;
  src: url(https://dl.dropbox.com/s/2wrgv8i3jsqkv6p/Ecoder-Italic.otf);
}

@font-face {
  font-family: handy;
  src: url(https://dl.dropbox.com/s/ga9hf4idu3egjb5/handy00.ttf);
}

/* ===== Body & Layout ===== */
/* ===== Outer Container ===== */
.outer-container {
  width: 1200px;
  height: 600px;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  /* Base background */
  background-image: url('https://i.pinimg.com/1200x/5d/41/a0/5d41a0717acf49176c4a6d7e9afe7598.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative; /* Needed for pseudo-element */
}

/* GIF Overlay with gradient opacity */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: url('https://i.pinimg.com/originals/21/d5/22/21d5224ad91d1da66625f32b5875f94e.gif');
  background-repeat: repeat;
  background-attachment: fixed;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,1) 100%);
}

#header-container {
  width: 100%;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

#scroll-container {
  width: 500px;
  max-width: 100vw;
  max-height: 1000px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 0;
  margin: 40px 0 40px 0;
}

/* Main container with flex layout (for gallery page) */
.flex-layout, #main-container.flex-layout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  height: auto;
  overflow: visible;
}

/* ===== Custom Scrollbar ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: #34cb73 #f7f7f8;
}

*::-webkit-scrollbar {
  width: 10px;
}


*::-webkit-scrollbar-thumb {
  background-color: #34cb73;
  border-radius: 5px;
}

/* ===== Window Styles ===== */
.window {
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #5eb3e6, inset 2px 2px #ffffff;
  background: #c0c0c0;
  padding: 2px;
  width: 100%;
  margin-bottom: 0px;
}

.title-bar {
  background: linear-gradient(90deg, #5eb3e6, #73d9a6);
  padding: 2px 2px 2px 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-bar-text {
  font-weight: bold;
  color: white;
  font-size: 11px;
  margin-right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-bar-text img {
  height: 16px;
  width: 16px;
  margin: 0;
  display: inline-block;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-bar-controls button {
  padding: 0;
  display: block;
  min-width: 16px;
  min-height: 14px;
  border: none;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #5eb3e6, inset 2px 2px #73d9a6;
  background: silver;
  cursor: default;
}

.title-bar-controls button:active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey;
}

.title-bar-controls button[aria-label=Minimize] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
  background-position: bottom 3px left 4px;
  background-repeat: no-repeat;
}

.title-bar-controls button[aria-label=Maximize] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/4a2282dd9170cabf730fb5803d1153d86b2e94e3/icon/maximize.svg");
  background-position: top 2px left 3px;
  background-repeat: no-repeat;
}

.title-bar-controls button[aria-label=Close] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
  background-position: top 3px left 4px;
  background-repeat: no-repeat;
  margin-left: 2px;
}

.window-body {
  margin: 4px;
  padding: 6px;
  background: white;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
}

.welcome-body {
  background-image: url('https://i.pinimg.com/736x/97/d0/10/97d01010b4ba4f2e75828b3a80218830.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px !important;
}

/* ===== Text Styles ===== */
.textborder {
  filter: drop-shadow(0 3px #5eb3e6) drop-shadow(2px 0 #5eb3e6) drop-shadow(0 -1px #73d9a6) drop-shadow(-1px 0 #5eb3e6) drop-shadow(0 5px white) drop-shadow(5px 0 white) drop-shadow(0 -5px white) drop-shadow(-5px 0 white) drop-shadow(1px 1px 0 rgba(172,172,172,0.6)) drop-shadow(1px 1px 0 rgba(172,172,172,0.6)) drop-shadow(0 0 2px #424242);
  color: #e0f7ff;
  font-family: ecoder;
  font-size: 80px;
  text-align: center;
  margin: 10px 0;
}

.bio-text {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-family: 'Pixelated MS Sans Serif', Arial;
  color: #ffffff;
  text-shadow: 3px 3px 0 #5eb3e6, -1px -1px 0 #5eb3e6, 1px -1px 0 #5eb3e6, -1px 1px 0 #5eb3e6, 1px 1px 0 #5eb3e6, 2px 2px 6px rgba(0,0,0,0.8);
  font-weight: bold;
  z-index: 10;
  position: relative;
}

/* ===== Navigation Buttons ===== */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 20px;
}

.nav-button {
  cursor: pointer;
  background: linear-gradient(135deg, #73d9a6 0%, #5eb3e6 100%);
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid #ffffff;
  transition: transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav-button:hover {
  transform: scale(1.05);
}

.nav-button p {
  margin: 0;
  font-size: 12px;
  font-family: 'Pixelated MS Sans Serif', Arial;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* ===== Gallery Layout (Two Column) ===== */
#commentary {
  flex: 0 0 250px;
  font-family: monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}

#posts {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
}

/* When #posts is used with #commentary in two-column layout */
#main-container.flex-layout #posts {
  max-width: calc(100% - 260px);
}

#posts > .window {
  width: calc(100% - 10px);
}

/* ===== Art Layout (Art + Text Side by Side) ===== */
.art-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#art {
  flex: 0 0 auto;
}

#art .window {
  width: 100%;
  box-sizing: border-box;
}

#art .window-body {
  padding: 0;
  display: inline-block;
}

#art img {
  display: block;
}

#texte {
  flex: 1;
  min-width: 0;
}

#texte .window {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#texte .window-body {
  flex: 1;
  overflow-y: auto;
}

/* ===== Gallery Grid (Wrapped Items) ===== */
.art-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 10px;
}

.art-container img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.text-container {
  width: 100%;
  height: 300px;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 16px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.gallery-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  background: none;
  box-shadow: none;
  margin-bottom: 10px;
}

.gallery-container img {
  flex: 0 0 auto;
  width: calc(25% - 10px);
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0;
}
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.gallery-item {
  flex: 0 0 auto;
}

.gallery-item .window {
  width: auto;
  display: inline-block;
}

.gallery-item .window-body {
  padding: 0;
}

.gallery-item img {
  display: block;
}

/* ===== Emote Grid ===== */
.emote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  width: 100%;
  box-sizing: border-box;
}

.emote-grid img {
  height: 90px !important;
  width: auto !important;
  display: block !important;
  max-width: none !important;
}

/* ===== Music Player ===== */
#musicplayer {
  display: grid;
  grid-template-columns: 20px auto;
  align-items: center;
  width: 100%;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

/* Ensure .welcome-body and #header-container are not affected by .window-body min-height */

.marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* ===== Made by Girl Badge ===== */
#made-by-girl {
  position: fixed;
  top: 880px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 102;
}

#made-by-girl img {
  height: 360px;
  width: auto;
}

/* ===== Virus Popup Window Styles ===== */

.virus-popup2 {
  position: fixed;
  z-index: 999;
  background: #08151a;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  overflow: hidden;
}



/* Second popup: top-left corner with margin */
.virus-popup2 {
  top: 32px;
  left: 32px;
  width: 270px;
  height: 384px;
  right: auto;
}

.virus-popup2 .window-body {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.virus-popup2 iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px;
  border: none;
  display: block;
  overflow: hidden;
}


.virus-text {
  font-size: 12px;
  font-weight: 900;
  color: #36fff3;
  text-shadow: 0 0 8px #36fff3, 0 0 16px #37b5ff;
  animation: jiggle 0.6s ease-in-out infinite;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}
.fineprint {
  font-size: 7px;
  color: #7affd8;
  text-shadow: 0 0 6px #2effc6;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  height: 10px;
}
.fineprint span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 14s linear infinite;
}
.virus-cta {
  display: block;
  margin: 8px auto 6px;
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #061018;
  text-decoration: none;
  background: linear-gradient(135deg, #5ce6ff 0%, #6bffcc 50%, #a7ffef 100%);
  border: 1px solid #0f3b4a;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(92, 230, 255, 0.8), 0 0 18px rgba(107, 255, 204, 0.7);
  animation: ctaPulse 1.2s ease-in-out infinite;
}
.virus-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(92, 230, 255, 0.8), 0 0 18px rgba(107, 255, 204, 0.7); }
  50% { box-shadow: 0 0 18px rgba(110, 255, 240, 0.9), 0 0 26px rgba(92, 230, 255, 0.9); }
}
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 255, 208, 0.45)); }
  50% { filter: drop-shadow(0 0 14px rgba(72, 187, 255, 0.8)); }
}
@keyframes jiggle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===== Window Wrapper & Floating Images ===== */
.window-wrapper {
  position: relative;
  display: inline-block;
}

.floating-img {
  display: none;
}

.floating-img2 {
  display: none;
}

/* ===== Utility Classes ===== */
img.one {
  height: 180px;
  width: auto;
}

.zoom:hover {
  transform: scale(1.1);
}

.big-button {
  background: #73d9b8;
  border-radius: 11px;
  padding: 10px 33px;
  color: #ffffff;
  display: inline-block;
  font: normal bold 15px/1 "Arvo", serif;
  text-align: center;
}

/* ===== Header Placeholder Fix ===== */
#header-placeholder .nav-buttons {
  margin-bottom: 0 !important;
}

/* ===== Page Shell ===== */
.page-shell {
  width: min(870px, calc(100vw - 24px));
}

/* ===== Text Popup ===== */
.text-popup {
  position: fixed;
  width: 254px;
  max-width: calc(100vw - 24px);
  cursor: move;
  z-index: 2000;
}

.text-popup .window {
  display: flex;
  flex-direction: column;
}

.text-popup .window-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

/* ===== Scroll Horizontal ===== */
.scroll-horizontal {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.scroll-horizontal img {
  display: block;
  flex: 0 0 auto;
  max-height: 390px;
  width: auto;
}

/* ===== Emote Scroll (Marseille layout) ===== */
.emote-scroll .window-body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 0 !important;
}

.kofi-button-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

/* ===== Dropdown Navigation ===== */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: linear-gradient(180deg, #f8f8f8, #e8e8e8);
  min-width: 200px;
  border: 1px solid #999;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 4px 0;
}
.dropdown:hover > .dropdown-menu {
  display: block;
}
.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.dropdown-item:hover {
  background: linear-gradient(90deg, #e0f0ff, #d0e8ff);
  border-left-color: #4a9ede;
}

