/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

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

body {
    font-size: 1em;
    line-height: 1.4;
}

::-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;
}

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}
/*
968px grid system ~ Core CSS.
4 Columns ~ Margin left: 20px

Based on the simple grid system - http://www.webnicer.com/
by Jacek Ciolek

Created by the Grid System Generator - v1.00
Learn more ~ http://www.gridsystemgenerator.com/
*/

/* clearfix */
.clearfix:after, .row:after {content:"."; display:block; height:0; clear:both; visibility:hidden;}
.clearfix, .row {display:inline-block;} /*Those two .clearfix have to be separate!)*/
.clearfix, .row {display:block;}

/* gridframework */
.row {position:relative; margin-left:-10px; margin-right: -10px;}
.span1 .row {width: 247px;}
.span2 .row {width: 494px;}
.span3 .row {width: 741px;}
.span4 .row {width: 988px;}

.col {padding-left:9px; padding-right: 9px; float:left; position:relative;}
.span1{width: 227px;}
.span2{width: 474px;}
.span3{width: 721px;}
.span4{width: 968px;}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {  }

h2 { font-size: 17px; line-height: 21px; text-transform: uppercase; font-weight: normal; margin: 0; }

h2 a { color: #222; text-decoration: none; } h2 a:hover { text-decoration: underline;} 

p { color: #999; font-size: 11px; line-height: 16px; margin: 0; padding: 5px 0 0 0; }

.wrapper {
	width: 968px;
	margin: 0 auto;
	height: 64px;
}

.nav { background: url(../img/nav.gif) repeat-x; height: 60px; width: 260px; overflow: hidden;  }

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

.nav ul li { display: inline-block; float: left; padding-top: 10px; font-size: 11px; width: 52px; text-align: center; color: #fff;  } 

.nav ul li a { color: #fff; text-decoration: none; display: block; } .nav ul li a:hover { text-decoration: underline; }

#header { position: relative; }

#header .logo { margin: 10px 0px; } #header .logo img { height: 114px; width: auto;}

#header .links {
	position: absolute;
	top: -10px;
	right: 2px;
	width: 110px;
}

#cycle { width: 968px; height: 360px; overflow: hidden; margin-top: 20px; margin-bottom: 20px;}

.content { }

.frontpage .span1 { border-right: 1px dotted #000; padding-top: 10px; padding-bottom: 10px;
}

.frontpage .span1:nth-child(4n) { border-right: 0; }

.frontpage .content .row { margin-bottom: 25px;}

.frontpage .col h2, .frontpage .col { margin-top: 0; padding-top: 0;} 

.frontpage .col h2 { margin-top: -3px; margin-bottom: 3px;}


#footer { margin: 50px 0px; text-align: center;}

#footer p { color: #999; font-size: 11px; line-height: 16px; margin: 0; padding: 5px 0 0 0; }

.kuvat img { max-width:100%;  height:auto; margin-bottom: 15px; }

.workpage .content { margin-top: 150px; }

.categorypage .content { margin-top: 110px; }

.categorypage h2 { margin-bottom: 20px; margin-bottom: 25px; margin-left: 10px; }

.categorypage .col { margin-bottom: 30px;}

.relaa { position: relative; }

.info { position: fixed;  }


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

@media only screen and (min-width: 35em) {

}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {

}

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

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

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

.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; /* Black prints faster: h5bp.com/s */
        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) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

    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;
    }
}
