@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almendra+SC&display=swap');

/* Banner */
.banner {
  display: block;
  width: 100vw;
  height: auto;
  object-fit: cover;
  margin: 0;
  box-shadow: 0 0 20px #d4af37;
}

/* Scroll Navigation Bar */
.scroll-nav {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 10px 0;
  background: url('../images/scroll.png') no-repeat center center;
  background-size: 100% 100%;
  box-shadow: 0 0 30px #ff5500, 
              0 0 60px #ff3c00,
              0 0 90px #ff0000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.scroll-nav li {
  display: inline-block;
  vertical-align: middle;
}

.scroll-nav a {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.scroll-nav a:hover {
  color: #ff3c00;
  animation: flicker 0.8s infinite;
  text-shadow: 0 0 5px #ff3c00, 0 0 10px #ff6600, 0 0 15px #ff0000;
}

/* Glowing Rune Dividers */
.rune {
  font-size: 1.2rem;
  text-shadow:
    0 0 8px #ff6600,
    0 0 16px #ff3c00,
    0 0 24px #ff0000,
    0 0 32px #ff5500;
  font-weight: bold;
  animation: pulseRune 1.8s infinite ease-in-out;
  margin: 0 10px;
  font-family: 'Uncial Antiqua', serif;
}

/* Animations */
@keyframes flicker {
  0%, 100% { text-shadow: 0 0 5px #ff3c00, 0 0 10px #ff6600; }
  50%      { text-shadow: 0 0 15px #ff0000, 0 0 20px #ff0000; }
}

@keyframes pulseRune {
  0%   { transform: scale(1); opacity: 0.8; }
  50%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes smokeDrift {
  0%   { transform: translateY(0); opacity: 0.2; }
  50%  { transform: translateY(-10px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 0.2; }
}

@keyframes emberGlow {
  0%, 100% { box-shadow: 0 0 10px #d4af37; }
  50%      { box-shadow: 0 0 20px #ff5500; }
}

@keyframes goldShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Reset and base layout */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #0f0f0f;
  background: linear-gradient(to bottom, #0f0f0f, #710101);
  color: #e0e0e0;
  font-family: 'Georgia', serif;
}

/* font */
h1, h2 {
  font-family: 'MedievalSharp', Georgia, serif;
  margin-top: 25px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.tagline {
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 10px;
  color: #d4af37;
}

blockquote, .lore {
  font-family: 'Uncial Antiqua', Georgia, serif;
  font-style: italic;
}

.character-name, .journal-entry {
  font-family: 'Almendra SC', Georgia, serif;
  font-weight: bold;
}

.glow-green {
  color: #00ff99;
  text-shadow: 0 0 5px #00ff99, 0 0 10px #00ff99, 0 0 15px #00ff99;
  font-weight: bold;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* Text Boxes */
.text-box {
  width: 95%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px;
  border: 2px solid #d4af37;
  border-radius: 10px;
  box-shadow: 0 0 10px #d4af37;
  background: radial-gradient(circle at top left, rgba(76, 75, 75, 0.879), rgba(0,0,0,0.6)),
  radial-gradient(circle at bottom right, rgba(29, 28, 28, 0.878), rgba(39, 36, 36, 0.566));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #e0e0e0;
}

.text-box.smoke1 {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/campfire.png') no-repeat center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  color: #f5f5dc;
  text-shadow: 1px 1px 3px #000;
  border: 2px solid #d4af37;
  border-radius: 10px;
  box-shadow: 0 0 10px #d4af37;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.text-box.smoke2 {
  background: radial-gradient(circle at top left, rgba(39, 36, 36, 0.767), rgba(29, 28, 28, 0.878)),
  radial-gradient(circle at bottom right, rgba(0,0,0,0.6), rgba(53, 52, 52, 0.879));
}

.text-box:hover {
  box-shadow: 0 0 20px #d4af37, 0 0 40px #710101;
  transition: box-shadow 0.4s ease;
}

/* Column Layout */
.column-container::after {
  content: "";
  display: table;
  clear: both;
}

.column {
  float: left;
  width: 48%;
  margin: 1%;
  padding: 20px;
  border: 2px solid #d4af37;
  border-radius: 8px;
  box-shadow: 0 0 8px #d4af37;
  background-color: rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  position: relative;
}

.column:hover {
  animation: emberGlow 3s infinite, goldShimmer 6s infinite ease-in-out;
  background: radial-gradient(circle at center, #ffd700 0%, #d4af37 40%, #a67c00 100%);
  background-size: 100% 100%;
  color: #000000;
}

.column:hover h2,
.column:hover h3,
.column:hover p {
  color: #000000;
  animation: flicker 1.2s infinite;
}

.column:hover .glow-green {
  color: #035a38;
  text-shadow: 0 0 4px #007f4f, 0 0 8px #007f4f, 0 0 12px #007f4f;
}

/* Smoke Overlay */
.column::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: smokeDrift 6s infinite ease-in-out;
}

/* Footer */
footer {
  width: 100vw;
  text-align: center;
  padding: 20px;
  color: #d4af37;
  background-color: #0f0f0f;
  font-family: 'MedievalSharp', Georgia, serif;
}

@media (max-width: 768px) {
  .column-container {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 30px;
    box-sizing: border-box;
  }

  .column {
    float: none;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
  }

  .text-box {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
  }

  .scroll-nav ul {
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
  }

  .scroll-nav a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .rune {
    font-size: 1rem;
    margin: 0 6px;
  }

  .banner {
    width: 100%;
    object-fit: cover;
  }

  footer {
    width: 100%;
    padding: 15px 20px;
    font-size: 0.9rem;
    box-sizing: border-box;
  }
}