/*! 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;
}

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


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
* { margin: 0; padding: 0; border: none; }
.wrapper {
    width: 100%;
}
h1 { 
    color: white;
    font-weight: 500;
    margin: 0;
    font-size: 100%;
}
header {
    background-color: #143b5c;
    height: 73px;
    line-height: 73px;
    text-align: center;
}
aside { 
    margin-top: 20px;
}
aside img {
    margin-left: 3%;
    width: 90%;
}
.jj {
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
}
.infobox {
    padding: 0 15px 0 15px;
}
.otsikko {
    background-color: #3c81ad;
    color: #000;
    height: 44px;
    line-height: 44px;
    text-align: center;
    width: 100%;
}
h2 {
    font-size: 100%;
}
article p {
    padding: 0 15px 0 15px;
}


/* ==========================================================================
   Media Queries 35em
   ========================================================================== */

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

.wrapper { 
    max-width: 50em;
    margin: 0 auto 0 auto;
}
header {
    background-image: url('../images/header.png');
    height: 73px;
    line-height: 63px;
    margin: 10px auto 0 auto;
    text-align: left;
    width: 95%;
}
h1 { 
    font-size: 150%;
    padding-left: 13px;
}
.holder {
    margin-left: -4%;
}
aside {
    float: left;
    margin-top: 0;
    margin-right: 0;
    margin-left: 5%;
    width: 35%;
}  
aside img {
    margin-left: 5%;
    width: 100%;
} 
.jj
{
    margin-left: 16%;
} 
.main-content {
    float: right;
    margin-left: 0;
    width: 58%;
} 
.infobox { 
    background-color: #eee;
    background-image: url('../images/infobox.png');
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topright: 5px;
    border-top-right-radius: 5px;
    padding: 5px 10px 5px 13px;
    width: 84%;
}
.infobox p { 
    line-height: 120%;
    margin-top: 0;
}
.otsikko {
    background: url('../images/minihead.png') no-repeat;
    display: block;
    width: 100%;
}
h2 {
    font-size: 90%;
    padding: 7px 0 0 8px;
    text-align: left;
}
article {
    float: right;
    margin-right: 7%;
    margin-top: -12px;
    width: 51%;
}
footer { 
    background: url('../images/footer.png');
    clear: both;
    height: 36px;
    margin-left: auto;
    margin-right: auto;
    width: 95%;
}
}
@media only screen and (min-width: 23em) and (max-width: 29em) {
article {
    clear: both;
    margin: -12px -15px 0 4%;
    padding-right: 5px;
    width: 100%;
}
.otsikko {
    background: url('../images/minihead.png') no-repeat;
    display: block;
    width: 90%;
}
h2 {
    font-size: 90%;
    padding: 7px 0 0 8px;
    text-align: left;
}
article p {
    width: 80%;
    margin-left: 5%;
}

}

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