body {
  margin: 0;
  padding: 0;
}

.video-header { 
  width: 100vw;
  height: 80vh; 
  overflow: hidden;    
}   

.video-header video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 120px 120px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: #183866; 
  opacity: 0.30;
  pointer-events: none;
  border-radius: 0 0 120px 120px;
} 






.header-content-container {
  position: absolute;
  top: 30%; /* Juster plassering i headeren */
  left: 10%; /* Plassering fra venstre kant */
  /*width: 80%; /* Kontrollerer bredden for hele tekst og knapper */
  z-index: 5; /* Sørger for at innholdet vises foran videoen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px; /* Mellomrom mellom tekst og knapper */ 
  /*font-size: clamp(1rem, 2vw, 3rem);*/
  
}



.header-text {
  width: 80%;
  text-align: left;

}

.header-text h1 {
  font-size: clamp(1.75rem, 1vw + 1rem, 2.375rem);
  color: #183866;
  font-family: Arial, sans-serif;
  margin-bottom: 8px;
  
}

.header-text h2 {
  font-size: clamp(1.25rem, 1vw + 0.75rem, 1.5rem);
  color: #FFFF;
  font-family: Arial, sans-serif;
  margin: 0;
  font-weight: normal;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top:24px; 

}

.button-container {
  flex: 1; 
 max-width: 300px;
  text-align: center;

}

.custom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 28px 24px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #183866;
  font-size: 18px;
  font-family: Arial, sans-serif;
  text-decoration: none;
  border-radius: 16px;
  font-weight: bold;
}




.custom-button img {
  margin-left: 16px;
  width: 24px;
  height: auto;
}

.custom-button:hover {
  text-decoration: none;
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: #183866;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 1);
}
 
 


/*Ressurs knapp*/ 
/* Container for logo og ressurs-knapp */
.logo-ress-container {
  position: absolute; /* Plasserer containeren i forhold til header/videoen */
  top: 20px;
  left: 0;
  width: 100%; /* Full bredde for fleksibilitet */
  z-index: 10; /* Sørger for at den vises foran andre elementer */
  display: flex; /* Bruk flexbox for å justere innholdet */
  justify-content: space-between; /* Plasserer elementer på hver sin side */
  align-items: center; /* Vertikal sentrering */
  padding: 0 20px; /* Litt innrykk fra kanten */

}

/* Logo-styling */
.logo {
  display: inline-block;
  margin: 28px;
  padding-left: 24px;
  width: 60%; 
}
 
.logo img {
   width: 50%;
  height: auto; 
  display: block;
  opacity: 1;
}

/* Ressurs-knapp styling */
.ressurs-knapp {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-weight: 500; /* Semibold */
  border: 2px solid #fff; /* Hvitt ramme */
  border-radius: 100px; /* Runde kanter */
  padding: 12px 24px; /* Jevn innvendig plass */
  background-color: transparent;
  color: #fff; /* Hvitt tekstfarge */
  text-decoration: none; /* Ingen underline */
  transition: all 0.3s ease-in-out;

  /* Minimum og faste størrelser */
  min-width: 160px; /* Minimum bredde */
  min-height: 50px; /* Minimum høyde */
  width: fit-content; /* Tilpass bredde etter innhold */
  height: auto; /* Dynamisk høyde */
  text-align: center;
  white-space: nowrap; /* Hindrer tekstbryting */
}






.ressurs-knapp:hover {
  color: #183866; /* Blå typografi ved hover */
  border-color: #183866; /* Blå border ved hover */
  text-decoration: none; 
  font-family: arial, sans-serif; 
  font-size:18px; 
}


.midas-prosjekt-knapp:hover{
  color: #ffff; 
  text-decoration: underline; 
    font-family: arial, sans-serif; 
  font-size:18px; 
}



/* Container for knappene */
.test {
  display: flex;
  align-items: center;
  gap: 28px; /* Justerer avstanden mellom knappene */
  margin-right: 100px;
}
 

/* Container for MIDAS-prosjekt-knappen */
.midas-prosjekt-container {
  display: flex; /* Holder tekst og ikon ved siden av hverandre */
  align-items: center; /* Sentraliserer vertikalt */
  margin-right: 16px; /* Avstand til ressurs-knappen */
}

