@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');


/* Desktop */
@media not (pointer: coarse), (min-width: 768px)
/*@media (pointer: coarse) and (width < 768px)*/
{
  header
  {

  }

  header:not(.scrolledHeader)
  {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;

    color: white;

    .navItem
    {
      text-decoration: none;
      color: white;
    }

    .navItem:not(#navHome)
    {
      flex: 1;

      font: 1rem "Work Sans", sans-serif;
      align-content: center;
      text-align: center;
      min-height: 2rem;
      padding: 0.5rem;

      margin-bottom: 1rem;
      position: relative;
    }

    /* Prevent shadows overlapping adjacent elements */
    .navItem:not(#navHome):before
    {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;

      z-index: -1;

      /* #29 from getcssscan.com/css-box-shadow-examples */
      box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    }

    .navItem:not(#navHome):hover
    {
      background: #777777;
    }

    .navItem:not(#navHome):not(:hover)
    {
      background: #666666;
    }

    #navHome
    {
      flex: 0 0 100%;
      box-sizing: border-box;

      background: #222222;
      padding: 0.5rem;

      display: grid;
      grid-template-columns: min-content auto;
    }

    #navLogo
    {
      height: 4rem;
      padding: 0.25rem;
    }

    #navName
    {
      display: flex;
      flex-direction: row;
      align-items: center;
      font: 2.75rem "Work Sans", sans-serif;
    }
  }

  header.scrolledHeader
  {
    color: white;
    background-color: #222222;

    display: flex;

    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1000;

    .navItem
    {
      text-decoration: none;
      color: white;
    }

    #navHome
    {
      flex: 0 0 auto;
    }

    .navItem:not(#navHome)
    {
      flex: 1;
      min-width: 0;
      margin-left: 0.25rem;

      font: 1rem "Work Sans", sans-serif;
      align-content: center;
      text-align: center;
      min-height: 2rem;
      padding: 0.5rem;
    }

    .navItem:not(#navHome):hover
    {
      background: #777777;
    }

    .navItem:not(#navHome):not(:hover)
    {
      background: #666666;
    }

    #navHome
    {
      background: #222222;
    }

    #navLogo
    {
      height: 4rem;
      padding: 0.25rem;
    }

    #navName
    {
      display: none;
    }
  }

  @media (width < 768px)
  {
    .navService
    {
      display: none;
    }
  }
}

/* Mobile */
/*@media not (pointer: coarse), (min-width: 768px)*/
@media (pointer: coarse) and (width < 768px)
{
  header
  {
    color: white;
    background-color: #222222;

    display: flex;
    gap: 0.25rem;

    padding-right: 1rem;

    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1000;

    .navItem
    {
      text-decoration: none;
      color: white;
      /*background-color: ;*/

      flex: 1;
      min-width: 0;

      font: 0.7rem "Work Sans", sans-serif;
      align-content: center;
      text-align: center;
      min-height: 2rem;
      /*padding: 0.5rem;*/
    }

    .navItem:not(#navHome)
    {
      background: #666666;
      padding: 0.2rem;
    }

    .navService
    {
      display: none;
    }

    #navLogo
    {
      height: 4rem;
      padding-left: 0.25rem;
    }

    #navName
    {
      display: none;
    }
  }
}
