/* Fullskjerm rosa bakgrunn */
body, html {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  background-color: #eee5e5;
}

/* Midtstilling av innholdet */
.welcome-section {
  text-align: center;
  color: #333;
  animation: fadeIn 1s ease-in;
  width: 100%;
  max-width: 800px;
  position: relative;
}

.welcome-section h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.welcome-section p {
  font-size: 1.3em;
  margin-bottom: 40px;
}

/* Pil styling */
/* funnet pil på https://uiverse.io/Nawsome/chilly-moose-65 */

.custom-arrow {
  position: absolute;
  bottom: 50px; /* Plasserer pilen nederst på siden */
  cursor: pointer;
  display: flex;
  align-items: center;
}

.arrow {
  display: inline-block;
  width: 40px; /* Øker bredden på pilen for bedre synlighet */
  height: 40px; /* Øker høyden på pilen */
  border-top: 10px solid #333; /* Pilens farge og tykkelse */
  border-right: 10px solid #333;
  transform: rotate(135deg); /* Roterer pilen nedover */
  transition: transform 0.2s ease;
  animation: bounce 1.5s infinite; /* Legger til bounce-animasjonen */
}

.arrow:hover {
  border-color: #ffffff; /* Gjør pilen lysere ved hover */
}

.arrow:active {
  transform: rotate(135deg) scale(0.9); /* Skalerer pilen ved klikk */
}



/* Overlay for smooth transition */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #eee5e5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Fade-out effect for page content */
body.transitioning {
  animation: fadeOut 1s ease;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}




/* Bounce animasjon for pilen */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0) rotate(135deg); /* Standardposisjon */
  }
  40% {
      transform: translateY(-10px) rotate(135deg); /* Hopp litt opp */
  }
  60% {
      transform: translateY(-5px) rotate(135deg); /* Hopp litt mindre opp */
  }
}

/* Fade-in for tekst */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Overgangseffekt ved navigering til home.html */
.transition-active {
  animation: smoothSlideOut 1s ease forwards;
}

@keyframes smoothSlideOut {
  0% {
      transform: scale(1) translateY(0);
      opacity: 1;
  }
  50% {
      transform: scale(1.05) translateY(-5vh);
      opacity: 0.8;
  }
  100% {
      transform: scale(1.1) translateY(-50vh);
      opacity: 0;
  }
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 600px) {

  .welcome-section h1 {
      font-size: 2em;
  }

  .welcome-section p {
      font-size: 1em;
  }

  .custom-arrow {
      bottom: 30px;
  }

  .arrow {
      width: 30px;
      height: 30px;
      border-top: 8px solid #333;
      border-right: 8px solid #333;
  }
}

/* Responsive design for iPad devices */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  .welcome-section h1 {
      font-size: 2.2em;
  }

  .welcome-section p {
      font-size: 1.1em;
  }

  .custom-arrow {
      bottom: 40px;
  }

  .arrow {
      width: 35px;
      height: 35px;
      border-top: 9px solid #333;
      border-right: 9px solid #333;
  }
}

/* Responsive design for Mac devices */
@media only screen and (min-width: 1025px) and (max-width: 1440px) {

  .welcome-section h1 {
      font-size: 2.5em;
  }

  .welcome-section p {
      font-size: 1.3em;
  }

  .custom-arrow {
      bottom: 50px;
  }

  .arrow {
      width: 40px;
      height: 40px;
      border-top: 10px solid #333;
      border-right: 10px solid #333;
  }
}

/* Responsive design for extra large screens */
@media only screen and (min-width: 1441px) {

  .welcome-section h1 {
      font-size: 3em;
  }

  .welcome-section p {
      font-size: 1.5em;
  }

  .custom-arrow {
      bottom: 60px;
  }

  .arrow {
      width: 45px;
      height: 45px;
      border-top: 12px solid #333;
      border-right: 12px solid #333;
  }
}