/* Basic styling */

nav {
    background: #fff;
    padding: 0 15px;
}

.menu,
.submenu {   
    list-style-type: none;
}
.logo {
    font-size: 20px;
    padding: 7.5px 10px 0px 0px;
}
.item {
    padding: 10px;
}
.item.button {
    padding: 9px 5px;
}
.item:not(.button) a:hover,
.item a:hover::after {
	text-decoration: none;
	background-color: rgba(144, 200, 10, 0.2);
	border-radius: 3px;
}

/* Mobile menu */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
	padding-left: 0px;
}
.menu li a {
    display: block;
    padding: 15px 5px;
	color: black;
}
.menu li.subitem a {
    padding: 10px;
}
.toggle {
    order: 1;
    font-size: 20px;
}
.item.button {
    order: 2;
}
.item {
    order: 3;
    width: 100%;
    text-align: center;
    display: none;
}
.active .item {
    display: block;
}
.button.secondary { /* divider between buttons and menu links */
 /*   border-bottom: 1px #444 solid; */
}

/* Submenu up from mobile screens */
.submenu {
    display: none;
	padding-left: 0px;
	justify-content: center;
	align-items: center;
	width: 100%;
}
.submenu-active .submenu {
   display: block;
   z-index: 1;
}

.has-submenu > a::after {
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    line-height: 16px;
    font-weight: 900; 
    content: "\f078";
    color: black;
    padding-left: 5px;
}

.subitem a {
    padding: 10px 15px;
}
.submenu-active {
    background-color: #fff;
    border-radius: 3px;
}

.subitem {
	border-top: 1px solid #ccc ; /* #A3BB53; */
}

/* Tablet menu */
@media all and (min-width: 700px) {
    .menu {
        justify-content: center;
    }
    .logo {
        flex: 1;
    }
    .item.button {
        width: auto;
        order: 1;
        display: block;
    }
    .toggle {
        flex: 1;
        text-align: right;
        order: 2;
    }
    /* Button up from tablet screen */
    .menu li.button a {
        padding: 10px 15px;
        margin-top: 5px;
    }
    .button a {
        background: #A3BB53;
/*         border: 1px green solid; */
		border-radius: 2px;
    }
    .button.secondary {
        border: 0;
    }
    .button.secondary a {
        background: transparent;
        border: 1px green solid;
		border-radius: 2px;
    }
    .button a:hover {
        text-decoration: none;
    }
    .button:not(.secondary) a:hover {
        background: #7CA813;
        border-color: green;
		border-radius: 2px;
		color: #fff;
    }
    
}

/* Desktop menu */
@media all and (min-width: 960px) {
    .menu {
        align-items: flex-start;     
        flex-wrap: nowrap;
        background: none;
    }
    .logo {
        order: 0;
    }
    .item {
        order: 1;
        position: relative;
        display: block; 
        width: auto;
    }
    .button {
        order: 2;
    }
    .submenu-active .submenu {
        display: block;
        position: absolute;
        left: 0;
        top: 60px;
        background: #fff;
		box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    }
    .submenu-active {
		box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
	}
    .toggle {
        display: none;
    }
    .submenu-active {
        border-radius: 0;
    }
}
@media (max-width: 959px) {
	.item:not(.button) {
	border-bottom: 1px solid #ccc;  /* #A3BB53; */
	}
	.item.button {
		background: #A3BB53;
		border-radius: 2px;
	}
}
