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


/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the navbar (.icon) */
@media screen and (max-width: 700px) {
  .navbar {background-color:#333;}
  .navbar a:not(:first-child), .navbar li:not(:first-child) {
    display: none;
  }
  .navbar a.icon {
    float: right;
    display: block;
    font-size: 20px;
    text-decoration: none;
    padding: 14px 16px;
  }
}

/* The "responsive" class is added to the navbar with JavaScript when the user clicks on the icon. This class makes the navbar look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 700px) {
  .navbar.responsive
  {
    position: relative;
  }
  .navbar.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .navbar.responsive li {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
  }
  .navbar.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
