/* 
    Document   : outeko.css
    Author     : ebrand
*/

html, body {
    height: 100%;
    min-height: 100%;
}

body {
    background: url('http://www.outeko.fi/images/background_colored.jpg') top center no-repeat;
    font-family: verdana, arial, helvetica;
    font-size: 14px;
    color: #333;
    overflow-y: scroll;
}

a {
    color: #c00000;
}

a:hover {
    color: #666;
}

div#wrapper {
    width: 940px;
    margin: 0 auto -320px auto;
    padding: 0px 0px 0px 20px;
    height: auto !important;
    min-height: 100%;
    overflow: hidden;
}

div#menu {
    background: url("http://www.outeko.fi/images/menu_bg.jpg") repeat-x;
    width: 940px;
    height: 45px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    margin-bottom: 25px;
}

div#header {
    background-color: #fff;
    width: 936px;
    border: 2px solid #eee;
    -moz-border-radius: 14px;
    -webkit-border-radius: 14px;
    border-radius: 14px;
}

div#logo {
    background: url("http://www.outeko.fi/images/logo.png") no-repeat scroll 0 0 transparent;
    height: 85px;
    margin: 35px 0 29px 43px;
    width: 640px;
}

div#logo.active:hover {
    opacity: 1;
}

div.menuItem {
    float: left;
    font-size: 19px;
    margin-left: 18px;
    margin-top: 13px;
}

div.menuItem.first {
    margin-left: 47px /*oli 47 */
}

div.menuItem a {
    color: #fff;
    text-shadow: 0px 1px 1px #2d0000;
}

div.menuItem a:hover {
    text-shadow: 0px 0px 9px #fff;
}

div.menuItem.active a, div.menuItem.active a:hover {
    border: none;
    color: #5f0000;
    text-shadow: 0 1px 0 #b9393a;
}

div.headerText {
    font-size: 28px;
    color: #4b4b4b;
    margin-left: 44px;
    margin-top: 34px;
    width: 520px;
    float: left;
}

div.headerSmall {
    font-size: 18px;
    color: #666666;
    margin-left: 44px;
    margin-top: 14px;
    margin-bottom: 24px;
    line-height: 1.3;
    width: 520px;
    text-align: justify;
    float: left;
}

div.headerImage {
    float: right;
    width: 300px;
}

div.product {
    background-color: #eee;
    width: 292px;
    height: 100px;
    border: 2px solid #ddd;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -moz-box-shadow: 0px 0px 10px #ccc;
    -webkit-box-shadow: 0px 0px 10px #ccc;
    box-shadow: 0px 0px 10px #ccc;
    margin-top: 25px;
    float: left;
}

div.product:hover {
    cursor: pointer;
    border: 2px solid #ccc;
    -moz-box-shadow: 0px 2px 8px #fff;
    -webkit-box-shadow: 0px 2px 8px #fff;
    box-shadow: 0px 2px 8px #fff;
}

div.product:active {
    cursor: pointer;
    border: 2px solid #af8d8d;
    -moz-box-shadow: 0px 2px 8px #fff;
    -webkit-box-shadow: 0px 2px 8px #fff;
    box-shadow: 0px 2px 8px #fff;
}

div.product.komponentit {
    background-image: url("http://www.outeko.fi/images/tuotteet_komponentit.jpg");
    margin-left: 25px;
    margin-right: 25px;
}

div.product.skeskukset {
    background-image: url("http://www.outeko.fi/images/tuotteet_skeskukset.jpg");
}

div.product.laadunvalvonta {
    background-image: url("http://www.outeko.fi/images/tuotteet_laadunvalvonta.jpg");
}

div.contentLeft {
    padding: 30px 35px 20px 44px;
    width: 520px;
    float: left;
    line-height: 1.4;
    text-align: justify;
}

div.contentLeftWide {
    padding: 30px 35px 20px 44px;
    width: 800px;
    
    line-height: 1.4;
    text-align: justify;
}

div.contentRight {
    float: left;
    line-height: 1.4;
    padding: 30px 0px 20px 29px;
    width: 310px;
}


