
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

ul[role='list'], ol[role='list'] {
    list-style: none;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img, picture {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



:root {
    --color-main: #1e6e6e;
    --color-black: #171717;
    --color-white: #f2f2f2;
    --color-gray: #d9d9d9;
}

h1, h2, h3 {
    line-height: 1.1;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3{
    font-size: 1.334rem;
}

h4{
    font-size: 1rem;
}

ul{
    padding: 0;
    margin: 0;
}

a {
    color: var(--color-white);
    text-decoration: none;
}

a:hover {
    color: var(--color-gray);
}




html{
    width: 100%;
    overflow-x: hidden;
    background-color: var(--color-main);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
}

body{
    overflow-x: hidden; 
    scroll-behavior: smooth;
    line-height: 1.5; 
    max-width: 1500px;
    width: 100%;
}

main{
    width: 100%;
    background-color: var(--color-white);
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.top-bar{
    width: 100%;
    background-color: var(--color-white);
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.headline{
    color: var(--color-main);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.subline{
    color: var(--color-main);
}

div, footer{
    padding: 1rem;
}

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dropdown-content{
    padding-left: 2rem;
}

.divided-main{
    display: flex;
    flex-direction: column;
}

.reverse{
    flex-direction: column-reverse;
}

.side-content-front, .side-content{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    flex-grow: 1;
}

.side-content{
    text-align: left;
    align-items: flex-start;
    padding: 2rem;
}

.button{
    padding: .5rem 1rem;
    margin-top: 2rem;
    background-color: var(--color-main);
    color: var(--color-white);
}

.centering{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.navigation{
    padding: .5rem 1rem;
}

.mobile_navigation{
    padding: .5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav{
    display: none;
}

.menu-item{
    padding-bottom: 1rem;
    padding-right: 1rem;
    font-size: 1.2rem;
    list-style: none;
}

.menu-item-2{
    padding-bottom: 1.5rem;
    padding-right: 1rem;
    font-size: 1.2rem;
    list-style: none;
}

.dropdown-content{
    padding-top: 1rem;
    padding-bottom: 0;
    margin-bottom: -1rem;
}

.tjanst_sida{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.submenu{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.homepage{
    padding: .5rem;
    background-color: var(--color-gray);
    color: var(--color-black);
}

.lists{
    padding-left: 2rem;
}

.form-double{
    display: flex;
    flex-direction: column;
    width: 100%;
}

form{
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-area{
    padding: .5rem;
    width: 100%;
}

input[type=text]{
    width: 100%;
    background-color: var(--color-gray);
    border: 0;
    height: 30px;
}

textarea{
    width: 100%;
    background-color: var(--color-gray);
    border: 0;
}

input[type=submit]{
    background-color: var(--color-main);
    border: 0;
    color: var(--color-white);
    width: 200px;
    height: 30px;
}

.contact{
    padding: 2rem 0 1rem 0;
}

.company{
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.website, .picture{
    font-size: .7rem;
}







@media (max-width: 350px){
    h1{
        font-size: 1.8rem;
    }
    h3{
        font-size: 1.2rem;
    }
}
@media (min-width: 1024px){
    h1, .headline{
        font-size: 2.5rem;
    }
    h2{
        font-size: 2rem;
    }
    .top-bar{
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
    .dropdown{
        position: relative;
        display: inline-block;
    }
    .dropdown-content{
        padding: 0;
        display: none;
        position: absolute;
        background-color: var(--color-white);
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
    }
    .dropdown-content a{
        color: var(--color-black);
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }
    .dropdown-content a:hover{background-color: var(--color-gray)}
    .dropdown:hover .dropdown-content {
        display: block;
    }
    .divided-main{
        flex-direction: row;
    }
    .icon{
        display: none;
    }
    .menu-item{
        padding-bottom: 0;
        padding-right: 1.5rem;
    }
    .menu-item-dropdown{
        padding-right: 0;
    }
    .navigation{
        padding: .5rem 1rem;
        display: flex;
        flex-direction: row;
        justify-content: left;
        flex-wrap: wrap;
    }
    .mobile_nav{
        display: none;
    }
    nav{
        display: block;
    }
    .reverse{
        flex-direction: row;
    }
    .side-content{
        padding: 4rem;
    }
    .form-double{
        flex-direction: row;
        justify-content: center;
    }
    form{
        padding-right: 5rem;
        padding-left: 5rem;
    }
}