/*--------------------- CSS NORMALIZE  ---------------------------------------------*/

html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
b,u,i,center,
dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,
table,caption,tbody,tfoot,thead,tr,th,td,
article,aside,canvas,details,figcaption,figure,
footer,header,hgroup,menu,nav,section,summary,
time,mark,audio,video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    font:inherit;
    vertical-align:baseline;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}

ol,ul {
    list-style:none;
}

blockquote,q {
    quotes:none;
}

:focus {
	outline: 0;
}

a {
	text-decoration: none;
}

::selection {
	color:#fff;
	background-color: #000;
}

::-moz-selection {
	color:#fff;
	background-color: #000;
} 

/*--------------------- CLEARFIX  ---------------------------------------------*/

/* For modern browsers */
.cf:before,
.cf:after {
    content:"";
    display:table;
}

.cf:after {
    clear:both;
}

/* For IE 6/7 (trigger hasLayout) */
.cf {
    zoom:1;
}

/*--------------------- PAGE STRUCTURE ---------------------------------------------*/

body {
	background: url(../img/bgr/body-bgr.jpg);
	font: 18px 'Roboto Slab', Georgia, Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", serif;
	color: #090909;
}

.wrapper {
	max-width: 980px;
	position: relative;
	margin: 0 auto;
}

#sivu .wrapper {
	background: url(none);
	min-height: 502px;
}

header {
	position: relative;
}

#sivu header {
	margin-left: 190px;
	width: 59.59183%; /* 584 : 980 */
	position: relative;
	z-index: 3;
	background: url(../img/bgr/main-bgr-left.jpg) repeat-y left top, url(../img/bgr/main-bgr-right.jpg) repeat-y right top;
	background-color: #FFF;
}

#sivu h1.main {
	max-width: 80.38775%; /* 435 : 980 */
    padding-top: 18px;
	margin-left: 16%; /* 98 : 980 */
}

#sivu h1.main img, .isokuva img {
	max-width: 100%;
	height: auto;
}

aside.right {
	position: absolute;
	z-index: 4;
	left: 73.77551%; /* 723 : 980 */
	top: 0;
	min-height: 531px;
	width: 24.59183%; /* 241 : 980 */
	background: url(../img/bgr/aside-right-bgr.png) no-repeat;
	background-size: contain;
}

#sivu main {
	margin-left: 190px;
	z-index: 2;
	width: 59.59183%; /* 584 : 980 */
	padding-bottom: 50px;
	background: url(../img/bgr/main-bgr-bottom-right.jpg) no-repeat right bottom, url(../img/bgr/main-bgr-bottom.jpg) no-repeat left bottom, url(../img/bgr/main-bgr-left.jpg) repeat-y left bottom, url(../img/bgr/main-bgr-right.jpg) repeat-y right bottom;
	background-color: #FFF;
}

#sivu .isokuva {
	margin-left: 215px;
	width: 55.10204%; /* 540 : 980 */
	position: relative;
	z-index: 5;
}

h1.main img, footer.main div img {
	max-width: 100%;
	height: auto;
}

#sivu .img-wrapper {
	margin-top: 15px;
}

#sivu .img-wrapper img {
	float: left;
	margin-right: 15px;
	margin-bottom: 10px;
	box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
}

/*--------------------- GALLERIA  ---------------------------------------------*/

#galleria {
	position: relative;
	margin-left: 205px;
	margin-top: 10px;
	width: 57.14285714%;  /* 560 : 980 */
}

/*--------------------- NAV  ---------------------------------------------*/

nav.main {
	margin-top: -170px;
	margin-left: 100px;
	padding-bottom: 15px;
}

nav.main ul  {

}

nav.main ul li {
	text-transform: uppercase;
	font-size: 22px;
	line-height: 26px;
}

nav.main ul li:nth-child(2) {
	padding-left: 60px;
}

nav.main ul li:nth-child(3) {
	padding-left: 113px;
}

nav.main ul li:nth-child(4) {
	padding-left: 163px;
}

nav.main ul li:nth-child(5) {
	padding-left: 186px;
}

nav.main ul li:nth-child(6) {
	padding-left: 234px;
}

/* #sivu nav */

#sivu nav {
	position: absolute;
	top: 8px;
	left: 0px;
	background: url(../img/bgr/sivu-nav-bgr3.png) no-repeat;
	height: 440px;
	width: 208px;
}

#sivu nav ul {
	margin-top: 220px;
	margin-left: 11px;
}

#sivu nav ul li:nth-child(2), #sivu nav ul li:nth-child(3), #sivu nav ul li:nth-child(4), #sivu nav ul li:nth-child(5), #sivu nav ul li:nth-child(6)  {
	padding-left: 0;
}

nav ul li {
	font-size: 19px;
}

/*--------------------- FOOTER  ---------------------------------------------*/

footer.main {
	width: 100%;
	background: url(../img/bgr/footer-main-bgr.png) repeat-x 0 0;
}

