/*for screens wider than 1000px*/
/*
#box{
    max-width: 1020px;
    margin: auto;
    position:relative;
}*/

#header {
    width: 100%;
    /*background-color: #ffffff;*/
}

/*#content {
    background-color: #ffffff;
    max-width: 564px;
    min-width: 564px;
    margin: 0 20px 20px 0;
    float: left;
    padding: 1em 1em 1em 2.5em;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}*/

.additional_info {
    padding-left: 0.7em;
    font-size: 0.85em;
    color: #666666;
}

#content {
    padding: 1em 2.5em 1em 2.5em;
}

#language-home {
    float: left;
    /*margin-right: 20.5%;*/
    /*margin-top: 16px;
    margin-left: 8em;*/
    padding: 0.2em;
}

#resizer {
    padding: 0.2em 0;
}

#language-home a {
    padding: 0.4em;
}

#site-navigation {
    float: right;
    margin-right: 0.5%;
    padding: 0.2em 10px 0.2em 0.2em;
    /*margin-top: 16px;*/
}
#site-navigation a {
    padding: 0.2em;
}
#site-navigation li , #language-home li{
    display: inline;
    padding: 0.1em;
    list-style: none;
}

/*tilavoitetaan sivuvalikkoa Muualla palvelussa -linkkien osalta*/
 #left-navigation .vali_ots{
    padding-left: 20px;
}

#left-navigation .vali_ots {
    margin-top: 10px;
    padding: 0.5em 0 0.3em 0.8em;
    background-color: #0073b0;
    color: #ffffff;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}


.above-main-navigation, .under-main-navigation {
    /*max-width: 1050px;*/
    vertical-align: middle;
}

.above-main-navigation{
    min-height: 76px;
    padding-bottom: 20px;
}


.under-main-navigation {
    clear: both;
    margin-bottom: 1em;
    margin-top: 1em;
    
}
#main-navigation {
    float: left;
    font-size: 1em;
    /*font-weight: bold;*/
    height: 26px;
    /*margin-top: 8px;*/
    min-width: 800px;
    white-space: nowrap;
    width: 100%;
    background-color: #0073B0;
}
#main-navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    min-width: 946px;
}
#main-navigation ul li {
    float: left;
    line-height: 26px;
}

#main-navigation ul li a:hover {
   /* background-color: #336699;
    color: #FFFFFF;*/
}

#logo {
    /*padding: 16px 0.9em 20px 1.2em;*/
    float: left;
    padding: 0 0 0 2px;
}

#search {
    /*float: right;*/
    /*margin: 45px -305px 0 0;*/
    padding: 0 20px 0;
    text-align: right;
    white-space: nowrap;
}

#site-navigation ul {
    float: right;
    margin-right: 5px;
}

#breadcrumbs {
    display: inline-block;
    font-size: 0.9em;
    font-style: italic;
    padding: 0.4em 0;
    
}

#breadcrumbs p {
    line-height: 26px;
    margin: 3px 0 10px 1em;
}

#language-versions {
    display: inline-block;
    float: right;
    padding: 0.4em 0;
    margin-right: 0.5em;
    text-align: right;
}

#language-versions p {
    display: inline-block;
    padding: 0 5px;
}

#language-versions ul li {
    line-height: 15px;
    display: inline-block;
    /*margin: 0 4px;*/
    float: left;
    /*width: 50%;*/
}

#language-versions a {
    display: inline-block;
    padding: 0 5px;
}

#content-front {
    padding-top: 5px;
}

.link-forward-right, .link-forward-left {
    margin-right: 22px;
    margin-left: 1.6em;
    margin-top: 0.5em;
    margin-bottom: 10px;
    line-height: 15px;
    vertical-align: bottom;
}
.link-forward-right {
    float: right;
}

.link-forward-left {
    float: left;
}

.ui-tabs-nav, .resp-tabs-list {
    margin-left: 10px;
}

