/* Adapted from https://codepen.io/mutedblues/pen/MmPNPG */

body {
    margin: 0;
  }
  
  header {
    display: flex;
    width: 100%;
    background-color: #ffffff;
    justify-content: space-between;
  }

  @media only screen and (min-width: 1001px) {
    .date {
      font-size: larger;
      /*vertical-align: middle;*/
    }
  }
  @media only screen and (max-width: 1000px) {
    .date {
      font-size: medium;
      /*vertical-align: top;*/
    }
  }

  .date {
    color: #000000;
    vertical-align:top;
    font-weight: lighter;
  }
  /*
  header > * {
     flex-grow: 1; 
  }*/
  
  header h1 {
    margin-left: 1rem;
  }
  
  header a {
    text-decoration: none;
  }
  
  /* "Hide" checkbox -- moves it off screen*/
  #menu-btn {
    position: absolute;
    top: -100%;
    left: -100%;
  }
  
  /* Hide hamburger for bigger screens */
  .menu-icon {
    visibility: hidden;
  }
  
  .menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-right: 2rem;
  }

  .menu a {
    color: #000000;
    font-size: larger;
  }

.menu-ap {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-right: 2rem;
  }

  .menu-ap a {
    color: #000000;
    font-size: larger;
  }


  .menu a:visited {
    color: #000000;
  }
.menu-ap a:visited {
    color: #000000;
  }


  .menu a:hover {
    text-decoration: underline;
  }
.menu-ap a:hover {
    text-decoration: underline;
  }

  @media screen and (min-width: 1001px) {
    .menu {
        gap: 20px;
    }
.menu-ap {
        gap: 20px;
    }

  }
  
  /* Set width for mobile/smaller screen size. */
  /* I set it big here so I don't have to shrink the screen so much */
  /* for testing purposes */
  @media screen and (max-width: 1000px) {
    
    header {
      display: grid;
      grid-template-areas:
         "title   title   hamburger"
         "nav     nav     nav";
    }
    
    h1 {
      grid-area: title;
    }
    
    .menu a {
      text-decoration: none;
      color: #000000;
      
    }

.menu-ap a {
      text-decoration: none;
      color: #000000;
      
    }

  
    .menu-btn {
      display: none;
    }
  
    .menu-icon {
      grid-area: hamburger;
      cursor: pointer;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding: 10px 10px 10px 10px;
      position: relative;
      user-select: none;
      visibility: visible;
    }
  
    .navicon {
      background: #000000;
      display: block;
      height: 2px;
      width: 18px;
      position: relative;
    }
  
    .navicon:before {
      top: 5px;
    }
  
    .navicon:after {
      top: -5px;
    }
  
    .navicon:before, .navicon:after {
      background: #000000;
      display: block;
      width: 100%;
      height: 100%;
      content: '';
      position: absolute;
      transition: all .2s ease-out;
    }
  
    .menu {
      grid-area: nav;
      max-width: unset;
      max-height: 0;
      transition: max-height .2s ease-out;
      overflow: hidden;
      margin: 0;
      padding: 0;
      background-color: #ffffff;
      display: flex;
      flex-direction: column;
    }
  
    .menu a {
      padding: 10px 10px;
      border-right: 1px solid #ffffff;
      background-color: #ffffff;
      width: 100%;
      text-align: center;
      text-decoration: none;

    }

    .menu-ap {
      grid-area: nav;
      max-width: unset;
      max-height: 0;
      transition: max-height .2s ease-out;
      overflow: hidden;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
    }
  
    .menu-ap a {
      padding: 10px 10px;
      border-right: 1px solid #ffffff;
      width: 100%;
      text-align: center;
      text-decoration: none;
    }
    }
  
    .menu-btn:checked ~ .menu {
      max-height: 500px;
    }
.menu-btn:checked ~ .menu-ap {
      max-height: 500px;
    }

  
    .menu-btn:checked ~ .menu-icon .navicon {
      background: transparent;
    }
  
    .menu-btn:checked ~ .menu-icon .navicon:before {
      transform: rotate(-45deg);
    }
  
    .menu-btn:checked ~ .menu-icon .navicon:after {
      transform: rotate(45deg);
    }
  
    .menu-btn:checked ~ .menu-icon .navicon:before,
    .menu-btn:checked ~ .menu-icon .navicon:after {
      top: 0;
    }
  
  