* {
    box-sizing: border-box;
    text-decoration: none;
}

main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    padding: 10px;

}

body {
    background-color: rgb(255, 255, 255);
    margin: auto;
    background-image: url('https://www.google.com/search?sca_esv=580414175&q=background+images&tbm=isch&source=lnms&sa=X&ved=2ahUKEwih6JCChrSCAxWlXUEAHXuoDc4Q0pQJegQIDRAB&biw=1272&bih=616&dpr=2#imgrc=2L9Wsy-fJ4SHFM');
    color: rgb(0, 0, 0);
}

a {
    font-family: 'Roboto Condensed', sans-serif;
}

h1 {
    font-family: 'Roboto', sans-serif;
}

h2 {
    font-family: 'Roboto Mono', sans-serif;
}

h3 {
    font-family: 'Roboto Mono', sans-serif;
}

p {
    font-family: 'Nunito Sans', sans-serif;
}

h4 {
    font-family: 'Nunito Sans', sans-serif;
}

ol {
    font-family: 'Montserrat', sans-serif;
}

ul {
    font-family: 'Montserrat', sans-serif;
}
.padding {
    padding: 1em;
}

.sans {
        font-family: 'Nunito Sans', sans-serif;
}

.margin {
    margin-top: 2cqh;
}


header {
    text-align: center;
    color: rgb(0, 0, 0);
}


img {
    max-width: 200px;
    height: auto;
    padding: 10px;
}



.box {
    border: 1px solid black;
}

nav {
    text-align: center;
    font-size: 0.8em;
    margin: auto;
    background-color: darkgreen;
    padding: 10px;

}



nav * {
    color: rgb(0, 0, 0);
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.footer {
    position: fixed;
    bottom: 10px;
    right: 0px;
    left: 0px;
    width: 100%;
}

footer {
    display: grid;
    grid-template-columns: 1fr;
    font-size: 10px;
    margin: auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid white;
    padding-bottom: 20px;
    background-color: darkgreen;
    color: white;
}

footer a {
    display: block;
    padding: 0.25em;
    font-size: 2em;
}

.efnisyfirlit * {
    display: inline;
    text-align: center;
    background-color: darkgreen;
    font-size: 1em;
    margin: auto;
    padding: 10px;
    color: rgb(255, 255, 255);
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    justify-content: center;
    display: flex;
    flex-direction: column;

}

article {
    padding: 10px;
}

aside {
    padding: 10px;
}

.margin {
    display: grid;
    justify-content: center;
}

.fast {
    position: fixed;
    bottom: 50px;
    right: 50px;
    font-size: 1em;
    color: black;
    border: 1px solid white;
    border-radius: 50%;
    padding: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.a {
    color: black;
    font-size: 0.8em;
    text-decoration: underline;
}

a {
    color: rgb(255, 255, 255);
    font-size: 2em;
}

a:hover {
    color: rgb(196, 196, 196);

}

.col-uppeldi2 {
    display: grid;
    grid-template-columns:1fr;
    gap: 0;
    text-align: center;
    align-content: center;
    max-width: 300px;
}


.item1 {
    grid-area: 1;
}

.item2 {
    grid-area: 2;
}

.item3 {
    grid-area: 3;
}


.col-verdlaun {
    display: grid;
    grid-template-columns: 1fr;
}

.col-forsida {
    display: grid;
    grid-template-columns: 1fr;
}

.col-uppeldi {
    display: grid;
    grid-template-columns: 1fr;
}


.heimildir {
    text-align: center;
}

.erpur {
    font-size: 15px;
    font-family: 'Nunito Sans', sans-serif;
}

@media screen and (min-width:768px) {

    main {
        max-width: 600px;
        margin: auto;
        gap: 2em;
    }

    .efnisyfirlit * {
        flex-direction: row;
    }

    .col-verdlaun {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2em;
    }

    .col-uppeldi {
        display: grid;
        grid-template-columns: 100%;
    }

    .col-uppeldi2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        text-align: left;
        max-width: 500px;
    }

    nav * {
        display: flex;
        flex-direction: row;
        justify-content: left;

    }


    a {
        font-size: 2em;
    }

    footer {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .item1 {
        grid-area: 1 / 3;
    }

    .item2 {
        grid-area: 1 / 2;
    }

    .item3 {
        grid-area: 1 / 1;
    }

    .heimildir {
        background-color: white;
        color: black;
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
}


@media screen and (min-width:1000px) {
    main {
        max-width: 850px;
        margin: auto;
        gap: 2em;

    }

    .main-verdlaun {
        max-width: 1000px;
        display: grid;
        grid-template-columns: 100%;
        text-align: center;
        justify-content: center;
    }

    .col-verdlaun {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        justify-content: center;
        gap: 1em;
    }
    
    .col-forsida {
        display: grid;
        grid-template-columns: 3fr 1fr;
    }

    .col-uppeldi {
        display: grid;
        grid-template-columns: 2fr 1fr;
        text-align: center;
        font-size: 1.2em;
        max-width: 1300px;
    }

    .col-uppeldi2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    footer {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    nav * {
        display: flex;
        flex-direction: row;
        justify-content: left;

    }

    a {
        font-size: 2em;
    }



    .img2 {
        max-width: 100%;
        justify-content: right;
    }

    .img {
        margin-top: 9em;
    }



    .index {
        display: grid;
        grid-template-columns: 1fr;
    }

    .item1 {
        grid-area: 1 / 3;
    }

    .item2 {
        grid-area: 1 / 2;
    }
    
    .item3 {
        grid-area: 1 / 1;
    }

    .row {
        display: flex;
        flex-flow: column;
        margin: auto;
    }

    .prufa {
        padding-bottom: 50px;
    }

    .col1 {
        display: grid;
        grid-template-columns: 100%;
        text-align: center;
        justify-content: center;

    }

    .col-1 {
        display: grid;
        text-align: center;
    }

    .col-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .col-5 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1em;
    }

    .heimildir {
        background-color: white;
        color: black;
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .haegri {
        justify-content: right;
    }
}


.img {
    max-width: 300px;
}

picture * {
    max-width: 100%;
    padding: 0;
}





