*{box-sizing: border-box;}
:root {
  --Baggrundsfarve: #f0ebdf;
  --Mørkeblå: #0d3680;
  --Lyselila: #9e91f5;
  --Mørkegrøn: #345831;
  --Orange: #f86f3d;
  --lyserød: #ff8a8c;
  --Mørkbeige: #d8d3c3;
  --hvid: #ffffff;
  --sort: #000000;
}

body{
    background-color:#f0ebdf;
    background-size: cover;
    font-family:"Poppins", sans-serif;
  }

  p{
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size:0.7rem;
  }
  
  h1{
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: Bold;
    font-size: 5rem;
    color: #0d3680;
    padding: auto;
    line-height: 1.25rem;
    text-align: center;
    margin-bottom: 7rem;
  }
  
  h2{
    font-family:"Poppins", sans-serif;
    font-weight: 800;
    font-style: Bold;
    font-size:1.5rem;
    color:#ffffff;
  }
  
  h3{
    font-family:"Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size:1rem;
    line-height: 1.5;
    color:#ffffff;
  }

  h4{
    font-family:"Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size:0.9rem;
    line-height: 1.5;
    color:#ffffff;
  }

  h5{
    font-family:"Poppins", sans-serif;
    font-weight: 800;
    font-style: Bold;
    font-size:1.5rem;
    color:#ffffff;
    margin-bottom: 1rem;
  }

  h6{
    font-family:"Poppins", sans-serif;
    font-weight: 800;
    font-style: bold;
    font-size:1rem;
    line-height: 1.5;
    color:#ffffff;
    margin-bottom: 0rem;
  }

  header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--Baggrundsfarve);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
 }
 
 
 .navbar {
    background-color: var(--Baggrundsfarve);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 1rem;
    padding-right: 2rem;
 }
 
 
 .navbar img {
    width: 8rem;
    height: auto;
 
}


.navbar ul {
   list-style: none;
   display: flex;
   gap: 5rem; /* Afstand mellem menu-elementer */
   margin: 0;
   padding: 0;
}


.navbar a {
   color: var(--sort);
   text-decoration: none;
   font-weight: 700;
   font-size: 1.3rem;
   padding: 1rem;
   margin: 0;
}


.navbar a:hover {
   color: var(--Mørkeblå);
}


#menu-bar {
   display: none; /* Skjul checkbox som standard */
}


.burger-label {
   font-size: 2rem;
   color: var(--sort);
   cursor: pointer;
   display: none; /* Skjul burger-menu som standard */
}


.navbar img:hover {
   transform: scale(1.1);
}

.AnneRisum{
    display: flex;
    justify-content:space-around;
    align-items: flex-start;
    background-color:#9e91f5;
    height:25rem;
    margin-bottom: 5rem;
}


.broedtekst1{
    margin-left: 1.5rem;
    margin-top: 2.8rem;
    width: 14rem;
}

.Annebilleder{
     display: flex;
    flex-direction: row;
    gap: 2rem;
}

.AnneRisum img{
   height: 18em;
   width: auto;
   margin-top: 4rem;
   justify-content: space-between; 
}

.AnneRisum img:hover{
transform:scale(1.1);
transition: .5s ease;
}

* {box-sizing: border-box}

/* Container needed to position the overlay. Adjust the width as needed */
.container1{
  position: relative;
  width: 100%;
  max-width:fit-content;
}

.container2{
    position: relative;
    width: 100%;
    max-width:fit-content;
}

.container3{
    position: relative;
    width: 100%;
    max-width:fit-content;
  }

.container4{
    position: relative;
    width: 100%;
    max-width:fit-content;
  }

  .container5{
    position: relative;
    width: 100%;
    max-width:fit-content;
  }

  .container6{
    position: relative;
    width: 100%;
    max-width:fit-content;
  }

  .container7{
    position: relative;
    width: 100%;
    max-width:fit-content;
  }

  .container8{
    position: relative;
    width: 100%;
    max-width:fit-content;
  }

  .container9{
    position: relative;
    width: 100%;
    max-width:fit-content;
  }

