/* ---  Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

.floating-gif {
  position: absolute;
  bottom: -40px;   /* hangs below the bookshelf */
  left: 20px;      /* adjust where you want it */
  width: 200px;
  border-radius: 6px;
  transform: rotate(3deg);
  z-index: 20;     /* above the bookshelf */
}


/* ✧ Wiki-style references ✧ */
#wiki-references {
  margin-left: 20px;
  margin-right: 20px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

#wiki-references li {
  margin-bottom: 6px;
}

/* ✧ Soft looping shimmer ✧ */
.shimmer {
  animation: shimmerGlow 3s ease-in-out infinite;
}

@keyframes shimmerGlow {
  0% {
    filter: drop-shadow(0 0 4px rgba(255, 230, 180, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 220, 150, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 230, 180, 0.4));
  }
}

/* ✧ Soft looping shimmer ✧ */
.shimmer2 {
  animation: shimmerGlow 3s ease-in-out infinite;
}

@keyframes shimmerGlow {
  0% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
  }
}

.rune-glow {
  color: #fff;
  text-shadow:
    0 0 6px #d8c2ff,
    0 0 12px #d8c2ff,
    0 0 20px #b38cff,
    0 0 30px #b38cff;
}

@keyframes pulseGlow {
  0% { text-shadow: 0 0 6px #d8c2ff; }
  50% { text-shadow: 0 0 20px #b38cff; }
  100% { text-shadow: 0 0 6px #d8c2ff; }
}

.rune-glow-animated {
  color: #fff;
  animation: pulseGlow 2s infinite ease-in-out;
}


.scribble-img {
  width: 200px;
  height: 200px;
  border: 3px solid #444;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
  outline: 2px dashed rgba(0,0,0,0.3);
  outline-offset: 4px;
  transform: rotate(-2deg);
}

.sticker-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: white;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 2px solid #d8c2ff;
  transform: rotate(1deg);
}

.scribble-sticker {
  width: 200px;
  height: 200px;

  /* Sticker backing */
  background: white;
  padding: 6px;
  border-radius: 12px;

  /* Cute pastel sticker border */
  border: 2px solid #d8c2ff;

  /* Soft sticker shadow */
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);

  /* Slight rotation for realism */
  transform: rotate(-2deg);

  /* Scribbled outline */
  outline: 2px dashed rgba(0,0,0,0.35);
  outline-offset: 4px;

  /* Make sure the image fits inside */
  object-fit: cover;
}


/* Apply handwritten font only to spell text */
.spellbook-handwriting {
  font-family: 'Patrick Hand', cursive;
  letter-spacing: 0.5px;
  font-size: 22px;
  line-height: 1.7;
  color: #333;
}



/* --- Navbar wrapper --- */
.nav-wrapper {
  position: relative;
  width: 100%;
  height: 120px;
}

/* --- Floating pink navbar --- */
.navbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: pink;
    box-shadow: 0 0 15px rgba(444,444,444,0.45);
  backdrop-filter: blur(6px);
  padding: 6px 0;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.5);
  width: 100%;
  max-width: 1000px;
  z-index: 1000;
  max-width: 100%;
}

.navbar2 {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
    padding: 20px;
  text-align: center;
    background: rgba(255,255,255,0.3);
       box-shadow: 0 0 15px rgba(444,444,444,0.45);
  backdrop-filter: blur(6px);
  padding: 6px 0;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.5);
  width: 100%;
  max-width: 1000px;
  z-index: 1000;
  max-width: 100%;
    backdrop-filter: blur(6px);
}




/* --- Navbar links --- */
.navbar a {
  font-family: "Caveat", cursive;
  font-size: 20px;
    text-align: center;
margin: 0 12px;
  text-decoration: none;
  color: #6a4a8a;
  padding: 6px 12px;
  border-radius: 10px;
  position: relative;
  transition: 0.25s ease;
}



.navbar a:hover {
  color: #d8c2ff;
  text-shadow: 0 0 6px rgba(216,194,255,0.8);
}

/* Crescent moon hover effect */
 .navbar a::before {
  content: "☽";
  position: absolute;
  left: -18px;
  top: 0;
  opacity: 0;
  transition: 0.25s ease;
}

.navbar a:hover::before {
  opacity: 1;
}

 .navbar a:hover {
  background: rgba(240,220,255,0.75);
  box-shadow: 0 0 12px rgba(200,170,255,0.6);
  color: #4a2a6a 
}
/* --- WIKI NAVBAR (crescent theme) --- */
#wiki-nav {
  text-align: center;
  margin-bottom: 25px;
  padding: 14px 0;
  background: rgba(255,255,255,0.6);
  border-radius: 16px;
  box-shadow: 0 0 14px rgba(180,150,255,0.45);
  backdrop-filter: blur(5px);
}

