/* last overwrites */
@import url("font-awesome.min.css");
/*
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,500;0,600;0,800;1,400&display=swap');
*/
/* work-sans-regular - latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/work-sans-v18-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/work-sans-v18-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* work-sans-500 - latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  src: local(''),
       url('../fonts/work-sans-v18-latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/work-sans-v18-latin-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* work-sans-600 - latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  src: local(''),
       url('../fonts/work-sans-v18-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/work-sans-v18-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* work-sans-800 - latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 800;
  src: local(''),
       url('../fonts/work-sans-v18-latin-800.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/work-sans-v18-latin-800.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* work-sans-italic - latin */
@font-face {
  font-family: 'Work Sans';
  font-style: italic;
  font-weight: 400;
  src: local(''),
       url('../fonts/work-sans-v18-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/work-sans-v18-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


/* staatliches-regular - latin */
@font-face {
  font-family: 'Staatliches';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/staatliches-v11-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/staatliches-v11-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

body, input, select, textarea {
        color: #555555;
        font-family: 'Work Sans', sans-serif;
        font-size: 12pt;
        font-weight: 300;
        line-height: 1.65em;
    }

body {
    /* margin-top:53px; */
    background-color: #20232A; /*theme dark color1:; #20232A */
}

.toplogoabs {
    /* background:rgba(239, 224, 155, 0.8); */ /*#efe09b;*/
    background-color: #08315c;
    padding-top:4px;
    padding-bottom:2px;
}
.toplogoabs.inversed {
    /* background:rgba(239, 224, 155, 0.8); */ /*#efe09b;*/
    background-color: #fefefe;
    padding-top:4px;
    padding-bottom:2px;
}

.topright-tel a {
    color: #08315c;;
    line-height: 33px;
}
.topright-tel {
    font-weight: bold;
    font-size: 0.8em;
    margin-top:-6px;
    color: #08315c;;
}

.topright-tel p {
    margin: 16px 0 0px;
}

.tekstiosuuswrap {
    padding-bottom: 40px;
}

.sub-content-sample {
    font-size: 30px;
    line-height: 1.25;
    padding: 20px 40px;
    width: auto;
    min-width: 200px;
    max-width: 80%;
    color: #ffeb66;
    position: absolute;
    top: 45px;
    left:10%;
    background:transparent;
}

.bannercontainer-outer, .bannercontainer-outer2 {
    margin-top: 0px;
}

.sub-content-sample.black{
background: rgba(76, 84, 97, 0.5);
}

.homepage #logo {
    display:inline-block;
    float:left;
    clear:none;
    height:60px;
    width:235px;
    margin-left: 8px;
}
#logo span, .title span {
    text-indent: -9999px;
    visibility: hidden;
}
#header {
    margin-bottom: 8px;
    margin-top: 4px;
}
/*mobile logo */
span.title img {
    float:right;
    margin-right: 4px;
    margin-top: 2px;
}

#navmargin {
    display:block;
    width:100%;
    margin:0px;
    height: 0px;
}
.nav-adminnavigation {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 200;
    clear: none;
}

#stickynavcontainer {
    display:block;
    position: static;
    text-align: center;
    top: 0;
    right: 0;
    margin-bottom: 0px;
    margin-top: 0px;
    background-color: #000000;
}

.navbar {
    margin-bottom: 0px;
    background-color: #20232A; /*theme dark color1:; #20232A */
    border-bottom: none;
}

.navbar {
    min-height: 49px;
}

.navbar .icons {
    float:right;
}
.navbar .icons a {
    font-size: 20px;
}

.bannercontainer-static {
    display:block;
    width:100%;
    clear:both;
    background:transparent;
}
.banner-static {
     -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    height: 300px;
    width: 100%;
}


.navbar-brand {
    float: left;
    height: 49px;
    padding: 4px 3px;
    font-size: 18px;
    line-height: 22px;
}
ul.navbar-nav > li {
    font-size: 14px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 0;
    padding: 0;
}

