/* General */
:root {
  --accent: #78bd22;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: sans-serif;
}

a {
  text-decoration: none;
}

.button {
  background-color: var(--accent);
  color: #fff;
  padding: 0.5em 1em;
  text-decoration: none;
}
.button:hover {
  cursor: pointer;
  background-color: grey;
}
.button.I {
  background-color: white;
  color: var(--accent);
}
.button.I:hover {
  color: white;
  background-color: grey;
}

/* Z-index */

/* add bottom padding to all text elements using em so its based on size */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  padding-bottom: 1em;
}

/* Header Section */
header {
  background-image: url("../IMG/tree.jpg");
  background-size: cover;
  background-position: top 10% center;

  position: fixed;
  width: 100%;
  height: 70vh;
  z-index: -1;

  color: #fff;
}

nav {
  margin-left: auto;
  max-width: 1000px;
  font-size: 1.5em;
}
.navLinks a {
  /* positioning */
  display: flex;

  /* list styles */
  list-style-type: none;
  color: #fff;
}

.navLinks a.selected,
.navLinks a:hover,
.navLinks a:focus {
  text-decoration: underline;
}

.navLinks {
  background-color: var(--accent);
  pointer-events: none;

  position: fixed;
  height: 100vh;
  width: 100%;

  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  display: none;
}
.navLinks.open {
  pointer-events: all;
  z-index: 10;
  display: flex;
}

.hamburger {
  position: absolute;
  cursor: pointer;
  right: 5%;
  top: 5%;
  transform: translate(-5%, -5%);
  z-index: 12;
}

.line {
  width: 30px;
  height: 3px;
  background: white;
  margin: 5px;
}

.hero {
  padding: 2em;
  text-align: center;
  height: 55vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;
  top: 10vh;
  z-index: -1;
}
.heroTxt h1 {
  font-size: 18vw;
  padding-bottom: 0;
}
.hero h2 {
  padding-top: 0.25em;
  border-top: 3px solid var(--accent);
  display: inline-block;
  font-size: 5vw;
}

/* Footer section */
footer {
  background-color: var(--accent);
  margin-top: 50px;
  padding: 2rem;
  color: white;
  text-align: left;
}
footer a {
  color: white;
  text-decoration: underline;
}
footer a:hover {
  color: grey;
}
footer #logo {
  width: 30%;
  min-width: 100px;
  max-width: 200px;
}

footer #contain {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
}

footer #div_1 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 2rem 0;
}
footer #div_1 a {
  text-decoration: none;
}

footer #div_2 {
  border-bottom: 1px solid white;
  border-top: 1px solid white;
  padding: 2rem 0;
}

footer #div_3 {
  margin-top: 2rem;
  text-align: center;
}
footer #div_3 img {
  width: 80px;
  margin-bottom: 0.5rem;
}

/* Page content */
main {
  position: absolute;
  top: 70vh;
  background-color: #fff;
  border-top: 10px solid var(--accent);
  width: 100%;
  z-index: 0;
  pointer-events: all;
}
main.open {
  display: none;
}

.content {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-top: 40px;
}

/* On a computer */
@media only screen and (min-width: 1050px) {
  .hero {
    align-items: flex-end;
    text-align: right;
    position: absolute;
    top: 10vh;
    right: 0;
  }
  .hero h1 {
    font-size: 10vw;
  }
  .hero h2 {
    font-size: 3vw;
  }
  .line {
    display: none;
  }
  .navLinks {
    flex-direction: row;
    height: 15vh;
    position: relative;
    background-color: transparent;
    display: flex;
    pointer-events: all;
  }

  nav {
    font-size: 1em;
  }

  /* Footer */
  footer #contain {
    flex-direction: row;
    align-items: center;
  }

  footer #div_2 {
    text-align: right;
    border: none;
  }
}
