/* ---------------------------------------------------------
   MAGICAL-GIRL SHRINE AESTHETIC
   Pastel pink base + purple neon glow + scrapbook elements
   + MANY floating magical glyphs
--------------------------------------------------------- */

.manga-spread {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* optional spacing */
  margin: 20px auto;
}

.manga-spread img {
  display: block;
}


/* Background: soft pastel pink with a glowing purple aura + img */
body {
  background: no-repeat fixed;
  background-size: 100%;
  color: white;
  font-family: "Caveat", cursive;
  color: #4a2a6a;
  margin: 0;
  padding: 40px;
  
  font-weight: 500;
  z-index: 0;

  /* allow glyphs to float over everything */
  position: relative;
  overflow-x: hidden;
}

/* Soft white overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
background: rgba(255, 255, 255, 0.30);
  pointer-events: none;
  z-index: -1;
  
}

@keyframes bgShift {
  0% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

/* Shrine wrapper: glowing pastel box */
#shrine-page {
  max-width: 900px;
  margin: auto;
  background: rgba(255,255,255,0.78);
  padding: 35px;
  border-radius: 28px;
  box-shadow: 0 0 30px rgba(210, 120, 255, 0.45);
  position: relative;
  z-index: 1000;
}

/* ---------------------------------------------------------
   UNIVERSAL MAGIC GLYPH SYSTEM — CLEAN + NON-GLITCHING
--------------------------------------------------------- */

/* Magic layer container */
.magic-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999; /* always above everything */
  overflow: hidden;
}

/* Auto-generated glyphs */
.magic-layer .glyph {
  position: absolute;
  font-size: 18px;              /* safe size */
  line-height: 1;
  color: rgba(255,255,255,0.95);
  text-shadow: 
    0 0 8px #ff9cff,
    0 0 14px #ffbfff;
  animation: glyphFloat 10s ease-in-out infinite;
  overflow: hidden;
  max-width: 24px;              /* prevents stretching */
  max-height: 24px;
}

/* Manual shrine glyphs */
.magic-glyph {
  position: absolute;
  font-size: 22px;
  color: rgba(255,255,255,0.95);
  text-shadow: 
    0 0 10px #ff9cff,
    0 0 18px #ffbfff;
  animation: glyphFloat 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 1000; /* above shrine wrapper */
}

/* Floating animation */
@keyframes glyphFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50%  { transform: translateY(-20px) rotate(10deg); opacity: 1; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
}

/* ---------------------------------------------------------
   MAGICAL-GIRL NAVIGATION BAR
   Pastel purple glow + soft scrapbook tabs
--------------------------------------------------------- */

.navbar {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(210, 120, 255, 0.45);
  display: flex;
  justify-content: center;
  gap: 28px;
  position: relative;
  z-index: 1001; /* above shrine wrapper */
}

.navbar a {
  font-family: "Caveat", cursive;
  font-size: 18px;
  text-decoration: none;
  color: #b04aff;
    text-align: center;
  padding: 6px 14px;
  border-radius: 12px;
  transition: 0.3s ease;
  background: transparent
}

.navbar a:hover {
  transform: scale(1.08);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 18px rgba(255,150,255,0.65);
  color: #d38aff;
}


/* Shrine title */
.shrine-title {
  text-align: center;
  font-size: 42px;
  color: #b04aff;
  text-shadow: 0 0 12px #ffbfff;
  margin-bottom: 25px;
}

/* Shrine grid layout */
.shrine-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

/* Shrine link cards (hub page) */
.shrine-card {
  width: 230px;
  background: rgba(255,255,255,0.85);
  padding: 22px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 0 18px rgba(255,150,255,0.45);
  transition: 0.3s ease;
}

.shrine-card:hover {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(255,150,255,0.75);
}

.shrine-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 12px;
}

.shrine-card a {
  text-decoration: none;
  font-size: 22px;
  color: #b04aff;
  font-weight: bold;
}

/* --- LOCAL MUSIC PLAYER --- */
#wiki-player {
  position: fixed;
  top: 20px;
  right: 50px;
  width: 250px;
  height: 80px;
  border: none;
  background: transparent;
  z-index: 9999;
}

/* --- Music Player --- */

#music-frame {
  position: fixed;
  top: 20px;
  right: 30px;
  width: 223px;
  height: 80px;
  border: none;
  background: rgba(255,255,255,0.01);
  z-index: 10000;
  pointer-events: auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Polaroid images (individual shrine pages) */
.polaroid {
  width: 210px;
  background: white;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid #e3c2ff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  text-align: center;
  margin: 25px;
  transform: rotate(-2deg);
  position: relative;
}

.polaroid img {
  width: 100%;
  border-radius: 10px;
}

.polaroid .caption {
  font-size: 18px;
  margin-top: 10px;
  color: #b04aff;
}

/* Scrapbook tape */
.tape {
  position: absolute;
  width: 85px;
  height: 32px;
  background: rgba(255,255,200,0.75);
  border-radius: 4px;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
}

.rainbow-text {
  background: linear-gradient(
    90deg,
    #ffb7e6,
    #f3b7ff,
    #cdb7ff,
    #b7e6ff,
    #b7ffd9,
    #ffeeb7
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  display: inline-block;
}

