/* 🌌 Base Reset & Font */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background-color: #0a0f0c;
  background-image: url('images/forest-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  color: #dfe6e0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ✨ Container */
#container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* 🖼️ Header */
#header {
  background-image: url('images/foggy-trees.jpg');
  background-size: cover;
  background-position: center;
  height: 200px;
  text-align: center;
  padding-top: 40px;
  color: #cfd2cd;
  text-shadow: 0 0 15px rgba(163,196,243,0.6);
}

#header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

#header p {
  font-size: 1.2em;
  color: #aab4aa;
}

/* 🧭 Navigation */
#navbar {
  background-color: rgba(10,15,12,0.9);
  border-top: 1px solid #2e3b32;
  border-bottom: 1px solid #2e3b32;
}

#navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

#navbar li {
  position: relative;
}

#navbar a {
  display: block;
  padding: 15px 20px;
  color: #cfd2cd;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar a:hover {
  background-color: #1b2b23;
  color: #a3c4f3;
  box-shadow: 0 0 10px rgba(163,196,243,0.3);
}

/* 📐 Layout */
#flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

aside {
  background-color: rgba(27,43,35,0.8);
  width: 250px;
  padding: 20px;
  font-size: smaller;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(163,196,243,0.1);
  position: sticky;
  top: 20px;
}

main {
  background-color: rgba(15,23,19,0.85);
  flex: 1;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(163,196,243,0.1);
  animation: fadeInMain 1s ease forwards;
  opacity: 0;
}

/* 🖤 Typography */
h1, h2, h3 {
  color: #a3c4f3;
  text-shadow: 0 0 5px rgba(163,196,243,0.5);
}

strong {
  color: #cfd2cd;
}

/* 📦 Sidebar Box */
.box {
  background-color: rgba(15,23,19,0.85);
  border: 1px solid rgba(163,196,243,0.2);
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 🖋️ Commission Status */
.commission-status p {
  font-weight: bold;
  margin-bottom: 6px;
}

.status {
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
}

.status.open {
  background-color: #3a5a40;
  color: #fff;
  box-shadow: 0 0 8px rgba(58,90,64,0.6);
  animation: pulseOpen 2.5s ease-in-out infinite;
}

.status.closed {
  background-color: #5c2b29;
  color: #fff;
  box-shadow: 0 0 8px rgba(92,43,41,0.6);
  animation: emberGlow 3s ease-in-out infinite;
}

.status-link {
  display: inline-block;
  margin-top: 6px;
  color: #a3c4f3;
  text-decoration: none;
  font-weight: bold;
}

.status-link:hover {
  color: #fff;
}

/* 🧭 Social Links & Forest Lore */
.social-links h3,
.forest-lore h3 {
  color: #a3c4f3;
  margin-bottom: 8px;
}

.social-links ul {
  list-style: none;
  padding-left: 0;
}

.social-links li {
  margin-bottom: 6px;
}

.social-links a {
  color: #cfd2cd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #a3c4f3;
}

.forest-lore p {
  font-style: italic;
  color: #a3c4f3;
  background-color: rgba(163,196,243,0.05);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(163,196,243,0.1);
}

/* 🖼️ Sidebar Image */
.sidebar-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(163,196,243,0.2);
  object-fit: cover;
  opacity: 0;
  animation: fadeInImage 1s ease forwards;
  transition: all 0.3s ease;
}

.sidebar-img:hover {
  box-shadow: 0 0 20px rgba(163,196,243,0.4);
  transform: scale(1.02);
}

#daily-quote {
  opacity: 0;
  transition: opacity 1s ease;
}

#daily-quote.show {
  opacity: 1;
}

@keyframes hovering {
  from { margin-bottom: 3px; }
  to { margin-bottom: 0; }
}


.msgWrapper {
  margin: 5px;
}

.allMessages {
  display: flex;
  gap: 2.5vh;
  background: rgba(27, 43, 35, 0.9);
  border: 1px solid rgba(163, 196, 243, 0.2);
  font-size: 9pt;
  border-radius: 8px;
  margin: 0;
  line-height: 1.4em;
  position: relative;
  color: #cfd2cd;
  width: auto;
  padding: 8px;
  box-shadow: 0 0 6px rgba(163, 196, 243, 0.1);
}

.msgWrapper:nth-child(6n) {
  margin-top: 20px;
}

.msgWrapper:nth-child(6n) > .allMessages:before {
  content: attr(time);
  position: absolute;
  bottom: calc(100% + 3px);
  width: 100%;
  text-align: center;
  color: #7fbf7f;
  font-style: italic;
  font-size: 7pt;
}

br {
  height: 6pt;
}

.allMessages:hover:after {
  content: ' ';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background-color: rgba(163, 196, 243, 0.05);
  pointer-events: none;
}

.senderInfo {
  display: block;
  margin: 2px;
  font-family: 'Cinzel', serif;
  font-style: italic;
  font-weight: bold;
  text-align: justify;
  min-width: 50px;
  max-width: 30%;
  word-break: break-word;
  color: #a3c4f3;
}

#background {
  background-color: #0f1713;
}

