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

html{
    height: 100%; /*gør så min-height på body virker*/
}


body{
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #F5F3F3;
    color: #1f1f1f
}

.nav__link--cta a{
    color: #F8681D;
}

.nav__link--selected{
    text-decoration: underline;
    text-decoration-color: #F8681D;
    text-decoration-thickness: 2px;
}

main{
    flex: 1;/*main flyder ekstra plads, så footer er i bunden*/
}

/*fluid typography lavet med chatGPT*/ /*skriftstørrelsen er x(vw)% af skærmens bredde, men har min. og maks.*/
h1, h2, h3{
    font-family: "Poppins", sans-serif;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);   /* skalerer mellem 32px og 48px */
    font-weight: 700;
}
  
h2 {
    font-size: clamp(1.5rem, 3.5vw, 1.875rem); /* skalerer mellem 24px og 30px */
    font-weight: 600;
}
  
h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);  /* skalerer mellem 18px og 20px */
    font-weight: 500;
}

p{
    font-family: "Alexandria", sans-serif;
    font-size: 1rem; /* fast 16px, men kan også laves fluid om ønsket */
    font-weight: 400;
    color: #2A2A2A;
    line-height: 150%;
}  

a{
    font-family: "Alexandria", sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.25rem);  /* skalerer mellem 18px og 20px */
    font-weight: 450;
    color: #2A2A2A;
    text-decoration: none;
}

/*css til header - Lavet efter denne video: https://www.youtube.com/watch?v=U8smiWQ8Seg */
header{
    width: 100%;
    background-color: #F5F3F3;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 30px;
}

nav ul{
    width: 100%;
    list-style: none;
    display: flex;
}

nav li{
    height: 50px;
}

nav a{
    height: 100%;
    padding: 0px 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #1f1f1f;
}


nav a:hover{
    text-decoration: underline;
    text-decoration-color: #F8681D;
    text-decoration-thickness: 2px;
}

.nav__logo{
    margin-right: auto;
}
    /*fra videoen, med lidt hjælp fra ChatGPT*/
.nav__sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    /*z-index -> sidebar altid er over alt andet*/
    z-index: 999;
    background-color: #C4CFBD;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.nav__sidebar li{
    width: 100%;
}

.nav__sidebar a{
    width: 100%;
}

.nav__menu-button{
    display: none;
}

@media(max-width:450px){
    .nav__sidebar{
        width: 100%;
    }
}

@media(max-width:635px){ /*skjuler links, og viser i stedet burgermenu*/
    .nav__link--hidden{
        display:none;
    }
    .nav__menu-button{
        display: block;
    }
}


/*css til sidebar-karrusel overlap - med hjælp fra chatGPT*/
body.sidebar-visible main {
    padding-right: 250px; /*giver plads til sidebar*/
} 

/*css til footer*/
footer{
    display: flex;
    flex-direction: row;
    background-color: #C4CFBD;
    width: 100%;
    justify-content: space-between;
    padding-bottom: 25px;
}

    /*Hjælp fra ChatGPT*/
.footer__line {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 5px 0;
    justify-content: space-between;
}

.footer__info{
    margin:10px 0px 10px 60px
}


.footer__links{
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    margin-right: 30px;
}

footer a{
    height: 100%;
    padding: 0px 30px;
    text-decoration: none;
    display: inline;
    align-items: center;
    color: #1f1f1f;
}

footer a:hover{
    text-decoration: underline;
    text-decoration-color: #F8681D;
    text-decoration-thickness: 2px;
}

/*med lidt hjælp fra ChatGPT*/
@media (max-width:635px){ 
    footer{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer a{
        text-align: center;
        display: flex;
    }

    .footer__info{
        margin: 0px 0px 10px 0px;
        text-align: center;
    }
    

    .footer__links{
        order: -1;
        align-items: center;
        margin: 10px 0px 10px 0px
    }

        .footer__line {
        flex-direction: column;
        align-items: center;
    }
}