/* ============================================================
   SLAM Freerunning — global styles
   Faithful Web 1.0 / sadgrl-webmastery recreation of the Wix site
   ============================================================ */

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 18px;
  color: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a { color: #00f; text-decoration: underline; }
a:visited { color: #551a8b; }

/* ---------- Page backgrounds ---------- */
body.bg-pink-mushroom {
  background: url("../assets/backgrounds/pink-mushroom-tile.gif") repeat;
  background-color: #f5c8e0;
}
body.bg-purple-bubbles {
  background: url("../assets/backgrounds/purple-bubbles-tile.gif") repeat;
  background-color: #d8c8f5;
}
body.bg-purple-windpaper {
  background: url("../assets/backgrounds/purple-windpaper-tile.gif") repeat;
  background-color: #d8c8f5;
}
body.bg-strawberry {
  background: url("../assets/backgrounds/strawberry-tile.png") repeat;
  background-color: #f5d6e0;
}

/* ---------- Fixed-width desktop canvas ---------- */
/* The Wix design canvas is ~1655px wide. We honor that exactly for
   faithfulness, center it horizontally, and let the bg tile fill the rest. */
.canvas {
  position: relative;
  width: 1655px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---------- Mobile / small-screen guard ---------- */
/* User chose: desktop-only with a "best viewed on desktop" banner. */
.mobile-banner {
  display: none;
}
@media (max-width: 1100px) {
  .canvas { display: none; }
  .mobile-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    font-family: "Perfect DOS VGA 437 Win", monospace;
    color: #000;
  }
  .mobile-banner img.logo { max-width: 220px; margin-bottom: 1.5rem; }
  .mobile-banner h1 { font-size: 1.6rem; margin-bottom: 1.5rem; max-width: 22ch; line-height: 1.3; }
  .mobile-banner p { font-size: 1.1rem; max-width: 28ch; line-height: 1.4; }
  .mobile-banner .sparkle { font-size: 1.5rem; margin-top: 1.5rem; }
  .view-anyway-btn {
    font-family: "Perfect DOS VGA 437 Win", monospace;
    font-size: 1.2rem;
    color: #000;
    background: #fff;
    border: 2px solid #000;
    border-radius: 4px;
    padding: 12px 28px;
    cursor: pointer;
  }
  .view-anyway-btn:hover { background: #f5c8e0; }

  /* When the visitor taps "view anyway", force the full desktop layout. */
  body.view-anyway .mobile-banner { display: none; }
  body.view-anyway .canvas { display: block; }
}

/* ---------- SLAM graffiti logo ---------- */
.slam-logo {
  display: block;
  width: 220px;
  height: auto;
  image-rendering: auto;
}

/* ---------- Top center nav (Photos | Store | Videos style) ---------- */
.top-nav {
  display: flex;
  gap: 90px;
  align-items: center;
  justify-content: center;
}
.top-nav a {
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 38px;
  color: #000;
  text-decoration: none;
  padding: 4px 12px;
}
.top-nav a:hover { text-decoration: underline; }

/* ---------- "Planet Epic Face" — the spinning yellow ball ---------- */
.yellow-ball-img {
  width: 220px;
  height: auto;
  image-rendering: auto;
}

/* ---------- XP window helpers (extend XP.css) ---------- */
/* XP.css gives us .window, .title-bar, .title-bar-controls. We add positioning
   and our content sizing on top. */
.win {
  position: absolute;
}
.win .window-body {
  padding: 14px 16px;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 18px;
  line-height: 1.15;
  color: #000;
  background: #fff;
}

/* "Do a flip!" window has two columns: text on left, image collage on right */
.win-doaflip { width: 560px; }
.win-doaflip .window-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  align-items: start;
  min-height: 280px;
  background: #fff;
}
.win-doaflip .doaflip-text { white-space: pre-line; }
.win-doaflip .doaflip-collage { width: 220px; height: auto; image-rendering: auto; }
.win-doaflip .doaflip-frog {
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 110px;
  height: auto;
  image-rendering: auto;
}

/* Maurice window */
.win-maurice { width: 360px; }
.win-maurice .window-body {
  text-align: center;
  padding: 10px 12px 14px;
  background: #fff;
}
.win-maurice .maurice-img {
  width: 100%;
  height: auto;
  image-rendering: auto;
  margin-top: 8px;
}

/* Recent Photo window */
.win-recent { width: 360px; }
.win-recent .window-body {
  padding: 8px;
  background: #fff;
}
.win-recent .recent-img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

/* Song Suggestion window — embeds a YouTube iframe */
.win-song { width: 340px; }
.win-song .window-body {
  padding: 6px;
  background: #000;
}
.win-song iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
}

/* ---------- Blinkies row ---------- */
.blinkies {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.blinkies img {
  height: 60px;
  width: auto;
  image-rendering: pixelated;
}

/* ---------- Resource Credits link ---------- */
.resource-credits {
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 22px;
  color: #000;
  text-decoration: none;
  padding: 4px 12px;
}
.resource-credits:hover { text-decoration: underline; }

/* ============================================================
   Photography page
   ============================================================ */
.photos-page .page-title {
  text-align: center;
  font-size: 56px;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  padding-top: 32px;
}
.photos-page .sub-nav {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin: 12px 0 28px;
  position: relative;
  z-index: 10;
}
.photos-page .sub-nav a {
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 28px;
  color: #000;
  text-decoration: none;
  padding: 2px 10px;
}
.photos-page .sub-nav a:hover { text-decoration: underline; }
.photos-page .mascot-left,
.photos-page .mascot-right {
  position: absolute;
  top: 220px;
  height: auto;
  image-rendering: auto;
  pointer-events: none; /* decorative — never intercept clicks */
}
/* Both mascots are now tightly cropped, so widths roughly match visually.
   Left a touch bigger than right (per request). */
.photos-page .mascot-left  { left: 80px;   width: 330px; }
.photos-page .mascot-right { right: 70px;  width: 243px; }

.photos-page .photos-blinkies {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin: 8px 0 24px;
}
.photos-page .photos-blinkies img {
  height: 36px;
  width: auto;
  image-rendering: pixelated;
}

.photos-page .wanna-change-me {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 560px;
  height: auto;
  pointer-events: none;
  image-rendering: auto;
  z-index: 5;
}

.photos-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0 80px;
}
.photos-column img {
  width: 520px;
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.photos-column img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ---------- Fullscreen photo lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 94vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: 2px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
}
.lightbox-close:hover { background: #c00; }

/* ============================================================
   Videos page — scattered layout
   ============================================================ */
.videos-page .page-title {
  text-align: center;
  font-size: 72px;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  padding-top: 24px;
  letter-spacing: 2px;
}
.videos-page .sub-nav {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  margin: 10px 0 12px;
  position: relative;
  z-index: 10;
}
.videos-page .sub-nav a {
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 30px;
  color: #000;
  text-decoration: none;
  padding: 2px 8px;
}
.videos-page .sub-nav a:hover { text-decoration: underline; }
.videos-page .sub-nav .dont-like-gif {
  height: 25px;
  width: auto;
  image-rendering: pixelated;
  cursor: pointer;
}

/* ":c" face that pops up when you click the DON'T LIKE IT gif */
.sad-face-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 200px;
  color: #000;
  text-shadow: 0 4px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sad-face-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.videos-page .zoom-tip {
  text-align: center;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 26px;
  color: #000;
  margin-top: 6px;
}
.videos-page .memory-tip {
  text-align: center;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 26px;
  color: #000;
  margin: 4px 0 30px;
  white-space: pre-line;
  line-height: 1.3;
}
.videos-page .mascot-left,
.videos-page .mascot-right {
  position: absolute;
  height: auto;
  image-rendering: auto;
  pointer-events: none; /* decorative — never intercept clicks on nav/videos */
}
.videos-page .mascot-left  { left: 60px;   top: 0px; width: 510px; }  /* compensates for Spooky Smoof's interior padding */
.videos-page .mascot-right { right: 100px; top: 50px;  width: 260px; }
.videos-page .new-arrow {
  position: absolute;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 28px;
  transform: rotate(30deg);
  pointer-events: none;
}

.scattered-grid {
  position: absolute;
  top: 360px;            /* below mascots */
  left: 0;
  width: 100%;
  min-height: 800px;
}
.scattered-grid .vid {
  position: absolute;
  width: 280px;
  height: 158px;
  background: #000 center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.scattered-grid .vid:hover { transform: scale(1.04); z-index: 2; }
.scattered-grid .vid iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Custom play button on the facade thumbnail (works for YouTube + Vimeo + Bunny + HLS) */
.scattered-grid .vid[data-yt]::before,
.scattered-grid .vid[data-vimeo]::before,
.scattered-grid .vid[data-bunny]::before,
.scattered-grid .vid[data-hls]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.scattered-grid .vid[data-yt]::after,
.scattered-grid .vid[data-vimeo]::after,
.scattered-grid .vid[data-bunny]::after,
.scattered-grid .vid[data-hls]::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 20px;
  padding-left: 4px;
  pointer-events: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.scattered-grid .vid[data-yt]:hover::after,
.scattered-grid .vid[data-vimeo]:hover::after,
.scattered-grid .vid[data-bunny]:hover::after,
.scattered-grid .vid[data-hls]:hover::after {
  background: #c00;
  transform: translate(-50%, -50%) scale(1.1);
}
.scattered-grid .vid.loaded::before,
.scattered-grid .vid.loaded::after { display: none; }
.scattered-grid .vid.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #444, #111);
  color: #fff;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 14px;
  text-align: center;
  padding: 8px;
}

/* ============================================================
   Credits page
   ============================================================ */
.credits-page .top-row {
  display: flex;
  gap: 36px;
  justify-content: center;
  align-items: center;
  padding-top: 32px;
}
.credits-page .top-row a {
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 32px;
  color: #000;
  text-decoration: none;
  padding: 2px 10px;
}
.credits-page .top-row a:hover { text-decoration: underline; }
.credits-page .top-row img.slam-mini {
  height: 70px;
  width: auto;
  image-rendering: auto;
}
.credits-page h1 {
  text-align: center;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 88px;
  color: #000;
  margin: 40px 0 36px;
  letter-spacing: 2px;
}
.credits-page .credits-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 26px;
  line-height: 1.7;
}
.credits-page .credits-list .label { font-weight: 700; }
.credits-page .credits-list a {
  color: #00f;
  text-decoration: underline;
  word-break: break-all;
}
