/* ===================== TYPOGRAPHY & THEME ===================== */
/* Make sure in your <head> the Google Fonts <link> tags come BEFORE styles.css:
   - Press Start 2P (headings)
   - Roboto (body)
*/

:root {
  --heading-font: 'Press Start 2P', cursive;
  --body-font: 'Roboto', Arial, Helvetica, sans-serif; /* fallback chain */
  --gold: #FFD700;
}

/* Enforce fonts early so they don't get overridden by any imported CSS */
html, body {
  font-family: var(--body-font) !important;
}

h1, h2, h3, h4,
#main-header,
.pokemon-heading {
  font-family: var(--heading-font) !important;
}

/* ===================== BASE ELEMENTS ===================== */
body {
  margin: 0;
  background-color: #000;        /* site-wide background */
  color: var(--gold);             /* default text color */
  line-height: 1.6;
}

/* paragraphs inherit body font; keep spacing/color */
p {
  line-height: 2;
  font-size: 1rem;
  color: rgb(245, 236, 3);
}

#main-header {
  text-align: center;
  font-size: 2.5rem;
  color: #8A2BE2;                /* was #4c04e9 earlier; unified to your later value */
  margin: 20px 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
}

li strong {
  color: #e76f51;
  font-style: normal;
}

img[alt^="Ryan"] {
  border: 3px solid #000000;
  padding: 4px;
}

a:hover {
  color: #f4a261;
  text-decoration: underline;
}

footer p {
  font-size: 0.8rem;
  color: #555555;
}

/* ===================== FULL-PAGE GIF BACKDROP ===================== */
.page-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("GIFS/bike-gif.gif") center center / cover no-repeat;
  z-index: -1;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
}

/* ===================== ASCII DUEL MINIGAME ===================== */
#ascii-art {
  font-family: monospace;        /* keeps the ASCII/game feel */
  font-size: 1.2rem;
  text-align: left;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  white-space: pre-wrap;
  background-color: #0b0800;
  color: #eb0505;
  max-width: 400px;
  transition: background-color 0.3s, color 0.3s;
}

.duel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  font-family: monospace;        /* intentional */
  font-size: 1.2em;
  color: #123c4d;
  background-color: #e9c46a;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  max-width: 600px;
  margin: 1rem auto;
}

.duelers-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.duel-guy { display: inline-block; animation: jumpFall 5s ease-in-out infinite both; }
#dueler2  { animation-delay: 3s; }

#spin-symbols {
  display: inline-block;
  animation: spin 4s linear infinite;
  font-size: 1.2em;
  vertical-align: middle;
}

.duel-text {
  padding-top: 1em;
  line-height: 2;
  font-weight: bold;
  font-size: 1.1em;
  width: 100%;
  text-align: center;
}

@keyframes jumpFall { 0%,100%{transform:translateY(0)} 25%{transform:translateY(-30px)} 50%{transform:translateY(0)} }
@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* ===================== COIN FLIP GAME ===================== */
#coin-flip-game button {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid #264653;
  background-color: #e9c46a;
  color: #264653;
  transition: background-color 0.3s, color 0.3s;
}
#coin-flip-game button:hover { background-color:#264653; color:#e9c46a; }
#result { font-size: 1.2rem; color: #264653; }

/* ===================== POKÉMON PAGE ===================== */
.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  padding: 1rem;
  justify-items: center;
}

.pokemon-card {
  padding: 25px;
  border: 3px solid transparent;
  border-radius: 16px;
  box-shadow: 0 0 15px #333;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 550px;
  background: linear-gradient(to bottom, #e09703, #000000);
  color: #0f0f0f;
}

.pokemon-card:hover { transform: scale(1.05); box-shadow: 0 0 20px gold; animation: sparkle 1s infinite alternate; }
.pokemon-card.selected { position: relative; border: 3px solid rgb(255,196,0); background-color: gold; overflow: visible; }

.pokemon-card img {
  width: 100%;
  height: auto;
  max-width: 250px;
  border: 3px solid white;
  border-radius: 10px;
  object-fit: contain;
  margin: 0 auto 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pokemon-heading {
  text-align: center;
  color: var(--gold);
}

.pokemon-card.selected::before,
.pokemon-card.selected::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  background: radial-gradient(circle, gold 60%, transparent 60%);
  border-radius: 50%;
  opacity: 0.8;
  animation: sparkleMove 2s linear infinite;
}
.pokemon-card.selected::before { top:10px; left:10px;  animation-delay: 0s; }
.pokemon-card.selected::after  { bottom:10px; right:10px; animation-delay: 1s; }

@keyframes sparkle     { 0%{box-shadow:0 0 10px gold} 100%{box-shadow:0 0 20px orange} }
@keyframes sparkleMove { 0%{transform:translate(0,0) scale(1);opacity:1}
                         50%{transform:translate(15px,-15px) scale(1.5);opacity:.5}
                        100%{transform:translate(0,0) scale(1);opacity:1} }

/* ===================== LAYOUT BITS ===================== */
.columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  margin: 1rem;
  background: linear-gradient(135deg, #f0f8ff, #add8e6);
  padding: 1rem;
  border-radius: 10px;
}

.team-card img { width: 200px; height: auto; display: block; margin-top: 10px; }

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #1f1f1f; /* unified */
  padding: 12px 0;
  font-weight: bold;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.navbar a:hover { background-color: var(--gold); color: #000; border-radius: 4px; }

/* Current-page highlight in the navbar */
.navbar a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .2rem;
  /* optional polish: */
  text-decoration-thickness: 2px;
}


/* FOOTER BAR */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #1f1f1f;
  color: white;
  font-size: 0.9rem;
}
.footer-bar a { color: #00ffff; text-decoration: none; font-weight: bold; }
.footer-bar a:hover { text-decoration: underline; }

/* ===================== HOME GRID ===================== */
.home-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;              /* more breathing room */
  padding: 20px;
  align-items: start;     /* align tops of each column */
}
.home-sections section {
  background-color: #111111;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.home-sections img {
  width: 100%;
  max-width: 320px;
  height: 220px;          /* fixed box */
  object-fit: contain;    /* no cropping; may letterbox */
  background: #111;
  border-radius: 10px;
}

