/* Global Styles */
body {
  font-family: 'Lora', serif;
  line-height: 1.7;
  color: #222;
  background-color: #e2e0dd;
  padding: 30px;
  margin: 0;
  padding-top: 60px;
}

a {
  text-decoration: none;
  color: inherit;
}




/* Container Styles */
.container {
  max-width: 700px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
}

/* Page Title Styles */
.page-title {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 48px;
  color: #33221f;
  margin-bottom: 30px;
  /*text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);*/
  padding-top: 20px;
}

/* Heading Styles */
h1 {
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Andale Mono', serif;
  font-size: 28px;
}

h2 {
  color: #4a3933;
  margin-bottom: 25px;
}

/* Paragraph Styles */
p {
  text-indent: 0;
  margin: 25px 0;
  margin-left: 30px;
  font-size: 18px;
}

/* Image Styles */
.chapter img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 5px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}


.image-caption {
  text-align: center;
  color: #666;
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 30px;
}

/* Story End Styles */
.the-end {
  text-align: center;
  padding-top: 30px;
}

.the-end p {
  font-family: 'Georgia', serif;
  text-align: center;
  font-size: 2.2em;
  margin: 20px auto 60px;
  color: #666;
}

/* Story Divider Styles */
.story-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  margin: 30px 0;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #222222;
  color: #f0f0f0;
}

body.dark-mode .header-container {
  background-color: #333;
  color: #f0f0f0;
  box-shadow: 0 2px 5px rgb(101, 101, 101);
}

body.dark-mode .header-container a,
body.dark-mode .story p {
  color: #f0f0f0;
}

body.dark-mode .container {
  background-color: #333;
  color: #f0f0f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .container p {
  color: #ddd;
}

body.dark-mode .container .image-caption {
  color: #919090;
}

body.dark-mode h1,
body.dark-mode h2,

body.dark-mode .page-title {
  color: #f0f0f0;
}

body.dark-mode .story-divider {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}

body.dark-mode .site-footer {
  color: #f0f0f0;
}

body.dark-mode .story-info {
  background-color: #383838;
  color: #e0e0e0;
}

body.dark-mode .story {
  background-color: #303030;
}

/* Dark Mode Toggle Styles */
.dark-mode-toggle {
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  border-radius: 20px;
  width: 40px;
  height: 20px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dark-mode-toggle:before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

body.dark-mode .dark-mode-toggle {
  background-color: #666;
}

body.dark-mode .dark-mode-toggle:before {
  transform: translateX(20px);
  background-color: #ddd;
}

/* Library Container Styles */
.library-container {
  max-width: 1200px;
  margin: 10px auto;
  padding: 10px;
  text-align: center;
  padding-top: 40px;
}

/* Stories Grid Styles */
.stories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.story {
  width: 240px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  padding: 10px;
}

.story img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

.story p {
  text-align: center;
  font-size: 16px;
  color: #4a3933;
  margin: 5px 0 5px 0;
}

/* Story Info Styles */
.story-info {
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 5px;
  padding: 3px;
  margin-top: 10px;
}

.story-info p {
  font-size: 16px;
  margin-top: 8px;
}

.story-info table {
  width: 100%;
  margin: 2px;
  font-size: 10px;
}

.story-info table td {
  text-align: left;
  padding: 2px 5px;
}

.story-info td:first-child {
  font-weight: bold;
  white-space: normal;
}

/* Story Tags Styles */
.story-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.story-tag {
  background-color: #e2e0dd;
  color: #4a3933;
  padding: 5px 10px;
  border-radius: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 10px;
  display: inline-block;
  line-height: 1.5;
}

body.dark-mode .story-tag {
  background-color: #424242;
  color: #ddd;
}

/* Publication Date Styles */
.story .pub-date {
  font-size: 12px;
  color: #a0a0a0;
  display: block;
  margin-bottom: 5px;
}

/* Audio Narration Styles */
.audio-narration {
  text-align: center;
  margin: 20px 0;
  padding: 0px;
  color: #4a3933;
  border-radius: 5px;
  
}

audio {
  width: 100%;
}

body.dark-mode .audio-narration {
  color: #e0e0e0;
}

.audio-narration .audio-thumbnail-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.narration-thumbnail {
  width: 100px;
  height: auto;
  border-radius: 5px;
}

/* Footer Styles */
.site-footer p {
  text-align: center;
  font-family: 'Andale Mono', serif;
  margin-left:0px;
  margin-top: 30px;
  left: 0;
  right: 0;
  font-family: 'Lora', serif;
  font-size: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .header-container {
    padding: 10px 15px;
  }

  .container,
  .library-container {
    padding: 15px;
    margin: 15px auto;
  }

  .library-container {
    padding-top: 60px; /* Increase padding on mobile devices */
  }

  .page-title,
  .chapter img,
  .story p,
  .image-caption {
    margin-left: 0;
    margin-right: 0;
  }

  p {
    margin: 15px 0;
  }

  .audio-narration .audio-thumbnail-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .narration-thumbnail {
    width: 80px;
  }

}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 1000;
  padding: 10px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

body.dark-mode .header-container {
  background-color: #333;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-title {
  font-family: 'Playfair Display', serif;
  font-size:24px;
  margin-left:10px;

}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 20px;
  cursor: pointer;
  margin-right: 10px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #4a3933;
  transition: background-color 0.3s ease;
}

