* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'BagelFatOne';
  src: url('../fonts/BagelFatOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('../fonts/BigShoulders-VariableFont_opsz\,wght.ttf') format('truetype');
}

body {
  overflow-x: hidden;
  background-color: var(--darkblue);
  font-family: 'Big Shoulders Display', sans-serif;
}

:root{
  --darkblue:#0F038F;
  --blue:#1000F7;
  --lightblue:#BFECFD;
  --orange:#FF982A;
  --yellow:#FCF084;
  --lightgreen:#74B779;
  --grey:#353535;

}

.panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 90%;
  max-width: 1200px;
}

.tekstblok {
  flex: 1;
  padding-right: 40px;
}

h1 {
  font-size: 5rem;
  color: var(--lightblue);
  font-family: 'BagelFatOne', sans-serif;
  margin-bottom: -50px;
  margin-top: 100px;
  animation: fadeIn 1s forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

h2 {
  font-size: 5rem;
  color: var(--lightblue);
  font-family: 'BagelFatOne', sans-serif;
  margin-bottom: -50px;
  margin-top: 20px;
  animation: fadeIn 1s forwards;
  animation-delay: 1s;
  opacity: 0;
}

#saadan {
  font-size: 9rem;
  margin-top: 0;
  color: var(--lightblue);
  font-family: 'BagelFatOne', sans-serif;
  animation: fadeIn 1s forwards;
  animation-delay: 1.5s;
  opacity: 0;
}

.spg {
  margin-top: -290px;
  margin-left: 420px;
  text-align: center;
  animation: fadeIn 1s forwards;
  animation-delay: 2s;
  opacity: 0;
  width: 120px;
  height: 200px;
}

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

#gul {
  color: #ffe87a;
}

.illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 600px;
  animation: fadeIn 1s forwards;
  animation-delay: 2s;
  opacity: 0;
}

#tunnel {
  width: 90%;
  max-width: 600px;
  height: auto;
  transition: transform 0.1s ease-out;
}


.tunnel-container {
  position: relative;
  width: 100%;
  display: flex;
  margin-bottom: -210px;
}

#pige {
  position: absolute;
  bottom: 10px;
  left: 45%;
  transform: translateX(-50%) translateY(0);
  width: 60px;
  transition: transform 0.1s ease-out;
  animation: fadeIn 1s forwards;
  animation-delay: 2.5s;
  z-index: 1;
  opacity: 0;
}


.wave-left {
  left: 0;
  background-image: url('../img/bølge.png'); 
}

.wave-right {
  right: 0;
  background-image: url('../img/bølge.png'); 
  transform: scaleX(-1); /* Spejlvender bølgen horisontalt */
}

@keyframes floatSideways {
  0%   { transform: translateX(0); } /* startposition.-forskyder ikke */
  50%  { transform: translateX(10px); } /* Halvvejs – bevæger sig 10px til højre */
  100% { transform: translateX(0); } /* Slutter tilbage ved startposition */
}


.star { /* Definerer udseendet og placeringen af hver stjerne på siden */
  position: absolute;
  z-index: -1; /* Sørger for at stjernen er bagved alt andet indhold */
  width: 80px;
  height: 80px;
  background-image: url('../img/stjerne.png');
  background-size: contain; /* Sørger for at billedet skaleres så det passer i boksen uden at beskæres */
  background-repeat: no-repeat;
  opacity: 0.8; /* Gør stjernen lidt gennemsigtig for en bedre effekt */
  animation: floatSideways 5s ease-in-out infinite; 
  /* Animation der får stjernen til at bevæge sig fra side til side i en loop */
}

h3{
  font-family: 'Big Shoulders Display';
  font-size: 3rem;
  color: var(--lightblue);
  margin-top: 5rem;
  font-weight: 800;
  transition: transform 0.1s ease-out;
  animation: fadeIn 1s forwards;
  animation-delay: 3s;
  opacity: 0;
}

p {
  font-family: 'Big Shoulders Display';
  font-size: 1.8rem;
  color: var(--lightblue);
  transition: transform 0.1s ease-out;
  animation: fadeIn 1s forwards;
  animation-delay: 3s;
  opacity: 0;
  margin-top: 1rem;
}
  