#sivu footer.main {
	position: static;
	margin-top: 10px;
}


footer.main aside.content {
	max-width: 980px;
	margin: 0 auto;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

footer.main div {
	margin-top: 33px;
	-webkit-box-flex: 1;
       -ms-flex: 1 1 20%;
           flex: 1 1 20%;
}

footer.main div h2 {
	font-size: 27px;
	color: #333;
	text-align: center;
}

footer.main div figure img, footer.main div img {
	margin-top: -7px;
	box-shadow: none;
	position: relative;
	left: 50%;
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}

footer.main div img {
	margin-top: 8px;
	box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
}

footer.main div img.mobile {
	display: none;
}

footer.main div img:hover {
	box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.5);
}

footer.main div figure img:hover {
	box-shadow: none;
}

/*--------------------- IMAGES  ---------------------------------------------*/

#sivu main img {
	margin: 0px auto;
}

.isokuva img {
	xxmargin-left: 216px; 
	box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
}

/*--------------------- TYPOGRAPHY  ---------------------------------------------*/

h1, h2, nav {
	font-family: 'Pompiere', "Century Gothic", CenturyGothic, AppleGothic, "Tw Cen MT", Futura, "URW Gothic L", Arial, sans-serif;
	text-transform: uppercase;
}

strong {
	font-weight: bold;
}

em {
	font-style: italic;
}

#sivu main p {
	font-size: 17px;
	padding-right: 8.56164384%; /* 50 : 584 */
	padding-left: 11.13013699%; /* 65 : 584 */
	padding-bottom: .75em;
}

#sivu main p:first-child {
	padding-top: 98px;
}

#sivu main ul.korttinavi {
	font-size: 17px;
	text-align: center;
	margin-bottom: 10px;
	padding-right: 10%;
	padding-left: 7%;
}

#sivu main ul.korttinavi li {
	display: inline;
	line-height: 28px;
}

#sivu main ul.korttinavi li:after {
	content: " | ";
	font-size: 24px;
	color: #000;
	padding-right: 3px;
	padding-left: 3px;
}

#sivu main ul.korttinavi li:last-child:after {
	content: "";
	padding-right: 0;
}

#sivu main h1 {
	font-size: 41px;
	text-align: center;
	color: #090909;
	padding: 10px 8% 8px;
}

#sivu main h2 {
	text-align: center;
	margin-bottom: 4px;
	font-size: 30px;
	color: #FF7400;
}

/*--------------------- LINKS  ---------------------------------------------*/

nav a:link, nav a:visited {
	color: #fff;	
}

nav a:hover {
	color:#000;
	border-bottom-style: none;
}

#index nav a:link, #index nav a:visited {
	color: #fff;	
}

#index nav a:hover {
	color:#000;
	border-bottom-style: none;
}

footer.main a:hover {
	border-bottom-style: none;
}

/* current page hilite */
#pia-westerholm-sivu nav li.pia-westerholm-linkki a, #kuvitukset-sivu nav li.kuvitukset-linkki a, #korttisarjat-sivu nav li.korttisarjat-linkki a, #printit-sivu nav li.printit-linkki a, #silityskuvat-sivu nav li.silityskuvat-linkki a, #seinakortit-sivu nav li.seinakortit-linkki a {
	color: #090909;
	cursor: default;
}

a:link, a:visited {
	color: #FF7400;
}

a:hover {
	color: #090909;
	border-bottom: 1px dotted #090909;
}

h1.main a:hover {
	border-bottom: none;
}


a:link.current, a:visited.current {
	color: #090909;
	cursor: default;
}

a:hover.current {
	color: #090909;
	border-bottom: none;
}


/*---------------------  RESPONSIVE NAV by @viljamis  ---------------------------------------------*/

.nav-collapse ul {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
  list-style: none;
}

.nav-collapse li {
  width: 100%;
  display: block;
}

.js .nav-collapse {
  clip: rect(0 0 0 0);
  max-height: 0;
  position: absolute;
  display: block;
  overflow: hidden;
  zoom: 1;
}

.nav-collapse.opened {
  max-height: 9999px;
}

.nav-toggle {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	font-size: 60px;
	line-height: 38px;
	margin-left: 8.5%;
}

a.nav-toggle:link, a.nav-toggle:visited {
	color: #314405;
}

a.nav-toggle:hover {
	color: #FF7400;
	border-bottom-style: none;
}

@media screen and (min-width: 900px) {
.js .nav-collapse {
    position: relative;
}

.js .nav-collapse.closed {
    max-height: none;
}

.nav-toggle {
    display: none;
}
}

/*--------------------- MEDIA QUERIES  ---------------------------------------------*/

/* 960px or less  */
@media screen and (max-width:960px)  {
	#sivu h1.main {
    margin-left: 12%;
	max-width: 70.388%;
}
}