div#footer, div#push {
    min-height: 325px;
}

div#push {
    clear: both;
}

div#footer {
    width: 100%;
    position: relative;
    bottom: 0;
    
}

div#footerContentBack {
    width: 100%;
    background: url('http://www.outeko.fi/images/footer_bg.jpg') repeat-x;
}

div#footerContactInfo {
    margin: 0 auto 5px auto;
    padding-left: 44px;
    height: 20px;
    width: 876px;
    padding-top: 25px;
    letter-spacing: 1px;
    color: #555;
}

div#footerContent {
    width: 895px;
    padding-top: 25px;
    padding-left: 65px;
    min-height: 262px;
    margin: 0 auto;
    color: #fff;
    text-shadow: 0px 1px 2px #200000;
    background: url('http://www.outeko.fi/images/footer_top.jpg') 0 0  no-repeat;
}

div#footerContactInfoSalami {
    color: #555555;
    height: 35px;
    letter-spacing: 1px;
    line-height: 3;
    margin: 0 auto 5px;
    padding-left: 137px;
    padding-top: 25px;
    vertical-align: super;
    width: 976px;
}

div.footerBox {
    font-size: 13px;
    line-height: 1.5;
    float: left;
    width: 210px;
    margin-right: 30px;
}

div#toteutus {
    margin: 14px auto 8px auto;
    width: 250px;
    height: 25px;
    font-size: 14px;
    color: #680909;
    text-shadow: none;
}

div#toteutus img, div#toteutus a {
    vertical-align: text-bottom;
}

div.full {
    padding: 30px 55px 30px 75px;
    width: 770px;
    background: url('http://www.outeko.fi/images/content_bg.jpg') left bottom repeat-x;
}

span.bold {
    font-weight: bold;
}

h2 {
    color: #a00000;
    font-size: 22px;
    margin-bottom: 20px;
}

fieldset.contact {
    padding: 5px 20px 0px 0px;
    margin-top: 20px;
}

label {
     font-size: 12px;
     display: block;
     width: 100px;
     margin-bottom: 8px;
     margin-right: 10px;
}

.text-input, .text-area, .select {
    padding-top: 6px;
    padding-left: 6px;
    padding-right: 6px;
    padding-bottom: 6px;
    font-family: verdana, arial;
    font-size: 12px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border: 1px solid #aaaaaa;
    margin-bottom: 8px;
}

.text-input {
    width: 415px;
    height: 15px;
}

.text-area {
    width: 415px;
    height: 150px;
}

.text-input:hover, .text-area:hover {
    border: 1px solid #ff301b;
}

.text-input:focus, .text-area:focus {
    border: 1px solid #b91100;
}

div.success {
    background-color: #e6efc2;
    color: #264409;
    width: 407px;
    padding: 10px;
    border: 1px solid #c6d880;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 12px;
}

div.error {
    background-color: #fbe3e4;
    color: #8a1f11;
    width: 407px;
    padding: 10px;
    border: 1px solid #fbc2c4;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 6px;
}

.error_cross {
    float: left;
    margin-right: 8px;
}

.success_tick {
    float: left;
    margin-right: 8px
}

.button {
    padding: 5px 10px 6px;
    cursor: pointer;
}

h3 {
    font-weight: bold;
    font-size: 16px;
    margin-top: 3px;
    margin-bottom: 8px;
}

span.date {
    display: block;
    margin-top: 24px;
}

img.screenshot {
    border: 1px solid #ddd;
    -moz-box-shadow: 0px 0px 10px #ddd;
    box-shadow: 0px 0px 10px #aaa;
}

div#kartta {
    border: 1px solid #ccc;
    margin-bottom: 30px;
    width: 425px;
    height: 186px;
    -moz-box-shadow: 0px 0px 10px #ccc;
    -webkit-box-shadow: 0px 0px 10px #ccc;
    box-shadow: 0px 0px 10px #ccc;
    color: #fff;
    text-shadow: none;
}

