body {
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;   /* allows content to scroll naturally */
  width: 100%;
  overflow-x: hidden; /* prevent horizontal scroll from stars */
}



#main-container,
.player-card,
h1,
.message,
.pagebreak,
.search-bar,
ul,
li {
  position: relative; /* make z-index work */
  z-index: 1;         /* higher than the shooting stars */
}

/* ---------- Shiny Showcase Container ---------- */
#main-container #showcase {
  display: flex;
  flex-direction: column;
  gap: 15px;         /* space between cards */
  width: 100%;        /* container stretches full width */
  box-sizing: border-box;
  padding: 0 20px;    /* small horizontal padding */
}


h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;

  /* Subtle glow */
  text-shadow: 
    0 0 5px rgba(255,255,255,0.4),
    0 0 10px rgba(74,144,226,0.3),
    0 0 15px rgba(74,144,226,0.2);

  margin-bottom: 20px;
  transition: all 0.3s ease;
}

/* Optional: very soft hover increase in glow */
h1:hover {
  text-shadow: 
    0 0 6px rgba(255,255,255,0.5),
    0 0 12px rgba(74,144,226,0.35),
    0 0 18px rgba(74,144,226,0.25);
}

.player-trophy {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: middle;
}
.player-card {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  width: 100%;        /* card fills container width */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 90%;
  margin: auto;
}

@media (min-width: 4000px) { /* Adjust 1200px to your desired breakpoint */
  .player-card {
    max-width: 3000px; /* Adjust 800px to your desired maximum width */
    margin-left: auto; /* Center the card if it's narrower than its container */
    margin-right: auto;
  }
}

.player-card div span.sparkle {
  animation: sparkle-glow 1.5s infinite alternate;
}

@keyframes sparkle-glow {
  from { text-shadow: 0 0 2px #edff49; }
  to { text-shadow: 0 0 5px #fff67f; }
}

.player-name {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  justify-content: center;
}

.player-name.high-player {
  color: rgb(255, 84, 255); /* purple */
}


/* Gold color for top 5 players */
.player-name.top-player {
  color: gold;
}

.player-name.high-player {
  color: rgb(255, 84, 255);
}
.shiny-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.shiny-list span {
  display: inline-block;
  position: relative;
}

/* ---------- GIF CONTAINER ---------- */
.gif-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  border: 1px solid #555; /* default border */
  border-radius: 8px;
  transition: transform 0.2s, border-color 0.2s;
  box-sizing: border-box;
  overflow: hidden;
}

/* Hover effect for all GIF boxes */
.gif-container:hover {
  transform: scale(1.2);
  border-color: #4a90e2; /* hover color for normal */
}

/* ---------- Alpha Pokémon border ---------- */
.alpha-pokemon {
  border-color: gold; /* yellow outline for alpha */
}

/* Hover effect for alpha Pokémon */
.alpha-pokemon:hover {
  border-color: gold; /* keeps gold on hover */
}

.secret-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;      /* adjust size as needed */
  height: 20px;
  pointer-events: none; /* doesn’t block hover */
  z-index: 5;          /* above the container background but below info box */
}

.egg-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 25px;      /* adjust size as needed */
  height: 25px;
  pointer-events: none; /* doesn’t block hover */
  z-index: 5;          /* above the container background but below info box */
}

.event-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;      /* adjust size as needed */
  height: 20px;
  pointer-events: none; /* doesn’t block hover */
  z-index: 5;          /* above the container background but below info box */
}

/* Reaction PNG icon in bottom-left */
.reaction-icon {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 18px;        /* adjust size if needed */
  height: 18px;
  cursor: pointer;
  z-index: 6;         /* above GIF, below info box */
}

.reaction-icon:hover {
  transform: scale(1.2);
  transition: transform 0.2s;
}

.safari-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 19px;      /* adjust size as needed */
  height: 19px;
  pointer-events: none; /* doesn’t block hover */
  z-index: 5;          /* above the container background but below info box */
}

/* Mysterious Ball GIF in top-right corner */
.mysteriousball-gif {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 19px;   /* adjust size as needed */
  height: 19px;
  pointer-events: none; /* so it doesn’t block hover or clicks */
  z-index: 6;     /* above GIF but below info box */
}


.sold-pokemon {
  filter: grayscale(100%);
  opacity: 80%;
}