.navbar-default .navbar-nav > li > a {
    color: #D67E29;
    font-weight: 600;
}

ul.navbar-nav ul li {
    color: #D67E29;
}

ul.navbar-nav li a {
    color: inherit;
    letter-spacing: 1.2px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    padding: 20px 12px;
}
.dropdown-menu {
    background-color: #20232A; /*theme dark color1:; #20232A */
}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
    color:#D67E29;
    background-color: #171513; /* black theme color */
}

.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav > li > a:active {
    color:#D67E29;
    background-color: #171513; /* black theme color */
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus, .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    color:#D67E29;
    background-color: #171513; /* black theme color */
}

.navbar-default .navbar-nav > li > a:hover {
    color:#D67E29;
    background-color: #171513; /* black theme color */
}

ul.navbar-nav li ul li a {
    color: inherit;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    padding: 0px 20px;
    line-height: 24px;
}
.navbar-inverse .navbar-nav > li > a {
    color:#D67E29;
}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
    background-color: #171513; /* black theme color */
    color: #D67E29; /* secondary color ep */
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background-color: #171513; /* black theme color */
    text-decoration: underline;
}

.navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus {
    color: #D67E29;
}

/* NAVBAR SCROLL CHANGE */


.slogan-static-top {
    float: right;
    clear: none;
    display: inline-block;
    text-align: right;
    vertical-align: baseline;
}
.slogan-static-top h2 {
    font-size: 26px;
    color: #FFFF37;
    padding-left: 63px;
    float: right;
    text-align: right;
    margin: 15px 15px;
    /* margin-top: 49px; */
    margin-top: 28px;
    font-variant: small-caps;
    font-style: italic;
}

.navbar-fixed-top {
    height:60px;
}
.navbar-static-top {
    position: relative;
}
.logo-static-top {

}
.logo-static-top-right {
float:right;
}
.navbar-static-top {
    /* margin-top:-53px; */
}

.navbar-static-top .navbar-header {
    float: left;
}
.navbar-static-top .navbar-collapse {
    margin-top:0px;
    border-bottom: none !important;
}

.navbar .logo-static-top {
    max-width: 340px;
    max-height: 49px;
}

.logocontainer-static-top {
    margin-right: 0px;
}


/* .navbar-static-top .logo-static-top { */
/*     display: none; */
/* } */

.navbar .logo-static-top {
    display: block;
    position: absolute;
}

.navbar-static-top .logo-static-top img {
}


/*
.navbar-static-top .logo-fixed-top { display:none; }
.navbar-static-top .logocontainer-static-top { display:block; }

.navbar-fixed-top .logo-fixed-top { display:block; }
.navbar-fixed-top .logocontainer-static-top { display:none; }
*/

.navbar-fixed-top {
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.navbar-collapse.collapse .front-page-link {
    display: none;
}
.navbar-collapse.collapse.in .front-page-link {
    display: inline-block;
    margin-left: 10px;
}


.etusivun-uutiset img {
    max-width: 90%;
    height: auto;
}


#footer #tuunix:hover {
    color: #eee;
}
span#tuunix {
    width: 134px;
}
#footer #tuunix, #footer #tuunix a {
    color: #616161;
    float: right;
    margin-right: 15px;
    font-size: 11px;
    display: inline-block;
}

.fb-bottom {
    float: left;
    clear: none;
    margin-right: 10px;
    margin-left: -3px;
}

.front-showcase h4 {
    font-weight: bold;
}
.front-showcase > div {
    cursor: pointer;
}

.showcase > .textcontainer {
    min-height: 150px;
}

@media (max-width: 780px) {
    .showcase > .textcontainer {
        min-height: 50px;
    }
}

.row .showcase {
    padding-top:8px;
    overflow: hidden;
}
.row .showcase:hover {
    box-shadow: -7px -3px 26px 3px rgb(138 138 138 / 30%);
}

.zoom-effect .row .showcase {
-webkit-transition: .3s ease-in-out;
transition: .3s ease-in-out;
}

