/*////////////////
//////GENERAL/////
////////////////*/

@font-face {
    font-family: 'Brandon';
    src: url('../../css/fonts/Brandon-Grotesque-Light.woff2') format('woff2');
}

* {
    margin: 0;
    font-family: 'Brandon', sans-serif;
    scroll-behavior: smooth;
    transition: all 0.4s ease-in-out;
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}
a.image-link, a.image-link:hover, a.image-link:visited {
    color: #55CDFC;
}
body,
html {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    -moz-flex-direction: column;
    background: radial-gradient(#f3f3f3, #fff);
    background: -moz-radial-gradient(#f3f3f3, #fff);
    background: -webkit-radial-gradient(#f3f3f3, #fff);
    background-position: center center;
    overflow-x: hidden;
}

@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance: none) and (display: flow-root) {
        body, .content, .intro, .process, .proofing, .contact, .final {
            display: unset !important;
        }
    }
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.line-left {
    background-image: url('../img/aaltoviiva.png');
    background-repeat: repeat-x;
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 9px;
    max-width: 80%;
}

.line-right {
    background-image: url('../img/aaltoviiva.png');
    background-repeat: repeat-x;
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 9px;
    max-width: 80%;
}

@media (max-width: 850px) {
    .line-left,
    .line-right {
        display: none;
    }
}

.content {
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    -moz-flex-direction: column;
    margin: auto;
    max-width: 750px;
    width: 90vw;
}

.content h2 {
    font-size: 3em;
    font-weight: normal;
    margin: 70px 0 0;
}

.content p {
    font-size: 1.35em;
    margin: 25px;
}

.content-wide {
    max-width: 1200px;
}

main {
    width: 100%;
    margin: 0;
    transition: all 0.4s;
}

@media (max-width: 850px) {
    .br {
        display: none;
    }
}


/*////////////////
////NAVIGATION////
////////////////*/

.header {
    height: 100px;
    margin: 0 auto;
    max-width: 1200px;
    width: 90vw;
    min-height: 100px;
}

@media (max-width: 1000px) {
    .header {
        width: 95vw;
    }
}

@media (max-width: 850px) {
    .header {
        width: 100%;
    }
}

.header-navigation {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s;
}

.header-navigation_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    -moz-flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding-inline-start: 0;
    transition: all 0.4s;
}

@media (max-width: 850px) {
    #headerNavWrapper {
        width: 0;
        display: none;
        transition: width 0.4s;
    }
}

@media (max-width: 850px) {
    .header-navigation_wrapper {
        width: 0;
        position: fixed;
        overflow-x: hidden;
        transition: all 0.4s ease-in-out;
    }
}

.header-navigation .icon {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    margin: 15px;
    color: #000;
    font-size: 25px;
    z-index: 1;
    padding: 20px 25px;
    background-color: #fff;
}

.header-navigation .active {
    z-index: 1;
    background: #fff;
    justify-content: center;
    bottom: 0;
    right: 0;
    transition: all 0.4s;
}

.header-navigation .active li {
    margin: 30px auto;
}

@media (min-width: 850px) {
    .header-navigation .icon {
        display: none;
    }
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

@media (max-width: 850px) {
    .header-navigation_wrapper {
        flex-direction: column;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
        transition: all 0.4s;
    }
}


/* @media (max-width: 850px) {
    .header-navigation_wrapper {
        display: none;
    }
} */

.header-navigation .logo {
    height: 30px;
    margin: 30px 50px 30px 0px;
    display: block;
    z-index: 2;
}

@media (max-width: 850px) {
    .header-navigation .logo {
        margin: 30px auto 30px 30px;
    }
}

.header-navigation_wrapper .logo {
    width: 150px;
}

.header-navigation_wrapper li {
    list-style: none;
    margin: 0 5px;
}

.header-navigation_wrapper li a {
    text-decoration: none;
    color: black;
    font-size: 1.2em;
}

@media (max-width: 850px) {
    .header-navigation_wrapper li a {
        font-size: 1.3em;
    }
}


/*//////////////
//////INTRO/////
//////////////*/

.intro {
    display: flex;
    flex-direction: column;
    -moz-flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
}

.intro .content {
    margin-bottom: 150px;
}

@media (max-width: 850px) {
    .intro .content {
        margin-bottom: 0;
    }
}

.intro h1 {
    font-size: 3.5em;
    font-weight: normal;
    margin: 50px auto 40px;
}

.intro p {
    font-size: 1.35em;
    margin-bottom: 25px;
}

@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance: none) and (display: flow-root) {
        .intro p {
            margin: auto;
            margin-bottom: 25px;
            max-width: 775px;
            ;
        }
    }
}

.intro-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 60px;
    border: none;
    background: #f8bbcc;
    font-size: 1em;
    transition: all 0.4s;
    margin: 20px auto;
    padding: 0 25px;
    vertical-align: middle;
}

