/* Länkar in teckensnitt */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat&display=swap');

/* Reglerar alla boxar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Regler för body */
body {
    background-color: #5E7349;
    font-family: 'Quicksand', Arial, sans-serif;
    color: #202126;
    line-height: 18px;
}

/* Regler för sidornas innehåll och positionering för att footern ska stanna längst ner */
#page-container {
    position: relative;
    margin: auto;
    min-height: 100vh;
    max-width: 1280px;
    background-color: #F2F2F2;
    box-shadow: 0px 0px 60px 20px #202126;
}

/* Lägger till padding för att sidans innehåll inte ska hamna bakom footern */
#content-wrap {
    padding-bottom: 131px;
}

/* Skärmar med minsta bredd 600px */
@media only screen and (min-width: 600px) {

    #content-wrap {
        padding-bottom: 175px;
    }
}


/* HEADER & NAVIGERING */
header {
    width: 100%;
    height: 90px;
    background-color: #4D5947;
    position: fixed;
    z-index: 1;
}

#logo {
    padding: 7px;
    display: flex;
    justify-content: center;
}

header a img {
    width: 150px;
    height: 44px;
}

header nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
}

header nav a {
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #F2F2F2;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
}

header nav a:hover {
    background-color: #5E7349;
}

/* Skärmar med minsta bredd 600px */
@media only screen and (min-width: 600px) {

    header {
        height: 112px;
    }

    #logo {
        padding: 10px;
    }

    header a img {
        width: 189px;
        height: 55px;
    }

    header nav a {
        padding: 7px 20px;
        font-size: 20px;
    }
}

/* Skärmar med minsta bredd 1280px */
@media only screen and (min-width: 1280px) {

    header {
        width: 1280px;
        height: 85px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #logo {
        padding-left: 22px;
    }

    header nav li {
        margin-right: 20px;
    }

    header nav a {
        padding: 12px 30px;
    }
}


/* MAIN */
main {
    width: 100%;
    padding-top: 90px;
}

/* Skärmar med minsta bredd 600px */
@media only screen and (min-width: 600px) {

    main {
        padding-top: 112px;
    }
}

/* Skärmar med minsta bredd 1280px */
@media only screen and (min-width: 1280px) {

    main {
        padding-top: 85px;
    }
}


/* TEXT & PADDING */
h1 {
    font-size: 24px;
    line-height: 30px;
}

h2 {
    font-size: 20px;
    line-height: 25px;
}

h3 {
    font-size: 18px;
}

h1,
h2,
h3 {
    font-weight: 700;
    padding: 15px 15px 0 15px;
}

p {
    font-size: 14px;
    padding: 0 15px;
}

p a {
    font-weight: 600;
    color: #5E7349;
    transition: 0.3s;
}

p a:hover {
    color: #D94929;
}

.sixhundred {
    font-weight: 600;
}

/* Skärmar med minsta bredd 600px */
@media only screen and (min-width: 600px) {

    h1 {
        font-size: 48px;
        line-height: 60px;
    }

    h2 {
        font-size: 36px;
        line-height: 45px;
    }

    h3 {
        font-size: 30px;
    }

    h1,
    h2,
    h3 {
        padding: 20px 41px 0 41px;
    }

    p {
        font-size: 18px;
        line-height: 22px;
        padding: 0 41px;
    }
}

/* Skärmar med minsta bredd 1000px */
@media only screen and (min-width: 1000px) {

    h1,
    h2,
    h3,
    p {
        padding-left: 0;
        padding-right: 0;
    }
}


/* FOOTER */
footer {
    background-color: #4D5947;
    width: 100%;
    height: 106px;
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
}

footer ul {
    padding: 0 15px;
    list-style-type: none;
}

footer li {
    color: #F2F2F2;
    font-weight: 600;
    font-size: 14px;
    line-height: 28px;
}

/* Skärmar med minsta bredd 600px */
@media only screen and (min-width: 600px) {

    footer {
        height: 140px;
    }

    footer ul {
        padding: 0 41px;
    }

    footer li {
        font-size: 16px;
    }

}


/* CSS-FLEXBOX */

/* Skärmar med minsta bredd 1000px */
@media only screen and (min-width: 1000px) {

    .flex-container {
        display: flex;
        flex-wrap: wrap;
        padding: 15px 41px;
    }

    .item {
        flex-basis: 50%;
    }
}