.showcase a {
    font-family: 'Work Sans', sans-serif;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 40px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}


.topmargin {
    margin-top: 48px;
}

ul.software {
    margin-top: 80px;
    margin-bottom: 80px;
}

/* HEADER IMAGE 2022 */

.header-new {
    box-sizing: border-box;
    height: 440px;
    width: 100%;
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 2px;
    z-index: 1;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -60px;
    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;
    min-height: 100%;
    z-index: -1;
    /*background-attachment: fixed;*/
    /*transform: translate3d(0,0,-1px) scale(1.5);*/
}

.header-texts {
    background: rgba(255, 255, 255, 0.6);
    color: #222;
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 30px;
}

.header-yhteys .header-texts,
.header-default .header-texts {
    /*background: transparent;*/
}

.header-new img.img-logo {
    width: 600px;
    max-width: 80vw;
}

@media (max-width: 1280px) {
    .header-new img.img-logo {
        width: 400px;
        max-width: 80vw;
    }
}

@media (max-width: 768px) {

    .mainpagecontent {
        margin-top: 0px !important;
        padding-top: 20px;
    }
    .header-new {
        box-sizing: border-box;
        height: 240px;
    }
    .header-new img.img-logo {
        width: 220px;
        max-width: 80vw;
    }
}

.header-texts h2 {
    font-family: 'Staatliches';
    font-size: 6em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    /*text-transform: uppercase;*/
    letter-spacing: 3px;
}

.header-texts p {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: inherit;
    letter-spacing: 0.56px;
}

@media (max-width: 1280px) {
    .header-texts h2 {
        font-size: 5em;
    }
}

@media (max-width: 768px) {
    .header-texts h2 {
        font-size: 4em;
    }
    .header-texts p {
        font-size: 16px;
    }
}

@media (max-width: 568px) {
    .header-texts h2 {
        font-size: 3em;
        letter-spacing: 0.36px;
    }
    .header-texts p {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .header-texts h2 {
        font-size: 2em;
        letter-spacing: 0.26px;
    }
    .header-texts p {
        font-size: 14px;
    }
}

/* HEADER IMAGE 2022 END */



@media (min-width: 768px) {

.navbar-default .navbar-nav > li > a {
    padding-left: 25px;
    padding-right: 25px;
    letter-spacing: 1.05em;
    letter-spacing: 1.25px;
}

.mainoksettxt {
display: table;
}
.mainoksettxt div {
display: table-cell;
vertical-align: middle;
line-height: 110px;
}
.container-mainokset .row {
    margin-bottom: 10px;
}
.container-mainokset .row:hover {
    background: rgba(238, 238, 238, 0.4);
}
}


.newsbox {
    padding:5px 15px;
    /*background-color:#FFFFC4;*/
    background-color:#CEFD91;
    color: #333;
}

.newsbox h1, .newsbox h2, .newsbox h3{
font-weight: 700;
font-size: 1.8em;
text-align: center;
color:#000;
margin-top:-5px;
}

.newsbox strong {
    font-size: 1.2em;
    color: #333;
}

header.major {
    padding-bottom: 3em;
    text-align: center;
    /*text-transform: uppercase;*/
}


/*colorbox2 bootstrap ffox fixi */
/*
//ei tarvita
#cboxContent, #cboxLoadedContent, #cboxMiddleLeft, #cboxTitle, #cboxWrapper, #colorbox, #cboxOverlay {
    -moz-box-sizing:content-box;
    -webkin-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing:content-box;
}
*/

.thumbnail, .colorboxgallery { /*myös sivun kuvissa, värivaihtoehdot */
    margin-bottom:7px;
}

.thumbnail {
  background-color: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 4px 4px 4px 4px;
  display: block;
  height: auto;
  line-height: 1.42857;
  max-width: 100%;
  padding: 4px;
  transition: all 0.05s ease-in-out 0s;
}

.thumbnail, .img-thumbnail {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
}

.responsivegallerythumb {
 width:150px;
 height:110px;
 overflow-y:hidden;
}

.responsivegallerythumb2 {
    overflow:hidden;
    display:block;
    min-height:120px;
}

.responsivegallerythumb a {
    background-color: #fff; /* oli transparent */
    border:none;
}

.imgliquidbox{
    background-color:#f7f7f7;
    border: 2px solid #E6E6E6;
    margin:10px;
    display:inline-block;
}

/* COLORBOX2 END */


/* remove spacing between columns */

.row.no-gutter [class*='col-'] {
  padding-right:0;
  padding-left:0;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.row.no-gutter {
background-color: #333;
margin-bottom: 50px;
padding-bottom: 0px;
}

.gutter-centercolumn ul {
padding-left:60px;
margin-bottom: 20px;
}
.gutter-centercolumn {
    background-color: #333;
    color:#eee;
    padding-top:20px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.container2 {
    padding-top: 30px;
    margin-top: 30px;
}

.row.no-gutter img {
    max-width: 100%;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.row.no-gutter p {
    margin: 0px !important;
}




/*FOOTER*/

#footer {
margin-top: 140px;
background-color: #20232A;
/*
background: rgb(7,39,73);
background: -webkit-linear-gradient(bottom, rgba(7,39,73,1) 16%, rgba(13,53,97,1) 74%, rgba(7,39,73,1) 100%);
background: -o-linear-gradient(bottom, rgba(7,39,73,1) 16%, rgba(13,53,97,1) 74%, rgba(7,39,73,1) 100%);
background: linear-gradient(to top, rgba(7,39,73,1) 16%, rgba(13,53,97,1) 74%, rgba(7,39,73,1) 100%);
padding: 2em 0 0.5em 0;
*/
color:#B16A25;
text-align: left;
}

#footer header.major {
    text-align: left;
}

#footer a{
    color:#D67E29;
}

#footer a:hover{
    color: #fff;
}