/*
.ui-state-default:before, .resp-tab-item:before {
    border-left: 8px solid #cccccc;
    border-top: 11px solid #ececec;
    content: "";
    position: relative;
    right: -101%;
    top: 7px;
    width: 0;
}

.ui-tabs-active:before, .resp-tab-active:before {
    border-left: 8px solid #ffffff;
    border-top: 11px solid #ececec;
    content: "";
    position: relative;
    right: -101%;
    top: 7px;
    width: 0;
}*/

.ui-state-default a, .resp-tab-item a {
    position: relative;
    top: -17px;
    left: -8px;
}

li.ui-tabs-active, li.resp-tab-active {
    background-color: #ffffff;
    max-width: 250px;
    min-width: 170px;
    border-bottom: 1px solid #ececec;
    height: 1.5em;
}

.resp-accordion{
    display:none;
}

#key-numbers {
    /*float: left;
    height: 225px;
    margin: 0 10px;*/
    /*position: relative;
    top: -25px;*/
    /*width: 520px;*/
}

#key-numbers li {
    /*background-color: rgba(248, 148, 30, 0.8);*/
    float: left;
    /*margin: 5px 8px;*/
    margin: 5px 11px 5px 0;
    padding: 5px;
    width: 22%;
}

/*#key-numbers li:nth-child(1), #key-numbers li:nth-child(5) {
    margin-left: 0;
}

#key-numbers li:nth-child(4), #key-numbers li:nth-child(8) {
    margin-right: 0;
}*/


.key {
    color: #333333;
    display: block;
    height: 20px;
    line-height: 11pt;
    margin-top: 3px;
    /*text-align: justify;*/
    width: 100%;
}

.key-value {
    color: #ffffff;
    display: block;
    float: right;
    font-size: 14pt;
    font-weight: bold;
    height: 20pt;
    margin-top: 0;
    padding-top: 0.5em;
    text-align: right;
    width: 100%;
}

#key-numbers .key-time {
    color: #333333;
    display: block;
    float: left;
    font-size: 11px;
    height: 20px;
    margin-bottom: 1px;
    /*margin-top: 25%;*/
    text-align: justify;
    width: 34%;
    padding-top: 5px;
}


#new-stats, #pub-calender, #search-stats, #front-news{
    /*margin: 0 10px 10px 10px;*/
    float: left;
    /*padding: 0 0 1em;*/
    
}

#new-stats, #pub-calender, #search-stats {
    /*width: 565px;*/
}

#find-stats , #data-collections {
    display: block;
}

#find-stats img, #data-collections img{
    width: 100%;
}

#data-collections > p , #find-stats  > p{
    line-height: 20px;
    margin: 1em 1.5em 1.8em;
}

#search-stats #most-wanted{
    /*width: 30%;*/
}

.stat-date, .tilastopvm {
    /*float: right;*/
    color: #bcbcbc;
}

#new-stats .stat-date, #new-stats .tilastopvm {
    float: left;
    font-size: 18px;
    font-weight: bold;
    margin-right: 20px;
    position: relative;
    bottom: 2px;
    vertical-align: middle;
    text-align: right;
    width: 50px;
    height: 25px;
}

/*englanninkieliset päivämäärät vaativat enemmän tilaa*/
#new-stats.en .stat-date, #new-stats .tilastopvm {
    width: 61px;
}

#new-stats, #front-news {
    min-height: 425px;
}

/*#new-stats, #find-stats, #pub-calender, #front-news, #data-collections, #key-numbers, #new-in-data-collections {
    min-height: 200px;
    max-height: 500px;
}*/

#data-collections .fi img,  #data-collections .sv img{
    padding-top: 21px;
}

#data-collections .en img {
    padding-top: 4px;
}

#new-stats ul, #search-stats ul, #data-collections ul{
    margin-bottom: 10px;
    padding: 0 20px;
    min-height: 300px;
}

#key-numbers ul {
    display: block;
    margin-bottom: 5px;
    padding: 0 0 0 20px;
}

