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

body{ font-family: "Wario", monospace; }




* { box-sizing: border-box; }

/* (Optional) debug outlines — turn on if you want to see boxes */
/* * { outline: 1px solid rgba(255,0,0,0.15); } */

body{
  background-image: url("images/johtoredrawn.png");
  background-repeat: no-repeat;
  background-color: black;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  margin: 0;
  font-family: "Wario.ttf", monospace;
}
/* global dimmer overlay */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);  /* adjust 0.45–0.75 */
  pointer-events: none;
  z-index: 0;
}
.tile h1, .tile h2, .tile h3{
  text-shadow: 0 2px 0 rgba(0,0,0,.55);
}

.tile a{
  color: #9cff9c;              /* or whatever fits your vibe */
  text-decoration: none;
}

.tile a:hover{
  text-decoration: underline;
}

.tile h1, .tile h2, .tile h3{
  text-shadow: 0 2px 0 rgba(0,0,0,.55);
}

.tile a{
  color: #9cff9c;              /* or whatever fits your vibe */
  text-decoration: none;
}

.tile a:hover{
  text-decoration: underline;
}

/* make sure your site sits ABOVE the overlay */
.page{
  position: relative;
  z-index: 1;
}
.tile{
  background: rgba(0,0,0,.68);  /* dark glass */
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  color: #fff;
}

/* optional: add “frosted glass” blur */
@supports (backdrop-filter: blur(6px)){
  .tile{
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,.52); /* lower because blur helps */
  }
}

/* wrapper */
.page{
  min-height: 100vh;
  width: min(1200px, 100%);
  margin: 24px auto;
  padding: 16px;

  display: grid;
  gap: 16px;

  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "header"
    "topnav"
    "content"
    "footer";

  overflow-x: hidden; /* prevents marquee from creating horizontal scroll */
}

/*start button stuff */
.tile{
  background: rgba(0,0,0,.34);           /* lighter glass */
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  color: #fff;
}

/* frosted glass blur */
@supports (backdrop-filter: blur(8px)){
  .tile{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0,0,0,.22);         /* even lighter because blur helps */
  }
}

.start-btn{
  font-family: monospace;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  padding: 10px 18px;
  cursor: pointer;

  color: #fff;
  background: #111;

  border: 3px solid #333;
  border-radius: 4px;

  box-shadow:
    0 4px 0 #000,
    inset 0 0 0 2px #555;

  transition: transform 0.05s ease, background 0.1s ease;
}

.start-btn:hover{
  background: #1a1a1a;
}
 .tile--right .start-btn{
  display: block;
  margin: 6px 0 12px;
}

.pkmn-box{
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.35;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.15);
  padding: 12px;
  border-radius: 12px;
}

.start-btn:active{
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #000,
    inset 0 0 0 2px #444;
}


/* tiles */
.tile{
  border: 2px solid #222;
  border-radius: 10px;
  padding: 12px;
}

.tile--header { grid-area: header; }
.tile--topnav { grid-area: topnav; }
.content      { grid-area: content; }
.tile--footer { grid-area: footer; }

/* HEADER: must be block so marquee can't "flex-push" the layout */
.tile--header{
  display: block;
  padding: 0;        /* makes marquee span edge-to-edge inside the tile */
  min-width: 0;      /* allows shrink inside grid */
}

/* =========================
   Seamless Marquee (no gaps)
   ========================= */

.marquee{
  width: 100%;
  overflow: hidden;  /* clips the giant animated strip */
  min-width: 0;
}

.marquee__inner{
  display: flex;
  width: max-content;                 /* shrink-wrap contents */
  animation: marquee-scroll 18s linear infinite;
  will-change: transform;
}

.marquee__track{
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 16px;
  padding: 8px 16px;
}

/* control sprite size here */
.marquee img{
  height: 56px;      /* change to 48/64/etc */
  width: auto;
  image-rendering: pixelated;
  display: block;
}

/* moves left by exactly one track width (because you duplicated the track) */
@keyframes marquee-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================
   Top nav
   ========================= */