ul.icons {
    cursor: default;
    padding-bottom: 2em;
}
l.icons li:first-child {
    padding-left: 0;
}
ul.icons li {
    display: inline-block;
    line-height: 1em;
    padding: 0.5em 1em;
    color:#D67E29;
}
ul.icons li a {
    text-decoration: none;
    font-size: 2em;
    color: inherit;
    opacity: 0.2;
    -moz-transition: all 0.35s ease-in-out;
    -webkit-transition: all 0.35s ease-in-out;
    -o-transition: all 0.35s ease-in-out;
    -ms-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}
ul.icons li span {
    display: none;
}

ul.icons li a:hover {
    color: inherit;
    opacity: 1;
}

#copyright {
    position: relative;
    text-transform: uppercase;
    text-align: center;
    padding: 0.5em 0em 0.5em 0em;
    color: inherit;
    opacity: .40;
}


/*FOOTER END */



img.half {
    max-width: 50%;
    margin: 0px auto;
}

img.p90 {
    max-width: 90%;
    margin: 0px auto;
}

img.p80 {
    max-width: 80%;
    margin: 0px auto;
}

img.p70 {
    max-width: 70%;
    margin: 0px auto;
}

img.p60 {
    max-width: 60%;
    margin: 0px auto;
}
img.p50 {
    max-width: 50%;
    margin: 0px auto;
}
img.p40 {
    max-width: 40%;
    margin: 0px auto;
}
img.p30 {
    max-width: 30%;
    margin: 0px auto;
}
img.p20 {
    max-width: 20%;
    margin: 0px auto;
}

.post-short img {
    max-width: 25%;
    margin: 0px auto;
}

.post-date .group-title {
    font-weight: bold;
    color:#00C100;
}

.form-inline select {
    float:right;
    display:inline-block;
    margin-top: 5px;
    width:180px;
}



.merkkilaskuri {
    font-weight: bold;
    color:#00C400
}

.mpform-maintable {
    width:60%;
}

.mainpagecontent {
    background-color: #fefefe;
    min-height: 500px;
    margin-top: 40px;
}

.navbar-toggle {
    background-color: #d2d3d4;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    color: #444;
    border-color: #444;
    background-color: #444;
}

