@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 0px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 0px solid #eee; 
		position: relative;
		padding-left: 5%;	
		top: 26px;
		
	}
	
	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}

}
.demo-3 {
	display: none;
}

.linkkikuvat {
    display:block;
}

/* typography */
body{
	color:#000000;
	font-family:'Hind', Arial, Helvetica, sans-serif; 
	font-size:18px;
	line-height:1.4em; 
	font-weight:normal;

}
h2, h3, h4, h5, h6{
	font-weight:normal;
	line-height:1.2em;
	margin:.45em 0;
	padding:0;
	color:#000000;
	text-transform: uppercase;

}

h1{
	font-weight:normal;
	line-height:1.2em;
	margin:.45em 0;
	padding:0;
	color:#000000;
	text-transform: uppercase;
	font-size:28px;

}

hr.paksu {
    border: 0;
    height: 2px;
    background: #000000;
}

hr{
    border: 0;
    height:1px;
    background: #ececec;
}

.center{
text-align:center;
}



input[type="text"] {
  display: block;
  margin: 0;
  width: 100%;
  appearance: none;
  box-shadow: none;
  border-radius: none;
}

textarea {
  display: block;
  margin: 0;
  width: 100%;
  appearance: none;
  box-shadow: none;
  border-radius: none;
}
/* links */