/* GIF itself maintains ratio */
.shiny-gif {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Particle overlay */
.particle-gif {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none; /* hidden by default */
}

.gif-container:hover .particle-gif {
  display: block; /* show on hover */
}

.info-box strong {
  display: block;
  margin-bottom: 6px;
  text-transform: capitalize; /* permanently capitalize */
}
/* ---------- INFO BOX ---------- */
.info-box {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
  background: #1f1f1f;
  border: 1px solid #444;
  padding: 12px;
  border-radius: 10px;
  width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease, left 0s; /* allow instant left change */
  z-index: 10;
}



.shiny-list span:hover .info-box {
  opacity: 1;
  pointer-events: auto;
}

.pagebreak {
  display: block;          
  margin: 20px auto;      
  max-width: 100%;          
  height: auto;            
}

.info-box strong {
  display: block;
  margin-bottom: 6px;
}

.search-bar {
  text-align: center;
  margin: 20px 0;
}

.search-bar input {
  width: 250px;                 /* decent width */
  padding: 10px 40px 10px 15px; /* room for icon on the right */
  border-radius: 25px;          /* rounded pill shape */
  border: 2px solid #444;       /* subtle border */
  background: #1a1a1a;          /* dark input background */
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.search-bar input::placeholder {
  color: #888;                  /* lighter placeholder */
}

.search-bar input:focus {
  border-color: #4a90e2;        /* nice blue highlight */
  box-shadow: 0 4px 12px rgba(74,144,226,0.5); /* glow */
  background: #222;             /* slight background shift */
}

.search-bar input:hover {
  border-color: #666;           /* subtle hover effect */
}



/* Rainbow border animation for Favourite Pokémon on hover */
.favourite-pokemon:hover {
  border: 3px solid;
  border-image-slice: 1;
  border-width: 3px;
  border-image-source: linear-gradient(
    45deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red
  );
  animation: rainbow-border 2s linear infinite;
}

/* Heart icon in top-left */
.favourite-heart {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 10px;       /* adjust size as needed */
  height: 10px;
  pointer-events: none; /* does not interfere with clicks */
  z-index: 7;         /* above GIF but below info box */
}

/* Optional: smooth rainbow animation keyframes */
@keyframes rainbow-border {
  0% { border-image-source: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet, red); }
  25% { border-image-source: linear-gradient(45deg, orange, yellow, green, blue, indigo, violet, red, orange); }
  50% { border-image-source: linear-gradient(45deg, yellow, green, blue, indigo, violet, red, orange, yellow); }
  75% { border-image-source: linear-gradient(45deg, green, blue, indigo, violet, red, orange, yellow, green); }
  100% { border-image-source: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet, red); }
}

.shiny-list span:hover .info-box strong {
  text-transform: capitalize;
}


/* Fix mobile overflow */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}




/* Fix search bar alignment */
#searchBar {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 10px auto 20px auto;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

.glow-pokemon {
  box-shadow:
    0 0 10px gold,
    0 0 18px rgba(255, 200, 0, 0.9),
    0 0 24px rgba(200, 100, 255, 0.9);
}

.glow-alphapokemon {
  box-shadow:
    0 0 10px rgb(255, 0, 0),
    0 0 18px rgba(255, 200, 0, 1.5),
    0 0 24px rgba(200, 100, 255, 1.5);
}

.glow-alphapokemon:hover {
  box-shadow:
    0 0 10px rgba(255, 9, 9, 0.884),
    0 0 18px rgba(255, 200, 0, 1.5),
    0 0 24px rgba(200, 100, 255, 1.5);
}

.glow-pokemon:hover {
  box-shadow:
    0 0 14px gold,
    0 0 24px rgba(255, 220, 0, 1),
    0 0 32px rgba(220, 120, 255, 1);
}

@media (max-width: 600px) {
  #main-container {
    padding: 12px;
  }

  .shiny-list{
    justify-content: center;
  }

  .gif-container:hover {
    transform: scale(1.1); /* slightly smaller zoom on phones */
  }
}


/* NAVIGATION BAR */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95); /* semi-transparent dark */
  backdrop-filter: blur(6px);         /* nice glassy effect */
  z-index: 2;                          /* above everything else */
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#top-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

#top-nav li {
  color: #aaa;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#top-nav li:hover {
  color: #4a90e2; /* subtle hover color */
  background: rgba(255,255,255,0.05);
}

#top-nav li.active {
  color: #fff;
  background: rgba(74, 144, 226, 0.2); /* active highlight */
  box-shadow: 0 0 10px rgba(74,144,226,0.5);
}

/* Ensure content isn’t hidden behind nav */
body {
  padding-top: 60px; /* adjust to nav height */
}

.message{
  color: #e2e2e2;
  text-align:center;
  font-size: 30px;
}
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* prevents background from affecting scroll */
  z-index: 0;
  background: url('/images/Shiny Showcase/bg0.jpg') center/cover no-repeat;
  animation: bgZoom 50s linear infinite;
  transform-origin: center;
}
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* crucial! */
  pointer-events: none;
  z-index: 1;
}

@keyframes bgZoom {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Shooting star style */
.star {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 20px #fff;
  pointer-events: none;
  z-index: 1;
}

.star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--tail-length, 200px);
  height: 5px;
  background: linear-gradient(90deg, white, rgba(255,255,255,0));
  transform-origin: left center;
  /* ONLY translate Y to center vertically, leave X at 0 so tail starts at star center */
  transform: translateY(-50%) rotate(var(--tail-rotate, 315deg));
  opacity: 0.6;
  pointer-events: none;
}


@media (max-width: 800px) {
/* Shooting star style */
.star {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 20px #fff;
  pointer-events: none;
  z-index: 1;
}

.star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--tail-length, 150px);
  height: 2px;
  background: linear-gradient(90deg, white, rgba(255,255,255,0));
  transform-origin: left center;
  /* ONLY translate Y to center vertically, leave X at 0 so tail starts at star center */
  transform: translateY(-50%) rotate(var(--tail-rotate, 315deg));
  opacity: 0.6;
  pointer-events: none;
}
}