@import url('https://fonts.googleapis.com/css2?family=Average&display=swap');

header {
  background-color: #07689C;
  padding: 40px;
}

body {
  font-family: Average;
  font-size: 16px;
  /* space between fonts is font-size x 1.5 line height.
  line height gets added equally to top and bottom of text in css */
  line-height: 1.5;
  color: #ffffff;
  background-color: #EADDCA; /*Almond*/
  background-size: 5%;
  /* make page width fluid, restrict width once we reach 640px */
  max-width: 640px;
  /* instead of pixel values auto margins centers content on page */
  margin-left: auto;
  margin-right: auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

h1 {
  font-size: 32px;
  color: #fff;
}

h2 {
  font-size: 28px;
  margin-top: 20px;
}

h3 {
  font-size: 22px;
  margin-top: 20px;
}

p {
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  max-width: 100px;
}

nav {
  background-color: #47C2C5;
  /* padding shorthand in order as clockface (top, right, bottom, left) */
  padding: 20px 40px 20px 40px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 15px;
}

nav a:hover {
  color: #07689C;
  border-bottom: solid 2px #fff;
}

.active {
  color: #07689C;
}

section {
  background-color: rgb(248, 248, 248);
  padding: 20px 40px 20px 40px;
  color: #000000;
}

section.image {
  padding: 0px; 
}

/* media query. This is a css selector for when screen width is below 720px
these styles will be applied. An approach to responsive design
by letting you conditionally apply styles at certain widths. */
@media (max-width: 720px) {
  /* these styles will be applied to both the section and header*/
  section,
  header {
    padding: 20px;
  }

  nav {
    padding: 10, 20, 10, 20;
  }

  h2 {
    font-size: 22px;
  }

  body {
    padding-top: 0;
    font-size: 16px;
  }

  nav a {
    /* this will force our navigation links to take nav-up all the available width and stack on top of each other ; */
    display: block;
  }

  nav a:hover {
    /* this will remove the border on mobile or touch devices */
    border: none;
  }

}

/* This is a css selector for when screen width is above 2000px*/
@media (min-width: 2000px) {
  body {
    font-size: 22px;
  }

  section {
    padding: 60px;
  }
}

@media (min-width: 1000px) {
  body {
    font-size: 18px;
  }
}

