@-ms-viewport{ width: device-width; }
@-o-viewport{ width: device-width; }
@-moz-viewport{ width: device-width; }
@-webkit-viewport{ width: device-width; }
@viewport{ width: device-width; }

body{
    padding: 0;
    margin: 0;
    color: #7d7d7b;
    font: 16px/150% "Droid Sans", Sans-serif;
    font-weight: 400;
}

li, td, dd, dt, dl{
    line-height: 150%;
}

a{
    color: #ccb676;
    transition: color 0.5s cubic-bezier(.55,0,.1,1);
}

a:hover, a:focus{
    color: #aa9862;
}

a img{
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(.55,0,.1,1);
}

a:hover img,
a:focus img{
    opacity: .75;
}

h1, h2, h3{
    font-family: "Droid Serif", "Georgia", serif;
    font-weight: 400;
}

h1{
    font-size: 200%;
}

h2{
    font-size: 175%;
}

h3{
    font-size: 125%;
}

body.site{
    background-color: #1b1b1b;
}

body div.body{
    background: #fff url(../images/bg-logo-circles.png) top center fixed no-repeat;
}

body.home div.body{
    background: #222 url(../images/bg-logo-circles.png) top center fixed no-repeat;
}

div.headerrow{
    background-color: #222;
    padding-top: 20px;
    padding-bottom: 20px;
}

div.logo img{
    width: 150px;
}

.page-header{
    margin-bottom: 30px;
}

div.normalpage{
    min-height: 600px;
    padding: 25px 0;
}

.footer{
    font-size: 87.5%;
    padding: 15px 0;
}

.footercontent{
    padding: 25px 0 35px 0;
}

.footer strong{
    color: #bbb;    
}

.footer a{
    color: #9a9a99;
}

.footer a:hover,
.footer a:focus{
    color: #fff;
    text-decoration: none;
}

div.copyright{
    padding: 15px 0 0 0;
    border-top: 1px solid #313131; 
}

div.copy, div.plan{
    font-size: 100%;
}

.topmenu .navbar{
    margin: 0;
}

.topmenu img{
    display: none;
}

ul.nav.topmenu{
    display: block;
    margin: 0;
    padding: 0;
    text-align: right;
    float: none;
}

ul.nav.topmenu > li{
    display: inline-block;
    float: none;
    position: relative;
}

ul.nav.topmenu li a,
ul.nav.topmenu li .separator{
    font-weight: 400;
    font-family: "Droid Serif", "Georgia", serif;
    color: #bbb;
    display: block;
    cursor: pointer;
    
}

ul.nav.topmenu > li > a,
ul.nav.topmenu > li > .separator{
    padding: 11px 15px;   
}

ul.nav.topmenu li a:hover,
ul.nav.topmenu li a:focus,
ul.nav.topmenu li.active > a:hover,
ul.nav.topmenu li.active > a:focus,
ul.nav.topmenu li.active > a,
ul.nav.topmenu li.active > .separator,
ul.nav.topmenu li > .separator:hover,
ul.nav.topmenu li > .separator:focus{
    color: #ccb676;
    font-weight: 400;
    text-decoration: none;
}

ul.nav.topmenu ul{
    position: absolute;
    left: 0;
    text-align: left;
    background: #222;
    padding: 15px 0;
    font-size: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,.25);
    z-index: 999;
    top: 100%;
    transform: scaleY(0);
    visibility: hidden;
    opacity: 0;
    transform-origin: top center;
    transition: transform 0.5s cubic-bezier(.55,0,.1,1), opacity 0.45s cubic-bezier(.55,0,.1,1) 0.1s;
}

ul.nav.topmenu li:hover ul,
ul.nav.topmenu li:focus ul{
    transform: none;
    visibility: visible;
    display: block;
    opacity: 1;
}

ul.nav.topmenu ul > li > a{
    padding: 6px 15px;
    white-space: pre;
}

#hamburger{
	box-sizing: border-box;
	display: inline-block;
	position: relative;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-top: -8px;
	cursor: pointer;
}

#hamburger:before,
#hamburger:after,
#hamburger span{
	background: #fff;
	content: '';
	display: block;
	width: 30px;
	height: 5px;
	position: absolute;
	left: 0;
}

#hamburger:hover:before,
#hamburger:focus:before,
#hamburger:hover:after,
#hamburger:focus:after,
#hamburger:hover span,
#hamburger:focus span{
    background: #ccb676;
}

#hamburger:before{
	top: 10px;
}

#hamburger span{
	top: 20px;
}

#hamburger:after{
	top: 30px;
}