.intro-button:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.intro-button:hover span {
    transform: translateX(35px);
}

.intro-button span {
    font-size: 30px;
    margin-left: 15px;
    transition: all 0.4s;
    height: 100%;
    line-height: 60px;
}

.intro-box {
    display: flex;
    flex-direction: row;
    -moz-flex-direction: row;
    flex-wrap: wrap;
    margin-top: 100px;
    justify-content: center;
    max-width: 1000px;
    width: 95vw;
}

@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance: none) and (display: flow-root) {
        .intro-box {
            margin: auto;
            margin-top: 100px;
        }
    }
}

.intro-box .intro-box-wrapper:last-child {
    margin-top: 160px;
}

@media (max-width: 850px) {
    .intro-box .intro-box-wrapper:last-child {
        margin-top: 65px;
    }
}

.intro-box-l:last-child,
.intro-box-r:last-child {
    margin-top: 100px;
}

.intro-box-l,
.intro-box-r {
    background: #fff;
    max-width: 390px;
    height: 220px;
    margin: 20px 20px 0 0;
    padding: 40px 20px 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    -moz-flex-direction: column;
    text-align: left;
}

.intro-box-l h3,
.intro-box-r h3 {
    font-weight: normal;
    font-size: 1.5em;
    text-align: left;
    margin: 0 15px 20px 40px;
    width: 100%;
}

.intro-box-l p,
.intro-box-r p {
    font-size: 1.2em;
    margin: 0px 15px;
}

.intro-box-l:first-child::before,
.intro-box-l:last-child::before,
.intro-box-r:first-child::before,
.intro-box-r:last-child::before {
    display: block;
    content: '';
    height: 90px;
    width: 67px;
    background-repeat: no-repeat;
    color: white;
    position: absolute;
}

.intro-box-l:first-child::before {
    background-image: url('../img/brief_lomake.svg');
    transform: translate(-150px, -125px);
}

.intro-box-l:last-child::before {
    background-image: url('../img/kommentointi_icon.svg');
    transform: translate(-150px, -115px);
}

.intro-box-r:first-child::before {
    background-image: url('../img/projekti_arkisto.svg');
    width: 76px;
    transform: translate(-140px, -112px);
}

.intro-box-r:last-child::before {
    background-image: url('../img/tarkistusketju_icon.svg');
    transform: translate(-150px, -112px);
}

@media (max-width: 850px) {
    .intro-box-l:first-child::before,
    .intro-box-l:last-child::before,
    .intro-box-r:first-child::before,
    .intro-box-r:last-child::before {
        left: 50%;
    }
}


/*//////////////
////PROCESS/////
//////////////*/

.process {
    display: flex;
    position: relative;
    flex-direction: column;
    -moz-flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 80px auto;
    padding-top: 80px;
    width: 100%;
}

@media (max-width: 850px) {
    .process {
        margin: 0;
        padding-top: 0;
    }
}

.process .content:nth-child(2) {
    margin: 60px 0 150px;
}

@media (max-width: 850px) {
    .process .content:nth-child(2) {
        margin: 60px 0 50px;
    }
}

.process .dot-wrapper {
    background: #232d69;
    height: 1px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 50px auto 150px;
    max-width: 750px;
}

@media (max-width: 850px) {
    .process .dot-wrapper {
        flex-direction: column;
        height: 100%;
        width: 1px;
        padding: 0;
        margin-right: 85%;
        margin-bottom: 70px;
    }
}

.process .dot-wrapper li {
    background: #232d69;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.15em;
    padding-top: 11px;
    list-style: none;
}

@media (max-width: 850px) {
    .dot-wrapper {
        #margin-left: -70px !important;
    }
    .process .dot-wrapper li {
        margin-bottom: 25px;
    }
}

.OSX .process .dot-wrapper li {
    padding-top: 14px;
}
@media (min-width: 851px) {
    .process .dot-wrapper li:nth-child(2) p {
        width: 145px;
        margin-left: -45px;
    }
    .process .dot-wrapper li:nth-child(3) p {
        width: 145px;
        margin-left: -45px;
    }

    .process .dot-wrapper li:nth-child(4) p {
        width: 145px;
        margin-left: -45px;
    }
    .process .dot-wrapper li:nth-child(5) p {
        width: 145px;
        margin-left: -45px;
    }

    .process .dot-wrapper li:nth-child(6) p {
        width: 145px;
        margin-left: -45px;
    }
    .process .dot-wrapper li:nth-child(7) p {
        width: 145px;
        margin-left: -45px;
    }

    .process .dot-wrapper li:first-child {
        margin-left: -25px;
    }

    .process .dot-wrapper li:last-child {
        margin-right: 15px;
    }
}