#new-stats ul li {
    /*height: 18px;*/
    /*line-height: 15px;*/
    height: 30px;
    margin: 5px 0;
    vertical-align: middle;
    overflow: hidden;
    /*width: 350px;*/
}

#front-news {
   /* width: 410px;*/
}

#front-news p {
    padding: 0em;
}

#front-news h2 {
    padding: 0.5em 0.7em;
    /*width: 360px;*/
}

.item {
    height: 400px;
}

.carousel-inner {
    height: 365px;
}

.carousel-inner .item img{
    height: 190px;
	margin-left: auto;
	margin-right: auto;
}

.carousel-inner .item .container {
    margin-top: 200px;
}

#front-news span.stat-date{
    display: inline-block;
    float: left;
    padding: 1em 0;
}

#front-news > p {
    clear: both;
    display: block;
}

.front-news-img {
    /*width: 445px;*/
    height: 175px;
    margin: 0px;
}

#service-buttons {
    /*margin-left: -15px;*/
}

/*#service-buttons.internal li {
    background-color: #0073b0;
}*/

/*#service-buttons-external.external li {
    background-color: #00b2a9;
}*/

.external {
    margin-left: -15px;
}

#service-buttons li, #service-buttons-external li{
    /*background-color: #0073b0;*/
    float: left;
    height: 45px;
    margin: 0 10px 10px 0;
    vertical-align: middle;
    width: 185px;
}

#service-buttons li a, #service-buttons-external li a {
    background-position: 150px 8px;
    background-repeat: no-repeat;
    border: medium none;
    color: #ffffff;
    float: left;
    height: 45px;
    line-height: 15px;
    padding: 10px 20px;
    text-align: left;
    vertical-align: middle;
    width: 185px;
    position: relative;
}

/*force the text of the button not to overlap with the background image*/
#service-buttons li .button-text, #service-buttons-external li .button-text{
    display: block;
    max-width: 85%;
}

#service-buttons li a .button-hover, #service-buttons-external li a .button-hover{
    height:0px;
    overflow: hidden;
    max-height: 0px;
    -webkit-transition: max-height 0.8s;
    -moz-transition: max-height 0.5s;
    transition: max-height 0.8s;
    visibility: hidden;
}

#service-buttons li a:hover .button-hover, #service-buttons-external li a:hover .button-hover{
    display: block;
    height: 45px;
    left: 0;
    max-height: 55px;
    padding: 2px 20px;
    position: absolute;
    top: 0;
    visibility: visible;
    width: 185px;
    text-align: center;
}

#service-buttons.internal li a:hover .button-hover {
    background-color: #b94499;
}

#service-buttons-external.external li a:hover .button-hover {
    background-color: #33c1ba;
}

/*#service-buttons button img {
    height: 30px;
    width: 30px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px; /* future proofing */
    /*-khtml-border-radius: 3px; /* for old Konqueror browsers */
/*}*/

#left-navigation {

    display: block;
    float: left;
   /*width: 210px;*/
    /*margin: 0 0 20px 0;
    background-color: #e9f5f9;*/
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-top: 1px solid #ffffff;
}


#left-navigation p {

    border-style: solid none;
    border-width: 0;
    color: #000000;
    /*font-weight: bold;*/
    padding: 0.3em 1em 0.2em 1.7em;
}
#left-navigation p.title {

    /*border-style: none none solid;
    border-width: 1px 0;*/

    font-weight: bold;
    padding: 0.3em 1em 0.2em 1.6em;
}

#left-navigation li {

    /*border-bottom: 1px solid #7b9ba3;*/
    /*padding: 0.15em 0.2em 0.15em 1.7em;*/
    word-wrap: break-word;
    /*padding: 5px 0;*/
}

/*to make old and new style menus both work*/

#left-navigation p + ul li{
    padding: 0 0.2em 0 1.7em;
}

#left-navigation p.name{
    padding: 0.5em 0.2em 0.5em 1.7em;
}

#left-navigation p.aihealue_name{
    padding: 0.5em 0.2em 0.5em 1.7em;
}

