body {
  background-color: darkgreen;
  color: white;
  font-family: sans-serif;
  letter-spacing: 0.2ch;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  box-sizing: border-box;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 150px;
  margin: 0;
  padding: 0;
  background-image: url("../images/20200417_145028.jpg");
  background-size: cover;
  background-position: top left;
}

header::before {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

header h1 {
  position: relative;
  z-index: 1;
  margin: 20px;
  padding: 0;
  font-size: 3em;
  letter-spacing: 0.3ch;
}

nav {
  margin: 0px;
  padding: 0px;
  margin-left: 20px;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  flex-direction: row; /* Plasserer listen horisontalt */
  list-style-type: none; /* Fjerner punktmerkene */
  margin: 20px 0;
  padding: 0;
}

nav ul li {
  margin-right: 10px; /* Avstand mellom hvert meny-element */
  align-self: center; /* Sentrerer hvert element vertikalt */
}

nav ul li a {
  color: white; /* Tydelig kontrast mot lys bakgrunn */
  font-weight: bold; /* Tykkere tekst */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Skygge for bedre lesbarhet */
  background-color: rgba(0, 0, 0, 0.5); /* Lett svart bakgrunn bak teksten */
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 1.5rem; /* Stor og tydelig tekst */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  color: yellow;
  background-color: black;
  border-radius: 10px;
}

.navbar {
  display: flex;
  justify-content: left;
  /* flex-wrap: wrap; */
  gap: 1rem;
}

.menu-active {
  color: yellow;
}

main {
  display: flex;
  flex-direction: column;
  width: 90%;
  height: 100%;
  margin: 150px 0 50px 15px;
  color: white;
  padding: 15px;
}

.forsideflex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  height: 400px;
  border: 10px;
  border-color: red;
  margin: 10px;
  padding: 15px;
  justify-content: space-evenly;
}

.forsideflex img {
  max-height: 100%;
  width: auto;
  object-fit: cover;
}

.flex-item {
  flex: 1;
  max-height: 500px;
}

.rundtbilde {
  margin: 10px;
  padding: 5px;
  border-radius: 50%;
  border: 2px darkgrey solid;
}

.bilde-rundekanter {
  margin: 10px;
  padding: 5px;
  border-radius: 30px;
  border: 2px darkgrey solid;
}
.julestjerne {
  width: 200;
  border-radius: 20px;
  position: absolute;
  top: 400px;
  right: 300px;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 10px;
  background-color: darkblue;
  color: aqua;
  text-align: center;
  z-index: 1000;
}

@media (max-width: 768px) {
  header {
    height: 100px;
    text-align: center;
  }

  header h1 {
    font-size: 1.5em;
  }

  nav ul {
    flex-direction: row;
    align-items: center;
    margin: 0;
  }

  nav ul li a {
    font-size: 1rem; /* Stor og tydelig tekst */
    padding: 5px;
  }

  main {
    margin-top: 100px;
  }

  .forsideflex {
    flex-direction: column;
    width: 60%;
    height: 100%;
  }

  .forsideflex img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
}
