/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
    font-family: 'Asap', arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Joni Aaltonen's custom styles
   ========================================================================== */

.hasError input{
    background-color: #ffeff0;
    color: #ff3d29;
    border: 1px solid #ff3d29;
}
.hasError label{
    color: #ff3d29;
}

small{
    font-size: 85%;
}


.header-container{
    height: 83px;
    background-color: #00B7E1;
    margin: 0 auto;
    text-align: center;

    -webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
    -ms-transition: height 0.3s;
    -o-transition: height 0.3s;
    transition: height 0.3s;
}

.header-container .wrapper{    
    margin: 0 auto;
    text-align: left;
}

.logo-container{ float: left; width: 100%; clear: right; 
}

.logo-container, .logo-container h1, .logo-container a, .logo-container img, nav, nav a, nav a span, .gray-area, .gray-area-inner, .namebox{
        -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.form-group{ padding-bottom: 0em; }
        
#logo{
    background-image: url(../img/layout/navi-logobg-small.png);
    background-repeat: none;
    height: 83px;
    width: 96px;
    margin: 0;
    margin-left: 1em;
}

#logo a{    
    display: block;
    /*width: 178px;*/
    height: 83px;
    position: relative;    
}

#logo a img{
    position: absolute;
    top: 12px;
    left: 12px;
    width: 72px;
    height: 59px;
}

nav{
    float: left;
    height: 332px;
    /*margin-left: 30px;*/
    width: 100%;
    /*margin-right: 35px;*/
    background: #00B7E1;
}

article a:link, article a:visited{
    color: #00B7E1;
}

article a:hover, article a:active{
    color: #00c2ec;
}

.button-tilaa span{
    color: #fff;
}

nav ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li{ 
    display: block;
    float: left;
    clear: right;
    width: 100%;
}

nav a:link{ display: block; }
nav a span.nav-icon{
    background-image: url(../img/layout/navi-bar-h.png);
    background-repeat: no-repeat;
    height: 38px;
    width: 40px;
    float: left;
    background-position: 20px 0px;
    position: relative;
    top: 22px;
}

nav a span.link{
    font-family: 'Asap', Arial, sans-serif;
    position: relative;
    font-size: 18px;
    top: 20px;
    letter-spacing: 1px;
    display: block;
    line-height: 1.2em;
}

nav a:link{
    color: #fff;
    text-decoration: none;
    display: block;
    height: 83px;
    position: relative;
}

nav a:visited{
    color: #fff;
}

nav a:hover{
    background-color: #52CEF2;
}

nav a:active, nav a.active{
    background-color: #52CEF2;   
}

.menu1{ width: 100%; }
.menu2{ width: 100%; }
.menu3{ width: 100%; }
.menu4{ width: 100%; }

.gray-area, .gray-area-inner{ 
    float: left;
    width: 100%;
    /*background-image: url(../img/layout/textbg-frontpage.png);*/
    /*opacity: 0.7;*/
    background-color: rgba(0, 0, 0, 0.6);
    /*margin-left: 45px;
    margin-top: 45px;*/
    margin-top: 1em;
}

section ul, section ol{
    margin-left: 0;
    padding-left: 1em;
}

section ul li, section ol li{
    margin-bottom:.5em;
}

section ol{ list-style-type: upper-alpha; }