a,
a:visited,
a:active{color:#f17d1d;text-decoration: none;}
a:hover{color:#000000;-webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;text-decoration: none;}
	
a.main,
a.main:visited,
a.main:active{font-size:20px; color:#f17d1d;text-decoration: none;text-transform: uppercase;}
a.main:hover{color:#000000;-webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;text-decoration: none;}
	
a,
a.kieli:visited,
a.kieli:active{color:#000000;text-decoration: none;}
a.kieli:hover{color:#f17d1d;-webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;text-decoration: none;}

a.visible:link							{ color: #f17d1d; font-size: 12px; text-decoration: none;}
a.visible:visited						{ color: #f17d1d; font-size: 12px; text-decoration: none; }
a.visible:hover							{ color: #9b9b9b; font-size: 12px; text-decoration: none; }

/* Box sizing. Awesome thing. Read about it here: http://www.w3schools.com/cssref/css3_pr_box-sizing.asp */
*{	box-sizing:border-box;
	-moz-box-sizing:border-box;}

  
/* structure */   
.wrapper{
	width: 100%; 
	margin: 0 auto;
	font-size:80%;

}
header{ 
	padding:0px 0;
}
#banner{ 
	margin:10px;
	text-align:center;
}
	
#hero{
	margin-top:0px;
}
.kieli{
	margin-top:2px;
	text-align:center;
	font-size:12px;
}

.kuvatausta{
	background-position: center top;
	background-image: url(kuvatausta.jpg);
	background-repeat:repeat-x;
}

.valkoinen{
	color:#ffffff;
}

.mobiili{
	display:block;
	font-size:80%;
}

.musta{
	background-color:#000000;
}

.taustamusta{
	background-color:#000000;
	color:#ffffff;
	padding:20px;
}

#page-header{
	margin-top:0px;
}
#hero h1{ 
	line-height:1.2em;
	margin-top:0px;
	margin-bottom:10px;
	}
	
	
.flexslider{
	display:block;
	width: 100%;
	/*demo 1 slider theme*/	
	border: 3px solid #ffffff; 
	padding:2px;
	background: rgba(255,255,255,.9);
	box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-o-box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.flexslider2{
	display:block;
	width: 100%;
	/*demo 1 slider theme*/	
	border: 3px solid #ffffff; 
	padding:2px;
	background: rgba(255,255,255,.9);
	box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-o-box-shadow: 0 1px 4px rgba(0,0,0,.2);
}



#content {  
	margin:40px 0;
}

aside { 
	margin:40px 0;
}

p{ margin:1em 0 1em;}


/* RESPONSIVE IMAGES */
img{ max-width:100%; height:auto;}

img.thumbnail{
display:block;
/*demo 1 slider theme*/	
margin:0;
padding:3px;  
border:0px solid #ffffff;
background-color: #ffffff;
	-webkit-border-radius: 4px; 
-moz-border-radius: 4px; 
-o-border-radius: 4px; 
border-radius: 4px; 
box-shadow: 0 1px 4px rgba(0,0,0,.2); 
-webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
-moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
-o-box-shadow: 0 1px 4px rgba(0,0,0,.2);
}


img.thumbnail:hover{
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    -moz-transform: rotateX(20deg);
    -webkit-transform: rotateX(20deg);
    transform: rotateX(20deg);
    -moz-transform-origin: 50% 0;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    box-shadow: 0 20px 20px -5px gray;
}


/*MAIN MENU*/
.menu-toggle{
	display:block;
	padding:10px;
	margin:10px 0px 10px;
	background-color: #000000;
	background: -moz-linear-gradient(top, #202020, #000000);
	background: -webkit-gradient(linear, center top, center bottom, from(#202020), to(#000000));
	color:#fff;
	cursor:pointer;
	text-transform:uppercase;
	font-size:20px;
	margin-bottom:20px;
}
.menu-toggle.toggled-on{
	background-color: #000000;
	background: -moz-linear-gradient(top, #202020, #000000);
	background: -webkit-gradient(linear, center top, center bottom, from(#202020), to(#000000));
}
.srt-menu{
	display:none;
}	
.srt-menu.toggled-on{
	display:block;
	position:relative;
	z-index:10;
}
.srt-menu{
	clear:both;
	margin-bottom:20px;
	font-size:16px;
	padding:5px;
	margin-top:5px;
	
}
.srt-menu li a {
	display:block;
	margin:7px;
	padding:10px;
	text-decoration:none;
	color:#f17d1d;

}
.srt-menu li a:hover{

	color:#000000;
}
.srt-menu li li a {
	background:#e8e8e8;
	padding-left:20px;
}
.srt-menu li li li a {
	background:#efefef;
	padding-left:20px;
}

/*SECONDARY MENU*/
#secondary-navigation{
	margin-bottom:20px;

}
#secondary-navigation ul{
	margin:0;
	padding:0;
}
#secondary-navigation ul li a{ 
	background-position: center top;
	background-image: url(oranssi.png);
	background-repeat:repeat-x;
	display:block;
	margin:5px 0; 
	padding:10px;
	text-decoration:none;
	color:#000000;
	padding-top:12px;
	height:50px;

}
#secondary-navigation ul li a:hover,
#secondary-navigation ul li.current a{

	background-position: center top;
	background-image: url(musta.png);
	background-repeat:repeat-x;
	color:#fff;
	padding-top:12px;
	height:50px;
}

/*SPACE GRID ELEMENTS VERTICALLY, SINCE THEY ARE ONE UNDER ANOTHER SO FAR*/
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
	margin-bottom:10px;
	/*positioning and padding*/
	position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

/*FOOTER*/
footer{  
	clear:both;
	font-size:80%;
	padding:0px 0;
}
footer ul{
	margin:0;
	padding:0;
}

/*colors and backgrounds*/
body{
	background-color:#ffffff;
	background-position: center top;
	background-image: url(body.jpg);
	background-repeat:repeat;
}
h1, h2, h3, h4, h5, h6{
	color:#000000; 
}

footer{ 
	color:#000000;
}
footer h1, footer h2, footer h3, footer h4{ 
	color:#000000; 
	margin-bottom:10px;
}
footer ul{
	margin:0 0 0 8%;
}

a.buttonlink{ 
	background-position: center top;
	background-image: url(oranssi.png);
	background-repeat:repeat-x;
	color:#000000;
	font-size:16px;
	display:block;
	float:left; 
	padding:10px;
	padding-top:12px;
	margin-top:30px;
	text-decoration:none;
	height:50px;
	min-width:170px;
	margin-right:10px;
}
a.buttonlink:hover{
	background-position: center top;
	background-image: url(musta.png);
	background-repeat:repeat-x;
	-webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;
	color:#ffffff;
}

a.buttonlink2{ 
	background-position: center top;
	background-image: url(harmaa.png);
	background-repeat:repeat-x;
	color:#1b582c;
	font-size:16px;
	display:block; 
	padding:10px;
	padding-top:12px;
	margin-top:20px;
	text-decoration:none;
	height:50px;
	max-width:210px;
}
a.buttonlink2:hover{
	-webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;
	color:#000000;
}

a.buttonlink3{ 
	background-position: center top;
	background-image: url(oranssi.png);
	background-repeat:repeat-x;
	color:#000000;
	font-size:16px;
	display:block;
	float:left; 
	padding:10px;
	padding-top:12px;
	margin-bottom:10px;
	text-decoration:none;
	height:50px;
	min-width:170px;
}
a.buttonlink3:hover{
	background-position: center top;
	background-image: url(musta.png);
	background-repeat:repeat-x;
	-webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;
	color:#ffffff;
}

/* Contain floats*/ 
.clearfix:before,
.clearfix:after,
.row:before,
.row:after {
  content: " ";
  display: table;
}
.clearfix:after,
.container:after,
.row:after{
  clear: both;
}


/*
LARGER MOBILE DEVICES
This is for mobile devices with a bit larger screens.
*/

@media only screen and (max-width: 360px),
(min-device-width: 381px) and (max-device-width: 481px)  {

#banner{
	margin-bottom:-20px;/*this depends on the height of the logo*/
}
.menu-toggle{/*make menu float right, instead of sitting under the logo*/
	margin-top:30px; /*this depends on the height of the logo*/	
}

} 

/*
TABLET & SMALLER LAPTOPS
The average viewing window and preferred media query for those is 768px.
But I think that some more breathing space is good:)
*/
@media only screen and (min-width: 1080px) {

.wrapper{
	max-width: 1200px; 
	margin: 0 auto;
	font-size:100%;
}

#banner{ 
	float:left; 
	text-align:left;
	margin-bottom:20px;
}
header{
	padding:0;
	padding-top:5px;
}
#content {  
	float:left;
	width:70%;
}
#content.wide-content{
	float:none;
	width:100%;
}

.kieli{
	margin-top:2px;
	text-align:right;
	font-size:12px;
}


.right{ 
	float:right;
}

.right_text{ 
	text-align:right;
}

.flexslider{
	display:block;
	width: 100%;
	/*demo 1 slider theme*/	
	margin-top:20px; 
	margin-bottom:30px;
	border: 7px solid #ffffff; 
	padding:3px;
	background: rgba(255,255,255,.9);
	box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-o-box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.mobiili{
	display:none;
}

.flexslider2{
	display:block;
	width: 100%;
	/*demo 1 slider theme*/	
	margin-top:20px; 
	margin-bottom:20px;
	border: 7px solid #ffffff; 
	padding:3px;
	background: rgba(255,255,255,.9);
	box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); 
	-o-box-shadow: 0 1px 4px rgba(0,0,0,.2);
}




aside { 
	float:right;
	width:25%;
}

input[type="text"] {
  display: block;
  margin: 0;
  width: 60%;
  appearance: none;
  box-shadow: none;
  border-radius: none;
}

textarea {
  display: block;
  margin: 0;
  width: 60%;
  appearance: none;
  box-shadow: none;
  border-radius: none;
}
/*** MAIN MENU - ESSENTIAL STYLES ***/
.menu-toggle{display:none;}
#menu-main-navigation{display:block;}

.srt-menu, .srt-menu * {
	margin-left:	10px;
	padding:		0;
	list-style:		none;

}
.srt-menu ul {
	display:none;
	position:		absolute;
	width:			15em; /* left offset of submenus need to match (see below) */
	
}
.srt-menu ul li {
	width:			100%;
}
.srt-menu li:hover {
	visibility:		inherit; /* fixes IE7 'sticky bug' */
}
.srt-menu li {
	float:			left;
	position:		relative;
	margin-left:10px;
}
.srt-menu li li {
	margin-left:0px;
}
.srt-menu a {
	display:		block;
	position:		relative;
}
.srt-menu li:hover ul,
.srt-menu li.sfHover ul {
	display:block;
	left:			0;
	top:			42px; /* match top ul list item height */
	z-index:		99;
	
}
ul.srt-menu li:hover li ul,
ul.srt-menu li.sfHover li ul {
	top:			-999em;
}
ul.srt-menu li li:hover ul,
ul.srt-menu li li.sfHover ul {
	left:			12em; /* match ul width */
	top:			0;
}
ul.srt-menu li li:hover li ul,
ul.srt-menu li li.sfHover li ul {
	top:			-999em;
}
ul.srt-menu li li li:hover ul,
ul.srt-menu li li li.sfHover ul {
	left:			10em; /* match ul width */
	top:			0;
}

/*** DEMO1 SKIN ***/
#topnav, .srt-menu {
	float:right;
	margin: 27px 0 0 0;
	margin-bottom:0px;
	Border-bottom:2px solid #000000;

}
.srt-menu a {
	text-decoration:none;
}
.srt-menu li a {
	margin:0; 
	padding:5px 0px 0px 20px;
	height:42px;
}
.srt-menu a, .srt-menu a:visited  { /* visited pseudo selector so IE6 applies text colour*/
	color:#f17d1d;	
}
.srt-menu li li a {
		border-top:		1px solid rgba(255,255,255,.2);
		background:		#333; /*fallback for old IE*/
		background:rgba(0,0,0,.9);
		color:	#ffffff;
		padding:10px;
		height:auto;
}


.srt-menu li li a:visited  {color:#ffffff;}
.srt-menu li li a:hover {color:#f17d1d;}

.srt-menu li li li a,
.srt-menu li.current * li a{
	padding-left:10px;
	background:rgba(0,0,0,.6);
	color:#f17d1d;
}

.srt-menu li:hover > a,
.srt-menu li.current a{ 
	color:#000000;
	
}
.srt-menu li li:hover > a{
	color:#000000;

}


/*GRID*/
/*
 & Columns : 12 

 */
 .row{
	 margin-left: -15px;
     margin-right: -15px;
	 padding-bottom:10px;
}
 
.grid_1 { width: 8.33333333%; }
.grid_2 { width: 16.66666667%; }
.grid_3 { width: 25%; }
.grid_4 { width: 33.33333333%; }
.grid_5 { width: 41.66666667%; }
.grid_6 { width: 50%; }
.grid_7 { width: 58.33333333%; }
.grid_8 { width: 66.66666667%; }
.grid_9 { width: 75%; }
.grid_10 { width: 83.33333333%; }
.grid_11 { width: 91.66666667%; }
.grid_12 { width: 100%; }

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
	float: left;
	display: block;
}

.rightfloat{float:right;}
/* @notation inspired by tinyGrid, .row and percentage by Twitter Bootstrap
 */
 
#hero [class*="grid_"] { margin-bottom:-20px;}

}

/*
DESKTOP
This is the average viewing window. So Desktops, Laptops, and
in general anyone not viewing on a mobile device. Here's where
you can add resource intensive styles.
*/
@media only screen and (min-width: 1030px) {
table { 
  width: 100%; 
  border-collapse: collapse; 
}
/* Zebra striping */
tr:nth-of-type(odd) { 
 
}
th { 
  color: black; 
  font-weight: bold; 
}
td, th { 
  padding: 6px; 
  border: 0px solid #ccc; 
  text-align: left; 
}
} 

/*
LARGE VIEWING SIZE
This is for the larger monitors and possibly full screen viewers.
*/
@media only screen and (min-width: 1240px) {

} 

/*
RETINA (2x RESOLUTION DEVICES)
This applies to the retina iPhone (4s) and iPad (2,3) along with
other displays with a 2x resolution.
*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min--moz-device-pixel-ratio: 1.5),
       only screen and (min-device-pixel-ratio: 1.5) {


} 

/*
iPHONE 5 MEDIA QUERY
iPhone 5 or iPod Touch 5th generation styles (you can include your own file if you want)
*/
@media (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2) { 

  
}

/*
PRINT STYLESHEET
*/
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}