div.linkki {
    width: 130px;
    height: 63px;
    background: url("http://www.outeko.fi/images/linkki_bg.jpg") repeat-x;
    border: 1px solid #cccccc;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    text-align: center;
    float: left;
    margin-right: 16px;
    margin-bottom: 16px;
}

div.linkki:hover {
    border: 2px solid #aaa;
    width: 128px;
    margin-right: 16px;
    margin-bottom: 14px;
}

.justify {
    text-align: justify;
}

.small {
    font-size: 12px;
    color: #666;
}

div.success {
    background-color: #e6efc2; 
    color: #264409; 
    width: 407px; 
    padding: 10px; 
    border: 1px solid #c6d880; 
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 12px;
}

.success_tick {
    float: left;
    margin-right: 8px
}

ul {
    padding:20px 0 20px 0;
    margin:0 auto;
}


ul#galleria li {
    list-style:none;
    float:left;
    position:relative;
    background:url(loading.png) no-repeat;
    background-position:100px 100px;
    }

ul#galleria li a img {
    border:0;
    padding:10px 10px 9px 10px;
    background:#ffffff;
    /*margin-bottom:20px;
    margin-left:24px;*/
    }

ul#galleria li span {
    background:url(magnify.png);
    width:27px;
    height:26px;
    position:absolute;
    /*left:250px;
    top:-3px; */
    }
ul#galleria li img {
    box-shadow: 0 0 7px #807a72;
    -moz-box-shadow: 0 0 7px #807a72;
    -webkit-box-shadow: 0 0 7px #807a72;
    border-radius:4px;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;
}

ul#galleria li {
    height:250px; width:250px; margin:8px;
}
ul#galleria li img {
    margin:15px 0 0 0;
}

ul#galleria li img:hover {
    box-shadow: 0 0 10px #333;
    -moz-box-shadow: 0 0 10px #333;
    -webkit-box-shadow: 0 0 10px #333;
}

ul#galleria li.tall img{
    margin:0 0 0 15px;
}
ul#galleria li span {
    left:222px; top:8px;
}
ul#galleria li.tall span {
    left:210px; top:-6px;
}

a h3 {
    color: #fff;
}

a h3:hover {
    text-shadow: 1px 2px 3px #000;
    color: #eee;
}

#main-nav-trigger { 
    display: none;
    position: absolute;
    top: 33px;
    height: 20px;
    width: 30px;
    right: 22px
}

#main-nav-trigger {
    cursor: pointer;
}

#main-nav-trigger span, #main-nav-trigger span:before, #main-nav-trigger span:after {
    cursor: pointer;
    border-radius: 0;
    height: 3px;
    width: 24px;
    background: #666;
    position: absolute;
    display: block;
    content: '';
}

#main-nav-trigger span {
    top: 8px;
}

#main-nav-trigger span:before {
    top: -8px; 
}

#main-nav-trigger span:after {
    bottom: -8px;
}

#main-nav-trigger span, #main-nav-trigger span:before, #main-nav-trigger span:after {
    -webkit-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}

#main-nav-trigger.active span {
    background-color: transparent;
}

#main-nav-trigger.active span:before, #main-nav-trigger.active span:after {
    top: 0;
}

#main-nav-trigger.active span:before {
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
}

#main-nav-trigger.active span:after {
    -webkit-transform: translateY(-10px) rotate(-45deg);
        -ms-transform: translateY(-10px) rotate(-45deg);
            transform: translateY(-10px) rotate(-45deg);
    top: 10px;
}
   
nav#main-nav-mobile {
    position: absolute;
    bottom: 0;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    opacity: 0;
    background-color: #f4f4f4;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
    z-index: 50;
}


nav#main-nav-mobile a, nav#main-nav-mobile span.nav-item {
    display: block;
    color: #666;
    padding: 0 10px;
    font-size: 20px !important;
    text-decoration: none;
    text-align: center;
    text-shadow: none;
}

.show-sm {
    display: none;
}

