main {
  box-sizing: border-box;
  max-width: 1520px;
  width: 100%;
  position: relative;
  background: linear-gradient(148deg, #c7ebff 6.85%, #03649f 77.24%);
}

.light-beams {
  position: absolute;
  width: 100%;
  height: calc(100% - 90vh);
  background-image: url("https://cdn.glitch.global/1301aefd-da6f-4dea-a219-0434cc769a61/light-beam.png?v=1725886097379");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top left;
  top: 90vh;
  left: 0;
  z-index: 0;
  overflow: hidden;
}
.light-beams img {
  position: absolute;
}

.main-content {
  position: inherit;
  z-index: 1;
}
header {
  box-sizing: border-box;
  position: absolute;
  z-index: 100;
  width: 100%;
}

/*header {
  box-sizing: border-box;
  position: fixed;
  z-index: 100;
  width: 100%;
}
*/
/* –––––––––––– section snap –––––––––––– */

html {
  /* scroll-behavior: smooth; */
  scroll-snap-type: y mandatory;
}

section,
header {
  scroll-snap-align: start;
}
footer {
  scroll-snap-align: end;
}
/* –––––––––––– Sektioner –––––––––––– */

.forside section {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  /* border: dashed green 1px; */
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

#fisk_section{position: relative;
 overflow-x: hidden;}
#fag_section{position: relative;
 overflow-x: hidden;}
#havne_section{position: relative;
 overflow-x: hidden;}
 
.box_container_left,
.box_container_right {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}

.box_container_right {
  justify-content: flex-end;
}

.section_box {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 40px;
  width: 682px;
  max-width: 100%;
  height: max-content;
  gap: 24px;
  border-radius: 16px;
  background: rgba(213, 240, 255, 0.6);
    margin: 40px;
}
.global_button {
  max-width: calc(100% - 40px);
  text-align: center;
}
/* ––– Hero sektion ––– */
#hero_section {
  background-image: url("https://cdn.glitch.global/1301aefd-da6f-4dea-a219-0434cc769a61/Skyer.png?v=1726141380258");
  background-repeat: no-repeat;
  background-size: contain;
  overflow-x: clip;
  height: 90vh;
  position: relative;
  overflow-x: hidden;

  height: 100dvh;
  height: calc(100dvh + 3.5dvh);
}

.hero-boelge {
  position: absolute;
  bottom: -62px;
  bottom: 0;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 190vw;
  max-width: 2888px;
  z-index: 0;
}

.velkommen_wrapper {
  position: absolute;
  bottom: -27px;
  left: 10%;
  bottom: 35px;
  bottom: 97px;
}
.velkommen_container {
  position: relative;
}
.velkommen-bobble_container {
  position: absolute;
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));

  top: -35%;
  left: 103%;
  width: max-content;
}
.velkommen-bobble {
  position: relative;
  display: flex;
  justify-content: center;
  background-color: var(--white);
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  height: 160px;
}
.velkommen-bobble h1 {
  margin: auto 0;
  text-align: center;
  font-size: 20px;
  max-width: 300px;
}

.bobble-tail {
  position: absolute;
  bottom: -35px;
  left: -122px;
  z-index: -1;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  width: 140px;
}
.maagens_container {
  position: relative;
  width: 20vw;
  max-width: 304px;
}

.maagens_fisker {
  width: 100%;
  animation: boatFloat 5s ease-in-out infinite;
}
.boeje {
  position: absolute;
  left: 23%;
  top: 46%;
  width: 40%;
  max-width: 121.59px;
  z-index: -1;
  animation: boatFloat 5s ease-in-out infinite;
}

.fiskekutter {
  position: absolute;
  width: 65vw;
  max-width: 988px;
  right: -20%;
  bottom: -18px;
  bottom: 44px;
  bottom: 104px;
  animation: boatFloat 4s ease-in-out infinite;
}

@keyframes boatFloat {
  0% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(10px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(-1deg);
  }
}

/* ––– Fisk sektion ––– */

/* Fuglen starter skjult */
#divingBird {
  position: absolute;
  top: 10%; /* Initial position */
  right: 0; /* Holder den tæt på højre kant */
  transform: translateX(60%) scale(0.8); /* Skjult uden for skærmen */
  opacity: 0; /* Skjult som standard */
  transition: transform 2s ease-out, opacity 1s ease-out; /* Jævn transition */
  width: 18vw;
  min-width: 200px;
  max-width: 274px;
  z-index: -1;
  animation: swimUpDown infinite;
}


#divingBird.sticky {
  position: fixed; /* Gør fuglen sticky */
  top: 50%; /* Placer i midten af højre side */
  right: 20%; /* Hold den lidt inde fra højre kant */
  transform: translateY(-50%); /* Centrer vertikalt */
 
}

#divingBird.swimming {
  animation: swimUpDown 3s ease-in-out infinite; /* Animation for svømning */
}

@keyframes swimUpDown {
  0% {
    transform: translateY(0); /* Startposition */
  }
  50% {
    transform: translateY(50px); /* Bevæger sig ned */
  }
  100% {
    transform: translateY(0); /* Tilbage til start */
  }
}

/* ––– fangstmetoder sektion ––– */

#fangstmetoder_section {
  overflow-y: visible;
  max-height: 100vh;
  position: relative;
   overflow-x: hidden;
}

#ordbog_section {
  height: 120vh;
  position: relative;
  /* RET DETTE */
   overflow-x: hidden;
}

