@charset "utf-8";
/* CSS Document */

/* Fonts */
@font-face {
    font-family: 'comfortaabold';
    src: url('../fonts/comfortaa-bold-webfont.woff2') format('woff2'),
         url('../fonts/comfortaa-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'comfortaaregular';
    src: url('../fonts/comfortaa-regular-webfont.woff2') format('woff2'),
         url('../fonts/comfortaa-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
	font-family:"Comfortaa-Light";
	src:url("../fonts/Comfortaa-Light.eot?") format("eot"),
		url("../fonts/Comfortaa-Light.woff") format("woff"),
		url("../fonts/Comfortaa-Light.ttf") format("truetype"),
		url("../fonts/Comfortaa-Light.svg#Comfortaa-Light") format("svg");
	font-weight:normal;
	font-style:normal;
}

@font-face {
	font-family:"FontAwesome";
	src:url("../fonts/fontawesome-webfont.eot") format("eot"),
		url("../fonts/fontawesome-webfont.woff") format("woff"),
		url("../fonts/fontawesome-webfont.ttf") format("truetype"),
		url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
	font-weight:normal;
	font-style:normal;
}

/* Elements */

body {
	margin: 0;
	padding: 0;
	background: url("../images/background.jpg") no-repeat center center fixed; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

header {
	width: 80.55%; /* 1160px / 1440px = 0.8055 */
	margin: 20px auto;
}

header h1 {
	margin: 0;
	padding: 0;
	display: none;
}

header img {
	margin: 0 auto;
	display: block;
	max-width: 100%;
}

nav {
	width: 71.3%; /* 826px / 1160px = 0.712 */
	height: 50px;
	background-color: #4f7f70;
	float: right;
	margin-top: 80px;
	border-top-right-radius: 10px;
}

nav ul {
	float: right;
	margin-right: 4.31%;
}

nav ul li {
    float: left;
	list-style: none;
	font-family: "comfortaabold";
	font-size: 1.0em;
	color: #fff;
}

nav ul li a {
    padding: 0 10px;
	display: block;
	font-family: 'comfortaaregular';
	font-size: 1.0em;
    text-transform: uppercase; 
	text-decoration: none;	
    color: #fff;
}

nav ul li:nth-child(3) {
	margin-right: 50px;
}

nav ul li a:hover {
	text-decoration: underline;
}

nav ul li a:active {
	text-decoration: underline;
}

nav ul li a:visited {
	text-decoration: none;
}

h3, h4 {
	font-family: "Comfortaa-Light";
	margin: 0;
}


footer {
	background-color: #4f7f70;
	width: 80.55%; /* 1160px / 1440px = 0.8055 */
	height: 85px;
	padding-top: 30px;
	box-sizing: border-box;
	margin: 0 auto;
	margin-bottom: 10px;
	border-bottom-right-radius: 10px;
}

footer h3 {
	color: #fff;
	font-size: 1.5em;
	margin-right: 50px;
	float: right;
}

footer a img {
	margin-left: 35px;
}

/* classes */

.clearFix {
	clear: both;
}

.contentBox {
	background-color: #58595b;
	opacity: 0.95;
}

.rest {
	margin: 10px 0;
	padding: 10px 15px 10px 15px;
	font-family: "Comfortaa-Light";
	font-size: 1.2em;
	color: #fff;
	overflow: auto;
	opacity: 0.95;
}

.rest section {
	margin: 0 auto;
}

.rest article {
	width: 33.33%;
	padding: 0 15px 0 15px;
	text-align: center;
	float: left;
	box-sizing: border-box;
}

.rest article:nth-child(4) {
	clear:both;
}

.rest h3 {
	margin-bottom: 20px;
}

.rest article ul {
	text-align: left;
}

.rest article img {
	width: 90%;
	margin-bottom: 20px;
}

.rest p {
	padding: 0 5px;
}

.flexslider {
	border: none;
}

.textWrap {
	margin: 10px;
	float: right;
}

/* Ids */

#container {
	max-width: 1440px;
	margin: 0 auto;
}

#wrapper {
	width: 80.55%; /* 1160px / 1440px = 0.8055 */
	margin: 0 auto;
}

#logo {
	width: 28.7%; /* 333px / 1160px = 0.287 */
	background-color: rgba(235,235,235,.7);
	float: left;
	padding: 10px 0 10px 0;
}

#hamburger {
	display: none;
}

#info, #image, #map {
	width: 28.7%; /* 333px / 1160px = 0.287 */
	height: 333px;
	float: left;
}

#info a {
	text-decoration: underline;
	color: #fff;
}

#text {
	margin: 0 auto;
	padding-top: 10px;
	line-height: 25px;
}

#text h3, h4 {
	color: #fff;
	font-family: "comfortaa-Light";
	font-size: 1.2em;	
	text-align: center;
	margin-bottom: 5px;
}

#text h4 {
	font-size: 1em;
	margin-bottom: 10px;
}

#some_icons {
	text-align: center;
}

#some_icons a:first-child {
	margin-right: 20px;
}