@media screen and (max-width: 980px) {

    div#wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    div#logo {
        background-position: 0 50%;
        margin: 20px 5%;
        width: 90%;
        background-size: contain;
    }

    div#header {
        background-color: transparent; 
        width: 100%;
        height: auto;
        border: none;
        -moz-border-radius: 0;
        -webkit-border-radius: 0;
        border-radius: 0;
        margin-bottom: 20px;
    }

    div.headerImage {
        display: none;
    }

    div.headerText {
        font-size: 22px;
        width: 90%;
        margin: 0 5% 10px;
    }

    div.headerSmall {
        font-size: 14px;
        width: 90%;
        text-align: left; 
        margin: 0 5%;
    }

    div.contentLeft {
        padding: 0;
        width: 90%;
        text-align: left;
        margin: 0 5%;
    }

    div.contentLeftWide {
        padding: 0;
        width: 90%;
        line-height: 1.4;
        text-align: justify;
        padding: 0 5%;
    }

    div.contentRight {
        padding: 0;
        width: 90%;
        margin: 10px 5%;
    }

    div#menu {
        width: 100%;
        height: 45px;
        -moz-border-radius: 0px;
        -webkit-border-radius: 0px;
        border-radius: 0;
        margin-bottom: 25px;
    }

    div.menuItem {
        float: left;
        font-size: 13px;
        margin-left: 15px;
        margin-top: 15px;
    }

    div.menuItem.first {
        margin-left: 10px;
    }

    div#push {
        display: none;
    }

    div#footer {
        min-height: 0;
    }

    div#footerContactInfo {
        width: 96%;
        margin: 0;
        padding: 10px 2%;
        letter-spacing: 0;
        line-height: 1.5;
        height: auto;
        background-color: #CE0404;
        color: #fff;
        font-size: 12px;
    }

    div#footerContactInfo .hide-sm {
        display: none;
    }

    div#footerContentBack {
        display: none;
    }
}

@media screen and (max-width: 640px) {

    h2 {
        font-size: 20px;
    }

    #main-nav-trigger { 
        display: inline-block;
    }

    div#wrapper {
        width: 100%;
        margin: 0;
        padding: 0 0 60px 0;
        box-sizing: border-box;
    }

    div#logo {
        background-position: 0 50%;
        margin: 0 0 0 5%;
        width: 95%;
        background-size: contain;
        border-right: 80px solid transparent;
        box-sizing: border-box;
    }

    div#header {
        background-color: transparent; 
        width: 100%;
        height: auto;
        border: none;
        -moz-border-radius: 0;
        -webkit-border-radius: 0;
        border-radius: 0;
    }

    img#fi, img#se, img#en {
        display: none;
    }

    div.headerImage {
        display: none;
    }

    div.headerImage.show-sm {
        display: block;
    }

    div.headerText {
        font-size: 20px;
        width: 90%;
        margin: 0 5% 10px;
    }

    div.headerSmall {
        font-size: 14px;
        width: 90%;
        text-align: left; 
        margin: 0 5%;
    }

    div.contentLeft {
        padding: 0;
        width: 90%;
        text-align: left;
        margin: 0 5%;
    }

    div.contentRight {
        padding: 0;
        width: 90%;
        margin: 10px 5%;
    }

    div#menu {
        display: none;
    }

    div.menuItem {
        float: none;
        font-size: 15px;
        margin: 15px 0;
    }

    div.menuItem.first {
        margin-left: 0;
    }

    div.linkki {
        width: 100%;
        border: 2px solid #cccccc;;
    }

    div.linkki:hover {
        width: 100%;
        margin-bottom: 16px;
    }

    div#footer {
        height: 60px;
    }

    div#footerContactInfo {
        margin-top: -60px;
        height: 40px;
    }

    div.error, div.success {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        margin-bottom: 10px;
    }

    fieldset.contact {
        padding: 5px 0;
    }

    .hide-sm {
        display: none;
    }

    .show-sm {
        display: block;
    }

    .text-input, .text-area {
        width: 95%;
    }

    .text-area {
        height: 75px;
    }

    #menestyja {
        display: none;
    }
     .hide_on_mobile {
        display: none;
    }
}