html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
    /*background-image: url(../img/bg-horizontal-trans2.jpg);*/
    /*background-position: 1044px 0;*/
    background-color: #fff;
    background-repeat: repeat-x;
    color: #033953;/*4a99aa;*/
    font-family: 'Ubuntu', Verdana, sans-serif;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}


#container{
    background-image: url(../img/bgani9.jpg);
    background-repeat: no-repeat;
    min-height: 1050px;

}
#container-mina{
    background-image: url(../img/bgani9.jpg);
    background-repeat: no-repeat;
    min-height: 1280px;

}
#topban{
    background-image: url(../img/topban_white.png);
    background-repeat: repeat-x;
    height: 122px;
}

#anitext{
    position: absolute;
    left: 45px;
    top: 28px;
    z-index: 5;
}

#aninum{
    position: absolute;
    right: 18px;
    top: 12px;
    z-index: 10;    
    width: 100px; height: 100px;
}

#content{
    /*left: 576px;
    top: 193px;*/
    /*width: 440px;*/
    position: absolute;
    top: 200px;
    float: left;
    width: 100%;
    line-height: 1.1em;
    
}

#content-left{ float: left; width: 612px; margin-left: 550px;}
#content-right{ float: left; width: 60px;  margin-left: 60px;}

#text{ 
    margin: 0 60px 0 550px;     
}

#content > #text > #text2{
    background-color: rgba(255, 255, 255, .75);
    border-radius: 5px;
    padding: 1em;
    font-size: 88%;
}

#text2{ min-width: 400px; max-width: 640px; 
    font-weight: normal;
    line-height: 1.5em;
    letter-spacing: 0.02em;
    font-size: 0.85em;
}

h2{ 
    position: relative;
    /*left: -80px;*/

    font-size: 2.5em;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 1em;
}

h3{
    font-size: 1.3em;
    font-weight: bold;
    font-style: italic;

    margin-bottom: 1em;
}


#navi{
    z-index: 999;
    /*position: relative;
    left: 500px;*/
    position: absolute;
    right: 160px;
    top: 88px;
}

#navi ul, #navi li{ list-style-type: none; display: inline; }
#navi li{ float: left; margin-right: 10px; }
#navi a{
    font-family: Arial, sans-serif;
    color: #fff; text-decoration: none;
}
#navi li a span{ display: block; padding: 10px 20px 8px 20px; background-color: #fff;
-webkit-border-top-left-radius: 5px;
color: #033953;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
font-weight: bold;
letter-spacing: 0.03em;
}

#navi li a:hover span, #navi li a:active span{
    background-color: #6dcff6;
}





#text2 p{ margin-bottom: 1.5em; }

#footer{
    position: fixed;
    
    bottom: 0;
    left: 0;
    clear: both;
    width: 100%;
    height: 140px;
    background-image: url(../img/footer2.png);
    background-repeat: repeat-x;    
}


#facebook{
    position: fixed;
    bottom: 15px;
    left: 40px;
}

#kokoomus{
    position: fixed;
    bottom: 11px;
    right: 40px;
}

#etusivu{
    position: relative;
    left: -100px;
    top: 10px;
}

b, strong{ font-weight: bold; }

/*#facebook{
    position: fixed;
    right: 40px;
    bottom: 100px;
}*/

#fblike{

}

#text2 ul{ margin-left: 14px; margin-bottom: 1em; }
#text2 li{ list-style-type: disc; }

#text2 hr{ border: 1px dashed #6dcff6; margin: 1em 0 1em 0; width: 20em;}
.front h3{ margin-bottom: .5em; }
.front em{ font-style: italic; }
#facebook, #facebook *{ cursor: pointer !important; }
a, a *{ cursor: pointer !important; }

#text a{ color: #000; }

/** quick hacks, not proud of this, but on a clock */


@media screen and (max-width: 1080px){
    #navi{
        right: 125px;        
    }



}

@media screen and (max-width: 980px){
    #container, #container-mina{
        background-image: url(../img/bgani8_tiny.jpg);    
    }   

    #content-left{ float: left; width: 395px; margin-left: 395px;}
    #content-right{ float: left; width: 60px;  margin-left: 60px;}
    #text{ margin: 0 60px 0 395px; }
    #text2{ min-width: 400px; max-width: 640px; }
}

@media screen and (max-width: 1022px){
    #anitext{
        position: absolute;
        left: 117px;
        top: 24px;
        z-index: 5;
        width: auto;
        max-height: 50px;
    }
}

@media screen and (max-width: 880px){

    #facebook{
        display: none;
    }

}

@media screen and (max-width: 768px){
    #content{ top: 124px;  }
    #content-left{ width: 0; margin: 0; }
    #content-right{ margin: 10px; }
    #container, #container-mina{
        background-image: url(../img/bgani8_bricks_only.jpg);    
    }   

        #anitext{        
        left: 20px;        
    }

    #navi{ left: 20px;  }

    #aninum{
        
    }


    #content > #text{
        padding: 1em;
        margin: 10px;
        background-color: rgba(255, 255, 255, .75);
        border-radius: 5px;
    }

    

}

@media screen and (max-width: 590px){
    #anitext{        
        left: 20px;        
    }

    #navi{ left: 20px;  }
}