.menu{
    clear: both;
    float: right;
}

nav {
    /* background: #8ac440; */
    position: relative;
    margin: 0 auto;
}

#flexmenu{
  display: flex;
  flex-flow: row wrap;
}

#main-menu{
  align-self: flex-end;
      margin-bottom: 0px;
}
/* keep the drop-downs from being hidden by content wrappers etc */
.sub-menu {
  z-index: 1234;
}

/* General Menu Styling */
#flexmenu li,
#flexmenu li a{
    border: 0;
    list-style: none;
    line-height: 1;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    transition: all ease-in-out .3s;
}

#flexmenu ul li a {
    padding: 11px 17px;
    font-size: 18px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #575757;
    font-weight: 700;
    text-transform: initial;
}

#flexmenu ul li.has-sub > a {
    padding-right: 30px;
}
/* Drop icon */
/*#flexmenu ul li.has-sub > a:after {
    position: absolute;
    top: 22px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #F14F80;
    content: '';
}*/
#flexmenu ul ul li.has-sub > a:after {
    position: absolute;
    top: 16px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #FFF;
    content: '';
}
#flexmenu > ul > li.has-sub > a:before {
    position: absolute;
    top: 19px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ddd;
    transition: all .25s ease;
}
#flexmenu > ul > li.has-sub:hover > a:before {
    top: 23px;
    height: 0;
}
#flexmenu ul ul li.has-sub > a:before {
    position: absolute;
    top: 13px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #FFF;
    content: '';
    transition: all .3s ease;
}
#flexmenu ul ul > li.has-sub:hover > a:before {
    top: 17px;
    height: 0;
}
#flexmenu ul ul li.has-sub:hover,
#flexmenu ul li.has-sub ul li.has-sub ul li:hover {
    background: #8ac440;
}
/* Submenu default states, removed by hover gives the animation */
#flexmenu ul ul {
    position: absolute;
    left: -9999px;
}
#flexmenu li:hover > ul {
    left: auto;
    z-index: 99;
}
#flexmenu ul ul li {
    height: 0;
    background: #39b54a;
    transition: all .25s ease
    padding-left: 3px;
    border-bottom: solid 1px white;
}
#flexmenu li:hover > ul > li {
    height: 35px;
}
/* tertiary menu */
#flexmenu ul ul ul {
    margin-left: 100%;
    top: 0;
}
#flexmenu ul ul li a {
    padding: 11px 15px;
    width: 276px;
    font-size: 12px;
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
}
@media screen and (max-width: 768px) {
  /* Center the logo and remove the bar */
    

  /* Hamburger */
    .button {
        background: #8ac440;
        width: 60px;
        height: 48px;
        /*position: absolute;*/
        right: 0;
        top: 0;
        cursor: pointer;
        z-index: 10000;
    }
    .button:after {
        position: absolute;
        top: 22px;
        right: 20px;
        display: block;
        height: 4px;
        width: 20px;
        border-top: 2px solid #dddddd;
        border-bottom: 2px solid #dddddd;
        content: '';
    }
    .button:before {
        transition: all .3s ease;
        position: absolute;
        top: 16px;
        right: 20px;
        display: block;
        height: 2px;
        width: 20px;
        background: #ddd;
        content: '';
    }
  /* Turn it into an X when open */
    .button.menu-opened{
      /*background: #2e1f62;*/
    }
    .button.menu-opened:after {
        transition: all .3s ease;
        top: 23px;
        border: 0;
        height: 2px;
        width: 19px;
        background: #fff;
        -webkit-transform: rotate(45deg);
                transform: rotate(45deg);
    }
    .button.menu-opened:before {
        top: 23px;
        background: #fff;
        width: 19px;
        -webkit-transform: rotate(-45deg);
                transform: rotate(-45deg);
    }
  /* reset horizontal styles */
    #flexmenu ul {
        display: none;
    }
    #flexmenu ul li,
    #flexmenu ul li a,
    #flexmenu ul ul li a{
        width: 100%;
    }

    #flexmenu ul ul li,
    #flexmenu li:hover > ul > li {
        height: auto;
    }
    #flexmenu ul ul li a {
        padding-left: 25px;
    }
    #flexmenu ul ul ul li a {
        padding-left: 35px;
    }

    #flexmenu ul ul,
    #flexmenu ul ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left;
    }
    #flexmenu ul ul ul li.active a {
        border-left: none;
    }
    #flexmenu > ul > li.has-sub > ul > li.focus > a,
    #flexmenu > ul ul > li.has-sub > ul > li.focus > a {
        background: #262626;
        transition: all .3s ease;
    }
  /* remove cross when menu item is toggled */
    #flexmenu > ul > li.has-sub > a:after,
    #flexmenu > ul > li.has-sub > a:before,
    #flexmenu ul ul > li.has-sub > a:after,
    #flexmenu ul ul > li.has-sub > a:before {
        display: none;
    }

  /* submenu toggles */
    #flexmenu .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        height: 46px;
        width: 46px;
        cursor: pointer;
    }
    #flexmenu ul ul .submenu-button {
        height: 34px;
        width: 34px;
    }
    #flexmenu .submenu-button:after {
        position: absolute;
        top: 22px;
        right: 19px;
        width: 8px;
        height: 2px;
        display: block;
        background: #ddd;
        content: '';
    }
    #flexmenu ul ul .submenu-button:after {
        top: 15px;
        right: 13px;
    }
    #flexmenu .submenu-button.submenu-opened:after {
        background: #fff;
    }
    #flexmenu .submenu-button:before {
        position: absolute;
        top: 19px;
        right: 22px;
        display: block;
        width: 2px;
        height: 8px;
        background: #ddd;
        content: ''
    }
    #flexmenu ul ul .submenu-button:before {
        top: 12px;
        right: 16px;
    }
    #flexmenu .submenu-button.submenu-opened:before {
        display: none;
    }

  .note{
    font-size: 3vw;
  }
}