/* MIDAS-prosjekt-knapp */
.midas-prosjekt-knapp {
  display: flex;
  align-items: center;
  gap: 8px; /* Avstand mellom ikon og tekst */
  white-space: nowrap; /* Hindrer tekstbryting */
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

/* Styling for ikonet */
.ikon {
  width: 14px; /* Økt størrelse på ikonet */
  height: 14px; /* Matcher bredden */
}

/* Ressurs-knapp-container */
.ress-knapp-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0; /* Justerer avstanden til prosjekt-knappen */

}




/*HAMBURGERMENY*/
/* Hamburger-ikonet – skjult på desktop, vises for 1024px og ned */
.hamburger-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 8px;
  width: 10%; 
  margin-right: 24px; 
}

.hamburger-icon span {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 100px; 
  background: #183866;
  transition: all 0.3s ease;
}


/* Fullskjerms overlay for mobilmeny */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
   background: linear-gradient(to bottom, #ffffff, #BAE5FB);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  font-family: arial, sans-serif; 
  pointer-events: none;  /* Ingen interaksjon når overlayet er skjult */
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Overlayet fanger nå alle klikk */
}


.mobile-menu-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu-content nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #183866;
}

.mobile-menu-content nav ul li {
  margin: 20px 0;
}

.mobile-menu-content nav ul li a {
  font-size: 1.5rem;
  color: #183866;
  font-weight: 600; 
  text-decoration: none;
}

/* Lukke-ikon (animeres ved hover) */
.menu-close {
  position: absolute;
  top: 52px;
  right: 65px;  
  font-size: 5rem;
  color: #183866;
  cursor: pointer;
  transition: transform 0.3s ease;
}




.menu-close:hover {
  transform: rotate(90deg);
}




 


/* For iPad (768px - 1024px) */
@media screen and (max-width: 1024px) {
   
  
  .video-header {
    height: 100vh; 
  }
  

    .test{
    display: none;
  }

    .hamburger-icon {
    display: flex;
  }
 
.logo img {
        width: 80%;
        height: auto;
   max-width: 400px; 
    }
  
  .logo{
    width: 70%; 
  }
  
   
  .logo-ress-container {
  margin: 0px; 

}

.ressurs-knapp{
    margin: 28px;
  padding-left: 24px;
  }

  .header-content-container {
    top: 20%;
    left: 10%;
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Juster gap for mellomrom */
  }

  .button-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    bottom: 15%;
  }

  .button-container {
    width: 100%;
  }

  .custom-button {
    width: 100%;
  }

  .header-text h2 {
    margin-bottom: 16px;
  }
  
  .header-text {
  width: 100%;
}

  
}


 
  
/* For mobil (maks 768px) */
@media screen and (max-width: 768px) {

  .logo img {
    width: 100%;
  }
  
  
  .logo {
  display: inline-block;
  margin: 16px;
  padding-left: 0px;
  width: 100%; 
  }
   
 

  .video-header video {
    border-radius: 0 0 60px 60px;
  }

  .video-header {
    display: flex;
    height: 100vh; 
    flex-direction: column;
    justify-content: space-between;
  }

  .header-content-container {
    top: 18%;
    display: block;
    z-index: 20;
  }

  .header-text h1 {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 12px;
  }

  .header-text h2 {
   font-size: 1.125rem; /* 18px for små skjermer */
    margin-bottom: 20px;
  }

  .button-row {
    bottom: 5%;
    margin-top: 10%;
    margin-right: 5%;
    flex-direction: column;
    align-items: center;
  }

  .button-container {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .custom-button {
    display: block;
    padding: 24px 20px;
  }
  
  .menu-close {
  top: 15px;
  right: 24px;  
  font-size: 4rem;

}
  
  .mobile-menu-overlay {
    padding: 16px; 
  }

}



  
/* For veldig små skjermer (maks 390px) */
@media screen and (max-width: 390px) {
  .video-header {
    height: 110vh;
  }

  .custom-button {
    padding: 20px 16px;
    font-size: 14px;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .header-text h2 {
    font-size: 1.125rem; /* 18px for små skjermer */
  }

  .video-header video {
    border-radius: 0 0 50px 50px;
  }
  
    .button-row {
    gap: 8px;
}


}