.navbar {
  display: flex;
  position: fixed;
  background-color: none;
  margin-bottom: 0;
  padding: 15px 24px;
  text-align: center;
  right: 80px;
  justify-content: space-between;
  z-index: 100;
}

section {
  margin: 0; /* Nullstiller margin */
  padding: 0; /* Nullstiller padding */
  width: 100%; /* Setter bredden til 100% */
  box-sizing: border-box; /* Inkluderer padding og border i beregningen av bredden */
}

body {
  margin: 0; /* Nullstiller margin for body */
  font-family: "Times New Roman", Times, serif;
}

.navbar li {
  list-style: none;
}

.navbar a {
  color: black;
  text-decoration: none;
}

/* Style the dropdown menu */
.nav-link {
  color: #4c4c4f;
  padding: 5px 5px;
  white-space: nowrap;
  position: relative;
  display: block;
  transition: 0.5s;
  cursor: pointer;
}

.nav-link:hover {
  color: #4c4c4f;
}

.nav-link::after {
  position: absolute;
  content: "";
  top: 100%;
  width: 100%;
  height: 2px;
  left: 0;
  transition: transform 0.5s;
  transform: scaleX(0);
  background-color: #4c4c4f;
}

.nav-link:hover:after {
  transform: scaleX(1);
  transform-origin: center;
}

.hamburger {
  display: block;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #4c4c4f;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu {
  position: fixed;
  display: flex;
  justify-content: space-between;
  color: black;
  gap: 0;
  flex-direction: column;
  transition: 0.5s ease;
  text-align: center;
  color: #4c4c4f;
  padding: 20px 20px;
  top: -100%;
  width: 5%;
  opacity: 0;
  width: fit-content;
}

.nav-item {
  margin: 16px 0;
}

.menu.active {
  top: auto;
  opacity: 1;
  right: 55px;
  background-color: white;
  border-radius: 25px;
}

body {
  background-color: #ffff;
  margin-top: 0;
  font-family: Arial, Helvetica, sans-serif;
  margin-left: 0;
}

a {
  color: black;
  text-decoration: none; /* no underline */
}

h1 {
  text-align: center;
}

.topbar {
  background-color: #ffff;
  height: 15%;
  width: 100%;
  position: fixed;
  z-index: 5;
}
.nesskilogo {
  height: 12%;
  width: auto;
  position: fixed;
  margin-top: 5px;
  margin-left: 10%;
}

.logo {
  width: 100%;
  animation: logoscroll;
  animation-timeline: scroll();
  animation-range: 0vh 100vh;
  margin-top: 3%;
}

.tekstlogo {
  animation: scroll;
  animation-timeline: scroll();
  animation-range: 0vh 100vh;
  position: fixed;
}

.tekstlogo {
  position: fixed;
  width: 30%;
  margin-left: 35%;
  padding-top: 1%;
}

.info {
  width: 100%;
  margin-top: 5%;
  font-size: x-large;
}

.informasjontxt {
  width: 100%;
  margin-bottom: 0%;
  background-color: rgb(239, 103, 103);
  padding-top: 2%;
  border-top: 1px solid black;
}

.infotext {
  margin-left: -10%;
}

.infotext > p {
  font-family: "Times New Roman", Times, serif;
  font-size: larger;
  line-height: normal;
}

.infogrid {
  display: grid;
  grid-template-columns: auto auto;
  background-color: rgb(239, 103, 103);
  padding-bottom: 5%;
  padding-left: 10%;
}

.liste {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2%;
  margin-left: 10%;
  margin-right: 10%;
}

.liste li {
  margin-bottom: 2%;
  list-style: disc;
}
.inneholder {
  border-radius: 25px;
  background-color: rgb(239, 103, 103);
  padding: 2%;
  border: solid 3px rgb(59, 59, 59);
  margin-top: 5%;
  margin-left: 15%;
  width: 70%;
}

.inneholder > p {
  text-align: center;
}

h2 {
  text-align: center;
}
.info > p {
  text-align: center;
}

