* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #424242;
  color: #fcf4d9;
  font-family: "Fauna One", serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cinzel", serif;
  color: #fcf4d9;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

b, strong {
  color: #ffe28a;
}

a {
  color: #f55b1d;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #ffffff;
}

#modal-description {
  font-size: 1.2rem;
  text-align: left;
}

#modal-title {
  font-size: 2rem;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

blockquote {
  border-left: 8px solid #f55b1d;
  margin-left: 0;
  padding: 5px;
  font-style: italic;
}

blockquote p {
  margin-bottom: 0;
}

.text-right-quote {
  text-align: right;
  border-top: 2px solid rgb(122, 122, 122);
  margin-top: 10px;
  padding-top: 5px;
  color: rgba(255, 255, 255, 0.6431372549);
}

.subline {
  text-align: right;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6431372549);
  display: block;
  margin: 1rem;
}

.error-message {
  color: #f55b1d;
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(39, 39, 39, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loader-container.is-loading {
  opacity: 1;
  pointer-events: auto;
}

.loader {
  border: 8px solid #383838;
  border-top: 8px solid #f55b1d;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.banner {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.banner-container {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.banner-container::-webkit-scrollbar {
  display: none;
}

.banner-slider {
  height: 100%;
  display: flex;
}

.banner-image {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  cursor: pointer;
  scroll-snap-align: start;
}

.banner-arrow, .banner-title, .banner-indicators {
  position: absolute;
  z-index: 10;
}

.banner-arrow {
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner-arrow:hover {
  background-color: rgba(245, 91, 29, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.banner-arrow-left {
  left: 15px;
}

.banner-arrow-right {
  right: 15px;
}

.banner-title {
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(39, 39, 39, 0.9), transparent);
  padding: 20px;
  text-align: center;
  color: #fcf4d9;
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

.banner-indicators {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background-color: #f55b1d;
  transform: scale(1.2);
}

.magnified-view {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.magnified-view.visible {
  display: flex;
}
.magnified-view.active {
  opacity: 1;
}

.magnified-content {
  background: radial-gradient(circle, #454545, #383838);
  padding: 0;
  border: 2px solid #a53407;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.magnified-image {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  flex: 1;
  min-height: 0;
}

.magnified-caption {
  font-size: 1.1rem;
  color: #fcf4d9;
  font-family: "Fauna One", serif;
  text-align: center;
  padding: 15px 20px;
}

.close-magnified {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1001;
}
.close-magnified:hover {
  transform: scale(1.2);
  color: #f55b1d;
}

.featured-content-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.featured-content {
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  padding: 30px;
  background-color: #343434;
  border-radius: 10px;
  border: 1px solid #383838;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
  text-align: left;
  color: #f55b1d;
}

#featured-name {
  color: #fcf4d9;
  margin: 0;
  font-size: 1.8rem;
  text-align: left;
}

#featured-source {
  color: #f55b1d;
  font-size: 0.9rem;
  margin-left: 10px;
  font-style: italic;
}

#featured-description {
  color: #fcf4d9;
  line-height: 1.6;
  text-align: left;
}

.featured-content blockquote {
  border-left: 8px solid #f55b1d;
  margin-left: 0;
  padding: 5px;
  font-style: italic;
}

.featured-content .text-right-quote {
  text-align: center;
  border-top: 2px solid rgb(122, 122, 122);
  margin-top: 10px;
  padding-top: 5px;
}

.featured-content p {
  margin-bottom: 1rem;
  padding-top: 2rem;
}

.featured-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#random-article-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f55b1d;
  color: #ffffff;
  border-radius: 5px;
  font-size: 1.2rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
#random-article-button:hover {
  background-color: #d64409;
  transform: scale(1.05);
}
#random-article-button:active {
  background-color: #f77e4e;
  transform: scale(0.95);
}

header {
  background-color: #272727;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fcf4d9;
}

.nav-links {
  list-style: none;
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  font-weight: bold;
}
.nav-links li {
  margin-left: 20px;
}
.nav-links li a {
  font-size: 1rem;
  color: #fcf4d9;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links li a:hover, .nav-links li a.active-link {
  color: #f55b1d;
}

.burger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
}

.burger div {
  width: 100%;
  height: 3px;
  background-color: #fcf4d9;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media screen and (max-width: 1200px) {
  .nav-links {
    position: fixed;
    right: 0;
    height: 100vh;
    top: 0;
    background-color: #272727;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    padding-top: 0;
    overflow-x: hidden;
  }
  .nav-links li {
    margin: 20px 0;
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 1.2rem;
  }
  .nav-links.nav-active {
    transform: translateX(0);
  }
  .burger {
    display: block;
  }
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}
.section {
  display: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 60px 20px;
  background-color: #424242;
  overflow-y: auto;
}
.section.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  position: relative;
}
.section.is-exiting {
  transform: translateX(-100%);
  opacity: 0;
}
.section #lore-container .grid-item, .section #places-container .grid-item {
  margin-bottom: 20px;
}

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Grid Item */
button.grid-item {
  background-color: #383838;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: none;
  font-family: inherit;
  color: inherit;
}
button.grid-item:hover, button.grid-item:focus {
  background-color: #2b2b2b;
  transform: translateY(-5px);
  outline: 2px solid #f55b1d;
  outline-offset: 2px;
}
button.grid-item .grid-item__image {
  width: 150px;
  height: 150px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  pointer-events: none;
}
button.grid-item .grid-item__title {
  font-size: 1.2rem;
  color: #f55b1d;
  margin-bottom: 0;
  font-family: "Cinzel", serif;
  pointer-events: none;
}

/* CTA Buttons Styles */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.cta-buttons .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f55b1d;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-buttons .btn:hover, .cta-buttons .btn:focus {
  background-color: #d64409;
  transform: scale(1.05);
}
.cta-buttons .btn:active {
  background-color: #f77e4e;
  transform: scale(0.95);
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for more contrast */
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.active {
  opacity: 1;
}

.modal-content {
  background: radial-gradient(circle, #454545, #383838);
  padding: 20px;
  border: 2px solid #a53407;
  width: 70%; /* Default width for larger screens */
  border-radius: 10px;
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0.95);
  opacity: 0;
  /* Responsive Adjustment for Mobile Devices */
}
@media (max-width: 1200px) {
  .modal-content {
    width: 90%;
    max-height: 80vh; /* Limit height on mobile */
  }
}
.modal-content.active {
  transform: scale(1); /* Animate to full size */
  opacity: 1;
}
.modal-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.2);
}
.modal-content .close-button {
  color: #aaa;
  background-color: transparent;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: all 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.modal-content .close-button:hover {
  color: #f55b1d;
  transform: scale(1.1);
}
.modal-content h2 {
  margin-bottom: 20px;
  color: #f55b1d;
  padding-right: 30px;
}
.modal-content p {
  line-height: 1.8;
}

.modal-body {
  overflow-y: auto;
  padding-right: 15px;
  text-align: left;
}
.modal-body::-webkit-scrollbar {
  width: 10px;
}
.modal-body::-webkit-scrollbar-track {
  background: #2b2b2b;
  border-radius: 5px;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: #f55b1d;
  border-radius: 5px;
  border: 2px solid #2b2b2b;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: #f77e4e;
}

/* Prevent background from scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}/*# sourceMappingURL=styles.css.map */