.gray-area-inner section > strong{ color: #00B7E1; font-weight: normal; font-size: 1.1em;}
.gray-area-inner section li strong{ color: #00B7E1; font-weight: normal; }
.gray-area-inner section{ margin-bottom: 2em; }
.gray-area-inner{ margin-bottom: 1em; }

.gray-area h1, .gray-area-inner h1{ margin-top: 0; }
.gray-area article, .gray-area-inner article{ margin: 1em 1em;}
article, header, section{ color: #fff; }

aside{
    float: right;
    width: 100%;
}

section > h2{
    color: #00B7E1;
    font-weight: normal;
    font-size: 1.25em;
    margin-bottom: .1em;
}

section > p{ margin-top: 0; margin-bottom: 2em; }

section > p b{ color: #00B7E1; font-weight: normal; }

.namebox{
    background-color: #35C065;
    padding: 1em;
    color: #fff;
    margin-top: 1em;
}

.namebox h2{
    font-weight: normal;
    font-size: 1.5em;
    margin: 0 0 .3em 0;
}

.namebox span{
    font-size: .9em;
}

.namebox-ari{ margin-bottom: 1em; }


.button-tilaa{
    width: 189px;
    height: 46px;
    background-image: url(../img/layout/button-tilaa.png);
    background-repeat: no-repeat;
    display: block;
    text-align: center;
    color: #ffffff;
    background-color: #35C065;
    -moz-border-radius: .25em;
    -webkit-border-radius: .25em;
    -o-border-radius: .25em;
    border-radius: .25em;
    text-decoration: none;
    position: relative;
}

.button-tilaa:hover{
    background-image: url(../img/layout/button-tilaa-alt.png);
}

.button-tilaa span{
    font-size: 1.5em;
    position: relative;
    top: .25em;
}

article header h1{
    font-size: 2.75em;
    font-weight: normal;
    margin: 0;
}

header p{
    color: #00B7E1;
    font-size: 1.15em;
    margin-top: .5em;
    letter-spacing: .001em;
}

section p{

}

footer h2{
    font-weight: normal;
    font-size: 1.75em;
    margin-bottom: -.25em;
}
footer strong{
    font-weight: bold;
    font-size: 1.5em;
    letter-spacing: .025em;
}

footer a{
    margin-top: 1em;
    margin-bottom: 2em;
}




/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {
    .main-container .main{ margin: 1em; }
    .namebox-ari{width: 75%; }
    .namebox-maria{width: 50%; }
}

@media only screen and (min-width: 768px) {

    .logo-container{ width: 20%; }    
    .form-group{ padding-bottom: 2em; }
    nav{
        height: 83px;        
        width: 80%;
    }

    nav a span.link{
        position: relative;
        font-size: 13px;
        top: 24px;
        line-height: 1.4em;
    }
    

    .menu1{ width: 160px; }
    .menu2{ width: 200px; }
    .menu3{ width: 120px; }
    .menu4{ width: 125px; }

    .gray-area, .gray-area-inner{ 
        /*width: 458px;        
        */
        width: 50%;
        margin-left: 1em;
        margin-top: 1em;
        padding: .5em 1em;
    }

    .gray-area-inner{ width: 55%; }

    aside{
       width: 45%;
       position: fixed;
       bottom: 1em;
       right: 1em;
    }

    .gray-area article{ font-size: 1em;}
    .gray-area-inner article{ font-size: 1em;}
    .namebox{ font-size: .9em;  
        float: right;
        margin: 0;
    }
    .namebox-maria{
        margin-bottom: 1em;
    }
    .button-tilaa span{
       font-size: 1.5em;
    }

    .button-tilaa:hover{
        color: #fff;
        text-decoration: none;
    }

    .gray-area-inner{ margin-bottom: 2em; }

    
}

}

@media only screen and (min-width: 850px) {
    .menu1{ width: 175px; }
    .menu2{ width: 225px; }
    .menu3{ width: 125px; }
    .menu4{ width: 140px; }
    nav a span.link{
        font-size: 14px;
    }
    nav a span.nav-icon{
        height: 28px;
        top: 32px;
    }
    .logo-container{ width: 17%; }
    
    .button-tilaa span{
       font-size: 1.75em; 
    }


}

@media only screen and (min-width: 990px) {
    .menu1{ width: 200px; }
    .menu2{ width: 250px; }
    .menu3{ width: 140px; }
    .menu4{ width: 150px; }


    .header-container{
        height: 153px;    
    }
    
    .logo-container{ width: 22%; }
    
            
    #logo{
        background-image: url(../img/layout/navi-logobg.png);
        background-repeat: none;
        height: 153px;
        width: 178px;
        margin: 0;
        margin-left: 1em;
    }
    
    #logo a{    
        width: 178px;
        height: 153px;
    }
    
    #logo a img{
        position: absolute;
        top: 22px;
        left: 22px;
        width: 132px;
        height: 104px;
    }
    
    nav{
        height: 153px;
        width: 78%;
    }
    
    nav a span.nav-icon{    
        height: 38px;    
        top: 56px;
    }
    
    nav a span.link{
        font-size: 18px;
        top: 55px;
        letter-spacing: 1px;
        line-height: 1.2em;
    }
    
    nav a:link{
        height: 153px;
    }
    
    
    .gray-area{ width: 40%; }
    .gray-area-inner{ width: 55%; margin-bottom: 2em; }
    .gray-area article, .gray-area-inner article{ margin: 1em 2em; font-size: 1em; }
    
    .namebox{
        padding: .8em 1em;
        font-size: 1em;
    }
    
    .namebox h2{
        font-weight: normal;
        font-size: 1.25em;
        margin: 0;
    }
    
    .namebox span{
        font-size: .9em;
    }
    .namebox{ margin: 0 1em 1em 0;}
    .namebox-ari{ width: 70%; margin-top: 1em; }
    .namebox-maria{ width: 35%;}

    .button-tilaa span{ font-size: 1.5em; }
}

@media only screen and (min-width: 1110px) {
    .menu1{ width: 225px; }
    .menu2{ width: 280px; }
    .menu3{ width: 170px; }
    .menu4{ width: 170px; }
    .gray-area{ width: 35%; }
    .gray-area-inner{ width: 50%; margin-bottom: 2em; }    
.gray-area-inner, .gray-area { font-size: 1.1em;}
    .button-tilaa span{ font-size: 1.5em; }

}

@media only screen and (min-width: 1300px) {
    .menu1{ width: 280px; }
    .menu2{ width: 320px; }
    .menu3{ width: 240px; }
    .menu4{ width: 160px; }
    .gray-area{ width: 35%; }
    .gray-area-inner{ width: 45%; }
    .gray-area-inner, .gray-area { font-size: 1.1em;}
    .button-tilaa span{ font-size: 1.5em; }
}



@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}