
.main-nav {
    background: #e0e0e0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    border:1px solid #555555;
    z-index:999;
  }
  
  @media (min-width: 768px) {
    .main-nav {
      -webkit-border-radius: 50px;
      -moz-border-radius: 50px;
      -ms-border-radius: 50px;
      -o-border-radius: 50px;
      border-radius: 50px;
      z-index:999;
    }
  }
  
  .main-nav:after {
    clear: both;
    content: "\00a0";
    display: block;
    height: 0;
    font: 0px/0 serif;
    overflow: hidden;
    z-index:999;
  }
  
  .nav-brand {
    float: left;
    margin: 0;
    z-index:999;
  }
  
  .nav-brand a {
    display: block;
    padding: 12px 12px 12px 20px;
    color: #555;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: normal;
    line-height: 17px;
    text-decoration: none;
    z-index:999;
  }
  
  #main-menu {
    clear: both;
    z-index:999;
  }
  
  @media (min-width: 768px) {
    #main-menu {
      float: right;
      clear: none;
      z-index:999;
    }
  }
  
  
  /* Mobile menu toggle button */
  
  .main-menu-btn {
    float: right;
    margin: 6px 10px;
    position: relative;
    display: inline-block;
    width: 29px;
    height: 29px;
    text-indent: 29px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    z-index:999;
  }
  
  
  /* hamburger icon */
  
  .main-menu-btn-icon,
  .main-menu-btn-icon:before,
  .main-menu-btn-icon:after {
    position: absolute;
    top: 50%;
    left: 2px;
    height: 2px;
    width: 24px;
    background: #555;
    -webkit-transition: all 0.25s;
    transition: all 0.25s;
    z-index:999;
  }
  
  .main-menu-btn-icon:before {
    content: '';
    top: -7px;
    left: 0;
    z-index:999;
  }
  
  .main-menu-btn-icon:after {
    content: '';
    top: 7px;
    left: 0;
    z-index:999;
  }
  
  
  /* x icon */
  
  #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
    height: 0;
    background: transparent;
    z-index:999;
  }
  
  #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
    top: 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    z-index:999;
  }
  
  #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
    top: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index:999;
  }
  
  
  /* hide menu state checkbox (keep it visible to screen readers) */
  
  #main-menu-state {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    z-index:999;
  }
  
  
  /* hide the menu in mobile view */
  
  #main-menu-state:not(:checked) ~ #main-menu {
    display: none;
    z-index:999;
  }
  
  #main-menu-state:checked ~ #main-menu {
    display: block;
    z-index:999;
  }
  
  @media (min-width: 768px) {
    /* hide the button in desktop view */
    .main-menu-btn {
      position: absolute;
      top: -99999px;
      z-index:999;
    }
    /* always show the menu in desktop view */
    #main-menu-state:not(:checked) ~ #main-menu {
      display: block;
      z-index:999;
    }
  }
  
  