html {
    overflow:auto;
    zoom: 25%;
}
.member {
    width: 200px;
    height: 50px;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.member img {
    max-width: 100%;
    max-height: 100%;
}

.parent {
    background-color: #f2f2f2;
    position: relative;
}
.grandpa {
    left: 150%;
    position: relative;
    background-color: rgb(214, 62, 62);

}
.spouse {
    background-color: rgb(234, 255, 149);
    position: absolute;
    top: 0;
    left: 125%;
}
.spouse-line{
    position: absolute;

    height: 3px;
    width: 25%;
    background: black;
    left: 100%;
    top:  50%;
}
.secondgen{
    background-color: aqua;
    position: relative;
    top: 100%;
    right: 10%;
}
.child{
    background-color: rgb(0, 255, 145);
    position: relative;
    top: 250%;
    left: 65%;
}
.child-line{
    position: absolute;

    height: 145%;
    width: 3px;
    background: black;
    left: 50%;
    bottom:  100%;
}
.sibling-vert-line{
    position: absolute;

    height: 30px;
    width: 3px;
    background: black;
    left: 50%;
    bottom:  100%;
}
.fourthgen{
    background-color: aqua;
    position: relative;
    top: 150%;
    right: 10%;
}
.sibling-right {
    background-color: aqua;
    position: absolute;
    top: 0;
    left: 260%;
}
.sibling-right-horiz-line{
    position: absolute;

    height: 3px;
    width: 260%;
    background: black;
    right: 50%;
    bottom:  130%;
}
.sibling-right-horiz-line-no-kids{
    position: absolute;

    height: 3px;
    width: 130%;
    background: black;
    right: 50%;
    bottom:  130%;
}
.sibling-left {
    background-color: aqua;
    position: absolute;
    top: 0;
    right: 260%;

}
.sibling-left-horiz-line{
    position: absolute;

    height: 3px;
    width: 260%;
    background: black;
    left: 50%;
    bottom:  130%;
}
.sibling-left-horiz-line-no-kids{
    position: absolute;

    height: 3px;
    width: 130%;
    background: black;
    left: 50%;
    bottom:  130%;
}
.sibling-right-2 {
    background-color: aqua;
    position: absolute;
    top: 0;
    left: 520%;
}
.sibling-left-2 {
    background-color: aqua;
    position: absolute;
    top: 0;
    right: 520%;
}



 /*******************
        header and stuff
    ********************/


  header,
  section {
    padding: 0 1em;
  }
  
  h1,
  h2,
  h3,
  p {
    margin: 0;
    padding: 0;
  }
  
  img {
    width: 100%;
    display: block;
    margin: 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  
  .black-underline {
    margin-bottom: 1.5em;
    border-bottom: solid black;
    padding-bottom: 0.25em;
  }
  
  .white-underline {
    margin-bottom: 1.5em;
    border-bottom: solid white;
    padding-bottom: 0.25em;
  }
  
  a {
    text-decoration: none;
    color: black;
  }
  
  a:hover {
    color: chocolate;
  }
  
  p {
    line-height: 1.75rem;
  }
  
  .anchor {
    scroll-margin-top: 8em;
  }
  
  @media (min-width: 1000px) {
    .anchor {
      scroll-margin-top: 4em;
    }
  }
  
  /*****************
        Layout
  *****************/
  
  .main-container {
    width: 100%;
    /* margin-top: 5em; */
    margin: 5em auto 0;
  }
  
  .family-container {
    background-color: black;
  }
  
  /***********
        Nav
    ************/
  
  nav {
    font-size: 1.5rem;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: lightgray;
    border-bottom: 5px solid black;
    color: white;
    z-index: 10;
  }
  
  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0.75em 0;
    list-style: none;
    text-align: center;
  }
  
  .nav-list-item {
    margin-bottom: 0.5em;
  }
  
  .nav-list-item:last-child {
    margin-bottom: 0;
  }
  
  .nav-list-item-link {
    padding-bottom: 23px;
  }
  
  /* .current-page {
      border-bottom: 2px solid chocolate;
    } */
  
  .dropdown-content {
    display: none;
    position: absolute;
    top: 152px;
    min-width: 200px;
    background-color: lightgray;
    border-bottom: 5px solid black;
    font-size: 1rem;
    z-index: 1;
    text-align: left;
    /* box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); */
  }
  
  .dropdown-content-link {
    display: block;
    padding: 1em 0 1em 1em;
  }
  
  .dropdown-content-link:hover {
    background-color: gray;
  }
  
  .dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    background-color: lightgray;
  }
  
  @media (min-width: 1000px) {
    .nav-list {
      flex-direction: row;
      justify-content: flex-end;
      padding-right: 12%;
    }
  
    .nav-list-item {
      margin-bottom: 0;
      margin-left: 4em;
    }
  
    .dropdown {
      padding-left: 0.5em;
    }
  
    .dropdown-content {
      top: 70px;
    }
  }
  
  /****************
        Header
    *****************/
  
  header {
    padding-bottom: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .header-img {
    max-width: 400px;
    min-width: 200px;
    margin-bottom: 1.5em;
  }
  
  .header-title {
    margin-bottom: 0.25em;
  }
  
  .header-subtitle {
    margin-bottom: 1em;
  }
  
  .header-button {
    text-decoration: none;
    border: 2px solid black;
    padding: 0.5em;
    transition-duration: 0.4s;
  }
  
  .header-button:hover {
    background-color: lightgray;
    transition-duration: 0.4s;
    color: black;
  }
  
  @media (min-width: 1000px) {
    header {
      flex-direction: row;
      justify-content: space-between;
      width: 35%;
      margin: 0 auto;
    }
  
    .header-img {
      margin-right: 1em;
    }
  
    .header-text {
      margin-left: 1em;
      min-width: 170px;
    }
  }
  
  /**********************
        Family Header
    *********************/
  
  .family-header {
    font-size: 3rem;
    padding-bottom: 2.5em;
    text-align: center;
    background-color: white;
  }
  
  /**********************
        Photos Header
    *********************/
  
  .photos-header {
    margin-bottom: 3em;
    text-align: center;
  }
  
  /**********************
        Photos Families
    *********************/
  
  .families {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0 1em 5em;
  }
  
  .families-card {
    max-width: 500px;
    margin-bottom: 3em;
  }
  
  .families-card-header {
    text-align: center;
    margin-bottom: 1em;
  }
  
  /****************
        Photo Grid
    *****************/
  
  .flex-photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 3em;
    margin: 5em 0;
  }
  
  .photo-container {
    position: relative;
    align-self: center;
    justify-self: center;
    /* height: 100%; */
    max-width: 400px;
  }
  
  .photo-container img {
    border-radius: 15px;
    /* height: 100%; */
  }
  
  .photo-container-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 2;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: 0.5s ease;
    background-color: lightgray;
    border-radius: 15px;
  }
  
  .photo-container:hover .overlay {
    opacity: 0.75;
  }
  
  @media (min-width: 600px) {
    .card-tall {
      grid-row: span 2 / auto;
    }
  
    .card-wide {
      grid-column: span 2 / auto;
    }
  }
  
  /*******************
        About
    ********************/
  
  .about {
    text-align: center;
    margin-bottom: 3em;
    padding: 3em 0;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    background-color: black;
    color: white;
  }
  
  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: 70%;
  }
  
  .about p {
    margin-bottom: 2em;
  }
  
  .about p:last-child {
    margin-bottom: 0;
  }
  
  @media (min-width: 1000px) {
    .about-content {
      max-width: 900px;
      margin: 0 auto;
    }
  }
  
  /*******************
        Subject
    ********************/
  
  .subject {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3em;
    padding-bottom: 3em;
  }
  
  .subject-img {
    max-width: 400px;
    margin-bottom: 3em;
  }
  
  .subject-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 70%;
  }
  
  .subject-text-header {
    margin-bottom: 1.25em;
  }
  
  @media (min-width: 1000px) {
    .subject {
      flex-direction: row;
      justify-content: center;
      width: 80%;
      margin: 0 auto 4em;
    }
  
    .subject-img {
      /* width: 40%; */
      max-width: 500px;
      min-width: 350px;
      margin-right: 4em;
    }
  
    .subject-text {
      max-width: 800px;
      min-width: 400px;
    }
  }
  
  /*******************
        Contact
    ********************/
  
  .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: black;
    color: white;
    padding: 3em 1em;
    border-bottom: 1px solid white;
  }
  
  .contact-form {
    width: 100%;
  }
  
  .form-option {
    max-width: 500px;
    margin: 0 auto 1em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .form-option:last-child {
    margin-bottom: 0;
  }
  
  .input-text {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    padding: 0.5em;
    border-radius: 5px;
  }
  
  textarea {
    min-height: 150px;
    resize: none;
  }
  
  .submit-button {
    width: 75px;
    cursor: pointer;
    background-color: white;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    border-radius: 5px;
    transition-duration: 0.4s;
  }
  
  .submit-button:hover {
    box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
      0 17px 50px 0 rgba(0, 0, 0, 0.19);
    background-color: lightgray;
  }
  
  .submit-button:active {
    background-color: gray;
    transition-duration: 0s;
  }
  
  /*******************
        Footer
    ********************/
  
  footer {
    background-color: black;
    color: white;
    padding: 1em;
    text-align: center;
  }
  
  .family-footer {
    border-top: 1px solid white;
  }
  