body {
  padding-top: 60px; /* adjust based on nav height */  
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: #2f2a20;
  color: #eee;
  line-height: 1.7;
  scroll-behavior: smooth;
}
.center-text {
  text-align: center;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #2f2a20;
  text-align: center;
  padding: 10px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
nav a {
  color: #ccc;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
nav a:hover {
  color: gold;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: gold;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

.banner.hero-bg {
  background: url('images/banner-image.png') no-repeat center center;
  background-size: cover;
  padding: 100px 20px;
  text-align: center;
}
.banner h1 {
  font-size: 3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
}

.banner p {
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 6px 16px;
}
.button-scroll {
  margin-top: 20px;
  background: #1a1a1a;
  color: #eee;
  padding: 10px 20px;
  border: 1px solid #555;
  text-decoration: none;
  display: inline-block;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 0 20px;
}
.card {
  background-color: #1a1a1a;
  border: 1px solid #444;
  padding: 20px;
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}
.card img.portrait {
  max-width: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #555;
}
.card h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.card p.italic {
  font-style: italic;
  color: #999;
}
hr.divider {
  border: none;
  border-top: 2px solid #444;
  margin: 20px auto;
  width: 150px;
  background-image: url('images/divider.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: 24px;
}
.legacy-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  padding: 40px 20px;
}
.legacy-side-img {
  max-width: 400px;
  height: auto;
  border: 2px solid #222;
}
.legacy-text {
  max-width: 700px;
  flex: 1 1 100%;
}
footer {
  text-align: center;
  color: #777;
  font-size: 0.8rem;
  padding: 40px 20px 20px;
  border-top: 1px solid #333;
}

.header {
  background: url('images/banner-image.png') no-repeat center center;
  background-size: cover;
  text-align: center;
  padding: 60px 20px 30px;
  color: #eee;
}

.header h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.header p {
  font-style: italic;
  color: #bbb;
  margin-top: 10px;
}

.chapter {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: #111;
  border-left: 4px solid #333;
  border-right: 4px solid #333;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.chapter h2 {
  font-size: 1.8rem;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.chapter img {
  display: block;
  max-width: 300px;
  margin: 20px auto;
  border: 2px solid #222;
  border-radius: 8px;
}
.nav-logo {
  height: 40px;
  vertical-align: middle;
  margin-right: 15px;
}
.background-overlay {
  background: url('images/crest-overlay.png') no-repeat center center;
  background-size: contain;
  opacity: 0.02;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80vmin;
  height: 80vmin;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
nav a.active {
  font-weight: bold;
  color: gold;
  text-decoration: underline;
}
.chapter p {
  text-align: justify;
}

/* Pup Banner for Mobile */
@media (max-width: 768px) {
  .legacy-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .legacy-side-img {
    display: block;
    float: none;
    margin: 0 auto 20px;
    max-width: 90%;
    height: auto;
  }

  .legacy-text {
    text-align: justify;
    padding: 0 10px;
  }

  .banner h1 {
        font-size: 2rem;
        line-height: 1.2;
        padding: 8px 12px;
  }

  .banner p {
        font-size: 1rem;
        padding: 4px 10px;
  }

  .button-scroll {
        font-size: 0.9rem;
        padding: 8px 16px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #444;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.dog-card {
    background-color: #1a1a1a;
    color: white;
    border-radius: 12px;
    padding: 15px;
    margin: 10px;
    display: inline-block;
    min-width: 220px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    min-height: 300px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

    .dog-card img.portrait {
        width: 90%; 
        height: 260px; 
        object-fit: cover;
        border-radius: 10px;
        display: block;
        margin: 10px auto; 
        border: 2px solid #333;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
        background-color: #1a1a1a; 
    }

.portrait-frame {
    padding: 10px;
    background-color: #1a1a1a; 
    border-radius: 12px;
    box-sizing: border-box;
}
.zeus {
    border: 2px solid gold;
}

.sky {
    border: 2px solid #f08080;
}

.pebbles {
    border: 2px solid #87cefa;
}

.pup-sky {
    border: 2px dashed #f08080;
}

.pup-pebbles {
    border: 2px dashed #87cefa;
}

.tag {
    font-size: 0.8em;
    padding: 3px 7px;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    display: inline-block;
    margin: 4px 0;
}

.stud {
    background-color: #b8860b;
}

.matriarch {
    background-color: #a0522d;
}

.breeder {
    background-color: #4682b4;
}

.pup {
    background-color: #708090;
}

.working {
    background-color: #556b2f;
}

.champion {
    background-color: #daa520;
}

.coowned {
    background-color: #8a2be2;
}

.retired {
    background-color: #696969;
}

.companion {
    background-color: #5f9ea0;
}

.icon {
    font-size: 1.5em;
    display: block;
    margin-top: 5px;
}

.generation {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
}

    .generation h2 {
        text-align: center;
        margin-bottom: 20px;
    }

.dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    justify-items: center;
}

.bloodline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tag-legend {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: auto;
}

    .tag-legend li {
        margin-bottom: 10px;
        line-height: 1.6;
    }