#wiki-nav a {
  margin: 0 14px;
  text-decoration: none;
  color: #6a4a8a;
  font-weight: bold;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 10px;
  position: relative;
  transition: 0.25s ease;
}

#wiki-nav a::before {
  content: "☽";
  position: absolute;
  left: -18px;
  top: 0;
  opacity: 0;
  transition: 0.25s ease;
}

#wiki-nav a:hover::before {
  opacity: 1;
}

#wiki-nav a:hover {
  background: rgba(240,220,255,0.75);
  box-shadow: 0 0 12px rgba(200,170,255,0.6);
  color: #4a2a6a;
}


/* --- 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);
}

/* --- Global --- */
body {
  background: url("Background.png") no-repeat fixed;
  background-size: 100% 100%;
  color: white;
  font-family: "Caveat", cursive;
  font-weight: 500;
  z-index: 0;
}

/* --- Content Box --- */
.content {
  position: relative;
  color: #444;
  z-index: 2.5;
}

/* --- Journal --- */
.journal-img {
  opacity: 0.9;
  filter: drop-shadow(0 0 12px #d8c2ff);
}

/* Text paragraphs */
.text-box {
  max-width: none;
  line-height: 1.6;
  font-size: 22px;
  color: #444;
}

.text-box p {
  text-indent: 30px;
}

/* Titles */
.lore-title {
  font-size: 24px;
  color: purple;
  margin: 20px 0 10px;
}

.header1-title {
  font-size: 30px;
  color: purple;
  margin: 20px 0 10px;
}

/* --- Polaroid --- */
.polaroid {
  width: 150px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #d8c2ff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  text-align: center;
  float: right;
  margin-left: 20px;
  position: relative;
  z-index: 10;
}

.polaroid img {
  width: 100%;
  border-radius: 6px;
}

.polaroid p {
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: purple;
  margin-top: 8px;
}


/* --- Stationary --- */

hl, g1, g2 {
  display: inline;
}

/* Greys */
g1 { color: #2f2f2f; }   /* dark pencil grey */
g2 { color: #7a7a7a; }   /* light pencil grey */

/* Highlight (real highlighter effect) */
hl {
  background: rgba(247, 216, 74, 0.45); /* warm transparent yellow */
  padding: 0 2px;                       /* optional: makes highlight look smoother */
}
hlp {
  background: rgba(255, 182, 193, 0.45); /* pastel pink */
  padding: 0 3px;
  border-radius: 3px;
}


/* Tape */
.tape-yellow {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 45px;
  background: linear-gradient(135deg, #fff7c2, #ffe9a6);
  opacity: 0.95;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  mix-blend-mode: multiply;
}

.tape-white-1,
.tape-white-2 {
  position: absolute;
  top: -10px;
  width: 40px;
  height: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid white;
}

.tape-white-1 {
  left: -10px;
  transform: rotate(-15deg);
}

.tape-white-2 {
  right: -10px;
  transform: rotate(20deg);
}


.taped-photo {
  position: relative;
  width: 260px;
  margin: 20px auto;
}

.taped-photo img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 0 12px rgba(180,150,255,0.5);
}

/* Tape pieces */
.tape {
  position: absolute;
  width: 120px;
  height: 35px;
  background: rgba(255, 255, 200, 0.7);
  border-radius: 4px;
  transform: rotate(-6deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tape.top-left {
  top: -15px;
  left: -20px;
  transform: rotate(-12deg);
}

.tape.top-right {
  top: -15px;
  right: -20px;
  transform: rotate(8deg);
}



/* --- Gallery --- */

.masonry {
  column-count: 6;
  column-gap: 20px;
  overflow: visible;
}

.masonry a {
  display: block;
  break-inside: avoid;
}

.masonry img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 2px solid #d8c2ff;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeIn 0.6s ease forwards;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.masonry img:hover {
  transform: scale(5);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 20;
  position: relative;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px;
}

.masonry a {
  display: block;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry img {
  width: 100%;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: rotate(var(--tilt, 2deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✧ Hover magic ✧ */
.masonry a:hover img {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 12px 30px rgba(255, 180, 255, 0.6);
}

/* ✧ Random tilt for each image ✧ */
.masonry a:nth-child(odd) img {
  --tilt: 2deg;
}
.masonry a:nth-child(even) img {
  --tilt: -2deg;
}

/* ✧ Optional sticker glow ✧ */
.masonry a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 200, 255, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.masonry a:hover::after {
  opacity: 1;
}


/* --- Footer --- */
footer {
  color: purple;
  font-family: "Caveat", cursive;
  font-weight: 400;
  text-align: center;
  margin-top: 40px;
  opacity: 0.9;
}