.menu2 #flexmenu ul li a {
    color: white;
    font-size: 16px;
}

.menu2 {
    background: #39b54a;
}

.menu2 #flexmenu li:hover {
    /*border-radius: 0;*/
    background: #1f812d;
}
.menu2 #flexmenu ul li ul li:hover {
    border-radius: 0;
}



.menu{
    clear: both;
    float: left;
}

nav {
    position: relative;
    margin: 0 auto;
}

#flexmenu2{
  display: flex;
  flex-flow: row wrap;
}

#main-menu{
  align-self: flex-end;
      margin-bottom: 0px;
}
/* keep the drop-downs from being hidden by content wrappers etc */
.sub-menu {
  z-index: 1234;
}

/* General Menu Styling */
#flexmenu2 li,
#flexmenu2 li a{
    border: 0;
    list-style: none;
    line-height: 1;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    transition: all ease-in-out .3s;
}

#flexmenu2 ul li a {
    padding: 11px 17px;
    font-size: 18px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #575757;
    font-weight: 700;
    text-transform: initial;
}

#flexmenu2 ul li.has-sub > a {
    padding-right: 17px;
}
/* Drop icon */
/*#flexmenu2 ul li.has-sub > a:after {
    position: absolute;
    top: 22px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #F14F80;
    content: '';
}*/
#flexmenu2 ul ul li.has-sub > a:after {
    position: absolute;
    top: 16px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #FFF;
    content: '';
}
#flexmenu2 > ul > li.has-sub > a:before {
    position: absolute;
    top: 19px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ddd;
    transition: all .25s ease;
}
#flexmenu2 > ul > li.has-sub:hover > a:before {
    top: 23px;
    height: 0;
}
#flexmenu2 ul ul li.has-sub > a:before {
    position: absolute;
    top: 13px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #FFF;
    content: '';
    transition: all .3s ease;
}
#flexmenu2 ul ul > li.has-sub:hover > a:before {
    top: 17px;
    height: 0;
}
#flexmenu2 ul ul li.has-sub:hover,
#flexmenu2 ul li.has-sub ul li.has-sub ul li:hover {
    background: #8ac440;
}
/* Submenu default states, removed by hover gives the animation */
#flexmenu2 ul ul {
    position: absolute;
    left: -9999px;
}
#flexmenu2 li:hover > ul {
    left: auto;
}
#flexmenu2 ul ul li {
    height: 0;
    background: #39b54a;
    transition: all .25s ease
    padding-left: 3px;
    border-bottom: solid 1px white;
}
#flexmenu2 li:hover > ul > li {
    height: 35px;
}
/* tertiary menu */
#flexmenu2 ul ul ul {
    margin-left: 100%;
    top: 0;
}
#flexmenu2 ul ul li a {
    padding: 11px 15px;
    width: 276px;
    font-size: 12px;
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
}
@media screen and (max-width: 768px) {
  /* Center the logo and remove the bar */
    .menu{
        float: right;
        padding-top: 0px;
    }

  /* Hamburger */
    .button {
        background: #8ac440;
        width: 60px;
        height: 48px;
        right: 0;
        top: 0;    margin: 0 auto;
    margin-right: 0;
        cursor: pointer;
        z-index: 10000;
    }
    .button:after {
        position: absolute;
        top: 22px;
        right: 20px;
        display: block;
        padding: 2px;
        height: 4px;
        width: 20px;
        border-top: 2px solid #dddddd;
        border-bottom: 2px solid #dddddd;
        content: '';
    }
    .button:before {
        transition: all .3s ease;
        position: absolute;
        top: 16px;
        right: 20px;
        display: block;
        height: 2px;
        width: 20px;
        background: #ddd;
        content: '';
    }
  /* Turn it into an X when open */
    .button.menu-opened{
      background: none;
    }
    .button.menu-opened:after {
        transition: all .3s ease;
        top: 23px;
        border: 0;
        height: 2px;
        width: 19px;
        background: #95ca31;
        -webkit-transform: rotate(45deg);
                transform: rotate(45deg);
    }
    .button.menu-opened:before {
        top: 23px;
        background: #95ca31;
        width: 19px;
        -webkit-transform: rotate(-45deg);
                transform: rotate(-45deg);
    }
  /* reset horizontal styles */
    #flexmenu2 ul {
        display: none;
    }
    #flexmenu2 ul li,
    #flexmenu2 ul li a,
    #flexmenu2 ul ul li a{
        width: 100%;
    }

    #flexmenu2 ul ul li,
    #flexmenu2 li:hover > ul > li {
        height: auto;
    }
    #flexmenu2 ul ul li a {
        padding-left: 25px;
    }
    #flexmenu2 ul ul ul li a {
        padding-left: 35px;
    }

    #flexmenu2 ul ul,
    #flexmenu2 ul ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left;
    }
    #flexmenu2 ul ul ul li.active a {
        border-left: none;
    }
    #flexmenu2 > ul > li.has-sub > ul > li.focus > a,
    #flexmenu2 > ul ul > li.has-sub > ul > li.focus > a {
        background: #262626;
        transition: all .3s ease;
    }
  /* remove cross when menu item is toggled */
    #flexmenu2 > ul > li.has-sub > a:after,
    #flexmenu2 > ul > li.has-sub > a:before,
    #flexmenu2 ul ul > li.has-sub > a:after,
    #flexmenu2 ul ul > li.has-sub > a:before {
        display: none;
    }

  /* submenu toggles */
    #flexmenu2 .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        height: 46px;
        width: 46px;
        cursor: pointer;
    }
    #flexmenu2 ul ul .submenu-button {
        height: 34px;
        width: 34px;
    }
    #flexmenu2 .submenu-button:after {
        position: absolute;
        top: 22px;
        right: 19px;
        width: 8px;
        height: 2px;
        display: block;
        background: #ddd;
        content: '';
    }
    #flexmenu2 ul ul .submenu-button:after {
        top: 15px;
        right: 13px;
    }
    #flexmenu2 .submenu-button.submenu-opened:after {
        background: #fff;
    }
    #flexmenu2 .submenu-button:before {
        position: absolute;
        top: 19px;
        right: 22px;
        display: block;
        width: 2px;
        height: 8px;
        background: #ddd;
        content: ''
    }
    #flexmenu2 ul ul .submenu-button:before {
        top: 12px;
        right: 16px;
    }
    #flexmenu2 .submenu-button.submenu-opened:before {
        display: none;
    }

  .note{
    font-size: 3vw;
  }
}


.menu2 #flexmenu2 ul li a {
    color: white;
    font-size: 16px;
}

.menu2 {
    background: #39b54a;
}

.menu2 #flexmenu2 li:hover {
    background: #1f812d;
    border-radius: 10px 10px 0px 0px;
}
.menu2 #flexmenu2 ul li ul li:hover {
    border-radius: 0;
}