* {
  box-sizing: border-box;
}

body {
  font-family: helvetica, sans-serif;
  background-color: rgb(240, 240, 240);
  padding-left: 2rem;
  padding-right: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Bungee Inline', 'Times New Roman', Times, serif;
}

header,
main,
footer {
  max-width: 120rem;
  /* let it expand but keep it reasonable */
  margin-left: auto;
  margin-right: auto;
}

header h1 {
  text-align: center;
}

nav {
  margin-top: 1rem;
}

nav ul {
  display: flex;
  justify-content: center;
  /* ul is now flex parent for the li children */
}

header {
  padding: 1rem 0 2rem 0;
}


header nav {
  margin-top: 2rem;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  background-image: url(../images/oss.svg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  min-height: 216px;
  text-align: center;
  padding-top: 175px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  /* the above styles essentially remove the 
     default list styles we get from the browser */
}

nav ul li {
  margin-left: 1rem;
}

nav ul li a {
  display: block;
  /* turning the a elements into "block"
     let them take a border and make 
     the content + padding "clickable"
     as links.  This is a common technique for
     hyperlinks in navigation */
}

nav a:link,
nav a:visited,
nav a:hover,
nav a:active {
  color: black;
  text-decoration: none;
  padding: 0.5rem;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom: 2px solid black;
  transition: border-color 0.5s;
}

nav li.login a,
nav li.signup a {
  border: 2px solid black;
  border-radius: 10px;
  background-color: white;
  color: black;
}

nav li.login a:hover,
nav li.signup a:hover {
  color: white;
  background-color: black;
  transition: background-color 0.5s, color 0.5s;
}

nav li.login a {
  border-color: rgb(58, 80, 156);
  color: rgb(58, 80, 156);
}

nav li.login a:hover {
  color: white;
  background-color: rgb(58, 80, 156);
}

div.container {
  margin: 0 auto;
}

div.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

div.container section {}

div.container section img {
  width: 100%;
}

div.container section {
  border: 2px solid rgb(150, 150, 150);
  padding: 1rem;
  background-color: white;
}

section h2 {
  text-align: center;
}

section ul {
  padding-left: 1rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  margin-bottom: 2rem;
  border-top: 2px solid rgb(150, 150, 150);
}

/* for responsiveness, we will just redefine
   grid-template-columns 
   for the main.div container
   for different sceen widths */
  @media screen and (min-width: 768px) {
      /* 2 columns */
      main div.container {
          grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
      }
  }

  @media screen and (min-width: 1100px) {
 
    header {
      display: grid;
      grid-template-columns: min(500px, auto) auto;
      grid-template-areas: "title navigation";
    }
    
    header>h1 {
      grid-area: title;
      justify-self: start;
      align-self: start;
    }
    
    header>nav {
      grid-area: navigation;
      justify-self: end;
      align-self: end;
    }
  }
  
  