@keyframes logoscroll {
  from {
    margin-top: 10%;
    width: 50%;
    margin-left: 25%;
  }
  to {
    margin-top: 0%;
    width: 30%;
    margin-left: 35%;
    opacity: 0%;
  }
}
@keyframes scroll {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

li {
  list-style: none;
  margin-bottom: 2%;
}

.video {
  width: 30%;
  margin-left: 35%;
  z-index: 2;
  border-radius: 20px;
  box-shadow: #4c4c4f;
}

.kontakt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: x-large;
}

.info {
  font-size: large;
}
.mail {
  text-align: center;
  margin-bottom: 10%;
  margin-top: 10%;
  width: 80%;
  margin-left: 10%;
  font-size: x-large;
}
.trener > img {
  width: 250px;
  height: auto;
}

.trener > a {
}
.trenere {
  display: grid;
  grid-template-columns: auto auto;
  row-gap: 10px;
  width: 100%;
}

.trener {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  font-size: large;
}

.samarbeid {
  display: grid;
  grid-template-columns: auto auto auto;
  width: 100%;
}

.skjema:hover {
  cursor: pointer;
  scale: 1.1;
}

.skjema {
  min-width: fit-content;
  background-color: rgb(235, 69, 69);
  padding-left: 4%;
  padding-right: 4%;
  padding-top: 1%;
  padding-bottom: 1%;
  border-radius: 15px;
  border: 3px solid black;
  transition: 0.5s ease;
  text-align: center;
}

.socialmedia {
  display: flex;
  gap: 40%;
  width: fit-content;
  margin-left: 50%;
  transform: translate(-50%);
  text-align: center;
}

.fa {
  padding: 40px;
  font-size: 100px;
  width: 50px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  margin-top: 1%;
}

.fa:hover {
  opacity: 0.7;
}

.fa-facebook {
  background: #3b5998;
  color: white;
}
.fa-instagram {
  background: #cb2027;
  color: white;
}

footer {
  margin-top: 5%;
  border-top: 2px solid gray;
  width: 100%;
}

/* lage til mobil. topbar dekker når for øverste bilde, mulig det skal fjernes helt her og bare ha video*/
@media (max-width: 950px) {
  .navbar {
    right: 20px;
    top: 1%;
  }

  .topbar {
    height: 10vh;
    min-height: fit-content;
  }

  .nesskilogo {
    max-height: 6%;
    padding: 3%;
    margin-left: 1%;
  }
  .tekstlogo {
    margin-top: 2%;
    height: 4%;
    width: auto;
    margin-left: 50%;
    transform: translate(-50%);
  }
  .logo {
    padding-top: 15%;
    margin-top: 5%;
  }

  .galleri {
    height: fit-content;
    width: 80%;
    margin-left: 10%;
    margin-bottom: 5%;
  }
  .video {
    height: auto;
    width: 100%;
    margin-left: auto;
  }

  .infogrid {
    margin-top: 0;
    grid-template-columns: 1fr;
    background-color: #ffff;
    width: 100%;
    padding-left: 0%;
  }

  .liste {
    display: flex;
    flex-direction: column;
  }
  .informasjontxt {
    margin-bottom: 0%;
  }

  .infotext {
    width: 94%;
    margin-left: 0%;
    padding: 3%;
    background-color: rgb(239, 103, 103);
  }

  .kontakt {
    text-align: center;
  }

  .skjema {
    padding-top: 5%;
    padding-bottom: 5%;
  }

  .mail {
    width: 100%;
    margin-left: 0%;
    text-align: center;
  }

  .trenere {
    display: grid;
    grid-template-columns: auto auto;
  }

  .trener {
    display: flex;
    flex-direction: column;
    font-size: small;
  }

  .trener > img {
    width: 90px;
    height: auto;
  }

  .socialmedia {
    margin-top: 3%;
    gap: 10%;
  }
  .fa {
    padding: 20px;
    font-size: 50px;
    width: 20px;
  }
}