.pull-right ul.dropdown-menu {
    left: -130px;
}







.mainpagecontent .img-responsive {
    display:inline;
}


.img-shrink-effect img, img.img-shrink-effect {
    -webkit-filter: brightness(100%);
    -webkit-transition: margin 0.05s ease;
    -moz-transition: margin 0.05s ease;
    -o-transition: margin 0.05s ease;
    -ms-transition: margin 0.05s ease;
    transition: margin 0.05s ease;
}

.img-shrink-effect img:hover, img.img-shrink-effect:hover {
    /* margin-top: -2px; */
    /* margin-bottom: 2px; */
    margin-left: 2px;
    -webkit-filter: brightness(110%);
}

.hoverimages a img, .two-col-left div a img {
    /*outline: 1px solid #fbc26b;*/
    outline: 1px solid #AACCE8;
}

.hoverimages a img:hover, .two-col-left div a img:hover {
    outline: 5px solid #fbc26b;
    outline-offset: -5px;
}


img.noborder, img.noborder:hover {
    outline:none !important;
}


.titletextspan {
    display: block;
    position: absolute;
    bottom: 0;
    width: 90%;
    top: 59%;
    transform: translateY(-50%);
    text-align: center;
    transition: all .55s;
    font-size: 36px;
    font-weight: 600;
    color: #fbc26b;
    /* text-shadow: -1px -1px 3px #2d2d2d, 1px 1px 3px #696969, 2px 2px 0px #797979; */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.65), -1px -1px 2px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.hoverimages a:hover .titletextspan, .two-col-left div a:hover .titletextspan {
    color:#fff;
}

.mainpagecontent h1:first-of-type {
    margin-top:36px;
    margin-bottom: 36px;
    color: #102e28;
    font-weight: bold;
    font-size: 36px;
}

@media (min-width: 1023px) {
    .mainpagecontent h1:first-of-type {
        inline-size: 900px;
    }
}

@media (min-width: 1200px) {
    .mainpagecontent h1:first-of-type {
        inline-size: 1080px;
    }
}

.breadcrumb-container {
    margin-top: -15px;
}

.breadcrumb {
    padding: 0px;
    margin-bottom: 0;
    background-color: #fff;
    border-radius: 0;
    margin-top: 0px;
    text-align: right;
    font-size: 12px;
}


.logocontainer-static-top .col-logo {
    text-align: left;
    margin-left: 0px;
    padding-left: 0px;
}

.myymalalist {
    border-radius: .3em;
    background: #007c57;
    display:inline-block;
    color: #fff;
    padding:2px 12px;
    font-size: 11px;
    margin-bottom: 2px;
}

.myymalalist:hover {
    background: #009F70;
}



/* OVERRIDE GALLERYTHUMBS MYYMÄLÄT - SIVU */
.col-myymalakuvat .imgliquidbox {
    margin: 3px;
}

/* .col-myymalakuvat > .gallery-fluid-container > .imgliquidbox > .responsivegallerythumb { */
.col-myymalakuvat .responsivegallerythumb {
    width: 110px;
    height: 80px;
    overflow-y: hidden;
    padding: 0px;
}

.col-myymalakuvat .thumbnail {
    padding: 4px;
}

/* OVERRIDE GALLERYTHUMBS MYYMÄLÄT - SIVU */


.container-mainokset h3 {
    margin-left: 23px;
}


.form-palaute-error {
background-color: #FBFBD0;
border:2px solid #B81F1F;
color:#333;
position: absolute;
left:5%;
top:400px;
width:400px;
height:100px;
display:block;
z-index: 1222;
font-weight: bold;
padding:5px;
display:none;
}

.img-shrink-effect img, img.img-shrink-effect {
    -webkit-filter: brightness(100%);
    -webkit-transition: margin 0.05s ease;
    -moz-transition: margin 0.05s ease;
    -o-transition: margin 0.05s ease;
    -ms-transition: margin 0.05s ease;
    transition: margin 0.05s ease;
}

