/* standard stylesheet */

/* font import 'inter' & 'roboto' */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Roboto&display=swap");

/* stjernereglen */
* {
  margin: 0;
  padding: 0;
}

/* billede reglen */
img {
  width: 100%;
  display: block;
}

/* ændre alt teksten i body til 1em */
body {
  font-size: 1em;
  font-family: "Inter", sans-serif;
}

/* fjerner irriterende styling fra a */
a {
  text-decoration: none;
}

/* den aktive side */
#active {
  color: #e30613;
  font-weight: 600;
}

/* den man hover over bliver bold*/
nav ul li a:hover {
  color: #e30613;
}

/* ---------- header nav ---------- */

/* headeren */
header {
  max-width: 1000px;
  margin: 0 auto;
}

/* nav */
header nav {
  background-color: #eeeeee;
  font-family: "Roboto", sans-serif;
  z-index: 10;
}

ul {
  list-style: none;
}

/* logoet */
header img {
  width: 149px;
}

/* alt med nav og placering af elementerne */
header nav ul {
  display: flex;
  padding: 20px;
}

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

header nav ul li:nth-child(n + 2) {
  align-self: center;
}

header nav ul li:nth-child(-1n + 7) {
  margin-right: 22px;
}

header nav ul li:last-of-type {
  margin-left: auto;
}

header nav i.fas {
  display: none;
  font-size: 1.8em;
  padding-right: 20px;
}

/* ---------- footer ---------- */

/* footer */
footer {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background-color: #000;
  color: #fff;
  padding: 20px 0;
}

/* padding til footer på tablet, så tekst ikk går helt ud til siden */
footer p {
  padding: 10px;
}

footer p:nth-child(-n + 2) {
  margin-bottom: 1em;
}

/* ---------- media queries ---------- */
/* tablet */
@media only screen and (max-width: 860px) {
  header nav {
    position: fixed;
    width: 100vw;
    box-shadow: -1px 7px 13px -8px rgba(0, 0, 0, 0.33);
    -webkit-box-shadow: -1px 7px 13px -8px rgba(0, 0, 0, 0.33);
    -moz-box-shadow: -1px 7px 13px -8px rgba(0, 0, 0, 0.33);
  }
  header nav ul {
    display: flex;
    padding: 20px;
    flex-direction: column;
  }
  header nav ul li:nth-child(-1n + 7) {
    margin-right: 0px;
  }
  header nav ul li:last-of-type {
    margin-left: 0;
  }
  header nav ul li:nth-child(n + 2) {
    display: none;
  }
  header nav ul li:nth-child(1) {
    align-self: start;
    justify-self: start;
  }
  header nav i.fas {
    display: block;
    margin-top: 20px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
  }
  header nav ul li:nth-child(1n + 2) {
    padding: 10px 40px;
  }
  header nav ul li:nth-child(2) {
    padding-top: 30px;
  }
}

@media only screen and (max-width: 420px) {
  header nav {
    font-size: 1.4em;
    position: fixed;
    width: 100vw;
    bottom: 0;
    box-shadow: -1px -8px 13px -8px rgba(0, 0, 0, 0.33);
    -webkit-box-shadow: -1px -8px 13px -8px rgba(0, 0, 0, 0.33);
    -moz-box-shadow: -1px -8px 13px -8px rgba(0, 0, 0, 0.33);
  }
  header nav i.fas {
    margin-top: 14px;
  }
}
