:root {
  scroll-behavior: smooth;
}

@keyframes fade{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale{
  0%{
    transform: scale(0.95);
    opacity: 0;
  }

  100%{
    transform: scale(1);
    opacity: 1;
  }
}

/*
Forhindrer at text flyter ut til alle kanter ved ekstremt smal skjerm
*/
@media (max-width: 350px) {
  h1, h2, h3, h4, h5, h6, p{
  overflow-wrap: break-word;
  word-break: break-all;
  }
}



html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/*
Fade til AI svar
*/
.animateAI{
  animation: scale 0.4s ease-out forwards;
}



/*
Containter til index
*/

.container{
  animation: fade 0.8s ease-out;
}

.page-container {
    padding-top: 100px; 
    min-height: 100vh;
    animation: fade 0.8s ease-out;  
}
/*
Øvrige containers
*/
.page-container-2 {
  padding-top: 100px;
  min-height: 100vh;
  width: 60%;
  margin: auto;
  animation: fade 0.8s ease-out;
}

.page-container-3 {
  margin-top: 100px;
  min-height: 100vh;
  width: 80%;
  margin: auto;
  animation: fade 0.8s ease-out;
}

.article-container{
  width: 50px;
  height: 50px;
}


/*
Backgroundimage
*/
.bg-image{
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(0.6);
  position: fixed;
}

.article-image{
  object-fit: cover;
}

/*
Header
*/
.nav-img{
  height: 8vh;
}

.navbar-gradient{
    transition: background-color 0.3s ease; 
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.8) 0%,   
        rgba(0, 0, 0, 0.4) 50%,  
        rgba(0, 0, 0, 0) 100%    
    );
}

.navbar-scrolled{
  background-color: #f8f9fa;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.15);
}

.navbar{
  transition: all 0.5s;
}


/*
Hero
*/

.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
}

/*
Main text design
*/

.main-title-design {
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
}

.main-text-design {
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
}

/* Hero ilpasning for mindre skjermer */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem; /* Mindre tittel på mobil */
    }
    .hero-text {
        font-size: 1.1rem;
    }
}


/*
Footer
*/
.socials a{
  text-decoration: none;
}

.socials a:hover{
  opacity: 0.8;
}

.socials img{
  transition: transform 0.2s ease;
}

.socials img:hover{
  transform: scale(1.2);
}

#scrollToTopBtn{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  border: none;
  outline: none;
  background-color: #0dcaf0;
  color: #000;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  font-size: 20px;
  width: 50px;
  height: 50px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s, background-color 0.3s;
}

#scrollToTopBtn:hover{
  background-color: #31d2f2;
}
