/* === Global Styles === */

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-image: url('forest.jpg'); /* Replace with your static background */
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
  overflow-x: hidden;
}

/* === Firefly Container === */
.firefly-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0; /* Always behind your content */
}

.firefly {
  position: absolute;
  background: radial-gradient(circle, #ffff99 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.8;
  will-change: transform;
  z-index: 0;
}

/* === Header === */
header {
  font-family: "MedievalSharp", cursive;
  color: #ffb6c1; /* light pink */
  font-size: 2.5em;
  text-align: center;
  padding: 1em 0;
  z-index: 2; /* on top of fireflies */
}

/* === Navigation Links === */
nav a {
  display: block;
  text-align: center;
  font-family: monospace;
  color: white;
  text-decoration: none;
  margin: 0.5em 0;
  z-index: 2;
}

nav a:hover {
  text-decoration: underline;
}

/* === Scalable Content Box === */
.content-box {
  background-color: #e6ccff; /* light purple */
  color: #4b0082; /* dark purple */
  font-family: monospace;
  font-size: 16px;
  margin: 1em auto;
  padding: 1em;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 2;
  position: relative;
}

/* === Shrine Elements === */
@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 20px rgba(255, 100, 255, 0.6))
            drop-shadow(0 0 40px rgba(255, 100, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1))
            drop-shadow(0 0 30px rgba(255, 100, 255, 0.8))
            drop-shadow(0 0 60px rgba(255, 100, 255, 0.4));
  }
}

.shrine-container {
  position: relative;
  width: 250px;
  height: 172px;
  margin: 50px auto;
  background-color: transparent;
  margin-bottom: 200px;
  z-index: 2;
}

.velvet {
  position: absolute;
  top: 67px;
  left: 50%;
  transform: translateX(-50%);
  width: 281px;
  z-index: 1;
}

.altar {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}

.candle {
  position: absolute;
  top: 90px;
  width: 60px;
  z-index: 3;
}

.candle.left {
  left: 30px;
}

.candle.right {
  right: 30px;
}

.character {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  z-index: 4;
  animation: glowPulse 3s ease-in-out infinite;
}

.flowers {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  z-index: 5;
}

.frame {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  z-index: 6;
  pointer-events: none;
}

/* === Firefly Movement Keyframes === */
@keyframes move {
  from {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  to {
    transform: translate(var(--xMove), var(--yMove));
    opacity: 1;
  }
}

/* === Responsive tweaks === */
@media (max-width: 600px) {
  header {
    font-size: 2em;
  }

  .content-box {
    padding: 1.5em;
  }
}

/* === Decorative Images === */
.floating-img {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 250px; /* adjust size */
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

.left-float {
  left: 0;
  margin-left: 20px;
}

.right-float {
  right: 0;
  margin-right: 20px;
}

@keyframes float {
  0%   { transform: translateY(-50%) translateY(0); }
  50%  { transform: translateY(-50%) translateY(-10px); }
  100% { transform: translateY(-50%) translateY(0); }
}

/* 🔒 Hides images on screens narrower than 768px */
@media (max-width: 768px) {
  .floating-img {
    display: none;
  }
}

  [data-widget="copykitty"].ck-box {
    --ck-bg: #ede3ff;
    --ck-fg: #111111;
    --ck-muted: #666666;
    --ck-border: #e6e6e6;
    --ck-accent: #2b6cb0;

    background: var(--ck-bg);
    color: var(--ck-fg);
    border: 1px solid var(--ck-border);
    padding: 12px; /* replaced inline */
    max-width: 620px; /* replaced inline */
    display: flex;
    align-items: flex-start;
    gap: 12px; /* replaced inline */
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    font-family: monospace;
    line-height: 1.45;
  }

  @media (prefers-color-scheme: dark) {
    [data-widget="copykitty"].ck-box {
      --ck-bg: #0c0c0d;
      --ck-fg: #f2f2f2;
      --ck-muted: #bbbbbb;
      --ck-border: #2a2a2a;
      --ck-accent: #7db0ff;
      box-shadow: 0 1px 2px rgba(0,0,0,0.6);
    }
  }

  [data-widget="copykitty"] .ck-media {
    flex: 0 0 auto;
    width: 72px; /* replaced inline */
    height: 72px; /* replaced inline */
    overflow: hidden;
    background: var(--ck-bg);
    image-rendering: pixelated;
  }
  [data-widget="copykitty"] .ck-media img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    display: block;
    image-rendering: pixelated;
  }

  [data-widget="copykitty"] .ck-content { flex: 1 1 auto; min-width: 0; }
  [data-widget="copykitty"] .ck-title {
    margin: 2px 0 8px 0; 
    font-size: 1.25rem; 
    font-weight: 700;
  }
  [data-widget="copykitty"] .ck-body { margin: 0; font-size: 0.98rem; color: var(--ck-fg); }
  [data-widget="copykitty"] .ck-body p { margin: 0 0 8px 0; }
  [data-widget="copykitty"] .ck-muted { color: var(--ck-muted); font-size: 0.92rem; }
  [data-widget="copykitty"] a { color: var(--ck-accent); text-decoration: underline; text-underline-offset: 2px; }
  [data-widget="copykitty"] a:hover { text-decoration-thickness: 2px; }

  @media (max-width: 520px) {
    [data-widget="copykitty"].ck-box { flex-direction: column; align-items: stretch; }
    [data-widget="copykitty"] .ck-media { width: 100%; height: auto; max-height: 220px; }
  }

