@font-face {
  font-family: Andika;
  src: url(font/andika-regular-webfont.woff2);
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}

html {
  --header-color: #988b79;
  --background-color: #d9cebc;
  --tekst-color: #58462c;
}

/* Normalisering af font og linjehøjde på dokumentets tekster, samt nedtoning af tekstfarven */
body {
  font-family: Andika;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--tekst-color);
  overflow-x: scroll;
}

/* Navigationsmenu */

header {
  position: sticky;
  top: 0;
  padding: 1rem 1rem;
  box-shadow: 0 12px 28px 0 rgb(0 0 0 / 30%);
  display: flex;
  justify-content: space-between;
  background-color: var(--header-color);
}
header nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-bottom: 100px;
  gap: 30px;

  text-align: center;
  font-size: 18px;
}
a {
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
}

/* Dropdown Button */
.dropbtn {
  background-color: var(--header-color);
  color: white;
  border: none;

  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  font-family: Andika;
  color: #ffffff;
}

.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown p {
  color: #58462c;
  font-style: italic;
  padding-top: 10%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--header-color);
  min-width: 210px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: rgb(255, 255, 255);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  color: var(--tekst-color);
}

a:hover {
  color: var(--tekst-color);
}

footer {
  background-color: var(--header-color);
  font-size: 25px;
  text-align: center;
  color: white;

  padding: 30px;
  margin-top: 100px;
}

.footer_nederst {
  font-size: 10px;
}

/* header */
.banner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 100px;
}

/* burgermenu */
.toggle-btn {
  background: transparent;
  color: white;
  font-family: Andika;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  min-width: 44px;
  min-height: 44px;
  font-size: 18px;
  cursor: pointer;

  display: none;
}

@media (max-width: 1200px) {
  .toggle-btn {
    display: block;
  }

  .toggle-btn span {
    display: block;
  }

  .menu.shown {
    display: contents;
  }

  .menu ul {
    display: none;
  }

  .menu.shown > ul {
    border-top: 1px solid var(--black);
    padding-top: 1rem;
  }

  .menu.shown ul {
    display: flex;
    flex-flow: column;
    flex-basis: 100%;
    list-style: none;
    gap: 12px;
    font-size: 1.2rem;
  }
  .bar1,
  .bar2,
  .bar3 {
    width: 35px;
    height: 5px;
    background-color: white;
    margin: 6px 0;
    border-radius: 5px;
    transition: 0.4s;
  }

  .change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }

  .change .bar2 {
    opacity: 0;
  }

  .change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }

  .dropdown-content {
    left: -30px;
    opacity: 0;
    position: absolute;
    top: 45px;
    visibility: hidden;
    z-index: 1;

    display: flex;
    flex-direction: column;
    /*
    display: none;
    position: absolute;
    background-color: var(--header-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);

    margin-left: 80px;
    margin-top: -100px;
    */
  }

  li:hover .dropdown-content {
    opacity: 1;
    top: 20px;
    visibility: visible;
  }
}

@media (max-width: 650px) {
  .menu ul {
    display: none;
    gap: 20px;
  }

  footer {
    font-size: 14px;
  }
}
