@font-face {
    font-family: "Open Sans" ;
    src: url("./fonts/OpenSans-VariableFont_wdth,wght.ttf");
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", serif;
}

body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 125px 1fr 70px;
}

img {
    max-width: 100%;
}

a {
    cursor: pointer;
}

/* Header */
header {
    position: sticky;
    top: 0;
}

header nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 100dvw;
    background-color: #FFFFFF;

}


header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

header img {
    margin: 10px
}

#logoimg {
    height: auto;

}

/* Main */


/* topbanner med WebLearning, placeret på alle siderne under header*/

#topbanner {
    background-color: #309DDB;
    max-width: 100vw;
    height: 50px;
}

#topbanner h1 {
    font-size: 19pt;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    padding-top: 10px;
    font-weight: normal;
}

#homepageimg {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    padding: 20px;
}

#homepagetext {
    height: auto;
    background-color: #309DDB;
}

#homepagetext p {
    font-size: 18pt;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    padding: 20px;
    font-weight: normal;

}

#læringsmålh2 {
    color: #E67432;
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    font-weight: bold;
    padding: 25px 0 25px 0;
}


/* læringsmålene lavet med grid på forsiden*/
#scrolly {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.scrolly-img-with-button {
    display: grid;
    grid-template-rows: 1fr 80px;
}

.scrolly-img-with-button div {
    width: 325px;
    height: auto;
    display: flex;
    justify-content: center;
    align-content: center;
}

.principimg {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
}

#scrolly div img {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;

}

#scrolly a img {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;

}

/*  indstillinger for videoerne på alle html siderne med video*/
video {
    aspect-ratio: 1.77777777778; /* 1920x1080 = 16:9 format */
    width: 100%;
    max-width: 1920px;
    background-color: white;
    border: black 2px solid;
}


/* padding og alignment for alle html siderne, undtaget forsiden*/
.paddingdiv {

    margin: 0 5px 10px 0;
}

.buttonleft {
    float: left;

}

.buttonright {
    float: right;

}

/* placering af elemnter i brugertest.html */
#brugertestframe {

}

#brugertesttekst {
    background-color: white;
    margin: 10px 5% 10px 5%;
}

#brugertesttekst p {
    display: flex;
    justify-content: left;
    align-content: center;
    margin: 0 auto;
    padding: 10px;
    color: #E67432;
    font-size: 20pt;
    text-space: 1.5;
}

#brugertestimg {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    padding-top: 25px;
    padding-bottom: 20px;
}

.brugertestknap {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    padding: 5px;
}

.brugerleft {
    padding-top: 10px;
}

/* indstillinger for præsentation som PDF fil på brugertestsiden. Skjult hvis ikke desktop. */
#brugertestframe object {
    width: 0;
    height: 0;
}


/* Kilde.html*/

#kildediv a:hover {
    background-color: lightgrey;
    width: fit-content;
    border-radius: 10px;
}

#kildediv {
    padding: 0 15px 0 15px;
}

#kildediv p {
    padding: 7px;
    word-wrap: break-word;
    max-width: 90%;
}

.kildeoverskrift {
    font-weight: bold;
}


/* Footer section for alle html siderne*/
#footersection a {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    color: white;
    padding-top: 5px;

}

footer a:hover {
    background-color: lightgrey;
    width: fit-content;
    border-radius: 10px;
}

footer {
    background-color: #38B6FF;
}


/* desktop */
@media only screen and (min-width: 1200px) {
    /* bodys width har jeg sat til ikke at fylde hele bredden*/
    .maxbodywidth {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Jeg har valgt at de fem læringsmål skal placeres på to colums, frem for en lang row som på mobil*/
    #scrolly {
        grid-template-columns: 1fr 1fr;
    }

    #homepagetext p {
        padding: 10px 60px 20px 60px;

    }

    .paddingdiv {

        margin: 0 5px 10px 0;
    }

    .buttonleft {
        float: left;
        margin: 20px 5px 30px 5px;
    }

    .buttonright {
        float: right;
        margin: 20px 5px 30px 5px;
    }

    #brugertesttekst {
        color: #E67432;
        width: 70%;
        margin: 10px auto 10px auto;
        border-radius: 15px;

    }

    #brugertestframe object {
        aspect-ratio: 1.77777777778; /* 1920x1080 = 16:9 format */
        width: 100%;
        height: auto;
        border: black 2px solid;
        margin-top: 50px;
    }
}