.msgBody {
  text-align: justify;
  cursor: text;
  color: #cfd2cd;
}

#input, #nameEntry {
  color: #fff;
  background-color: rgba(15, 23, 19, 0.85);
  border: 1px solid #a3c4f3;
  font-family: 'Cinzel', serif;
  font-size: 9pt;
  padding: 8px;
  width: calc(100% - 16px);
  box-sizing: border-box;
  border-radius: 8px;
  margin: 0;
  border-top: solid 1px #7fbf7f;
}

#input:focus, #nameEntry:focus {
  outline: dotted 1px #a3c4f3;
}

#input:empty::before {
  content: "Whisper to the forest...";
  color: #7fbf7f;
  font-style: italic;
}

a {
  font-family: inherit;
  color: #a3c4f3;
}

#timestamp {
  color: #7fbf7f;
  text-align: center;
  font-size: 8pt;
  margin: 0;
}

#timestamp:after {
  content: "\2934";
  font-size: 12pt;
  font-weight: bold;
  color: #a3c4f3;
}

.badge {
  display: none;
}

.senderInfo:has(.owner) {
  color: #f33;
}

.senderInfo:has(.mod) {
  color: #3f3;
}

#top_banner {
  display: none;
}

#settings {
  filter: invert(50%);
  opacity: 0.75;
}

#settings:hover {
  filter: invert(10%);
}

blockquote {
  font-style: italic;
  color: #a3c4f3;
}

#loadMore {
  font-size: 10pt;
  font-family: 'Cinzel', serif;
  color: #a3c4f3;
}

.pinned {
  position: sticky;
  top: 0;
  z-index: 2;
  border-radius: 5px;
  max-height: 15vh;
  overflow: hidden;
  cursor: default;
  background-color: rgba(27, 43, 35, 0.95);
}

.pinned:hover {
  max-height: none;
  height: auto;
  box-shadow: 0px 2px 5px #000;
}

.pinned::before {
  content: "\23F7";
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 15vh;
  max-height: 15vh;
  animation: 500ms linear infinite alternate hovering;
  color: #a3c4f3;
}

.pinned:hover::before {
  display: none;
}

.pinned > .allMessages {
  box-shadow: 0 0 3px #a3c4f3;
}

.pinned > .allMessages:hover {
  box-shadow: none;
}

.pinned > .allMessages::before {
  content: " ";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 15vh;
  max-height: 100%;
  background: linear-gradient(transparent, transparent, #333);
  opacity: 0.75;
}

.pinned > .allMessages:hover::before {
  display: none;
}

.pinned:after {
  display: inline-block;
  position: absolute;
  right: 2px;
  top: 2px;
  content: "📌";
  color: #a3c4f3;
}

#replyBanner {
  font-size: 8pt;
  font-family: 'Cinzel', serif;
  color: #a3c4f3;
}

#is_typing {
  background-color: rgba(15, 23, 19, 0.85);
  border: solid 1px #a3c4f3;
  height: 15px;
  border-radius: 8px;
  left: calc(50% - 15px);
}

#is_typing > span {
  background-color: #a3c4f3;
}

pre:has(>code) {
  margin: 5px;
  background-color: rgba(163, 196, 243, 0.1);
  color: #cfd2cd;
  padding: 8px;
  border-radius: 6px;
}


/* Input field */
#input {
  background-color: rgba(15, 23, 19, 0.85);
  border: 1px solid #a3c4f3;
  color: #fff;
  padding: 5px;
  border-radius: 8px;
  width: 100%
}

#input:empty::before {
  content: "Whisper to the forest...";
  color: #7fbf7f;
  font-style: italic;
}

/* Top banner */
#top_banner {
  background-color: transparent;
  color: #a3c4f3;
  font-size: 1.2em;
  border-bottom: 1px solid rgba(163, 196, 243, 0.2);
}

/* Footer */
.chattable-footer {
  background-color: transparent;
  color: #a3c4f3;
  font-size: 0.8em;
  text-align: center;
}

#input {
  vertical-align: middle;
  height: 28px;
}

.emoji {
  vertical-align: middle;
  height: 40px;
  padding: 0 8px;
  font-size: 1.2em;
  border-radius: 8px;
  display: inline-block;
}



/* 🦉 Raven NPC Quote */
#quote {
  margin-top: 40px;
  text-align: center;
}
.chat-log p {
  animation: fadeInMessage 0.6s ease forwards;
}

@keyframes fadeInMessage {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.raven-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.raven-clickable {
  position: relative;
  cursor: pointer;
}

.click-hint {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2em;
  color: #a3c4f3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.raven-clickable:hover .click-hint {
  opacity: 1;
}

.raven-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(163,196,243,0.3);
  animation: floatRaven 3s ease-in-out infinite, blinkRaven 6s steps(1) infinite;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.raven-clickable:hover .raven-img {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--velka-glow);
}

.quest-link {
  display: block;
  margin-top: 10px;
  color: #a3c4f3;
  font-weight: bold;
  text-decoration: none;
  animation: spiritGlow 1.2s ease forwards;
}

