/* imports fra google font */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200;400&display=swap");

body {
  background-image: url("../images/desktop/background_image.jpg");
  background-size: cover;
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  line-height: 1.5;
}

.wrapper {
  max-width: 1440px;
  margin: 0 auto;
}

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

/* ---------- header og dens egenskaber ---------- */

/* mobile header 'x' knap */
#burger {
  color: #fff;
  display: none;
}

header {
  position: fixed;
  background-color: #00000060;
  font-family: "Open Sans", sans-serif;
  width: 100%;
}

/* alt med grid, margin og padding til nav'en */
header nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
}

header nav ul:first-child {
  margin-left: 7%;
  list-style: none;
  display: flex;
  width: 50%;
  justify-content: space-between;
}

header nav ul:nth-child(2) {
  list-style: none;
  display: flex;
  margin-left: auto;
  margin-right: 7%;
}

header nav ul:nth-child(2) li:nth-last-child(-n + 4) {
  margin-left: 20px;
}

/* styling på header teksten - a href */
ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.25em;
  display: block;
  width: 17%;
}

nav ul:nth-child(2) li:first-of-type {
  color: #fff;
  font-size: 1.25em;
}

/* når man hover på headeren = bold */
ul li a:hover {
  -webkit-text-stroke: 1.5px #fff;
}

/* gør den aktive side = bold */
.active-header {
  font-weight: 700;
}

/* ---------- footer og dens egenskaber ---------- */

footer {
  background-color: #00000060;
  width: 100%;
  padding: 20px 0;
  bottom: 0;
}

footer img {
  width: 400px;
  height: auto;
  margin: 0 auto;
}

.mobile-hero-logo {
  display: none;
}

/* ---------- media queries ---------- */

/* til tablet */
@media only screen and (max-width: 850px) {
  header nav ul:nth-child(2) li:first-child {
    display: none;
  }
  header nav ul:first-child {
    margin-left: 1%;
    width: 70%;
  }
  header nav ul:nth-child(2) {
    margin-right: 1%;
  }
  header nav ul:nth-child(2) li:nth-last-child(-n + 4) {
    margin-left: 10px;
  }
  footer img {
    width: 260px;
    height: auto;
  }
}

/* til smartphone */
@media only screen and (max-width: 500px) {
  .mobile-hero-logo {
    display: block;
    width: 88%;
    padding: 1.2em 0;
    margin: 0 auto;
  }
  header {
    position: unset;
  }
  #burger {
    position: absolute;
    display: block;
    right: 0.5em;
    top: 0.2em;
    font-size: 2em;
  }
  header nav {
    flex-direction: column;
    height: 100vh;
    padding: 0;
    justify-content: center;
    display: none;
    background-color: #35532f;
  }
  header nav ul:first-child {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    height: 40%;
    align-items: center;
    padding-bottom: 15%;
  }

  header nav ul:nth-child(2) {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    justify-content: space-between;
    width: 70%;
  }
  header nav ul:first-child li {
    padding: 4% 15%;
  }
  header nav ul:nth-child(2) li {
    padding: 10px;
  }
}
