:root {
	--menu-background:#000;
  --menu-text:#999;
}

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


/* flex-nav-hide */

nav{
  display:grid;
  place-items: center;
  
  transition: 0.5s .35s ease transform; /* I added a delay so the nav does not start moving right away */

  background-color: var(--menu-background);
  width: 100%;
    position:fixed;
    top: 0;
    z-index: 100;
  
  }
  
  .content{
  width: 85%;
  max-width: 850px;
  margin: 0 auto;
  margin-top: 6em;
  
  }
  
  nav p{
  padding: 1em 0;
  
  }
  
  .hidden{
  transform: translateY(-100%);
  
  }
 
  
  .menu {
      width:100%;
      max-width: 850px;
      margin: .5em auto;
      padding: 0 6em;
      font-size: .75rem;
    
  }

/* .menu-logo img{
  position:absolute;
   width: clamp(120px, 15%, 180px);
  left: 1em;
    top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);

} */
  
  .menu ul {
      display: flex;
      justify-content: space-between;   
  }
  
    .menu ul li{
  list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .menu a{
      line-height: 2em;
    text-decoration: none;
     color: var(--menu-text);
  }
  
    .openBtn,
    .closeBtn{
    display:none;
       position: absolute;
       right: 2em;
       top: .5em;
       border: none;
       background: none;
      font-size: 1em;
      color: #999;
  }
  
    .openBtn:hover,
    .closeBtn:hover,
    .menu a:hover{
      color: #fff;
      cursor:pointer; 
    }
  
   /* ipad vert 768------ */
   @media screen and (max-width: 768px) {

     
    .menu{
      display:block;
      width: 100%;
      height: 0px;
      overflow: hidden;
      padding: 1em 0;
   
  
      transition: height .3s ease-out;
    }
  
    .openMenu{
height: 200px;
      line-height: 2.2em;
  transition: height .3s ease-out;
    }
     
.menu-logo img{
    top: 0;
  -ms-transform: translateY(0%);
  transform: translateY(0%);
 
  
}
     
  .menu ul {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1em;
  }
  
  .menu ul li{
    list-style-type: none;
    margin: 0;
    padding: 0;

    }
     
  .openBtn{
    display:block;
     }
  
  .closeBtn{
  display:none;
  
  }
  
   }
  
   /* desktop over 780 */
   @media screen and (min-width: 780px) {
  
    .closeBtn,
    .openBtn{
      opacity: 0;
  
   }
   
  }