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

:root{
    --merryred:#8d0202;
    --black:#000000;
    --peechwhite:#dacece;
    --white:#ffffff;
    --skinsandy:#ffecd9;
  }

  body{
    background-color: var(--skinsandy);
  }

  .nav ul li:last-child{
    border-bottom: 1px solid var(--white);
  }

  .back-btn{
    position:fixed;
    font-size: 30px;
    width: 65px;
    height: 100px;
    border: none;
    background-color: transparent;
    color: var(--merryred);
    transition: .2s;
  }
  
  .back-btn:hover{
     background-color: var(--merryred);
     color: var(--skinsandy);
  }

  .title{
    margin-top: 10px;
    display:flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .title p{
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 24px;
    border: 2px solid var(--merryred);
    background-color: var(--merryred);
    color: var(--white);
    padding: 5px;
    border-radius: 10px 0 10px 0;
  }

  .title img{
    width: 50px;
  }

  .family-head{
    margin-top: 30px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    justify-content: center;
  }

  .family-head div{
    display: grid;
    justify-content: center;
    align-items: center;
  }

  .family-head img{
    width: 600px;
  }

  .family-head .table1 th{
    color:var(--merryred);
    text-align:left;
    vertical-align: top;
    font-size: 16px;
   font-family: "open-sans", sans-serif;
  }

  .family-head .table1 td{
    padding: 0 10px;
    font-size: 16px;
   font-family: "open-sans", sans-serif;
   word-spacing: 5px;
  }

  .family-head .table2{
    margin-top: 50px;
  }

  .family-head .table2 th{
    color:var(--merryred);
    text-align:left;
    vertical-align: top;
    font-size: 16px;
   font-family: "open-sans", sans-serif;
  }

  .family-head .table2 td{
    padding: 0 10px;
    font-size: 16px;
   font-family: "open-sans", sans-serif;
   word-spacing: 5px;
  }

  .titleForChildFam{
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .titleForChildFam p{
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
    border: 2px solid var(--white);
    background-color: var(--merryred);
    border-radius: 10px 0 10px 0;
    font-family: "Montserrat", sans-serif;
    padding: 5px;
  }

  .titleForChildFam img{
    width: 50px;
  }

  .childFamGrid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
  }

  .childFamGrid div{
    display: grid;
    justify-content:center;
  }

  .childFamGrid img{
    width: 500px;
    mix-blend-mode: multiply;
    display: grid;
    justify-self: center;
  }

  .childrensfamily{
    display: grid;
    grid-template-columns: 1fr 2fr;
   font-family: "open-sans", sans-serif;
   background-color: #8d020214;
   border-radius: 100px 0px;
   box-shadow: 0 0 20px 1px  var(--merryred);
   padding: 30px 20px;
   margin: 0 10px;
  }

  .details{
    width: 90%;
    margin: 0 auto;
    padding: 10px;
   background-color: #8d020214;
   border-radius: 0px 50px;
    box-shadow: 0 0 20px 1px  var(--merryred);
  }

  .famCount{
    align-items: center;
    font-size: 25px;
    font-weight: bolder;
    color: var(--merryred);
    border-right: 2px solid var(--merryred);
   font-family: "open-sans", sans-serif;
  }

  .childrensfamily .parent{
    font-size: 16px;
    font-weight: bold;
    line-height: 30px;
   font-family: "open-sans", sans-serif;
  }

  .childrensfamily .grandChild-head{
    font-size: 18px;
    line-height: 40px;
    font-weight: bold;
    color: var(--merryred);
   font-family: "open-sans", sans-serif;
  }

  .childrensfamily .greatGrand-head{
    font-size: 18px;
    line-height: 40px;
    font-weight: bold;
    color: var(--merryred);
   font-family: "open-sans", sans-serif;
  }

  .childs{
    font-size: 16px;
    padding:0 30px;
    line-height: 30px;
   font-family: "open-sans", sans-serif;
  }

  .childs b{
    color: var(--merryred);
    font-size: 18px;
  }

  .endgreetlogo{
    mix-blend-mode: multiply;
    text-align: center;
  }

  .endgreetlogo img{
    width: 150px;
  }

  .copyright{
    margin-top: 20px;
    padding: 5px 0;
    text-align: center;
    color: white;
    background-color: black;
  }
  
  


  @media(max-width:768px){
    .nav ul li:last-child{
      border-bottom: 1px solid var(--black);
    }

    .back-btn{
      display: none;
    }

    .title{
      gap: 5px;
    }

    .title p{
      font-size: 16px;
      padding: 5px;
    }

    .title img{
      width: 30px;
    }

    .family-head{
      display: block;
    }

    .family-head img{
     display: none;
    }

    .family-head .table1 th{
      padding: 0 10px;
      font-size: 14px;
    }
  
    .family-head .table1 td{
      font-size: 14px;
    }

    .family-head .table2 th{
      padding: 0 10px;
      font-size: 14px;
    }
  
    .family-head .table2 td{
      padding: 0 10px;
      font-size: 14px;
    }

    .titleForChildFam p{
      font-size: 14px;
      padding: 5px;
    }

    .titleForChildFam img{
      width: 30px;
    }

    .childFamGrid{
      display: block;
      margin-top: 30px;
    }

    .childFamGrid img{
      display: none;
    }

    .details{
      width: 100%;
      margin: 0;
      padding:0px;
     background-color:transparent;
     border-radius:0px;
      box-shadow:none;
    }

    .famCount{
      border: none;
      align-items: start;
      font-size: 16px;
      line-height: 20px;
      text-decoration: underline;
      text-decoration-style:wavy;
    }
  
    .childrensfamily .parent{
      font-size: 14px;
      line-height: 20px;
    }
  
    .childrensfamily .grandChild-head{
      font-size: 14px;
      line-height: 30px;
    }
  
    .childrensfamily .greatGrand-head{
      font-size: 14px;
      line-height: 30px;
    }
  
    .childs{
      font-size: 14px;
      line-height: 20px;
    }
  
    .childs b{
      font-size: 14px;
      line-height: 20px;
    }

    .endgreetlogo{
      margin-top: 30px;
    }

    .endgreetlogo img{
      width: 80px;
    }

    .copyright{
      font-size: 12px;
    }

    
  }