/* Standard reset */
body {
  margin: 0;
  padding: 0;
}

/* Make flexbox setup to center page items */
nav {
  position: fixed;
  top: 0;

  margin: 0;
  padding: 0;
  z-index: 100;
  width: 100%;

  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-box-shadow: 0px 6px 15px -6px rgba(0,0,0,0.51);
  -moz-box-shadow: 0px 6px 15px -6px rgba(0,0,0,0.51);
  box-shadow: 0px 6px 15px -6px rgba(0,0,0,0.51);

  border-bottom: 5px;
  border-color: #000;
}

nav .Navcontainer {
  margin: auto;
  padding: 0;

  width: 1000px;
}

nav .Navigation {
  width: 100%;

  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  justify-content: space-between;


}

/* margin auto to center navigation on page, flexbox to align logo left and menu
right on large screens AND centered on small screens */
nav .Navcontainer {
  margin: auto;
  padding: 0;

  width: 1000px;
}

.topnav {
    overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
  text-decoration: underline;
}

  /* Hide the link that should open and close the topnav on small screens */
  .menuicon {
      display: none;
  }

.logobox {
  margin: 0;
  padding: 0;
  list-style: none;
}

.button {
  display: none;
}

.button:hover {
  text-decoration: none;
}

nav .Navigation ul.logobox li p {
  padding: 0;
  font-family: Agency, sans-serif;
  font-size: 18px;
  padding-left: 10px;
}

.topnav a {
  font-family: Agency, sans-serif;
  font-size: 18px;
}

a.altbutton {
  margin-left: 10px;
  text-decoration: none;
  font-family: Agency, sans-serif;
  font-size: 20px;
  padding: 8px 12px 8px 12px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
}

a.altbutton:hover {
  text-decoration: none;
}

.topnav {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  align-items: center;
  justify-content: space-between;

  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  padding-right: 10px;
}

@media all and (max-width: 600px) {
  nav .Navigation ul.logobox li p {
    padding: 0;
  }

  nav .Navigation .topnav.responsive a.altbutton {
    display: none;
  }

  .topnav {
    display: block;
    overflow: hidden;
    padding: 0;
  }

  /* Style the links inside the navigation bar */
  .topnav a {
      float: left;
      display: block;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 17px;
  }

  nav .Navigation .topnav.responsive a {
    font-family: Agency, sans-serif;
  }

  nav {

  }

  nav .Navcontainer {
    margin: auto;
    width: 100%;
  }

  /* place icon and menu underneath each other */
  nav .Navigation {
    -webkit-flex-flow: column wrap;
    flex-flow: column wrap;

    justify-content: center;
  }

  nav .Navigation .logobox {
    width: 100%;
    margin: 0;
    padding: 10px 0 10px 0;

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    align-items: center;
    justify-content: space-between;

    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;

    list-style: none;
  }

  nav .Navigation .logobox li {
    display: inline;
  }

  nav .Navigation .logobox li:first-child {
    margin: 0 10px 0 0;
  }

  nav .Navigation .logobox li:last-child {
    margin: 0 0 0 10px;
  }

  nav .Navigation .logobox li img{
    padding: 5px;
    height: 40px;
    width: 40px;
  }

  nav .Navigation .logobox li p {
    font-size: 16px;
    margin: 0 0 0 10px;
    padding: 0;
  }

  nav .Navigation .logobox .menuicon{
    display: block;


    font-size: 20px;
    text-decoration: none;

    padding: 8px 12px 8px 8px;

  }

  nav .button a {
    text-decoration: none;
    font-family: Agency, sans-serif;
    font-size: 20px;
    padding: 8px 12px 8px 12px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
  }

  nav .Navigation .topnav {
    max-height: 0px;
    -webkit-transition:max-height 200ms ease-in;
    -moz-transition:max-height 200ms ease-in;
    -o-transition:max-height 200ms ease-in;
    transition:max-height 200ms ease-in;
  }

  nav .Navigation .topnav a {
    display: none;
  }

  nav .Navigation .topnav a.icon {
    float: right;
    display: block;
  }

  nav .Navigation .topnav.responsive {
    position: relative;

    max-height: 300px;
  }

  nav .Navigation .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  nav .Navigation .topnav.responsive a {
    float: none;
    display: block;
    text-align: center;
  }
}
