@import url('http://fonts.googleapis.com/css?family=Gabriela');

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, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	outline: none;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	#background: url(../img/kayntikortti.jpg) no-repeat center center fixed;
	background-image: url(../img/kayntikortti.jpg);
	background-position: top center;
	background-attachment: fixed;
	background-size: 100vw auto;
	background-repeat: no-repeat;
	background-color: #69C7AC;
	
	#background-color: #69C7AC;
	#-webkit-background-size: cover;    
	-moz-background-size: cover;    
	#-o-background-size: cover;    
	#background-size: cover; 
	font-family: 'Fauna One', serif;
}

.extra {
	margin-top: 25px;
	font-weight: bold;
	color: black;
	font-size: 0.6em;
}
	
@media only screen and (min-width: 400px) {
	.extra {
		margin-top: 25px;
		font-weight: bold;
		color: black;
		font-size: 1em;
	}
}

@media only screen and (min-width: 600px) {
	.extra {
		margin-top: 25px;
		font-weight: bold;
		color: black;
		font-size: 1.5em;
	}
}



header {
	width: 100%;
	height: 440px;
}
nav li {
	font-family: 'Fauna One', serif;
	font-weight:900;
	font-size: 17px;
	list-style: none;
	line-height: 50px;
	display:inline-block;
	margin: 10px 10px;
}

nav ul {
	text-decoration: none;
	text-align:center;
}

nav a {
	text-decoration: none;
	color:#83B85A;
	text-align:center;
	display:inline-block;
}

nav a:hover {
	color:#D1E081;
	text-decoration:none;

}
footer {
	background-color:#FFFFFF;
	width: 100%;
	height: 50px;
	float:left;
	display:block;
}
#footerp {
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	color:#585858;
	line-height: 50px;
	text-align:center;
	text-decoration:none;
	background-color: #FFFFFF;
}
p {
	font-family: 'Fauna One', serif;
	font-size: 16px;
	color: #914D0A;
	text-align:center;
}

br { display: block; line-height: 1.6em; } 

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }

input, textarea { 
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
}

blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
strong, b { font-weight: bold; }
em, i { font-style: italic; }

table { border-collapse: collapse; border-spacing: 0; }
img { border: 0; max-width: 100%; }

h1 {
 font-family: 'Kaushan Script', cursive;
  font-size: 40px;
  margin-bottom: 15px;
  text-align: center;
  color:#FFA150;
}

/** page structure **/
#wrapper {
  display: block;
  width: 90%;
  margin: 0 auto;
  margin-left:auto;
  margin-right:auto;
}
#wrapper2 {
  display: block;
  width: 55%;
  margin: 0 auto;
  margin-left:auto;
  margin-right:auto;
 }
#wrapper3 {
background-color:#FDFCEB;
  display: block;
  width: 100%;
  padding-top: 5%;
  padding-bottom: 5%;
  margin: 0 auto;
  margin-left:auto;
  margin-right:auto;
}
.iconit {
	float:left;
	width: 40px; 
	height: 40px;
}

.postiteksti{
	float:left;
	width:60%;
	padding-top:12px;
	padding-left: 10px;
	font-size:14px;
	font-family: 'Fauna One', serif;
	color: #914D0A;

}
#portfolio {
  display: flex;
  flex-wrap:wrap;
  padding-left: 15%;
  width: 90%;
}

#portfolio li {
  display: block;
  float: left;
  width: 30%;
  max-width: 400px;
  margin-right: 20px;
  margin-bottom: 20px;
}

#portfolio li a {
  display: block;
  padding: 8px;
  background: #fff;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  -webkit-box-shadow: 1px 2px 2px rgba(0,0,0,0.25);
  -moz-box-shadow: 1px 2px 2px rgba(0,0,0,0.25);
  box-shadow: 1px 2px 2px rgba(0,0,0,0.25);
}

.mfp-title {
  font-size: 1.2em;
  color: #585858;
  font-weight: 700;
}

/** clearfix **/
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
 
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }

/** media queries **/
@media screen and (max-width: 1290px) {
#wrapper2 {
  width: 70%;
  }
}
@media screen and (max-width: 900px) {
  #portfolio li {
    width: 45%;
}
#wrapper2 {
  width: 85%;
  }
}
@media screen and (max-width: 650px) {
  #portfolio { 
    text-align: center;
  }
  #portfolio li {
    float: none;
    display: inline-block;
    width: 80%;
    margin-bottom: 30px;
}
nav li {
	font-size:16px;
}
#footerp {
	font-size:11px;
	line-height: 50px;
	}
p {
	font-size: 15px;
	margin-left:1%;
	margin-right:1%;
} 
.postiteksti{
	font-size:13px;
}
h1 {
	font-size:35px;
	margin-bottom:5px;
}
#wrapper2 {
  width: 85%;
 }
}
@media screen and (max-width: 320px) {
#footerp {
	font-size:10px;
	line-height: 50px;
}
#wrapper3 {
padding-top: 5%;
}
header {
	height:280px;
}
nav li {
	font-size:13px;
	width: 70px;
}
h1 {
	font-size:20px;
	margin-bottom:5px;
}
p {
	padding-top: 0px;
	font-size: 13px;
	margin-left:3%;
	margin-right:3%;
}
.postiteksti{
	font-size:11px;
}
#wrapper2 {
  display: block;
  width: 85%;
  margin: 0 auto;
  margin-left:auto;
  margin-right:auto;
}
}