/*Fonts*/
@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');

/*Colors*/
:root {
  --earth-gold: #d4af37;
  --earth-green: #3a5f3a;
  --earth-red: #8b2e2e;
  --earth-brown: #4b3b2a;
  --earth-beige: #f5f5dc;
}

/*Reset & Base*/
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Georgia', serif;
  background: url('../images/resource-background.png') no-repeat center center fixed;
  background-size: cover;
  color: #e0e0e0;
}

/*Banner*/
.banner-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px;
  padding: 10px;
  box-shadow: 0 0 30px var(--earth-gold);
  border-radius: 10px;
  background: rgba(41, 122, 11, 0.458);
}

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

/*Nav Scroll*/
.scroll-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: url('../images/resource-scroll2.png') no-repeat center center;
  background-size: cover;
  padding: 20px 0;
  box-shadow: 0 0 30px var(--earth-red),
              0 0 60px var(--earth-red),
              0 0 90px var(--earth-gold);
}

.scroll-banner ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.scroll-banner li {
  margin: 0 12px;
}

.scroll-banner a {
  font-family: 'Cinzel Decorative', serif;
  font-weight: bold;
  font-size: 1rem;
  color: var(--earth-red);
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.scroll-banner a:hover {
  color: #bf0c0c;
  text-shadow: 0 0 5px #d36e16, 0 0 10px #a67209, 0 0 15px #5b3005e8;
  animation: flicker 0.8s infinite;
}

/*Runes*/
.rune {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Uncial Antiqua', serif;
  text-shadow: 0 0 8px var(--earth-gold),
               0 0 16px var(--earth-green),
               0 0 24px var(--earth-red),
               0 0 32px var(--earth-brown);
  animation: pulseRune 1.8s infinite ease-in-out;
}

/*Animations*/
@keyframes flicker {
  0%, 100% { text-shadow: 0 0 5px #8b2e2e, 0 0 10px #ff4920; }
  50%      { text-shadow: 0 0 15px #bb0b0b, 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; }
}

/*Text Boxes*/
.text-box1, .text-box2 {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Top Two Columns */
.top-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.top-column {
  padding: 20px;
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--earth-gold);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--earth-gold);
}

.top-column ul {
  background: rgba(30, 25, 20, 0.85);
  border: 2px solid var(--earth-gold);
  border-radius: 10px;
  padding: 20px;
  list-style: none;
  box-shadow: 0 0 15px var(--earth-gold);
}

.top-column ul li {
  margin: 10px 0;
  padding: 10px 15px;
  font-size: 1.1rem;
  border-radius: 6px;
}

.top-column ul li a {
  color: var(--earth-gold);
  text-decoration: none;
  font-weight: bold;
}

.top-column ul li a:hover {
  color: #ffdd55;
  text-shadow: 0 0 8px #ffdd55, 0 0 15px #f4c430;
}

@media(max-width: 800px) {
  .top-columns {
    grid-template-columns: 1fr;
  }
}

/*Bottom Carousel*/
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding: 20px 0;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--earth-gold);
  cursor: pointer;
  user-select: none;
  z-index: 10;
  text-shadow:
    0 0 5px var(--earth-gold),
    0 0 10px var(--earth-green),
    0 0 15px var(--earth-red);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.3);
  text-shadow:
    0 0 10px var(--earth-gold),
    0 0 20px var(--earth-green),
    0 0 30px var(--earth-red);
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.carousel-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  min-width: 85%;
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--earth-gold);
  border-radius: 10px;
  box-shadow: 0 0 15px var(--earth-gold);
  padding: 20px;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

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

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

/*Footer*/
footer {
  margin: 40px auto;
  text-align: center;
  font-size: 0.9rem;
  color: var(--earth-beige);
}