html,
body {
	background-color: #fff;
	height: 100%;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: 110%;
}
h1, h2 {
	margin-bottom: 3rem;
	font-family: 'Playfair Display', serif;
	font-weight: 700;
}
h1 {
	font-size: 500%;
}
h2 {
	font-size: 400%;
}
a {
	color: #3e9ab6;
}
a:hover, a:focus {
	color: #297a93;
}
.valikko {
	position: absolute;
	right: 0;
}

.btn {
	border-radius: 0;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
.btn:hover, .btn:focus {
	background-color: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.2);
}
.intro {
	background-image: url("../img/bg.jpg");
	background-size: cover;
	background-position: right top;
	background-repeat: no-repeat;
	color: #fff;
	min-height: 100vh;
	display: flex;
	display: -webkit-flex;
	display: flex;

	-ms-flex-align: center;
	-webkit-align-items: center;
	-webkit-box-align: center;

	align-items: center;

	justify-content: flex-start;
}
.intro h1 {
	font-size: 310%;
	margin-bottom: 1rem;
	text-shadow: 1px 1px 1px #000;
}
.intro h2 {
	font-size: 200%;
	font-style: italic;
	font-weight: 400;
	text-shadow: 1px 1px 1px #000;
}

.intro-container {
	margin-left: 20vh;
	padding: 2rem 0;
}


.menu {
	padding-top: 30px;
	float: right;
}
.menu a {
	color: #fff;
	padding: 0 20px;
	text-transform: uppercase;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
.menu a:hover,
.menu a:focus {
	text-decoration: underline;
}

.work, .me, .contact {
	padding-top: 7rem;
	padding-bottom: 3rem;
	text-align: left;
}

.work h3 {
	font-family: 'Playfair Display', serif;
	font-size: 200%;
	margin: 3rem 0 2rem;
	font-weight: 700;
}
.work h4 a {
	font-size: 100%;
	font-family: 'Playfair Display', serif;
	padding: 4rem 0 1rem;
	font-weight: 400;
	color: #3e9ab6;
	clear: both;
	display: block;
	text-decoration: none;
	-webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
.work h4 a:hover, .work h4 a:focus {
	color: #297a93;
	text-decoration: underline;
}

.examples .content {
	background-size: cover;
	background-position: 50%;
	height: 320px;
	margin-bottom: 2rem;
	display: table;
	width: 100%;
	background-color: #bbb;
	text-align: center;
}
.link-to-pop {
	position: absolute;
	bottom: 40px;
	right: 15px;
	background-color: #2A9599;
	font-size: 1rem !important;
	padding: 5px 10px;
}
.examples #foodz {
	background-image: url("../img/foodz.jpg");
}
.examples #asiakastuki {
	background-image: url("../img/asiakastuki.jpg");
}
.examples #delhome {
	background-image: url("../img/delhome.jpg");
}
.examples #onestoppartner {
	background-image: url("../img/onestoppartner.jpg");
}
.examples #graniittiravintolat {
	background-image: url("../img/graniittiravintolat.jpg");
}
.examples #meripaviljonki {
	background-image: url("../img/ravintolameripaviljonki.jpg");
}
.examples #techeq {
	background-image: url("../img/techeq.jpg");
}
.examples #kipupvk {
	background-image: url("../img/kipupvk.jpg");
}
.examples #mrsjones {
	background-image: url("../img/mrsjones.jpg");
}
.examples #hyrynsirkkeli {
	background-image: url("../img/hyrynsirkkeli.jpg");
}
.examples a {
	color: #fff;
	font-size: 1.4rem;
	text-decoration: none;
}

.mask {
	background: rgba(35,47,63,0.9);
	width: 100%;
	height: 100%;
	display: table-cell;
	vertical-align: middle;
	padding: 10px;
	-webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
	transition: all 0.5s ease;
}
.mask:hover, .mask:focus {
	background-color: rgba(0,0,0,0);
}
.mask:hover span, .mask:focus span {
	opacity: 0;
}
.mask span {
	display: block;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;
}
.mask .url {
	font-family: 'Playfair Display', serif;
	font-weight: 400;
	text-shadow: 1px 1px 1px #000;
	font-size: 1.25rem;
	overflow-wrap: break-word;
	word-break: break-word;
}
.mask .system {
	font-size: 1rem;
}
.mask .job {
	font-style: italic;
	font-size: 1rem;
}
.mask .system:before {
	content: '';
	display: block;
	width: 10%;
	background-color: #ccc;
	height: 1px;
	margin: 0.8rem auto;
}
.me ul {
	list-style-type: none;
	-webkit-padding-start: 10px;
	padding-left: 10px;
}
.me ul li {
	padding: 0.5rem;
}
.contact {
	margin-bottom: 5rem;
}
.footer {
	background-color: #333;
	color: #777;
	padding-top: 40px;
	padding-bottom: 40px;
	font-size: 90%;
	font-family: 'Playfair Display', serif;
}
@media only screen and (max-width : 640px) {
	.valikko {
		left: 0;
		right: auto;
	}
	.nav-inline .nav-item {
    display: block;
		margin-left: 0 !important;
	}
	.intro-container {
    	margin-left: 1rem;
    	margin-bottom: 1rem;
	}
	.intro h1 {
		font-size: 210%;
		margin-bottom: 0.5rem;
		margin-top: 3rem;
	}
	.intro h2 {
		font-size: 100%;
	}
	h1 {
		font-size: 400%;
	}
	h2 {
		font-size: 200%;
	}
	body {
		font-size: 100%;
	}
	h1, h2 {
		margin-bottom: 1.5rem;
	}
	.work, .me, .contact {
		padding-top: 3rem;
		padding-bottom: 1rem;
	}
	.work h4 a {
		font-size: 100%;
		padding: 1rem 0 0;
	}
	.intro {
		-ms-flex-align: flex-end;
		-webkit-align-items: flex-end;
		-webkit-box-align: flex-end;
		align-items: flex-end;
	}
}