/* Small stack */
@media (max-width: 800px) {
  .home-sections { grid-template-columns: 1fr; }
}

/* ===================== HOBBIES ===================== */
.move-gif {
  width: 90%;
  max-width: 250px;
  height: auto;
  margin-top: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

/* ===================== SPORTS PAGE ===================== */
.container { max-width: 1000px; margin: auto; padding: 20px; }

.team-card {
  background-color: #111;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.team-card h2 { color: #FF1493; margin-bottom: 10px; }
.team-card img { max-width: 150px; display: block; margin: 10px auto; border-radius: 4px; }
.team-card p { color: var(--gold); font-size: 1rem; }

/* ===================== MEDIA QUERIES ===================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;           /* centers stacked links */
  }
  .navbar a {
    display: block;
    width: 100%;
    text-align: center;
  }
  .pokemon-card { width: 90%; margin: 10px auto; }
}

@media (max-width: 550px) {
  body { font-size: 14px; }
  nav a {
    font-size: 1rem;
    display: block;
    margin: 5px 0;
    text-align: center;
  }
}

/* ===================== FAMILY SECTIONS ===================== */
.family-member {
  margin-bottom: 2rem;
  padding: 1rem;
  border-bottom: 2px solid #4c04e9;
  background-color: #ffffff0f;
  border-radius: 8px;
}
.family-member img {
  margin-right: 10px;
  border-radius: 8px;
}


#intro-text, 
#intro-text strong, 
#intro-text span {
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}

.navbar i { margin-right: 8px; }
#main-header i { margin-right: 10px; font-size: 0.9em; }

.panel-content p,
.panel-content ul li {
  color: #fff; /* keep text white */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.85); /* dark glow */
}

/* ===================== BG3 PAGE STYLES ===================== */
body.bg3 .bg3-background {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url("picturesbg3/LgBG3background.avif") center center / cover no-repeat;
  z-index: -1;
  filter: brightness(0.35);
}

/* Hero */
body.bg3 .hero {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
  background:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.85)),
    url("picturesbg3/diffrent-classes.webp") center/cover no-repeat;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  margin: 20px auto;
  max-width: 1100px;
}
body.bg3 .hero h1 { color: #FFD700; margin-bottom: .75rem; font-family: 'Press Start 2P', cursive; }
body.bg3 .hero p  { color: #f0f0f0; max-width: 800px; margin: 0 auto 1rem; }
body.bg3 .cta {
  display: inline-block;
  margin-top: 1rem;
  padding: .9rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg,#FFD700,#ff9f1a);
  color: #111;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
body.bg3 .cta:hover { transform: translateY(-2px); }

/* Glow title */
body.bg3 .glow-title {
  font-size: 2.8rem;
  color: #FFD700;
  text-align: center;
  font-weight: bold;
  text-shadow:
    0 0 5px #FFD700,
    0 0 10px #FFD700,
    0 0 20px #FFA500,
    0 0 30px #FF8C00;
  animation: glowPulse 2s ease-in-out infinite;
  margin-bottom: 10px;
}
@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 5px #FFD700,
      0 0 10px #FFD700,
      0 0 20px #FFA500,
      0 0 30px #FF8C00;
  }
  50% {
    text-shadow:
      0 0 10px #FFD700,
      0 0 20px #FFD700,
      0 0 40px #FFA500,
      0 0 60px #FF8C00;
  }
}

/* Uniform 2x2 panels */
body.bg3 .panels-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}
@media (max-width: 900px) {
  body.bg3 .panels-grid { grid-template-columns: 1fr; }
}

body.bg3 .panel {
  position: relative;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  border: 1px solid rgba(255,215,0,.18);
  background: #0d0d0d;
  isolation: isolate;
}
body.bg3 .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg, none) center/cover no-repeat;
  z-index: -2;
}
body.bg3 .panel::after  {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.75));
  z-index: -1;
}
body.bg3 .panel-content {
  padding: 1.25rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
body.bg3 .panel h2 {
  color: #FFD700;
  margin: 0 0 .25rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
}
/* BG3-only: make small text gold + readable */
body.bg3 .panel-content p,
body.bg3 .panel-content ul li {
  color: #FFD700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Dark content boxes */
body.bg3 .table-wrap,
body.bg3 .gallery {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  border: 1px solid rgba(255,215,0,.15);
}
body.bg3 .table-wrap h3,
body.bg3 .gallery h3 { color: #FFD700; margin-top: .3rem; }

/* Tables & gallery */
body.bg3 table.honor {
  width: 100%;
  border-collapse: collapse;
  color: #eee;
}
body.bg3 table.honor th,
body.bg3 table.honor td {
  padding: .7rem .6rem;
  border-bottom: 1px solid #333;
  text-align: left;
}
body.bg3 table.honor th {
  border-bottom: 2px solid #FFD700;
  color: #FFD700;
}
body.bg3 .note { text-align: center; color: #aaa; margin-top: .75rem; font-size: .95rem; }

body.bg3 .shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 12px;
  margin-top: .75rem;
}
body.bg3 .shots img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}