#left-navigation hr + ul li{
    padding: 0.5em 0.2em 0.5em 1.7em;
}

#left-navigation .vali_ots + ul li{
    padding: 0.5em 0.2em 0.5em 1.7em;
}

#left-navigation h2.vali_ots + p, #left-navigation h2.vali_ots ~ p{
    padding: 0.5em 0.2em 0.5em 0.8em;
}

#left-navigation p.current{
    padding: 0.5em 0.2em 0.5em 1.7em; 
    /*line-height: 14px;*/
}

#left-navigation p + ul li.current_page{
    padding: 0.5em 0.2em 0.5em 1.7em;
}

#left-navigation p + ul li, #left-navigation p ~ ul li{
    padding: 0.5em 0.2em 0.5em 1.7em;
}

/*overwrite bootstrap*/
.nav > li > a{
    padding: 0.5em 0.2em 0.5em 0.3em;
}

/*the same effect for the keruu-style structure*/
#left-navigation > nav > ul > li > a{
    padding: 0.5em 0.2em 0.5em 0.8em;
}

/*keruu style, second level & below*/
#left-navigation > nav > ul li ul li a{
    padding: 0.5em 0.2em 0.5em 2.6em;
}

/*overwrite bootstrap, remove grey hover*/
.nav > li > a:hover{
    background-color: #e0effa;
}

/*and grey active status*/
.nav > li > a:active{
    background-color: #e0effa;
}

/*overwrite bootstrap, remove grey hover*/
.nav > li.active > a:hover{
    background-color: #ffffff;
}

#left-navigation li:last-child{
    border-bottom: none;
}

#left-navigation nav p.title {
    word-break: normal;
}
#left-navigation li .current_page {
    background: no-repeat scroll 0.7em 0.3em #FFFFFF;
    font-weight: bold;
}
#left-navigation .keruu_nav_valinta {
    border-style: none;
    border-width: 0;
    padding: 0.15em 0.2em 0.15em 0;
}

#left-navigation li.keruu_nav_valinta a {
    padding-left: 1.7em;
}

#left-navigation li ul {
    padding: 0;
}

#left-navigation li ul li {
    padding: 0;
}

#left-navigation a {
    display: block;
    min-width: 11em;
}

#left-navigation h2{
    padding: 0.5em 0.2em 0.15em 1.5em;
    vertical-align: middle;
    margin-top: 35px;
}

#left-navigation h2.current_page{
    /*background-color: #e9f5f9;*/
    text-transform: uppercase;
    color: #0073B0;
    margin-top: 0;
}

#left-navigation .current_page{
    background-color: #ffffff;
}

/*#left-navigation hr {
    background: none repeat scroll 0 0 #E7F3F7;
    border-style: none none solid;
    border-width: 1px 0;
    margin: 0;
    padding: 0.1em;
}*/
#left-navigation nav ul li.active {
    background: no-repeat scroll 0.7em 0.6em #FFFFFF;
}

/*don't show home page in tree-menu*/
#tree-menu-home {
    display: none;
}

/*second level*/
#left-navigation li > ul > li a{
    padding-left: 2.6em;

}
/*third level and below*/
#left-navigation ul li ul li ul li a{
    padding-left: 1.7em;
}

dd {
    margin: 0 0.5em 1.2em;
}


#right {
    max-width: 170px;
    float: left;
    /*background-color: #ffffff;*/
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 0;
}

#right h2{
    line-height: 26px;
    color: #ffffff;
    background-color: #777777;
    padding: 0 1em;
    font-size: 14px;

}

#right p, #right ul{
    padding: 0.3em 0.4em;
    /*background-color: #ffffff;*/
}

#right li{
    list-style: none;
    line-height: 18px;
    padding: 0.3em 0em;
    /*background-color: #ffffff;*/
}

/*#keruu-news>div, #side-content>p, #login>div{
    padding: 5%;
}*/

#keruu-news > div, #side-content > div {
    padding: 10px 20px;
}

#right  #keruu-news  div  > h2 {
    padding: 0;
}


