body, html {
    overflow: hidden;
    transform: translateZ(0);
    background: black;
}
* {
    margin:0;
    padding:0;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}
a:link, a:visited {
    color: #00a191;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
h1 {
    color: #eee;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-size: 3vh;
    font-weight: 700;
    margin-bottom: 6vh;
    text-transform: uppercase;
    letter-spacing: 0.3vw;
}
h2 {
    color: white;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-weight: 700;
    font-size: 2.3vh;
    padding-top: 2vh;
    padding-bottom: 2vh;
}
section {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    position: relative;
    height: 500px; /* vanhat selaimet */
    height: 100vh!important;
    text-align: center;
    border-top: 0px solid rgba(255,255,255,0.2);
}
p {
    color: #ccc;
    font-family: "Crimson Text", "Times New Roman", serif;
    font-size: 2.5vh;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 4vh;
}
.keskitys {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    margin: auto;
    width: 70%;
}

/* YLÄVALIKKO -------------------------------------------------------------- */

#ylavalikko-wrapper {
    position: fixed;
    height: 5vh;
    margin: auto;
    z-index: 999;
}
#ylavalikko {
    font-family: "Roboto Slab", Arial, sans-serif;
    font-style: normal;
    margin: auto;
}
#ylavalikko a {
    float: left;
    width: 8vh;
    height: 8vh;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 4vh;
    line-height: 8vh;
    cursor: pointer;
}
#ylavalikko li ul {
    display: none;
    position: absolute;
    left: 8vh;
    list-style-type: none;
    animation: animation-ylavalikko 1s forwards;
}
#ylavalikko li ul a {
    width: 100%;
    height: 5vh;
    padding: 0px 2vh;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.8vh;
    line-height: 5vh;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-left: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
}
#ylavalikko li:hover ul {
    display: block;
}
#ylavalikko li:hover a {
    background: white;
    color: black;
}
#ylavalikko li:hover ul a {
    background: black;
    color: white;
}
#ylavalikko li ul a:hover {
    background: #00a191;
}

/* PARALLAKSI -------------------------------------------------------------- */

.parallax {
    height: 500px; /* vanhat selaimet */
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-perspective: 300px;
    perspective: 300px;
    perspective-origin-x: 100%;
    scroll-behavior: smooth;
}
.parallax__layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform-origin-x: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
.parallax__layer--base {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 3;
}
.parallax__layer--back {
    -webkit-transform: translateZ(-294px) scale(2);
    transform: translateZ(-294px) scale(2);
    -webkit-filter:brightness(95%);
    filter:brightness(95%);
    z-index: 2;
    pointer-events: none;
}
.parallax__layer--deep {
    background-image: url(images/background1.jpg);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-filter:brightness(95%);
    filter:brightness(95%);
    -webkit-transform: translateZ(-590px) scale(3);
    transform: translateZ(-590px) scale(3);
    height: 150vh!important;
    z-index: 1;
    pointer-events: none;
}
.parallax__layer--deep div{
    height: 100%;
    width: 100%;
    background-image: url(images/black.png);
    background-size: 50px 10%;
    background-position: bottom;
    background-repeat: repeat-x;
}
#tummennus {
    background-image: url(images/black.png);
    background-size: 50px 100%;
    background-position: 0 150vh;
    background-repeat: repeat-x;
    height: 400vh;
    width: 100%;
    z-index: -1!important;
}

/* ETUSIVU ------------------------------------------------------------------*/

#tagline-separator {
    display: none;
    background: rgba(255,255,255,1);
    height: 1px;
    width: 0;
    margin: auto;
    margin-top: 2vh;
    animation: animation-tagline-separator 3s forwards ease-out;
}
#tagline-a {
    text-align: center;
    color: white;
    width: 70%;
    margin: auto;
    padding-top: 45vh;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-weight: 700;
    font-size: 7vh;
    text-transform: none;
    line-height: 100%;
    animation: animation-tagline-a 1s;
}
#tagline-b {
    text-align: center;
    color: white;
    width: 60%;
    margin: auto;
    font-family: "Crimson Text", "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 2.5vh;
    text-transform: none;
    line-height: 120%;
    opacity: 0;
    animation: animation-tagline-b 1s 1s forwards;
}
#button {
    text-align: center;
    opacity: 0;
    animation: animation-buttons 1s 2s forwards;
}
#button a {
    display:inline-block;
    height: 8vh;
    width: 8vh;
    margin: 0.7vw;
    padding: 0;
    line-height: 7.5vh;
    text-align: center;
    border: 2px solid white;
    border-radius: 50%;
}
#button img {
    height: 3vh;
    vertical-align: middle;
}
#button a:hover {
    background: #00a191;
    color: #fff;
    vertical-align: bottom;
    border: 2px solid #00a191;
}
#logo {
    position: absolute;
    width: 100%;
    margin-top: 8vh;
    color: white;
    font-size: 4vh;
    text-align: center;
    opacity: 0;
    animation: animation-logo 2s 3s forwards;
}
#logo img {
    height: 4vh;
}