#some_icons a:hover {
	color: #4f7f70;
}

#description {
	color: #fff;
	font-family: "Comfortaa-Light";
	font-size: 1.3em;	
	width: 71.3%; /* 827px / 1160px = 0.7129 */
	height: 333px;
	background-color: #4f7f70;
	padding: 5px 20px 5px 20px;
	float: right;
	box-sizing: border-box;
}

#description p {
	margin-bottom: 0;
}

#image {
	background: url("../images/kahvila_majurska_1.jpg") no-repeat center center; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

#quote {
	width: 42.58%; /* 494 px / 1160px = 0.4258 */
	height: 333px;
	color: #fff;
	font-family: "Comfortaa-Light";
	font-size: 1.2em;
	text-align: center;
	padding-top: 120px;
	box-sizing: border-box;
	float: left;
}

#quote h2 {
	margin: 0;
}

#map {
	position: relative;
	overflow: hidden;	
}

#map iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	border-width: 0px;
}

#carousel, #catering {
	background-color: #4f7f70;
}

#carousel {
	max-height: 350px;
}

#story article {
	text-align: left;
	width: 100%;
	float: left;
}

#story img {
	width: 100%;
/*	display: block;
	margin: 10px auto 10px auto;
*/	border: #fff thin solid;
}

#story h3 {
	margin-top: 10px;
}



/* Media queries */

@media (max-width: 1150px) {
	
	body {
		background-color: #58595b;
	}

	nav {
		width: 58.9%; /* 480px / 814px = 0.589 */
	}
	
	footer {
		position: relative;
		top: -333px;
	}
	
	header, main, footer {
		width: 100%;
		margin:0;
	}
	
	.rest {
		position: relative;
		top: -333px;
		margin: auto;
	}
	
	#wrapper {
		width: 100%;
	}
	
	#info, #logo, #image {
		width: 41%; /* 333px / 814px = 0.409 */
	}
	
	#image {
		position: relative;
		top: -333px;
	}

	#description {
		width: 59%; /* 481px / 814px = 0.590 */
		height: 666px;
		font-size: 1.4em;	
	}
	
	#quote {
		width: 41%; /* 333px / 814px = 0.409 */
		float: none;
		font-size: 1em;
		position: relative;
	}
	
	#quote h2 {
		position: absolute;
		width: 100%;
	}	
	
	#quote h2::after {
		float: left;
	}
	
	#map {
		width: 59%; /* 481px / 814px = 0.590 */
		float: right;
		top: -333px;
	}

}

@media (max-width: 980px) {
	
	main, header, nav, footer {
		width: 100%;
 }
	
	nav {
		background-color: rgba(235,235,235,.7);
		margin: 0 auto;
		float: none;
	}	
	
	nav ul {
		float: left;
		margin: 0 auto;
		padding: 0;
		width: 100%;
	}

	nav ul li {
		background-color: #4f7f70;
		width: 130px;
		height: 30px;
		padding-top: 8px;
		text-align: center;
		border-radius: 10px;
		font-size: 1.1em;
		margin: 0 10px 0 10px;
	}
	
	nav ul li a:hover {
		background-color: #7aa58e;
		border-radius: 10px;
		text-decoration: none;
	}
	
	nav ul li a:visited {
		text-decoration: none;
	}
	
	nav ul li:last-child {
		float: right;
	}
	
	footer {
		top: auto;
		text-align: center;
	}
	
	footer h3 {
		float: none;
		margin: 0;
	}

	.rest {
		top: auto;
	}
	
	.rest article {
		width: 50%;
		float: none;
		margin: 0 auto;
	}
	
	#wrapper {
		width: 100%;
	}
	
	#logo, #info, #description, #map {
		width: 100%;
		top: auto;
		float: none;
	}
	
	#some_icons a:visited {
		text-decoration: none;
	}
	
	#description {
		height: auto;
		padding-bottom: 30px;
		text-align: center;
	}

	#logo {
		margin: 0;
	}
	
	#image, #quote {
		display: none;
	}
	
	#carousel {
		display: none;
	}
	
	#story article {
		width: 100%;
		clear: both;
	}
	
	#story img {
		margin: 0 auto;
	}
	
}

@media (max-width: 682px) {
	
	nav {
		display: none;
	}
	
	nav ul {
		background-color: #f00;
	}
	
	nav ul li {
		border-radius: 0;
		border-bottom: #fff solid thin;
		margin: 0;
		float: none;
		width: 100%;
	}

	nav ul li:last-child {
		float: none;
	}
	
	#hamburger {
		display: block;
		background: none;
		position: absolute;
		top:  190px;
		right: 10px;
		padding: 5px 10px;
		border: 0;
		color: #4f7f70;
		font-size: 2em;
		font-weight: bold;
		cursor: pointer;
		outline: none;
	}
	
	#catering article, #feast article {
		float: none;
		width: auto;
		text-align: center;
	}
	
	.textWrap {
		margin: 0;
		float: none;
	}
	
}
