/* frontpage */

#logo {
    display: block;
    width: 107px;
    margin: 1em auto;
}

/* slider */

#slider-container {
    background: transparent;
}

#green-border {
    display: none;
}

.flexslider .slides li img {
    width: 100%;
    min-width: 100%;
    height: auto;
    margin-top: 1em !important;
}

.flexslider {
    position: relative;
    margin-bottom: 0;
}

#slider-container .flex-control-nav {
    display: none;
}

.flexslider .slides li {
    overflow: hidden;
    max-width: 100%;
}

.flexslider .slide .slide-content {
    position: static;
}

.flexslider .slide .slide-content * {
    max-width: 100%;
}

.flexslider .slides li img,
.flexslider .slides li p,
.flexslider .slides li {
    display: block;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    float: none;
    background: none;
}

.flexslider .slide-content {
    color: #0054a8;
    margin-top: 1em;
    /*position: absolute;*/
    bottom: 1em;
    width: 90%;
    margin-left: 5%;
    text-shadow: none;
}

.flexslider .slides li h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.flexslider .slides li h2,
.flexslider .slides li .summary {
    text-align: center;
    float: none;
    text-shadow: none;
    clear: both;
}
.template-home .flexslider .slides li h2,
.template-home .flexslider .slides li .summary {
    color: #00509F !important;
}
.flexslider .slides .summary{
    font-size: 1em;
    padding-right: 15px;
    width: 100%;
    margin-top: 5px;
}

.flex-direction-nav a {
    display: none !important;
}

#top {
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
}

#top ul {
    padding: 0.6em;
    clear: both;
}

#top .wrap {
    height: auto;
    padding: 0 0 0.6em 0;
}

#masthead .topnav {
  margin-top: 0;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}

#masthead .topnav a {
    float: left;
    padding: 0 0.3em 0.3em 0;
    margin: 0;
}

#masthead ul li ul {
    display: none;
}

/* top */

#top li a {
    padding: 0;
    margin-right: 5px;
}

#top .group-right li a,
#top .group-right li:first-child a,
#top .group-right li:last-child a {
    color: #fff;
    background: none;
    padding: 0 5px 0 0;
    margin: 0;
    border: none;
}



#top-toolbar {
    text-align: center;
    padding: 0 0 0.5em 0;
}

#top-toolbar a {
    padding: 0 0.5em;
}

/* navigation */

.topnav {
  margin-bottom: 10px;
}

.topnav ul {
    margin: 0;
    text-align: center;
    border-radius: 5px;
}

.topnav a {
    display: inline-block;
    float: none;
    padding: 0;
}

.subNavWrapper {
    width: 100%;
}

/* news */

.news-highlights-1 div {
    min-height: 150px;
    margin-bottom: 1em;
    overflow: hidden;
}

.news-highlights-1 img {
    width: 30%;
}

.news-highlights-1 h2,
.news-highlights-1 .date,
.news-highlights-1 p {
    padding: 0 0 10px 35%;
}

.template-home #body .news-highlights-2 h2:not(.h1) {
    padding: 0.4em 0;
}

.template-home #body .news-highlights-2 .highlight,
.template-home #body #event-highlights .highlight,
.bottom-section .size1of2 {
    margin-bottom: 1em;
}

/* highlight */

.image-highlights {
    padding: 5px;
    overflow: hidden;
}

.image-highlights a {
    display: block;
    float: left;
}

.image-highlights a img {
    margin: 5px;
}

.banner-item img {
   max-width: 90%;
}

/* footer */

.footer {
    font-size: 0.9em;
}

.footer ul li {
    width: 100%;
}

/* search */

#top-toolbar #search-form {
    display: none;
    position: static;
    clear: both;
}

/* mobile search */
body .mean-search {
    display: block !important;
    position: absolute !important;
    top: 0.5em !important;
    left: 1em !important;
    z-index: 9999999;
}

#masthead .someicons {
    text-align: center;
}

#top-toolbar {
    text-align: center;
}

#top-toolbar > div {
    display: inline-block !important;
}

#top-toolbar .omasuper > a {
    float: none;
}

#top-toolbar .omasuper {
    overflow: inherit;
    margin-bottom: 0;
}

.mean-container .mean-nav {
    margin-top: 37px;
}

.mean-container .mean-bar {
   padding: 7px 0;
}

.adminbar-loaded .mean-search {
   top: 3.2em !important;
}

.mean-container .mean-nav > ul > li:last-child a {
    border-bottom: none;
}

.mean-bar a#search {
    color: #fff;
    display: block;
    width: 24px;
    height: 24px;
    font-size: 27px;
    position: absolute;
    right: 60px;
    top: 8px;
}

.mean-container a.meanmenu-reveal {
    height: 60px;
}

.mean-container a.meanclose {
    padding-left: 7px;
    font-size: 30px !important;
    top: 7px;
}

/* yhteystiedot */

#contacts-top iframe,
#contacts .item {
    width: 100%;
    clear: both;
    float: none !important;
}

/* yleinen */

body #container {
    margin: 0;
}

#page-highlights {
    padding: 1em;
}

.highlight {
    overflow: hidden;
    width: 100%;
    clear: both;
}

.news-list-container {
    background: none;
    margin-top: 2em;
    padding-left: 0;
}

.template-home .paper,
.template-home .blogs {
    background: none;
    padding: 0;
}

.nav-horizontal {
    display: none;
}

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

    .news-highlights-2 .highlight {
        width: 48%;
        float: left;
        margin-right: 2%;
    }

    .news-highlights-2 .second-highlight {
        float: right;
        clear: none;
        margin-right: 0;
    }

}

/* sections */

.half-section {
    display: none;
}

.padding-3 {
    padding: 0;
}

.blue-section,
.blue-section-2,
.gray-section {
    padding: 0 10px;
}

/* bannerinostot */

.b-highlights {
    margin: 0 !important;
}

.b-highlights .highlight {
    width: 50% !important;
    display: inline-block;
}

.wins,
.blue-section-2,
.b-links,
.video {
    margin-bottom: 2em;
}

.magazine {
    padding: 1em;
    background: #004f9f;
    margin: -10px -10px -15px -10px;
}

.projects {
    padding: 1em 10px;
}

.magazine-container .magazine {
    background: #fff;
    margin: 0;
    padding: 0;
}

.wrap > .magazine {
    margin-bottom: -22px;
}

.jobs {
    padding: 1em 10px;
    margin: -10px -10px -15px -10px;
    background: #dee3f1;
}

/* tables */

/* #content table { display: table; position: relative; width: 100%; }
#content table thead { display: block; float: left; }
#content table tbody { display: block; width: auto; position: relative; overflow-x: auto; white-space: nowrap; }
#content table thead tr { display: block; }
#content table th { display: block; }
#content table tbody tr { display: block; vertical-align: top; }
#content table td {  min-height: 1.25em; min-width: 135px;} */
td img {
    max-width: 135px;
    min-width: 100%;
    height: auto;
}
