/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color."
   
   https://www.freecodecamp.org/ is a great place to learn HTML/CSS*/

body{
  background-color:LightCyan;
  color: black;
  font-family: Verdana;
}

/* Add a grey-green background color to the top navigation */
.navbar {
  background-color:DarkSlateGray;
  overflow: hidden;
  display:flex;
}

/* Style the links inside the navigation bar */
.navbar a {
  color: white;
  text-align: center;
  padding: 12px 14px;
  text-decoration: none;
  font-size: 1em;
  background-color:DarkSlateGray;
}

/* Change the color of links on hover */
.navbar a:hover {
  background-color:Teal;
}

/* Add an active class to highlight the current page. */
.navbar a.active {
  background-color:LightSeaGreen;
}

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

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("index"). Show the link that should open and close the navbar (.icon) */
@media screen and (max-width: 62em)  {
  .navbar a:not(:first-child) {
  display: none;
}

  .navbar a.icon {
  display: block;
  }
}

/* The "responsive" class is added to the navbar with JavaScript when the user clicks on the icon. This makes the navbar easier to use on mobile devices (display the links vertically instead of horizontally) */
@media screen and (max-width: 62em) {
  .navbar.responsive {
  flex-direction: column;
  align-content: space-between; 
}

  .navbar.responsive a.icon{
  display:block;
  text-align:left;
}

  .navbar.responsive a {
  display:flex;
 }
}