#hamburger:before,
#hamburger:after,
#hamburger span{
	-webkit-transition: none .5s ease 0s;
	-moz-transition: none .5s ease 0s;
	transition: none .5s ease 0s;
	-webkit-transition-property: transform, top, bottom, left, opacity;
	-moz-transition-property: transform, top, bottom, left, opacity;
	transition-property: transform, top, bottom, left, opacity;
}

#hamburger.opened:before,
#hamburger.opened:after{
	top: 20px;	
}

#hamburger.opened span{
	left: -50px;
	opacity: 0;
}

#hamburger.opened:before{
	transform: rotate( 45deg );
}

#hamburger.opened:after{
	transform: rotate( -45deg );
}

ul.iconmenu{
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

ul.iconmenu li{
    display: inline-block;
    width: 30%;
    margin: 0 1.5% 40px 1.5%;
    text-align: center;
}

ul.iconmenu li a{
    display: block;
    padding: 0 10px;
    color: #bbb;
    font-family: "Droid Serif", "Georgia", serif;
    font-weight: 400;
}

ul.iconmenu li a:hover,
ul.iconmenu li a:focus{
    color: #fff;
    background: transparent;
}

ul.iconmenu li a img{
    max-width: 100%;
    height: auto;
}

.moduletable.palvelut{
    text-align: center;
    position: relative;
}

.moduletable.palvelut h2{
    text-transform: uppercase;
    color: #bbb;   
    display: inline-block;
}

ul.iconmenu li span.image-title{
    display: block;
}

.slideshow .bannergroup{
    margin: 0 auto 75px auto;
}

.slideshow .flexslider .carouselcapt{
    position: relative;
    background: transparent;
    height: auto;
    width: 100%;
    text-align: center;
    padding-top: 30px;
}

.slideshow .flexslider .carouselcapt h4{
    font-size: 200%;
    font-family: "Droid Serif", "Georgia", serif;
    font-weight: 400;
}

.blog.references .page-header{
    margin: 0;
    padding: 0;
    border: 0;
}

.category-desc{
    padding-bottom: 40px;   
}

.blog.references .item .page-header h2{
    font-size: 100%;   
}

.blog.references .page-header h2 a,
.item-page.references .page-header h2 a{
    color: #7d7d7b;   
}

.blog.references .page-header h2 a:hover,
.blog.references .page-header h2 a:focus,
.item-page.references .page-header h2 a:hover,
.item-page.references.page-header h2 a:focus{
    color: #ccb676;
    text-decoration: none;
}

.item-page.references .imgs{
    width: 50%;
    float: right;
    text-align: right;
}

.item-page.references .imgs img{
    width: 31.5%;
    margin: .5%; 
}

.item-page.references .pager{
    padding-top: 50px;
    clear: both;
}

.items-row .item{
    margin-bottom: 40px;
}

@media (max-width: 979px) and (min-width: 768px){
    #content.span9,
    #aside.rightcolumn.span3{
        width: 100%;
        margin: 0 0 25px 0;
        float: none;
    }
    
    ul.iconmenu li{
        width: 45%;
        margin: 0 2.48% 40px 2.48%;
    }
}

@media (max-width: 767px){
    .container{
        padding: 0 20px;
    }
    
    .footer .moduletable+.moduletable{
        margin-top: 30px;
    }
    
    .footer,
    div.copy,
    div.plan{
        text-align: center;
    }
    
    ul.nav.topmenu{
        text-align: center;
        padding-top: 15px;
    }
    
    ul.nav.topmenu li{
        display: block;
    }
    
    ul.nav.topmenu li ul{
        position: relative;
        top: initial;
        left: initial;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        text-align: center;
        font-size: 87.5%;
        padding: 0 0 15px 0;
    }
    
    ul.nav.topmenu li ul:after{
        content: '';
        display: block;
        width: 150px;
        margin: 10px auto 0 auto;
        background: #313131;
        height: 1px;
    }
    
    .header{
        position: relative;
    }
    
    div.brand.logo{
        float: left;
    }
    
    div.topmenuholder.span9{
        float: right;
        min-height: 0;
    }
    
    div.mobiletrigger{
        position: absolute;
        top: 10px;
        right: 0;
    }
    
    ul.iconmenu li{
        width: 100%;
        margin: 0 0 40px 0;
    }
    
    .blog.references .item-image.pull-left{
        float: none;
        margin: 0 0 15px 0;
    }
    
    .item-page.references .imgs{
        width: 35%;
    }

    .item-page.references .imgs img{
        width: 98%;
    }
}

@media (max-width: 300px){
    div.mobiletrigger{
        position: relative;
        text-align: center;
        padding-top: 25px;
        top: initial;
        right: initial;
    }
}