.havbund02 {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: -4;
  transform-origin: 0 100%;
}

/* ---------- fisk animationer ---------------*/

.fish-animation {
  position: absolute; /* finder den forældre som er tættest på, med position relative */
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
  z-index: -1;
  pointer-events: none;
}

.makrel,
.sild,
.torsk,
.tobis {
  position: absolute;
  width: 50%;
  min-width: 100px;
  opacity: 0.8;
  animation: swimUpAndDown 5s ease-in-out infinite;
}

.makrel,
.torsk,
.tobis {
  max-width: 220px;
}

.sild {
  max-width: 200px;
}

.sildehaj {
  position: absolute;
  width: 50vw;
  max-width: 760px;
  min-width: 450px;
  animation: swimUpAndDown 5s ease-in-out infinite;
  opacity: 0.6;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Op og ned animation */
@keyframes swimUpAndDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

/* ---------- Parallax ---------------*/

.parallax-container {
  position: relative;
  height: 100%;
  max-width: 1520px
}

.bubbles,
.bubblesSingle {
  position: absolute;
  max-width: 100px;
  bottom: -50px; /* Start uden for skærmen */
  z-index: 1;
  animation: parallaxFloat 6s ease-in-out infinite;
}

#bubblesRight {
  position: absolute;
  left: 40%;
}

.bubbles-container {
  position: relative;
  height: 100%;
}

.jellyfish {
  position: absolute;
  width: 800px;
  height: auto;
  bottom: -150px; /* Start uden for skærmen */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: parallaxFloat 8s ease-in-out infinite;
}

@keyframes parallaxFloat {
  0% {
    transform: translateX(5px) translateY(15px) rotate(-1deg);
  }
  50% {
    transform: translateX(25px) translateY(5px) rotate(1deg);
  }
  100% {
    transform: translateX(5px) translateY(15px) rotate(-1deg);
  }
}

/* -------- Maagens animation hero -------- */

.dykker_container {
  z-index: 10;
}

.maagens_dykker_hojre {
  width: 25%;
  animation: maagensDykkerAnimationHoejre 12s ease-in-out;
}

.maagens_dykker_venstre {
  opacity: 1;
  width: 25%;
}

.animate {
  animation: maagensDykkerAnimationVenstre 10s ease-in-out;
}

@keyframes maagensDykkerAnimationHoejre {
  0% {
    transform: translateY(0vh) translateX(10%);
  }
  50% {
    transform: translateX(20%);
  }
  100% {
    transform: translateY(50vh) translateX(250%);
  }
}

@keyframes maagensDykkerAnimationVenstre {
  0% {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  50% {
    transform: translateX(20%);
  }
  100% {
    transform: translateY(50vh) translateX(40%);
  }
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* –––––––––––– RESPONSIVE LAYOUT –––––––––––– */

@media (max-width: 1400px) {
  .velkommen-bobble_container {
    top: -44%;
  }
}
@media (max-width: 1200px) {
  .velkommen-bobble_container {
    top: -51%;
    left: 115%;
  }
}

@media (max-width: 1100px) {
  .velkommen-bobble_container {
    top: -56%;
    left: 120%;
  }
}

@media (max-width: 1000px) {
  .velkommen-bobble_container {
    top: -63%;
    left: 126%;
  }
}

@media (max-width: 900px) {
  .velkommen-bobble_container {
    top: -72%;
    left: 132%;
  }
}

@media (max-width: 800px) {
  .velkommen-bobble_container {
    top: -78%;
    left: 115%;
  }
  .bobble-tail {
    left: -78px;
    width: 90px;
  }
}

@media (max-width: 700px) {
	.section_box{
		margin: 20px;
		max-width: calc(100% - 40px);
		padding: 25px;
	}

  .velkommen_wrapper {
    left: 0%;
  }

  .maagens_container {
    width: 35vw;
    max-width: none;
  }
	
	.hero-boelge {
		bottom: 78px;
	}

  .fiskekutter {
    width: 101vw;
    max-width: none;
    bottom: -52px;
	bottom: 84px;
    z-index: -1;
  }

  .bobble-tail {
    left: -67px;
    width: 90px;
    bottom: -63px;
    transform: rotate(104deg);
  }

  .velkommen-bobble_container {
    left: 80%;
  }

  .velkommen-bobble_container h1 {
    font-size: 2.8vw;
  }
  .velkommen-bobble {
    height: 124px;
  }
}
@media (max-width: 600px) {
  .velkommen-bobble_container h1 {
    max-width: 265px;
    font-size: 18px;
  }
   #divingBird {
    width: 140px;
  } 
}
@media only screen and (max-width: 500px) {
.section_box .text-medium {
    display: none;
}
  .makrel,
.torsk,
.tobis {
  max-width: 120px;
}

.sild {
  max-width: 100px;
}

  .sildehaj{
    max-width: 200px;
  }
}

@media (max-width: 450px) {
  .velkommen-bobble_container {
    left: 85%;
    top: -100%;
  }
  .velkommen-bobble {
    height: 100px;
    padding: 10px;
  }

  .velkommen-bobble_container h1 {
    max-width: 214px;
    font-size: 14px;
  }

  .bobble-tail {
    left: -51px;
    width: 70px;
  }
}

@media (max-width: 360px) {
  .bobble-tail {
    left: -14px;
    bottom: -76px;
    transform: rotate(92deg);
  }
  .velkommen-bobble_container {
    left: 55%;
    top: -120%;
  }
}