@media (max-width: 850px) {
    .process .dot-wrapper li:first-child {
        margin-left: 0px;
        margin-top: 15px;
    }
    .process .dot-wrapper li:last-child {
        margin-right: 0px;
        margin-bottom: 15px;
    }
    .process .dot-wrapper li:nth-child(4) p {
        font-size: 1em;
        margin-top: -35px;
    }
    .process .dot-wrapper li:nth-child(6) p {
        margin-top: -40px;
    }
    .process .dot-wrapper li:nth-child(5) p {

    }

}

.dot-wrapper p {
    color: black;
    font-weight: normal;
    font-size: 1.12em;
    margin: 30px auto;
    text-align: center;
}

@media (max-width: 850px) {
    .dot-wrapper p {
        font-size: 1.12em;
    }
    .process .dot-wrapper p {
        margin: -25px 0 0 80px;
    }
}

.process .brief {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 50px auto;
    width: 95vw;
}

@media (max-width: 1000px) {
    .process .brief {
        flex-direction: column;
    }
}

.process .brief .brief-text {
    width: 30%;
    margin: 0 50px;
    text-align: left;
}

@media (max-width: 1000px) {
    .process .brief .brief-text {
        width: 90vw;
    }
}

@media (max-width: 1000px) {
    .process .brief .brief-text p {
        margin-left: 0;
    }
}

@media (max-width: 850px) {
    .process .brief .brief-text p {
        margin: 0;
    }
}

.process .brief .brief-text h2 {
    margin: 10px 0;
}

.process .brief .brief-image {
    width: 50%;
}

.process .brief .brief-image img {
    max-width: 450px;
    width: 100%;
    height: 100%;
}

.process .content h2 {
    margin: 70px 0 0;
}


/*//////////////
////PROOFING////
//////////////*/

.proofing {
    display: flex;
    position: relative;
    flex-direction: column;
    -moz-flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: auto;
    width: 100%;
}

.proof-wrapper {
    display: flex;
    flex-direction: column;
    -moz-flex-direction: column;
    flex-wrap: wrap;
    max-width: 1000px;
    width: 90vw;
    margin-bottom: 120px;
}

@media (max-width: 850px) {
    .proof-wrapper {
        margin-bottom: 0;
    }
}

.proof-box {
    margin: 10px 10px 10px 10px;
    padding: 5px;
    text-align: left;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    width: 100%;
}

@media (max-width: 850px) {
    .proof-box {
        flex-direction: column;
    }
}

@media (max-width: 850px) {
    .proof-box:nth-child(odd) {
        flex-direction: column-reverse;
    }
}

.proof-text {
    max-width: 450px;
    background: #fff;
    margin: 10px;
    height: 100%;
}

.proof-box .proof-text h3 {
    margin: 20px 20px 10px 20px;
    font-size: 1.4em;
    font-weight: normal;
}

.proof-box .proof-text p {
    margin: 10px 20px 20px 20px;
    font-size: 1.17em;
}

.proof-box .proof-image {
    height: 100%;
    max-width: 450px;
    display: block;
    width: 100%;
    margin: 10px;
}

.proof-wrapper .proof-box:first-child .proof-image {
    background-image: url('../img/audio_naytto.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    width: 100%;
    height: 280px;
}

.proof-wrapper .proof-box:nth-child(2) .proof-image {
    background-image: url('../img/html_kone.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    width: 100%;
    height: 280px;
}

.proof-wrapper .proof-box:nth-child(3) .proof-image {
    background-image: url('../img/pdf_kone.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    width: 100%;
    height: 280px;
}

.proof-wrapper .proof-box:last-child .proof-image {
    background-image: url('../img/versio_kone.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    width: 100%;
    height: 280px;
}

@media (min-width:851px) and (max-width: 1000px) {
    .dot-wrapper p {
        font-size: 0.9em;
    }
}

/*//////////////
//////FORM//////
//////////////*/

.contact {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 70px auto;
}

.contact .contact-info {
    margin-bottom: 100px;
}

@media (max-width: 850px) {
    .contact .contact-info {
        margin-bottom: -50px;
    }
}


/*//////////////
/////FINAL//////
//////////////*/

.final {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 10px auto 80px;
}

.final .info {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    max-width: 900px;
    width: 90vw;
}

@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance: none) and (display: flow-root) {
        .final .info {
            margin: auto;
        }
    }
}

.final .info a {
    text-decoration: none;
    color: black;
    transition: all 0.4s;
}

.final .info a::after {
    display: block;
    content: '';
    border-bottom: solid 2px #000;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: 0% 50%;
}

.final .info a:hover:after {
    transform: scaleX(1);
}

.final .info span {
    transition: all 0.4s;
    margin: 0 0 0 5px;
    font-size: 30px;
    transition: all 0.4s;
    display: inline-block;
}

.final .info a:hover span {
    transform: translateX(20px);
}

.final .info p {
    margin: 10px;
}


/*//////////////
/////FOOTER/////
//////////////*/

footer {
    text-align: center;
    min-height: 70px;
    margin: 0 auto 20px;
}

footer p {
    font-size: 1.25em;
}