/*
#some, #order {
    position: absolute;
    left: 100%;
    top: 120px;
    width: 5%;

}*/

/*
#some p, #order p {
    font-size: 11px;
    padding: 4px 0 0;
    float: left;
    width: 20px;
}
*/
/*
#some {
    top: 175px;
}*/
/*
#order {
    top: 310px;
}
*/

#some {
    width: 100%;
    border-top: 1px solid #dcdcdc;
    padding: 5px;
    margin-top: 18px;
}

#some > p, #some > span {
    clear: both;
    float: right;
}

#some > p {
    margin-bottom: 6px;
    width: 25%;
}

#some a img {
    max-width: 20px;
    margin: 0 5px;
}

#somebuttons {
    	clear:none!important;
	margin: auto;
}

/*
#somebuttons a, #orderbuttons a {
    float: left;
    margin-left: 3px;
    clear: both;
    display: block;
    position: relative;

}

#somebuttons, #orderbuttons{
    margin-top: 4px;
    float: right;
}*/

#footer-extra {
    /*background-color: #ffffff;*/
}

#shortcuts {
    -moz-column-count: 3;
    -moz-column-gap: 20px;
    -webkit-column-count: 3;
    -webkit-column-gap: 20px;
    column-count: 3;
    column-gap: 20px;
    float: left;
    list-style: none outside none;
    padding: 1em;
    width: 70%;
}


#shortcuts > li {
    /*background-color: #FFFFFF;*/
    margin-right: 39px;
    padding: 3px 10px;
    width: 80%;
}

#footer {
    margin: 1.5em auto 0 auto;
    width: 100%;
}

#footer #site-information {
    float: left;
    margin: 1em 2em;

}

#site-information, #change-styleversion {
    text-align: center;
}

#change-styleversion {
    margin-bottom: 1em;
}

#follow, #order {
    margin-top: 1em;
}

#order {
    margin-right: -1.2em;
    margin-left: 1.2em;
}

/*#follow {
    float: left;
    padding: 1em 0;
    width: 24%;
}*/

/* Apply same style for SOME follow and share buttons
   Modified: 20.09.2017 @Haapakoj
 */
#follow p, #some p{
    float: left;
    margin-right: 10px;
    padding-top: 10px;
}

#order p{
    float: left;
    margin-right: 10px;
    padding-top: 10px;
}

#follow a, #order a {
    display: inline-block;
}
/*
#follow a span, #order a span{
    visibility: hidden;
}*/
/*
.newsletter-order {
    background: url("/site/img/newsletter_20x20.png") no-repeat;
    background-size: 20px 20px;
}

.rss-order {
    background: url("/site/img/rss_20x20.png") no-repeat;
    background-size: 20px 20px;
}
*/
.order-buttons {
    float: right;
}

.follow-buttons {
    float: right;
}

.follow-buttons a:last-child {
    margin-right: 0;
}

.fb-follow, .twitter-follow, .li-follow, .ss-follow, .rss-order, .newsletter-order {
    height: 24px;
    width: 24px;
    float: left;
    margin: 5px 2px 5px 2px;
    border-radius: 0px;
}
/*
.fb-follow {
    background: url("/site/img/facebook_20x20.png") no-repeat;
    background-size: 20px 20px;
    
}

.twitter-follow {
    background: url("/site/img/twitter_20x20.png") no-repeat;
    background-size: 20px 20px;
}

.li-follow {
    background: url("/site/img/linkedin_20x20.png") no-repeat;
    background-size: 20px 20px;
    
}

.ss-follow{
    background: url("/site/img/slideshare_20x20.png") no-repeat;
    background-size: 20px 20px;
}
*/
#footer #site-information ul li {
    display: inline;
    padding: 0 3px;
}

/* jCarousel Plugin styles for news slider */

.jcarousel-wrapper {
    position: relative;
}

.jcarousel {
    position: relative;
    overflow: hidden;
    height: 336px;
    background-color: white;
}

.jcarousel p {

}

.jcarousel ul {
    width: 980px;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}       