body.dark-mode .hamburger span {
  background-color: #fff;
}

.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

body.dark-mode .menu {
  background-color: #333;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.menu.show {
  display: flex;
  flex-direction: column;
}

.menu-item {
  margin: 10px 0;
  color: #4a3933;
  transition: color 0.3s ease;
}

body.dark-mode .menu-item {
  color: #fff;
}

.countdown-container {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
}

#countdown {
  font-weight: bold;
}

body.dark-mode .countdown-container {
  color: #fff;
}

.chapter p a {
  text-decoration: underline;
}

.intro-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px; /* Add margin at the bottom */
}

.intro-container p {
  font-size: 18px;
  color: #4a3933;
  margin: 0;
}

body.dark-mode .intro-container {
  background-color: #424242;
}

body.dark-mode .intro-container p {
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .intro-container {
    padding: 10px;
    margin-bottom: 20px; /* Adjust margin for smaller screens */
  }

  .intro-container p {
    font-size: 16px;
  }
}

.media-buttons-container {
  text-align: center;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between buttons */
}

.media-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-family: 'Lora', serif;
  font-size: 18px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.media-button img {
  width: 24px;
  height: auto;
}

/* YouTube specific styles */
.youtube {
  background-color: #FFFFFF; /* YouTube red */
}

body.dark-mode .youtube {
  background-color: #222222; /* Darker red for dark mode */
  color:#f0f0f0;
}

/* Spotify specific styles */
.spotify {
  background-color: #FFFFFF; /* Spotify green */
}

body.dark-mode .spotify {
  background-color: #222222; /* Darker green for dark mode */
  color:#f0f0f0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
  height: 0;
  overflow: hidden;
  max-width: 100%; /* Ensure the container fits within its parent */
  margin: 0 auto; /* Center the container horizontally */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 30px; /* Increased margin for more spacing */
}

.social-link {
  color: #4a3933;
  font-size: 24px; /* Increased font size for larger icons */
  margin: 0 20px; /* Increased margin for more spacing between icons */
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #666;
}

body.dark-mode .social-link {
  color: #e0e0e0;
}

body.dark-mode .social-link:hover {
  color: #ccc;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.faq-question {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  color: #4a3933;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #666;
}

.faq-question i {
  margin-right: 10px;
}

.faq-answer {
  display: none;
  margin-top: 10px;
  padding-left: 20px;
  font-size: 16px;
  color: #666;
}

body.dark-mode .faq-question {
  color: #e0e0e0;
}

body.dark-mode .faq-question:hover {
  color: #ccc;
}

body.dark-mode .faq-answer {
  color: #ccc;
}

.series-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  text-align: center;
  color: #4a3933;
  padding-top: 30px;
  margin-bottom: 10px;
}

body.dark-mode .series-name {
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .series-name {
    font-size: 20px;
  }
}

/* Add these styles to your existing style.css file */

/* V2 Announcement Banner */
.announcement-banner {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e6e3 100%);
  border-left: 4px solid #4a3933;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-banner p {
  font-size: 16px;
  color: #4a3933;
  margin: 0;
  margin-left: 0;
  text-align: center;
  line-height: 1.6;
}

.announcement-banner a {
  color: #6b5b4d;
  text-decoration: none;
  border-bottom: 1px solid #6b5b4d;
  transition: all 0.3s ease;
}

.announcement-banner a:hover {
  color: #4a3933;
  border-bottom-color: #4a3933;
}

body.dark-mode .announcement-banner {
  background: linear-gradient(135deg, #424242 0%, #383838 100%);
  border-left-color: #e0e0e0;
}

body.dark-mode .announcement-banner p {
  color: #e0e0e0;
}

body.dark-mode .announcement-banner a {
  color: #b8b8b8;
  border-bottom-color: #b8b8b8;
}

body.dark-mode .announcement-banner a:hover {
  color: #e0e0e0;
  border-bottom-color: #e0e0e0;
}

/* Version Divider - Updated for Flexbox */
.version-divider {
  width: 100%;
  flex-basis: 100%; /* Force it to take full width in flexbox */
  text-align: center;
  margin: 40px 0;
  position: relative;
}

.divider-line {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(74, 57, 51, 0.4), rgba(0, 0, 0, 0));
  margin: 0;
}

.divider-text {
  display: inline-block;
  position: relative;
  top: -12px;
  background-color: #e2e0dd;
  padding: 0 20px;
  font-family: 'Lora', serif;
  font-size: 14px;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.dark-mode .divider-line {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(240, 240, 240, 0.4), rgba(255, 255, 255, 0));
}

body.dark-mode .divider-text {
  background-color: #222222;
  color: #999;
}

/* Mobile responsiveness for announcement banner */
@media (max-width: 768px) {
  .announcement-banner {
    margin: 15px;
    padding: 15px;
  }

  .announcement-banner p {
    font-size: 14px;
  }

  .version-divider {
    margin: 30px 0;
  }

  .divider-text {
    font-size: 12px;
    padding: 0 15px;
  }
}