.img-shrink-effect img:hover, img.img-shrink-effect:hover {
    /* margin-top: -2px; */
    /* margin-bottom: 2px; */
    margin-left: 2px;
    -webkit-filter: brightness(110%);
}

.hoverimages a img, .two-col-left div a img {
    /*outline: 1px solid #ffdf00;*/
    outline: 1px solid #AACCE8;
}

.hoverimages a img:hover, .two-col-left div a img:hover {
    outline: 5px solid #ffdf00;
    outline-offset: -5px;
}


img.noborder, img.noborder:hover {
    outline:none !important;
}


.titletextspan {
    display: block;
    position: absolute;
    bottom: 0;
    width: 90%;
    top: 59%;
    transform: translateY(-50%);
    transform: rotate(-35deg);
    margin-top: -32px;
    text-align: center;
    transition: all .55s;
    font-size: 18px;
    font-weight: 600;
    color: #ffdf00;
    /* text-shadow: -1px -1px 3px #2d2d2d, 1px 1px 3px #696969, 2px 2px 0px #797979; */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.65), -1px -1px 2px rgba(0, 0, 0, 0.85), 1px -1px 2px rgba(0, 0, 0, 0.85), -1px -1px 2px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.hoverimages a:hover .titletextspan, .two-col-left div a:hover .titletextspan {
    color:#fff;
}

#virhe{
text-align:left;
padding: 20px;
display: block;
border: 2px red dashed;
background: #fafaea; /*#f3f2b7;*/
color: #ff0000;
width: 300px;
clear: both;
font-size:12px;
font-weight:bold;
}

#ilmoitus{
vertical-align:middle;
padding: 20px;
display: block;
border: #000000 dashed 1px;
/*background: #f0f0d0;*/
background-color:#80ff80;
color: #000;
width: 400px;
clear: both;
font-size:14px;
font-weight:bold;
}

.btn-readmore {
    margin-top: 20px;
    background-color: #5D5D5D;
    border-color: #464646;
}

.btn-readmore:hover {
    background-color: #797979;
}

/*fixed nav anchor fix jump wrong pos */
:target:before {
content:"";
display:block;
height:70px; /* fixed header height*/
margin:-70px 0 0; /* negative fixed header height */
}

.row.nomargin {
    margin:0px;
}




@media (max-width: 900px) {
.fixed-logo-container {
    display: none;
}

.top-bannercontainer {
width: 800px;
max-width: 800px;
}
}
@media (max-width: 780px) {
.top-bannercontainer {
width: 600px;
max-width: 600px;
}

#cboxTitle, #cboxCurrent {
    font-size: 6px;
}

#copyright {
    font-size: 11px;
}
#tuunix {
    font-size: 10px;
}
}

/* BANNER LIMIT ON BIG SCREEN */

@media (min-width: 1200px) {
.bannercontainer {
    /*width: 1170px;*/

}
}
@media (min-width: 1300px) {
.topnavcontainer {
    width: 1280px;
}

}

@media (max-width: 1200px) {
    ul.navbar-nav li a {
        font-size: 12px;
        padding: 14px 4px;
    }
}



@media (min-width: 1024px) and (max-width: 1170px) {
ul.navbar-nav > li {
    font-size: 12px;
    border-radius: 0px;
    display: inline-block;
    margin-left: 2px;
    padding: 0 2px;
}
}
@media (min-width: 768px) and (max-width: 1179px) {
ul.navbar-nav > li {
    font-size: 12px;
    border-radius: 0px;
    display: inline-block;
    margin-left: 2px;
    padding: 0 2px;
}
.navbar-fixed-top .navbar-nav > li > a {
    position: relative;
    display: block;
    padding: 18px 20px 21px 0px;
    letter-spacing: 0px;
}

}


/* NAVBAR COLLAPSE POINT */

@media only screen and (min-width: 990px) {
    .navbar-collapse {
        display: block;
    }
}