/* MISSIO JA ARVOT ----------------------------------------------------------*/

#yritys {
    background: rgba(40,40,40,0.7);
    background: -moz-linear-gradient(top, rgba(40,40,40,0) 0%, rgba(40,40,40,0.7) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(40,40,40,0) 0%,rgba(40,40,40,0.7) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(40,40,40,0) 0%,rgba(40,40,40,0.7) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0000231e', endColorstr='#b300231e',GradientType=0 ); /* IE6-9 */
}
#sertifikaatit {
    margin-top: 6vh;
    width: 100%;
    text-align: center;
}
#sertifikaatit img {
    max-width: 30vw;
    display: inline-block;
    vertical-align: middle;
    margin: 20px;
}
#suomenvahvimmat-yrityslogo {
    max-height: 17vh!important;
}

/* PALVELUT -----------------------------------------------------------------*/

#palvelut {
    background: rgba(20,20,20,0.7);
}
#palvelut ul li {
    color: white;
    margin-top: 2vh;
    list-style-type: none;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-size: 2vh;
    font-weight: 700;
}
#palvelut ul li ul li {
    margin-top: 0.5vh;
    color: rgba(255,255,255,0.5);
    font-family: "Crimson Text", "Times New Roman", serif;
    font-size: 2vh;
    font-style: italic;
    font-weight: 400;
}

/* YHTEYSTIEDOT -------------------------------------------------------------*/

#yhteystiedot {
    background: rgba(40,40,40,0.7);
    background: -moz-linear-gradient(top, rgba(40,40,40,0.7) 0%, rgba(40,40,40,0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(40,40,40,0.7) 0%,rgba(40,40,40,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(40,40,40,0.7) 0%,rgba(40,40,40,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0000231e', endColorstr='#b300231e',GradientType=0 ); /* IE6-9 */
    background: black;
   }
#yhteystiedot p{
    font-size: 2.3vh;
}
#yhteystiedot img {
    height: 1.7vh;
}
#copyright {
    position: absolute;
    bottom: 0;
    color: #777;
    height: 5vh;
    width: 100%;
    text-align: center;
    z-index: 999;
    font-size: 1.5vh;
    font-family: "Roboto Slab", "Arial", sans-serif;
}

/* ANIMAATIOT ---------------------------------------------------------------*/

@keyframes animation-tagline-separator {
    from {width: 0;}
    to {width: 35%;}
}
@keyframes animation-tagline-a {
    from {padding-left: 10%; opacity: 0;}
    to {padding-left: 0; opacity: 1;}
}
@keyframes animation-tagline-b {
    from {margin-top: -2vh; opacity: 0;}
    to {margin-top: 2vh; opacity: 1;}
}
@keyframes animation-buttons {
    from {margin-top: 8vh; opacity: 0;}
    to {margin-top: 4vh; opacity: 1;}
}
@keyframes animation-logo {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes animation-ylavalikko {
    from {top: -20vh;}
    to {top: 0;}
}

/* MEDIAKYSELYT ------------------------------------------------------------ */

@media screen and (orientation: portrait) {
    #person {
        position: absolute;
        top: 35vh;
        left: -75vw;
        height: 130vh;
    }
    #tagline-a {
        padding-top: 40vh;
        font-size: 6vh;
    }
    #tagline-b {
        font-size: 2vh;
    }
}
@media screen and (min-aspect-ratio: 1/1) {
    #person {
        position: absolute;
        top: 35vh;
        left: -15vw;
        height: 150vh;
    }
}
@media screen and (min-aspect-ratio: 16/11) {
    #person {
        position: absolute;
        top: 25vh;
        left: -15vw;
        height: 150vh;
    }
}
@media screen and (min-aspect-ratio: 16/7) {
    #person {
        position: absolute;
        top: 25vh;
        left: 0vw;
        height: 200vh;
    }
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    body {
        background-image: url(images/background_ie.jpg);
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
   }
   #ylavalikko li ul {
        animation: none;
    }
   .parallax__layer--back, .parallax__layer--deep {
        display: none;
   }
    #tummennus {
        height: 420vh;
    }
}
