/* Basic styling */
* { 
  box-sizing: border-box;
}
nav {
  background: #ded0b3;
  padding: 0 15px;
}
a {
  text-decoration: none;
}
.menu,
.submenu {
  list-style-type: none;    
  margin: 0;
  padding: 0;
  z-index:2;
}
.logo {
margin-top: -5px;
margin-bottom: -5px;
margin-left: 50px;
}

.logo1 {
  max-height: 75px;
}

.item {
  margin-top:10px;
  padding: 10px;
}
.item.button {
  padding: 9px 5px;
}
.item.button a {
  color: #ded0b3;
}

.item.button a:hover {
  color: #5e7072;
  background: #d9dbd9;
}

.item:not(.button) {
  text-decoration: none;
  color: black;
}

.item:not(.button) a:hover,
.item a:hover::after {
  color: white;
}
/* Mobile menu */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  
}
.menu li a {
  color: #17252a;
  display: block;
  padding: 15px 5px;
}
.menu li.subitem a {
  padding: 15px;
}
.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 a {
  /* divider between buttons and menu links */
  background: #17252a;
  border: 1px #444 solid;
}

.button.secondary a{
  /* divider between buttons and menu links */
  border: 1px #444 solid;
}

.button.secondary {
  /* divider between buttons and menu links */
  border-bottom: 1px #444 solid;
}

/* Submenu up from mobile screens */
.submenu {
  display: none;
}
.submenu-active .submenu {
  display: block;
}
.has-submenu i {
  font-size: 12px;
}
.has-submenu > a::after {
  font-family: "Font Awesome 5 Free";
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
  content: "\f078";
  color: #17252a;
  padding-left: 5px;
}
.subitem a {
  padding: 10px 15px;
}
.submenu-active {
  background-color: #ded0b3;
  border-radius: 3px;
}

/* 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: 5px 0;
  }
  .button a {
    background: #17252a;
    border: 1px black solid;
  }
  .button.secondary {
    border: 0;
  }
  .button.secondary a {
    background: #17252a;
    border: 1px black solid;
  }
  .button a:hover {
    text-decoration: none;
  }
  .button a:hover {
  }
}
/* 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: 68px;
    background: #ded0b3;
  }
  .toggle {
    display: none;
  }
  .submenu-active {
    border-radius: 0;
  }
}