/* 899px or less */
@media screen and (max-width: 899px) {
nav.main {
	margin-top: 4px;
	margin-left: 0;
}

nav.main ul  {
	text-align: center;
}

nav.main ul li {
	text-transform: uppercase;
	font-size: 24px;
	line-height: 30px;
	display: inline;
	padding-right: 10px;
	padding-left: 10px;
}

nav.main ul li:nth-child(2) {
	padding-left: 0;
}

nav.main ul li:nth-child(3) {
	padding-left: 0;
}

nav.main ul li:nth-child(4) {
	padding-left: 0;
}

nav.main ul li:nth-child(5) {
	padding-left: 0;
}

nav.main ul li:nth-child(6) {
	padding-left: 0;
}

#index nav a:link, #index nav a:visited {
	color: #314405;	
}

#index nav a:hover {
	color: #FF7400;
	border-bottom-style: none;
}

#galleria {
    width: 55.14285714%;  /* 560 : 980 */
}
}

/* 790px or less */
@media screen and (max-width: 790px)  {
	
#sivu main, #sivu .isokuva {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	width: 76.59183%;
}

#galleria {
	margin-left: auto;
	margin-right: auto;
	width: 76.59183%;
}

#sivu header {
	margin-left: auto;
	margin-right: auto;
	width: 76.59183%;
	position: relative;
	z-index: 3;
}

#sivu nav {
	position: static;
	background: url(none);
	height: auto;
	width: 100%;
	margin-bottom: 5px;
}

#sivu nav ul {
	margin-top: 0;
	margin-left: 0;
	text-align: center;
	padding-left: 7%;
	padding-right: 7%;
}

nav ul li {
	font-size: 22px;
	line-height: 34px;
	display: inline;
	margin-right: 10px;
}

nav ul li:last-child {
	margin-right: 0;
}

nav a:link, nav a:visited {
	color: #FF7400;	
}

nav a:hover {
	color: #000;
}

#sivu h1.main {
    padding-top: 12px;
}

footer.main div {
	-webkit-box-flex: 1;
       -ms-flex: 0 1 33.333333%;
           flex: 0 1 33.333333%;
}

footer.main div:nth-child(4), footer.main div:nth-child(5) {
	    margin-top: 12px;
}

footer.main div.printit img {
	display: none;
}

footer.main div.printit img.mobile {
	display: block;
}
}

/* 600px or less */
@media screen and (max-width: 600px)  {
	
#sivu main {
    width: 85.592%;
}

#galleria {
    width: 85.592%;
}

#sivu header {
    width: 85.592%;
}

#sivu main p {
    padding-right: 12.562%;
    padding-left: 12.13%;
}

#sivu h1.main {
    max-width: 65.388%;
	padding-top: 10px;
}

#sivu nav ul {
    padding-left: 10%;
    padding-right: 10%;
}
}

/*540px or less  */
@media screen and (max-width:540px)  {

#sivu main {
    width: 90.592%;
}

#sivu .isokuva {
	width: 86.59183%;
}

#galleria {
    width: 90.592%;
}

#sivu header {
    width: 90.592%;
}

#sivu main p {
    padding-right: 15.562%;
    padding-left: 13.13%;
}

#sivu h1.main {
    padding-top: 6px;
}
}

/* 470px or less */
@media screen and (max-width:470px)  {
	
footer.main div {
	-webkit-box-flex: 1;
       -ms-flex: 0 1 50%;
           flex: 0 1 50%;
	    margin-top: 33px;
}

footer.main div.pia {
	display: none;
}

#sivu nav ul {
    padding-left: 12%;
    padding-right: 12%;
}
}

/* 400px or less  */
@media screen and (max-width:400px)  {

#sivu main {
    width: 95.592%;
}

#galleria, #sivu .isokuva {
    width: 95.592%;
}

#sivu header {
    width: 99.592%;
}

#sivu h1.main {
    max-width: 62.388%;
    padding-top: 5px;
}

#sivu main p {
    padding-right: 11%;
    padding-left: 13%;
}
}

/* 320px or less  */
@media screen and (max-width:320px)  {
#sivu main p {
    padding-right: 11%;
    padding-left: 15%;
}

#sivu main ul.korttinavi {
    padding-left: 11%;
}
}


/* 970px or less  */
@media screen and (max-width:970px)  {

}

/* 940px or less */
@media screen and (max-width:940px)  {
	
}

/* 900px or less  */
@media screen and (max-width:900px)  {
}

/* 849px or less  */
@media screen and (max-width:849px)  {

}

/* 770px or less */
@media screen and (max-width: 770px)  {


}

/* 630px or less */
@media screen and (max-width: 630px)  {

}

/* 540px or less  */
@media screen and (max-width: 540px)  {


}

/* 480px or less   */
@media screen and (max-width:480px)  {

}

/* 360px or less  */
@media screen and (max-width:360px)  {


}

/* 320px or less  */
@media screen and (max-width:320px)  {


}