* {
    box-sizing: border-box;
}

html {
    background-color: white;
}


/* TEXTFORMATTERING */
@import url("https://use.typekit.net/zrk7bbs.css");

h1, h2, h3, h4, h5, p, li, button {
    font-family: proxima-nova, sans-serif;
}

h1 {
    color: #D15E30;
    font-size: 3em;
    text-align: center;
    font-weight: 700;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}


h2 {
    font-size: 2em;
    color: #174E94;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    margin-top: 1.5em;
}

p {
    text-align: center;
    color: #174E94;
    padding-bottom: 0.3em;
    margin-left: 1em;
    margin-right: 1em;
}


.linje {
    border-top: solid 0.15em #D15E30;
    width: 15%;
    margin: auto;
    margin-top: 2em;
    padding-bottom: 2em;

}

/* LINKS */

a {
    text-decoration: none;
}

/* NAV */
nav {
    border-bottom: solid lightgray 0.1em;
    display: flex;
    align-content: center;
    justify-content: space-between;
    padding: 1em 2.5em;
    background-color: white;

}


nav ul {
    display: flex;
    align-items: center;
    justify-content: center;

}

nav li {
    list-style: none;
    padding: 0em 1em;
    font-size: 1.2em;
}

nav a {
    color: #174E94;
}

nav a:hover {
    color: black;
}

nav img {
    width: 12em;
}

.Meny {
    display: flex;
    align-items: center;
    justify-content: center;
}

#Outbylogga img {
    width: 4em;
    margin: auto;
}

#LPRlogga img {
    width: 13em;
}

#LPRlogga {
    display: flex;
    align-items: center;
    justify-content: center;
}

iframe {
    margin: 1em auto 6em auto;
    display: block;
    width: 70%;
    height: 40em;
}

@media screen and (max-width: 700px) {
    iframe {
        width: 80%;
        height: 15em;
    }
}

/* HAMBURGARMENY */
@media screen and (max-width: 587px) {
    #hamburger {
        position: relative;
        cursor: pointer;
        width: 2em;
        height: 2em;
        margin-top: 1em;

    }

    .hamburgerBar {
        position: absolute;
        width: 2em;
        height: 0.2em;
        background-color: #174E94;
        padding: 0em;
    }

    .hamburgerBar:nth-child(1) {
        top: 0em;
    }

    .hamburgerBar:nth-child(2) {
        top: 0.5em;
    }

    .hamburgerBar:nth-child(3) {
        top: 1em;
    }

    .active #hamburger .hamburgerBar:nth-child(1) {
        top: 1em;
        -webkit-transform-origin: center;
        -webkit-transform: rotate(-45deg);
        transform-origin: center;
        transform: rotate(-45deg);
    }

    .active #hamburger .hamburgerBar:nth-child(2) {
        opacity: 0;
    }

    .active #hamburger .hamburgerBar:nth-child(3) {
        top: 1em;
        -webkit-transform-origin: center;
        -webkit-transform: rotate(45deg);
        transform-origin: center;
        transform: rotate(45deg);
    }

    .Hambu {
        display: none;
    }

    #hamburger {
        display: inline;
    }

    #nav.active #hamburger {
        margin-top: 0.5em;
    }

    #nav.active ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin: 1em auto 0em auto;

    }

    #nav {
        width: 100%;
        font-size: 1.3em;
        flex-wrap: wrap;
    }

    #nav.active li {
        padding-bottom: 1em;
        font-size: 1em;
        text-align: center;

    }

    #LPRlogga {
        display: none;
    }


}

@media screen and (max-width: 425px) {
    nav img {
        width: 7em;
        margin: auto;
    }

    #hamburger {
        margin-top: 0.4em;
    }

    #nav.active ul {
        display: flex;
        flex-direction: column;
        padding: 0em 1em;
    }

    #nav.active #hamburger {
        margin-top: 0em;
    }


}


/* FORMULÄR */

.form {
    border: solid 0.1em #D15E30;
    border-radius: 2em;
    padding: 1em;
    margin: 1em 0em;
    outline: none;
    width: 35em;
    font-family: proxima-nova, sans-serif;
    box-shadow: 0.1em 0.1em 0.3em #c4c4c4

}

.form:focus {
    border: solid 0.1em black;
    border-radius: 2em;
}


form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2em;
    color: #174E94;


}

.formbutton {
    color: white;
    background-color: #D15E30;
    border: solid #D15E30;
    border-radius: 1em;
    padding: 0.6em;
    box-shadow: 0.1em 0.1em 0.3em #c4c4c4

}

.formbutton:active {
    background-color: #e48965;
    border: solid #e48965;

}

textarea {
    resize: none;
    height: 10em;
}

/* FOOTER */

footer {
    background-color: #174E94;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 2em;

}

.footerleft {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 3em 0em;
    flex-wrap: wrap;

}

.footerikontext {
    padding: 1em 2em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 15em;

}

.footerright {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


footer p {
    color: white;
    text-align: center;
}

footer a {
    color: white;
    text-align: center;
}

footer a:hover {
    color: lightgray;
}

footer img {
    width: 3em;
    padding-bottom: 1em;
    margin: auto;

}

.admintext {
    font-size: 1.1em;
    line-height: 1.6em;
}

#PoweredByOutby img {
    width: 20em;
}


@media screen and (max-width: 939px) {

    footer {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .footerikontext {
        width: 13em;
        justify-content: center;
        align-content: center;
    }

    .footerright {
        flex-direction: column;
    }

    footer img {
        width: 3em;
    }

    footer p {
        margin-bottom: 1em;
    }

    h2 {
        font-size: 1.6em;
    }

    p {
        font-size: 1em;
        margin: 0em 2em;
        line-height: 1.2;

    }

    .aktivitet p {
        margin: 0em;
    }

    .linje {
        width: 35%;

    }

    .form {
        width: 20em;
    }
} 