@media only screen and (max-width: 990px) {

    .navbar-collapse.collapse.in {
        background-color: #20232A;
    }
    ul.navbar-nav li ul li a, ul.navbar-nav li a  {
    font-size: 12px !important;
    }

    img.logo-static-top {
    /* max-width: 49%; */
    }
    .slogan-static-top {
    width: 80%;
    }

    .slogan-static-top h2 {
    font-size: 20px;
    color: #f29400;
    padding-left: 0px;
    float: right;
    text-align: right;
    margin: 15px 15px;
    margin-top: 15px;
    font-variant: small-caps;
    font-style: italic;
    width: 100%;
    margin-top: 33px;
    }

    .container {
    padding-right: 30px;
    padding-left: 30px;
    }
    .mainpagecontent .container {
    padding-right: 0px;
    padding-left: 0px;
    }

    .mainpagecontent h1:first-of-type {
        overflow-wrap: break-word;
    }

    .logocontainer-static-top {
    margin-left: -30px;
    }

    .topnavcontainer, .col-valikko {
    padding-right: 0px;
    margin-right: 0px;
    }

    .col-valikko {
    padding-left: 0px;
    margin-left: 0px;
    }

    .navbar-fixed-top .logo-static-top {
    max-width: 280px;
    }



    #bs-example-navbar-collapse-1 a {
        width: 100%;
        float:none;
        clear:both;
        /*outline: 1px solid #ececec;*/
        box-shadow: 0 1px 0 #ececec;
        color: #D67E29 !important;
    }

     .navbar-collapse {
        display: none;
     }


     ul.navbar-nav li, ul.navbar-nav li a,  ul.navbar-nav li ul li a, ul.navbar-nav li ul li {
        display:block;
        clear:both;
        float:left;
        width: 100%;
     }

     #bs-example-navbar-collapse-1 > ul li.dropdown.open  ul li, #bs-example-navbar-collapse-1 > ul li.dropdown.open ul {
        display:block;
        clear:both;
        float:left;
        width: 100%;
     }

    ul li.dropdown.open a {
    line-height: 24px;
    }


    .dropdown-menu {
    top: 100%;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #0a2746;
    }
    .dropdown-menu > li > a {
        color: #D67E29 !important;
    }
    .dropdown-menu > li:hover > a {
        color:#D67E29 !important;
    }


    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-collapse.collapse.in {
        display: block!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 0px 0px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .navbar-static-top .navbar-header {
     float: none;
    }

    .mainpagecontent h1 {
    font-size: 28px;
    }
    .mainpagecontent h2 {
        font-size: 24px;
    }
    .mainpagecontent h3 {
        font-size: 20px;
    }
    .mainpagecontent h4 {
        font-size: 16px;
    }

}

@media (max-width: 640px) {
.logo-static-top {
    max-width: 80%;
    float: none;
    margin: 0px auto 0px auto;
}

.navbar-default .navbar-nav .open .dropdown-menu > .active > a {
    background-color: #000;
    margin-top: 1px;

}

.slogan-static-top h2 {
    font-size: 12px;
    color: #f29400;
    padding-left: 0px;
    float: right;
    text-align: right;
    margin: 4px 0px;
    margin-top: 17px;
    font-variant: small-caps;
    font-style: italic;
    width: 100%;
}

img.logo-static-top-right {
max-width: 80%;
}

.sub-content-sample {
    padding: 0px 40px;
    font-size:20px;
    max-width: 90%;
    left:5%;
}

.mainpagecontent h1 {
    font-size: 26px;
}
.mainpagecontent h2 {
    font-size: 22px;
}
.mainpagecontent h3 {
    font-size: 18px;
}
.mainpagecontent h4 {
    font-size: 16px;
}
.titletextspan {
    word-break: break-word;
    font-size: 24px;

}

}

@media (min-width: 1200px) {
.topnavcontainer {
    width: 100%;
}
}
@media (min-width: 992px) {
.topnavcontainer {
    width: 100%;
}

}

.piilo {
    display: none;
}

@media (min-width: 768px) and (max-width: 980px) {
    .container .container {
        width: unset;
    }
}
