@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 16px;
}

body {
    color: #000;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #ededed;
}

#wrapper {
    position: relative;
    max-width: 62.5rem;
    margin: 1rem auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0.625rem rgb(75 75 75 / 50%);
    padding: 3rem 2.5rem;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    width: 53%;
}

h1 span {
    font-size: 1.1rem;
    color: #00c8ff;
    vertical-align: super;
    white-space: nowrap;
    margin-left: .2rem;
}

h1 small {
    display: block;
    font-size: .65em;
}

h2 {
    font-size: 0.95rem;
    color: rgb(142, 146, 150);
    letter-spacing: 0.15rem;
    margin: 1.5rem 0;
}

h3 {
    color: #00c8ff;
    font-size: 1.2rem;
}

ul {
    margin: 0 0 1rem 0;
    list-style-type: none;
}

ul li {
    margin-bottom: 1rem;
}

.center {
    text-align: center;
}

.logo {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1.5rem;
}

.title {
    position: relative;
    background: url(../images/header.png) top right/auto no-repeat;
    height: 350px;
}

.respons {
    display: none;
}

.blue-frame p {
    position: absolute;
    top: 9.8rem;
    left: 4rem;
    line-height: 1.3;
}

.blue-frame p small {
    font-size: .7em;
}

article p {
    margin-bottom: 1.25rem;
}

.flex {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.flex section {
    width: 50%;
}

.icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.icons div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.icons p {
    font-size: 0.813rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 0 0;
}

footer .left {
    width: 45%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

footer .right {
    width: 55%;
}

.right p {
    margin-bottom: 1rem;
}

.right p span {
    display: inline-block;
    font-size: 0.873rem;
    color: rgb(142, 146, 150);
    letter-spacing: 0.1rem;
    margin-right: 1rem;
    width: 7.5rem;
    text-align: right;
}

.socials {
    display: flex;
    align-items: center;
}

.social-icons {
    display: flex;
}


@media only screen and (max-width: 62.438rem) {
    #wrapper {
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    .title {
        background: url(../images/kolleginen.png) no-repeat right;
        background-size: 50%;
        height: auto;
    }

    h1 {
        font-size: 1.8rem;
        width: 48%;
        padding-bottom: 1rem;
    }

    h1 span {
        font-size: 1rem;
    }

    .absolute {
        position: static;
        margin: 0.25rem 0;
        font-size: 1rem;
    }

    .blue-frame {
        background-color: rgba(255, 255, 255, 0.597);
        border: 3px solid #00c8ff;
        width: 48%;
        padding: 1rem
    }

    .blue-frame p {
        position: static;
    }

    .blue-frame p br {
        display: none;
    }

    .icons {
        grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    footer {
        flex-direction: column;
    }

    footer .right,
    footer .left {
        width: 100%;
    }

    .right p span {
        width: auto;
        text-align: left;
    }

    .right p {
        margin-bottom: 0.25rem;
    }
}

@media only screen and (max-width: 50rem) {
    #wrapper {
        padding: 1rem;
    }

    .title {
        background: none;
    }

    h1,
    .blue-frame,
    .blue-frame p {
        width: 100%;
        text-align: center;
    }

    h1,
    .absolute {
        text-align: center;
    }

    article br {
        display: none;
    }

    h2 {
        margin: 1rem 0;
    }

    .respons {
        display: block;
        margin: 0.5rem auto;
    }

    .flex {
        flex-direction: column;
        gap: 0;
    }

    .flex section {
        width: 100%;
    }
}

@media only screen and (max-width: 30rem) {
    .left br {
        display: none;
    }

    .right p {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .socials {
        flex-direction: column;
    }
}