.side-nav{
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.side-nav ul{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;

  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav a.panel{
  display: inline-block;
  text-align: center;
}

/* =========================
   3-column content grid
   ========================= */

.content{
  display: grid;
  gap: 16px;

  grid-template-columns: 180px minmax(0, 1fr) 180px;
  grid-template-areas: "left center right";

  width: 100%;
  min-width: 0;
}

.tile--left  { grid-area: left; }
.center      { grid-area: center; }
.tile--right { grid-area: right; }

.center{
  display: grid;
  gap: 16px;
  min-width: 0; /* important: prevents center from forcing overflow */
}

.tile--main{
  min-width: 0;
}

/* Make images in content never blow out the grid */
.content img{
  max-width: 100%;
  height: auto;
}

/* =========================
   Fanlistings
   ========================= */

.tile--b{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fanlistings{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fanlistings img{
  display: block;
}
/* ===== Title overlay on marquee ===== */

.marquee {
  position: relative;   /* creates positioning context */
}

.pkmn-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pkmn-card{
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 10px;
}
.pkmn-card pre{
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.35;
}

.site-title {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 2;           /* sits above scrolling icons */
  pointer-events: none;

  font-size: 2.0rem;
  font-family: Wario.ttf  
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;

  color: #fff;
  text-shadow:
    0 0 6px rgba(0,0,0,0.9),
    0 0 12px rgba(0,0,0,0.6);
}

.marquee { position: relative; }

/* Title stays on top */
.site-title{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

/* Fade layer: dims sprites behind the title area */
.title-fade{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;

  width: min(520px, 92%);
  height: 90px;
  border-radius: 999px;
  
  /* dark center, feathered edges */
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.25) 70%,
    rgba(0,0,0,0.00) 100%
  );

  /* optional: extra smoothing on supported browsers */
  backdrop-filter: blur(3px);
}

/* ===== Jukebox (buttons + now playing) ===== */

.jukebox{
  margin: 8px 0 14px;
}

.jukebox__controls{
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  margin-bottom: 10px;
}

/* your retro START button style (reused for all controls) */
.start-btn{
  font-family: monospace;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  padding: 10px 14px;
  cursor: pointer;

  color: #fff;
  background: #111;

  border: 3px solid #333;
  border-radius: 4px;

  box-shadow:
    0 4px 0 #000,
    inset 0 0 0 2px #555;

  transition: transform 0.05s ease, background 0.1s ease;
}

.start-btn:hover{ background: #1a1a1a; }

.start-btn:active{
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #000,
    inset 0 0 0 2px #444;
}

.start-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Hidden player */
.yt-hidden{
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Now Playing marquee */
.nowplaying{
  border: 2px solid #222;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  overflow: hidden;
  padding: 8px 10px;
}

.nowplaying__inner{
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: np-scroll 12s linear infinite;
  font-family: monospace;
  letter-spacing: 0.08em;
}

@keyframes np-scroll{
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ===== Jukebox icon buttons ===== */

.jukebox{
  margin: 8px 0 14px;
}

.jukebox__controls{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

/* icon-only buttons */
.jukebox-btn{
  font-family: monospace;
  font-size: 1rem;
  line-height: 1;

  width: 30px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: #fff;
  background: #111;

  border: 2px solid #333;
  border-radius: 4px;

  box-shadow:
    0 3px 0 #000,
    inset 0 0 0 1px #555;

  padding: 0;
}

.jukebox-btn:hover{
  background: #1a1a1a;
}

.jukebox-btn:active{
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #000,
    inset 0 0 0 1px #444;
}

.jukebox-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 3px 0 #000,
    inset 0 0 0 1px #444;
}

#btn-toggle:not(:disabled){
  color: #9cff9c;
}

.nowplaying__inner{
  font-family: "Wario", monospace;
}

.tile--right .jukebox{
  text-align: center;
}

/* =========================
   Mobile responsiveness patch
   Paste at bottom of CSS
   ========================= */

/* 1) Make media behave + stop sideways scroll */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

/* 2) Page wrapper: tighter padding on small screens */
@media (max-width: 900px){
  .page{
    margin: 10px auto;
    padding: 10px;
    gap: 12px;
  }

  .tile{
    padding: 10px;
    border-radius: 10px;
  }
}

/* 3) Collapse 3-column content grid into 1 column on mobile */
@media (max-width: 800px){
  .content{
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "left"
      "right";
  }

  .tile--left, .tile--right{
    position: static;
  }

  /* make center breathe, no forced overflow */
  .center, .tile--main { min-width: 0; }
}

/* 4) Top nav: allow wrapping, bigger tap targets */
@media (max-width: 600px){
  .side-nav{ padding: 8px 0; }
  .side-nav ul{
    gap: 10px;
    flex-wrap: wrap;
  }
  .side-nav a.panel{
    padding: 10px 12px;
  }
}

/* 5) Marquee + title overlay: scale down nicely */
@media (max-width: 600px){
  .marquee__track{
    gap: 10px;
    padding: 8px 10px;
  }

  .marquee img{
    height: 40px; /* smaller sprites on phones */
  }

  .site-title{
    font-size: 1.25rem;
    letter-spacing: 0.10em;
    width: 92%;
    text-align: center;
  }
@font-face{
  font-family: "Wario";
  src: url("../fonts/Wario.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

body{ font-family: "Wario", monospace; }

  .title-fade{
    height: 70px;
    width: min(380px, 92%);
  }
}

/* 6) Pokemon grid: better columns on small screens */
@media (max-width: 600px){
  .pkmn-grid{
    grid-template-columns: 1fr; /* one-per-row on phones */
    gap: 10px;
  }

  /* sprite + text layout: slightly tighter */
  .pkmn-top{
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .pkmn-top img{
    width: 72px;
    height: 72px;
  }

  /* prevent name line from getting clipped */
  .pkmn-name{
    font-size: 15px;
    line-height: 1.15;
    overflow-wrap: anywhere; /* saves Plusle (Species) etc. */
  }

  /* pill row should wrap cleanly */
  .pkmn-sub{
    gap: 6px;
  }

  .pill{
    max-width: 100%;
    white-space: nowrap;
  }

  /* move chips wrap fine already; just reduce size a hair */
  .move{
    font-size: 11px;
    padding: 2px 7px;
  }
}

/* 7) Details / pre blocks: prevent overflow + make it readable */
@media (max-width: 600px){
  .pkmn-card pre,
  .pkmn-box{
    font-size: 12px;s
    line-height: 1.35;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    word-break: break-word;
  }
}

/* 8) Jukebox: bigger + centered on mobile */
@media (max-width: 600px){
  .jukebox__controls{
    gap: 10px;
    justify-content: center;
  }

  .jukebox-btn{
    width: 40px;
    height: 32px;
    font-size: 1.05rem;
  }

  .nowplaying{
    padding: 10px;
  }

  .nowplaying__inner{
    animation-duration: 10s;
  }
}

/* 9) Accessibility: reduce motion option */
@media (prefers-reduced-motion: reduce){
  .marquee__inner,
  .nowplaying__inner{
    animation: none !important;
  }
}

/* =========================
   MOBILE FIX (wins against layout.css)
   Paste at VERY bottom
   ========================= */

:root { --gap: 12px; }

/* Stop accidental horizontal scroll from grids/pre/marquee */
html, body { max-width: 100%; overflow-x: hidden; }
* { min-width: 0; }  /* critical for grid children */

/* Make the wrapper truly fluid on phones */
@media (max-width: 900px){
  .page{
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    gap: var(--gap) !important;
  }
}

/* KILL the 3-column layout on mobile (force single column) */
@media (max-width: 800px){
  /* If layout.css is setting weird display rules, override */
  .content{
    display: block !important;
    width: 100% !important;
  }

  /* Stack tiles naturally */
  .tile--left,
  .tile--right,
  .center{
    width: 100% !important;
    margin: 0 0 var(--gap) 0 !important;
  }

  /* Reduce tile padding so it doesn’t feel cramped */
  .tile{ padding: 10px !important; }
}

/* Marquee/title: scale down cleanly */
@media (max-width: 600px){
  .marquee img{ height: 40px !important; }
  .site-title{
    font-size: 1.25rem !important;
    width: 92% !important;
    text-align: center !important;
  }
  .title-fade{
    width: min(380px, 92%) !important;
    height: 70px !important;
  }
}

/* Pokémon grid: two columns on most phones, one column on very small screens */
@media (max-width: 800px){
  .pkmn-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}
@media (max-width: 420px){
  .pkmn-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Pokémon card internals: prevent “cut off” text */
@media (max-width: 800px){
  .pkmn-top{
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .pkmn-top img{ width: 72px !important; height: 72px !important; }

  .pkmn-name{
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .pkmn-sub{ flex-wrap: wrap !important; }
  .pill{ max-width: 100% !important; }
}

/* Details/pre: readable + no layout blowouts */
@media (max-width: 800px){
  .pkmn-card pre,
  .pkmn-box{
    font-size: 12px !important;
    line-height: 1.35 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    word-break: break-word;
  }
}

/* Fanlistings: keep them from becoming tiny */
@media (max-width: 800px){
  .fanlistings{ gap: 10px !important; }
  .fanlistings img{
    width: 50px; height: 50px; object-fit: contain;
  }
}
