
        html {
       scroll-behavior: smooth; /* enables smooth scrolling */
  }

    body {
        background: linear-gradient(to right, #ffffff 50%, #171717 50%);
    }

/* Smooth fade animation for language switching */
.lang-fade-out {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.lang-fade-in {
  opacity: 1;
  transition: opacity 0.4s ease-in;
}

#lang-switch {
  position: fixed;
  top: 15px;
  right: 20px;
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  z-index: 1000;
  color: white;
}

#lang-switch .top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

#lang-switch button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

#lang-switch button:hover {
  opacity: 0.7;
}

#lang-switch button.active {
  text-decoration: underline;
}

#menu-toggle {
  font-size: 18px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#menu-toggle:hover {
  transform: scale(1.1);
}

/* ========== Slide-down menu styling ========== */
#menu-content {
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  display: none;
  flex-direction: column;
  text-align: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  border: 1px solid #444;
  opacity: 0;
  transform: translateY(-5px);
  white-space: nowrap; /* ✅ ensures all menu items stay on one line each */
  width: max-content;  /* ✅ auto-sizes based on the longest item */
  min-width: 140px;    /* optional safety minimum */
}

#menu-content.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#menu-content p {
  margin: 6px 0;
  padding: 4px 0;
  border-bottom: 1px dotted #ffffff;
}

#menu-content p:last-child {
  border-bottom: none;
}

#menu-content a {
  color: #ffffff;
  text-decoration: none;
}

#menu-content a:hover {
  text-decoration: underline;
}


    #slideshow {
        transition: opacity 0.5s ease-in-out;
}

    #slideshow.fade-out {
        opacity: 0;
}

     @keyframes fadeIn {
        from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

    .pacifico-regular {
    font-family: "Pacifico", cursive;
    font-weight: 400;
    font-style: normal;
}

.great-vibes-regular {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-style: normal;
}

.forum-regular {
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
}

.noto-sans {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.montserrat-alternates-regular {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 400;
  font-style: normal;
}

    .container {
         width: 100%;
         display: flex;
         flex-direction: column;
         box-sizing: border-box;
         align-items: center;
        justify-content: center;
        scroll-behavior: smooth;
            }
    
    .nameplate {
        max-width: 1000px;       /* caps it at 600px on desktop */
        width: 90%;
        height:203px;
        background-color: #000000;
        border-radius: 60px;
        color: #ffffff;
        padding: 10px;
        box-sizing: border-box;
        text-align:center;
          /* new layout styles */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* pushes arrow to the bottom */
        align-items: center;
        min-height: 203px; /* matches your fixed height but still flexible */
    }

    .fade-in-element {
        opacity: 0;
        transform: translateY(10px); /* start slightly below */
        animation: fadeIn 0.75s ease-out forwards;
    }

        .nameplate p {
    text-align:center;
    }

    .nameplate h1 {
    font-size: clamp(28px, 6vw, 48px);
    margin:5px 0px 0px 0px;
    }

    .fullname {
    margin:0px;
    font-size: 16px;

    }

    .dates {
    margin-top:40px;
    margin-bottom:0px;
    font-size: clamp(14px, 2.8vw, 18px);
    }

  @keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px); /* distance moved downward */
  }
  100% {
    transform: translateY(0);
  }
  }

.arrow {
    margin-bottom: 0px; /* some breathing room */
    animation-delay: 5s; /* ⏱ waits 1 second before first bounce */
    animation: bounce 1.5s infinite;
    cursor: pointer;
    display: inline-block; /* ensures it’s treated like a transformable box */
}

.arrow svg {
  transform-box: fill-box;
  transform-origin: center;
}

.shadow {
    box-shadow: 0px 0px 10px black;
}

.text-shadow {
    text-shadow: 0px 0px 20px black, 0px 0px 20px black, 0px 0px 20px black, 0px 0px 20px black;
}

.photocontainer {
    margin:20px 0px 20px 0px;
    max-width:1000px;
    width:90%;
    background-color:#ffffff;
    border-radius:10px;
}

.photo {
    margin:0px;
    max-width:1000px;
}


.bio {
    max-width: 1000px;
    width:90%;
    color:#171818;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-sizing: border-box;
    text-align:center;
    margin-bottom:20px;
}

.bio p {
    margin:0px 0px 7px 0px;
    text-align:justify;
    font-size: clamp(14px, 2.8vw, 16px);
}

.video {
    max-width:1000px;
    width:90%;
    border-radius:20px;
    margin:0px;
}

.pedigree {
    max-width: 1200px;
    width:90%;
    color:#ffffff;
    background-color: #000000;
    border-radius: 20px;
    padding: 10px 10px 15px 10px;
    box-sizing: border-box;
    text-align:center;
    margin:20px 0px 20px 0px;
}

.pedigree IMG {
  max-width:250px;
  width:100%;
}

.pedigree h2 {
    font-size: clamp(18px, 6vw, 30px);
    margin:10px 0px 20px 0px;
    }

  .pedigree p {
    text-align:center;
    margin:0px 0px 3px 0px;
    }

.pedigree table {
  width:100%;
  border:1px solid #ffffff;
  border-collapse:collapse;
}

.pedigree td {
  text-align:center;
  padding:7px;
  border:1px solid #ffffff;
  border-collapse:collapse;
  font-size: clamp(12px, 2.8vw, 12px);
}

.mother {
  background-color:#313131;
  color:#ffffff;
}

.father {
  background-color:#171717;
  color:#ffffff;
}

/* Responsive Pedigree Layout */
@media (max-width: 650px) {
  .pedigree table,
  .pedigree tbody,
  .pedigree tr,
  .pedigree td {
    display: block;
    width: 100%;
  }

  .pedigree tr {
    overflow: hidden;

  }

  .pedigree td {
    border-collapse:collapse;
    padding: 8px 6px;
    font-size: clamp(12px, 3.5vw, 14px);
        border-bottom:none;
  }

  .pedigree td[rowspan] {
    /* Remove rowspan effect on mobile */
    display: block;
    width: 100%;
    height: auto;
  }

  .pedigree h2 {
    margin-bottom: 10px;
  }

  .pedigree {
    padding: 10px;
  }

    .pedigree p {
    text-align:center;
    margin:0px 0px 5px 0px;
    }
}

.contacts {
  width:90%;
  max-width:450px;
  background-color: #ffffff;
  color: #000000;
  margin: 0px 0px 0px 0px;
  padding:7px;
  text-align:center;
  border-radius: 20px;
}

.contacts p {
  margin:0px;
}