@import url('https://fonts.googleapis.com/css2?family=Caveat&family=Roboto:wght@300;700&display=swap');

body { 
  font-family: Roboto; 
  font-weight: 300;
  padding: 0;
  margin: 0;
  transition: all 2s;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: grid;
  grid-template-columns: auto ;
  align-items: center;
  padding: 2rem;
}

header nav {
  justify-self: end;
}

header nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

header nav ul li a {
  text-decoration: none;
  color: black;
}

section {
  display: grid;
  grid-template-columns: 20% 20% 60%;
  margin-bottom: 1rem;
}

figcaption {
  width: 100%;
  height: 2rem;
  color: white;
  background-color: rgb(3, 69, 3);
  text-align: center;
  padding-top: 2.5rem;
}

figure img {
  width: 100%;
  height: auto;
  display:block
}

h1 {
  color: rgb(28, 84, 28);
  font-size: 1.5rem;
  font-weight: 700;
}

h2 {
  color: rgb(28, 84, 28);
  font-size: 2rem;
  font-weight: 700;
}

footer p {
  color: white;
  font-size: 1rem;
  font-weight:700;
  text-align: center;
  margin: -150px;
}

footer img {
  height: 20rem;
  width: 100%;
  object-fit: cover;
  object-position: center bottom;
}




@media  and (min-width: 40rem) {

  header {min-height: 5 rem; margin: 1rem 0; text align: :left}
  header img {width: 22rem}
  
}