/*fonts*/
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Special+Gothic+Expanded+One&display=swap');

/*mobile device rules display under 767 pixels*/
* {
    box-sizing: border-box;
  }
  html {
    background-color: #ebfcff;
    font-family: "Lexend Deca", "Special Gothic Expanded One", sans-serif;
  }
  img,
  video,
  embed {
    max-width: 98%;
  }
  main,
  section,
  article,
  aside,
  footer,
  header {
    padding: 0.5rem;
  }
  header,
  footer {
    background-color: #0a658d;
    color: #ebfcff;
    text-align: center;
  }
  article {
    border-bottom: 1px black solid;
  }
  aside {
    background-color: white;
  }
  h1,
  h2,
  aside {
    text-align: center;
  }
  /* default navigation values */
  
  nav ul {
    display: flex;
    flex-direction: column;
    background-color: #ccc;
    margin: 0;
    border: solid 1px #000;
    padding-left: 0;
  }
  nav ul li {
    flex: auto;
    list-style-type: none;
  }
  nav ul li:nth-child(5) {
    border-right: none;
  }
  nav ul li a {
    display: block;
    background-color: #ccc;
    color: black;
    text-decoration: none;
    text-align: center;
    padding: 8px;
    
  }
  nav ul li a:hover {
    color: #ccc;
    background-color: black;
  }
  body,
  p,
  a,
  h4 {
    font-size: 14px;
  }

h1, h2, footer {
    font-family: "Special Gothic Expanded One";
}

header {
  display: flex;
  justify-content: center;
  align-items: center;

}

figcaption {
    font-size: 12px;
    text-align: center;
}

#logo {
    width: 150px;
    position: absolute;
    left: 5px;
}

#me {
    width: 30%;
}

/* table styling */

table {
  margin: 0 auto;
  caption-side: top;
}
table,td,th{
  padding:15px;
  border-spacing:15px;
  border:solid 1px;
  border-collapse:collapse;
}
td
{
  border:solid 1px;
}
td:nth-child(3) {
  font-weight: bold;
}
th
{
  border-bottom:double 4px;
}
tr:nth-child(2n) {
   background-color:#0a658d;
}
tr:hover  {
    background-color: grey;
    color: #ccc;
}


  /* the rules below adjust and override the properties of the rules above to change the page's appearance when displayed on a wider screen. These rules are designed for a two-column tablet display*/
  @media screen and (min-width: 768px) {
    body {
      display: flex;
      flex-direction: column;
      max-width: 98%;
      margin: auto;
    }
    main {
      display: flex;
      border-right: solid black 1px;
      border-left: solid black 1px;
      flex-wrap: wrap;
    }
    nav,
    header {
      order: -1;
    }
    nav ul {
      flex-direction: row;
    }
    nav ul li {
      border-right: solid 1px #000;
    }
    article {
      flex: 50%;
      border-right: solid black 1px;
      border-bottom: solid black 1px;
    }
    article:nth-child(2) {
      border-right: none;
    }
    article:nth-child(3) {
      border: none;
    }
    body,
    p,
    a,
    h4 {
      font-size: 15px;
    }

    .pet {
        width: 400px;
    }
  
  /* the rules below adjust and override the properties of the rules above to change the page's appearance when displayed on a wider screen. These rules are designed for a three-column desktop display*/
  @media screen and (min-width: 1024px) {
    article {
      flex: 33%;
      border-bottom: none;
    }
    article:nth-child(2) {
      border-right: solid black 1px;
    }
  
    article:nth-child(3) {
      border-right: none;
    }
    body,
    p,
    a,
    h4 {
      font-size: 16px;
    }
  }
}