.jcarousel li a {
    text-decoration: none;
    color: black;
}

.jcarousel li {
    float: left;
    width: 490px;
    height: 336px;
    position: relative;
}

.jcarousel-control-prev,
.jcarousel-control-next {
    position: absolute;
    top: 140px;
    width: 30px;
    height: 30px;
    text-align: center;
    background: rgba(0,0,0,0.25);
    color: #fff;
    text-decoration: none;
    font: 24px/27px Arial, sans-serif;
    -webkit-border-radius: 30px;
       -moz-border-radius: 30px;
            border-radius: 30px;
}

.jcarousel-control-prev {
    left: 10px;
}

.jcarousel-control-next {
    right: 10px;
}

.date {
    color: #bcbcbc;
/*position: absolute;
    top: 30px;
    right: 0px;*/
}

.jcarousel img {
    width: 490px;
    height: 175px;
}

.jcarousel-pagination {
    position: absolute;
    top: 0;
    left: 5px;
    margin-top: 5px;
}

.jcarousel-pagination a {
    text-decoration: none;
    display: inline-block;
    
    font-size: 11px;
    line-height: 14px;
    min-width: 14px;
    
    background: #fff;
    color: #4E443C;
    border-radius: 14px;
    padding: 3px;
    text-align: center;
    
    margin-right: 2px;
    
    opacity: .75;
}

.jcarousel-control-prev.inactive,
.jcarousel-control-next.inactive {
    opacity: .5;
    cursor: default;
}

.jcarousel-pagination a.active {
    background: #4E443C;
    color: #fff;
    opacity: 1;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
}

#news-carousel {
    left: 0px; 
    top: 0px;
    height: 395px;
}

/*.nav-tabs {
    border-bottom: 1px solid #ddd;
    width: 90%;
}*/


.nav-tabs:before, .nav-pills:before, .nav-tabs:after, .nav-pills:after {
    content: "";
    display: table;
}

.nav-tabs:after, .nav-pills:after {
    clear: both;
}

.nav-tabs li{
    /*margin: 0 0.5em;*/
    /*padding: 1px 0px;*/
    background-color: rgba(188, 188, 188, 0.4);
    border-top: 1px solid #dcdcdc;
    border-left: 1px solid #dcdcdc;
}

.nav-tabs li.active {
    border: 0px;
}

.nav-tabs > li > a{
    border-radius: 0;
    padding: 2px 8px;
    margin-right: 0px;
}

.nav-tabs > li, .nav-pills > li {
    float: left;
}

.tabbable .nav-tabs .active {
    background-color: #ffffff;
    border-bottom: 0 none;
}

.nav-tabs > li.active > a, .nav-tabs > .active > a:hover {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #ffffff;
    border-color: #ddd #ddd transparent;
    border-image: none;
    border-style: solid;
    border-width: 1px;
    color: #555555;
    cursor: default;
}

#content ul.nav-tabs {
    padding: 20px 0 0 0;
    height: 27px;
    margin-bottom: 10px;
    border-bottom: 0px solid;
}

.nav-tabs li {
    background-color: #e5e4e4;
    border-bottom: 1px solid #bcbcbc !important;
    border-left: 1px solid #fff !important;
    border-top: 0 none !important;
    padding: 0 !important;
}

.nav-tabs li.active {
    border-color: #bcbcbc #bcbcbc -moz-use-text-color !important;
    border-style: solid solid none !important;
    border-width: 1px 1px 0 !important;
    padding: 0 !important;
}
.tab-content {
    clear: both;
    display: block;
}
.tab-content p {
    padding-top: 1em;
}
/*korjaukset jos mobiilissa on piilotettu navigaatiot*/
#main-navigation, #search, #language-home, #site-navigation {
    display: inherit !important;
}

#left-navigation li, #left-navigation div {
    display: inherit !important;
}

/*sivunavigaation sisennyskorjausta*/
#left-navigation .navlist-menu-level-1:nth-child(2) > li {
    padding-left: 0;
}