.quest-link:hover {
  color: #fff;
  text-shadow: 0 0 5px rgba(163,196,243,0.5);
}

.quote-bubble {
  background-color: rgba(163,196,243,0.08);
  border: 1px solid rgba(163,196,243,0.2);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(163,196,243,0.1);
  font-style: italic;
  color: #a3c4f3;
  max-width: 400px;
  animation: fadeInQuote 1s ease forwards;
  position: relative;
}

.quote-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(163,196,243,0.3) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0;
  animation: sparkleTrail 1s ease forwards;
}

#velka-profile {
  margin-top: 1px;
  background-color: rgba(163,196,243,0.05);
  border: 1px solid rgba(163,196,243,0.2);
  padding: 5px;
  border-radius: 10px;
  color: #a3c4f3;
  text-align: left;
  box-shadow: 0 0 5px rgba(100,196,243,0.1);
  font-style: italic;
}

.dialogue-options {
  margin-top: 10px;
  text-align: center;
}

.dialogue-options button {
  background-color: rgba(163,196,243,0.1);
  border: 1px solid rgba(163,196,243,0.3);
  color: #a3c4f3;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.dialogue-options button:hover {
  background-color: rgba(163,196,243,0.3);
  color: #fff;
}

/* 🎠 Artwork Carousel */
#art-carousel {
  margin-top: 40px;
  text-align: center;
}

.carousel {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  border-radius: 10px;
}

.carousel-img.active {
  opacity: 1;
  z-index: 1;
}

/* 📝 Latest Blog Preview */
#latest-blog {
  margin-top: 40px;
}

.blog-preview {
  background-color: rgba(27,43,35,0.85);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(163,196,243,0.1);
}

.blog-preview h3 {
  color: #a3c4f3;
  margin-bottom: 10px;
}

.blog-preview p {
  color: #cfd2cd;
  margin-bottom: 10px;
}

.read-more {
  color: #a3c4f3;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  color: #fff;
}

/* 📬 Contact Form */
#contact {
  margin-top: 40px;
  background-color: rgba(15, 23, 19, 0.85);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(163,196,243,0.1);
  opacity: 0;
  animation: fadeInContact 1s ease forwards;
}

#contact h2 {
  text-align: center;
  color: #a3c4f3;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(163,196,243,0.4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  font-weight: bold;
  color: #a3c4f3;
}

.contact-form input,
.contact-form textarea {
  background-color: rgba(27, 43, 35, 0.9);
  border: 1px solid rgba(163,196,243,0.2);
  border-radius: 6px;
  padding: 10px;
  color: #fff;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a3c4f3;
  box-shadow: 0 0 8px rgba(163,196,243,0.4);
}

.contact-form button {
  background-color: #3a5a40;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  background-color: #4f7a5a;
  box-shadow: 0 0 12px rgba(163,196,243,0.3);
}

/* ✅ Confirmation Message */
#form-message {
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#form-message.show {
  opacity: 1;
}

.message-box {
  display: inline-block;
  background-color: rgba(163,196,243,0.08);
  border: 1px solid rgba(163,196,243,0.2);
  padding: 15px 25px;
  border-radius: 10px;
  color: #a3c4f3;
  box-shadow: 0 0 15px rgba(163,196,243,0.3);
  animation: spiritGlow 1.2s ease forwards;
  position: relative;
}

.hidden {
  display: none;
}

/* 🧚 Footer */
footer {
  background-color: rgba(10,15,12,0.9);
  color: #aab4aa;
  text-align: center;
  padding: 10px;
  margin-top: 40px;
  font-size: 0.9em;
}

/* 📱 Responsive */
@media only screen and (max-width: 800px) {
  #flex {
    flex-direction: column;
  }

  aside {
    width: 100%;
  }

  #navbar ul {
    flex-wrap: wrap;
  }
}

/* ✨ Animations */
@keyframes pulseOpen {
  0%, 100% {
    box-shadow: 0 0 6px rgba(58,90,64,0.6),
                0 0 12px rgba(163,196,243,0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 10px rgba(58,90,64,0.8),
                0 0 18px rgba(163,196,243,0.4);
    transform: scale(1.05);
  }
}

@keyframes emberGlow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(92,43,41,0.6),
                0 0 12px rgba(191,87,73,0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 10px rgba(92,43,41,0.8),
                0 0 18px rgba(191,87,73,0.4);
    transform: scale(1.03);
  }
}

@keyframes fadeInImage {
  to { opacity: 1; }
}

@keyframes fadeInMain {
  to { opacity: 1; }
}

@keyframes fadeInContact {
  to { opacity: 1; }
}

@keyframes floatRaven {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes blinkRaven {
  0%, 90% { filter: brightness(1); }
  95%, 100% { filter: brightness(0.6); }
}

@keyframes fadeInQuote {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes sparkleTrail {
  0% { opacity: 0; }
  50% { opacity: 0.4; }
  100% { opacity: 0; }
}

@keyframes spiritGlow {
  0% {
    transform: scale(0.9);
    opacity: 0;
    box-shadow: 0 0 0 rgba(163,196,243,0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(163,196,243,0.4);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(163,196,243,0.3);
  }
}

