*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body { color: #fff; background:#001724; }

section { color: #fff; background:transparent; }

a { text-decoration: none;}

h2.cyan { padding: 1em 0; }

h2, h3, h4 { line-height:1.2;}

p { color: #fff; }

/* Responsive images will automatically adjust to fit the size of the screen. */
img { max-width: 100%; height: auto; }

/* Responsive Youtube videos will automatically adjust to fit the size of the screen. */
.videowrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.videowrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blueBtn {
    display: inline-block;
    margin: 2em 0;
    padding: .75em 1em;
    font-size: 2em;
    color: #fff;
    background: #00a0f0;
    background-image: linear-gradient(to top, #005faf, #00a0f0);
    border-radius: .2em;
}

/* Header ----------------------------------------------------------------- */

header {
    position: relative;
    margin: 0 auto;
    max-width: 1170px;
}
header li img { max-width: 8em; }

header .tarjous {
    position: absolute;
    padding: 1em;
    border-radius: .5em;
    top: 3.5em;
    right: 3em;
    display: inline-block;
    z-index: 1;
    display: none;
    height: 140px;
}
/*
header .tarjous a {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;

}*/
header .tarjous:hover { background: rgba(0, 0, 0, .1); }
.jalleenmyyjat header .tarjous { left: 3em; width: auto; }
.jalleenmyyjat header .tarjous p { width: auto; margin-top: 2.5em; }

header .tarjous img {
    float: left;
    max-width: none;
    width: 140px;
    height: 140px;
}
header .tarjous p,
header .tarjous h3 {
    margin: 1em 2em 0 2em;
    display: block;
    float: left;
    overflow: hidden;
}
header .tarjous h3 {
    margin-top:4.5rem;
    margin-left: 1em;
    margin-right:1em;
    color:#fff;
}
header .tarjous i {
    position: relative;
    top: 4.65rem;
    font-size: 2.5rem;
    color: #fff;
    float: right;
}
@media (min-width: 750px) {
    header li img { width: 120px, height: 77.5px; }
    header .tarjous { display: block; }
}

@media (min-width: 1170px) {
    /*header .tarjous { width: 80%; }*/
    header .tarjous p {
        margin: 2em 2em 0 2em;
        width: auto;
    }
}

.jalleenmyyjat header nav { display: none; }

header ul {
    padding: 0;
    list-style-type: none;
    text-align: center;
    font-family: 'Toyota Display Bold';
    text-transform: uppercase;
    background-color: #fff;
    box-shadow: 0 .2em 1em rgba(0, 23, 36, .3);
}
header li {
    display: inline-block;
    padding: .5em 0 .2em;
    vertical-align: middle;
    width: 20%;
}
header li:hover { background-color: #efefef; }

@media (min-width: 750px) {
    header nav {
        position: fixed;
        z-index: 6;
    }
    header ul {
        margin-left: .5em;
        padding: 0 0 1em 0;
    }
    header li {
        display: list-item;
        padding: .5em 0;
        width: 150px;
    }
}


/* Common content wrapper within sections */
.content {
    margin: 0 auto;
    padding: 0 4em;
    position: relative;
    max-width: 1170px;
}

/* Section A ---------------------------------------------------------------- */

.A {
    background: #00131A url('../img/hybrid_ryhmakuva_suuri.jpg') no-repeat center center;
    background-size: cover;
    height: 400px;
    text-align: center;
}

.A .content { top: 80%; }
.A .heading1 {
    position: relative;
    top: 65%;
    margin-bottom: .5em;
    color: #fff;
    font-size: 2.8rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
}

.A p {
    color: #fff;
    font-size: 2rem;
}


@media (min-width: 750px) {
    .A {
        background: #00131A url('../img/hybrid_ryhmakuva_suuri.jpg') no-repeat center center;
        background-size: cover;
        height: 700px;
    }
    .A .content { top: 75%;}
    .A .heading1 {
        top: 62%;
        font-size: 4rem;
    }
    .A p { font-size: 2.4rem; }
}

@media (min-width: 1170px) {
    .A .heading1 { font-size: 6.6rem; }
    .A {
        background: #00131A url('../img/hybrid_ryhmakuva.jpg') no-repeat center center;
        background-size: cover;
        height: 1210px;
    }
    .A .content { top: 60%;}

}


/* Section B ---------------------------------------------------------------- */

/*.B { background-color: #001724; }*/

.B .content {
    /*top: -20%;*/
    text-align: center;
}
.B img {
    /*top: -20%;*/
    text-align: center;
}

/* Section C ---------------------------------------------------------------- */

.C {
    background-color: #00a0f0;
    box-shadow: 200px 0 190px -200px rgba(0, 0, 0, 0.3) inset, -200px 0 190px -200px rgba(0, 0, 0, 0.3) inset;
}

@media (min-width: 750px) {
    .C h2 { margin-top: .5em; }
}

/* Section D ---------------------------------------------------------------- */

.D {
    background-color: #fff;
    /*box-shadow: 200px 0 190px -200px rgba(0, 0, 0, 0.3) inset, -200px 0 190px -200px rgba(0, 0, 0, 0.3) inset;*/
    height: auto;
    width:100%;
    /*float:left;*/
}

.D:after {
    content: '';
    clear: both;
    display: block;
}

.D .content {
    /*top: 4em;*/
    color: #1e2a32;
    text-align: center;
}

.D p { color: #1e2a32; }

.D h2, .D h3 {text-transform:uppercase;}

/* Accordion */
#toggleAccordion {
    display: block;
    margin-top: 2em;
    padding: .5em 0;
    font-size: 1.5rem;
    cursor: pointer;
}
#toggleAccordion .fa {
    margin-left: 1em;
    font-size: 3rem;
    color: #444;
}

.D .vinkit {
    padding: 0;
    display: none;
}
.D .rivi {
    display: block;
    margin-bottom: 0;
    text-align: left;
    overflow: auto;
}
.D .rivi:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}

.D .r {
    margin-bottom: 1em;
}

.D .rivi h3 {
    margin: 1em 2rem;
}
.D .rivi p {
    margin: 0 2rem 2rem;
}

@media (min-width: 750px) {
    .D #toggleAccordion { font-size: 2rem; }
    .D .vinkit { padding: 4em 0;}
    .D .kuva { display: block; }
    .D .rivi { margin-bottom: 2rem; }
    .D .rivi h3 { margin: 0 2rem 1em; }
    .D .rivi div {
        width: 50%;
        float: left;
    }
    .D .rivi div.r {
        float: right;
    }
}
@media (min-width: 1170px) {
    .D .rivi h3 { margin: 1em 2rem 1em; }
}

/* end Accordion */

.D form {
    margin: 0 auto;
    padding: 6em;
    width: 100%;
}

.D form:after {
    content: '';
    clear: both;
    display: block;
}

.D fieldset {
    width: 100%;
    font-size: 2em;
    float: left;
    border: none;
}

.D label {
    font-size: 1.5rem
}

.D input {
    position: relative;
    top: -1.15em;
    padding: .7em;
    text-transform: uppercase;
    background: #f8f8f8;
    border: 1px solid #ccc;
}

.D .dropdown select {
    padding: 15px 25px 15px 10px;
    background: #f8f8f8;
    color: #444;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 2rem;
    display: inline-block;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    cursor: pointer;
    outline: none;
}
.D .dropdown select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #444;
}
.D .dropdown select::-ms-expand {
    display: none;
}
.D .dropdown:before {
    content: '';
    position: absolute;
    pointer-events: none;
    display: block;
}
.D .dropdown { position: relative; }
.D .dropdown:after {
    font-family: FontAwesome;
    content: '\f078';
    font-size: 1.5rem;
    color: #444;
    right: 2.5em;
    position: relative;;
    pointer-events: none;
}

.D button {
    position: relative;
    bottom: 1.2em;
    left: 1em;
    padding: .75em;
    font-size: 2rem;
}

@media (min-width: 750px) {
    .D { height: auto; }
    .D fieldset { width: 49%; }
}

/* Section E ---------------------------------------------------------------- */

.E {
    background: #00131A url('../img/uusi-prius.jpg') no-repeat center center;
    background-size: cover;
    height: 600px;
    text-align: center;
    clear: both;
}

/* Section F ---------------------------------------------------------------- */

.F {
    background-color: #00131A;
}
.F .content {
    text-align: center;
}