/* The overlay effect - lays on top of the container and over the image */
.overlay {
  position:absolute;
  bottom: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1;
  width:100%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 0.75rem;
  font-family:"Poppins", sans-serif;
  font-style: bold;
  font-weight: 600;
  padding: 1.25rem;
  text-align:left;
}

/* When you mouse over the container, fade in the overlay title */
.container1:hover .overlay {
  opacity: 1.1;
}
.container2:hover .overlay {
    opacity: 1.1;
  }
  .container3:hover .overlay {
    opacity: 1.1;
  }
  .container4:hover .overlay {
    opacity: 1.1;
  }
  .container5:hover .overlay {
    opacity: 1.1;
  }
  .container6:hover .overlay {
    opacity: 1.1;
  }
  .container7:hover .overlay {
    opacity: 1.1;
  }
  .container8:hover .overlay {
    opacity: 1.1;
  }
  .container9:hover .overlay {
    opacity: 1.1;
  }


.FinnNygaard{
    display: flex;
    justify-content:space-around;
    align-items: flex-start;
    background-color:#345831;
    height:25rem;
    margin-bottom: 3rem;
}

.FinnNygaard img{
    height: 18rem;
    width: auto;
    margin-top: 4rem;
    justify-content: space-between; 
}

.Finnbilleder{
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.FinnNygaard img:hover{
    transform:scale(1.1);
    transition: .5s ease;
    }
    

.broedtekst2{
    margin-right: 1.5rem;
    margin-top: 1.2rem;
    width: 18rem;
    
}

.AsgerJorn{
    display: flex;
    justify-content:space-around;
    align-items: flex-start;
    background-color:#f86f3d;
    height:25rem;
    margin-bottom: 3rem;
}

.AsgerJorn img{
    height: 18rem;
   width: auto;
   margin-top: 4rem;
   justify-content: space-between; 
}

.Asgerbilleder{
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.AsgerJorn img:hover{
    transform:scale(1.1);
    transition: .5s ease;
    }
    
.broedtekst3{
    margin-left: 1.5rem;
    margin-top: 2.8rem;
    width: 14rem; 
}

.scroll{
    opacity: 60%;
}

.udvid{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.udvid img{
    height: 3.5rem;
}

.udvid img:hover{
    transform:scale(1.2);
    transition: .5s ease;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: start; /* Justerer elementerne til at starte foroven */
    font-family: "Poppins", sans-serif;
    background-color: #0d3680;
    color: #fff;
    margin-top: 5rem;
    
}

/* Flex styling til hver footer-sektion */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: start; /* Justerer elementerne til at starte foroven */
  font-family: "Poppins", sans-serif;
  background-color: #0d3680;
  color: #fff;
  margin-top: 5rem;
}

/* Flex styling til hver footer-sektion */
.footer-section {
  display: flex;
  flex-direction: column; /* Laver en lodret stak af h2 og p */
  align-items: start; /* Justerer elementerne til venstre */
  margin-left: 1rem;
  margin-right: 5rem;
  padding: 2rem;
  margin-top: 2rem;
}

.footer-section h2 {
  margin: 0;
  font-size:1rem;
}

.footer-section p{
  margin-top: 0.5rem;
  font-size: 0.7rem;
}

.kontakt{
    display: flex;
    flex-direction:row;
    margin-right: 3rem;
}
#Facebook{
    width: 5rem;
    height: auto;
}


/* Media for mobiltelefoner */
@media (max-width: 767px) {
    h1{
        font-family: "Poppins", sans-serif;
        font-weight: 800;
        font-style: Bold;
        font-size: 3.2rem;
        color: #0d3680;
        padding: auto;
        line-height: 1.25rem;
        text-align: center;
        margin-bottom: 3rem;
      }

    h2{
        font-family:"Poppins", sans-serif;
        font-weight: 800;
        font-style: Bold;
        font-size:2.8rem;
        color:#ffffff;
      }

      h3{
        font-family:"Poppins", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size:1.2rem;
        line-height: 1.5;
        color:#ffffff;
        margin-top: -1.5rem;
      }

      h4{
        font-family:"Poppins", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size:1.1rem;
        line-height: 1.5;
        color:#ffffff;
        margin-top: -2rem;
      }

      h5{
        font-family:"Poppins", sans-serif;
        font-weight: 800;
        font-style: Bold;
        font-size:2.2rem;
        color:#ffffff;
        margin-bottom: 3rem;
      }

     

    .navbar ul a {
        color:#ffffff;
        font-size: 1.5rem;
    }
    .navbar ul a:hover {
        color:#0d3680;
    }

    .navbar ul {
        display: none; /* Skjul menuen som standard */
        flex-direction: column;
  
        position:absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color:#ff8a8c;
        padding: 1rem;
      
    }
    #menu-bar:checked ~ ul {
        display: flex; /* Vis menuen, når checkboxen er markeret */
        
    }
    .burger-label {
        display: block; /* Vis burger-menu på mobil */
        width: 10rem;
        height: 13rem;
        font-size: 7rem;
      padding-left:1.899rem;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
     
    .AnneRisum{
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color:#9e91f5;
        height:55rem;
    }

    .AnneRisum img{
        height: 18rem;
    }
    .Annebilleder{
        display: flex;
        flex-direction:row;
        gap:1.2rem;
        margin-bottom: 5rem;
    }

    .broedtekst1{
        width: 18rem;
        align-items: center;
        margin-right: 3rem;
        margin-left: 3rem;
        margin-top: 4.5rem;
        margin-bottom: -2rem;
    }
    
 .container1{
    display: none;
 }

 .container3{
    display: none;
 }

    .FinnNygaard{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        background-color:#345831;
        height:62rem;
        margin-bottom: 5rem;
    }

    .Finnbilleder{
        display: flex;
        flex-direction:row;
        gap:1.2rem;
        margin-bottom: 5rem;
    }

    .FinnNygaard img{
        height: 20rem;
    }

    .broedtekst2{
        width: 18rem;
        align-items: center;
        margin-left: 3rem;
        margin-right: 3rem;
        margin-bottom: -6rem;
    }

    .container4{
        display: none;
     }
    
     .container6{
        display: none;
     }


     .AsgerJorn{
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color:#f86f3d;
        height:62rem;
        margin-bottom: 5rem;
    }

    .Asgerbilleder{
        display: flex;
        flex-direction:row;
        gap:1.1rem;
        margin-bottom: 5rem;
    }

    .AsgerJorn img{
        height: 20rem;
    }

    .broedtekst3{
        width: 17.8rem;
      margin-right: 3rem;
      margin-left: 3rem;
        margin-bottom: -7rem;
    }

    .container7{
        display: none;
     }
    
     .container9{
        display: none;
     }

     .udvid img{
        height: 6rem;
    }

    .footer{
      flex-direction: column;
  }

}

/* Media Queries for Tablet */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .navbar {
      flex-direction: row;
  }
  

  .navbar img {
      width: 7rem;
      height: auto;
  }

  .navbar ul {
      gap: 1%;
  }
  .AnneRisum, .FinnNygaard, .AsgerJorn {
    height: 18rem; /* Juster højden lidt for at se bedre ud på tablets */
    gap: 1.5rem;
  
  }
  .broedtekst1,.broedtekst2,.broedtekst3{
    margin-top: 0;
  }

.AnneRisum img, .FinnNygaard img, .AsgerJorn img {
    height: 10rem; 

}
h3,h4{
  font-size: 0.8rem;
}
h5{margin-top: 1rem;}

.footer{
  background-color: #0d3680;
  color: #fff;
  margin-top: 5rem;
}
.footer-section h2 {
  font-size: 1rem;
  justify-content: space-evenly;
  margin-right: -20rem;
}

.footer-section p{
  font-size: 0.5rem;
  margin-right: -25rem;
}

}