@import url('https://fonts.googleapis.com/css?family=Lato:400,400i|Raleway:500,600');
/* todo

The subtitles under the cookies ('dark chocolate chips') were H4s (capital)
Under About, the "a castle of" was an h3 (big and cap) The h3s were h4s (smaller)

*/


/* ----------------------------------------
Base Styles
------------------------------------------- */
* {
	box-sizing: border-box;
}

body {
	font-family: 'Raleway', sans-serif;
	-webkit-font-smoothing: antialiased;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-align: center;
	color: #44545E; /*note: FONT COLOR */
	font-size: 15px;
}

img {
	max-width: 100%;
}

/* ----------------------------------------
Typography
------------------------------------------- */
p {
	font-family: 'Lato', sans-serif;
	text-transform: none;
	line-height: 1.4;
}

h1, h2, h3, h4 {
	font-weight: 600;
}

h1 {
	font-size: 2.5em;
	letter-spacing: 12px;
}

h2 {
	margin-bottom: 45px;
}

a {
	text-decoration: none;
	color: #7B98AA;
	font-weight: 600;
	transition: all .3s ease-in-out;
}

a:hover {
	color: #44545E;
}

/* ----------------------------------------
Layout
------------------------------------------- */
section {
	padding: 105px 30px;
}

/* maybe only in contact form */
.wrap {
	margin: 0 auto;
}

article {
	padding: 0px 0px 0px 20px;
}

.articles,
.gallery-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.about, .sustainability {
	color: white;
	background-color: rgb(89,103,14);
}

.about .articles, .ingredients .articles, .sustainability .articles {
	max-width: 1000px;
	margin: 0 auto;
}


/* ----------------------------------------
Header
------------------------------------------- */
header {
	padding-top: 30px;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: url('../images/castle.jpg');
	background-attachment: fixed;
	height: 100vh;
	display: flex;
  align-items: center;
  justify-content: center;
}

nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: white;
	z-index: 100;
}

ul a {
	text-transform: none;
}

ul {
	padding: 0;
	list-style: none;
}

nav li {
	display: inline-block;
	padding: 3px 70px;
}

nav a {
	font-weight: 600;
	letter-spacing: 0.75px;
	display: inline-block;
	border-bottom: none;
	text-transform: uppercase;
}

h1,
header h2 {
	color: #fff;
}


/* ----------------------------------------
Sweets
------------------------------------------- */
article {
	flex-basis: 32%;
}

/* ----------------------------------------
About
------------------------------------------- */
.about h2 {
	margin-bottom: 0;
}

.onethirdside {
	flex-basis: 40%;
	padding-top: 20px;
	padding-right: 1%;
		text-align: left;
}

.twothirdside {
	flex-basis: 60%;
	text-align: left;
}

/* ----------------------------------------
Footer
------------------------------------------- */
footer {
	background-color: #CDF3F6;
	overflow: auto;
}

.social-links {
	padding: 20px 15px 10px;
}

.social-links a {
	font-size: 2em;
	padding: 15px;
	display: inline-block;
	color: #44545E;
}

hr {
	border: none;
	border-bottom: 2px solid #44545E;
}


/* ----------------------------------------
Responsive Styles
------------------------------------------- */

@media screen and (max-width: 900px) {
	article, .onethirdside, .twothirdside {
		flex-basis: 100%;
		max-width: 500px;
		margin: 0 auto 50px;
	}
	.onethirdside {
			padding-top: 0px;
	}
}


@media screen and (max-width: 745px) {
	nav li {
		padding: 3px 40px;
	}
	.onethirdside {
			padding-top: 0px;
	}
}

@media screen and (max-width: 500px) {
	body {
		font-size: 14px;
	}
	.image-wrapper {
		flex-basis: 100%;
	}
	.image-wrapper img {
		margin-bottom: 10px;
	}
	nav li {
		padding: 3px 10px;
	}
	.about p,
	article p {
		text-align: left;
		line-height: 1.5;
	}
	.onethirdside {
			padding-top: 0px;
	}
}


/* ----------------------------------------
FORMS
------------------------------------------- */


/* input placeholder */

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder, input::-moz-placeholder, textarea::-moz-placeholder, input::placeholder, textarea::placeholder, input::-ms-placeholder, textarea::-ms-placeholder {
  color: #aca49c;
  font-size: 1em;
}

input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder, input:focus::-moz-placeholder, textarea:focus::-moz-placeholder, input:focus::-ms-placeholder, textarea:focus::-ms-placeholder, input:focus::placeholder, textarea::focus:placeholder {
  color: white;
  font-size: 1em;
}

/* on hover placeholder */

input:hover:focus::-webkit-input-placeholder, textarea:hover:focus::-webkit-input-placeholder, input:hover::-moz-placeholder, textarea:hover::-moz-placeholder, input:hover:focus::-moz-placeholder, textarea:hover:focus::-moz-placeholder, input:hover::placeholder, textarea:hover::placeholder, input:hover:focus::placeholder, textarea:hover:focus::placeholder, input:hover::placeholder, textarea:hover::placeholder {
	color: white;
	font-size: 1em;
}

input:hover::-webkit-input-placeholder, textarea:hover::-webkit-input-placeholder, input:hover:focus::-ms-placeholder, textarea:hover::focus:-ms-placeholder {
  color: white;
  font-size: 1em;
}


/* Form Specifics */

#form {
  position: relative;
  width: 50%;
  margin: 50px auto 100px auto;
	text-transform: none;
}

.theform, .contact h3 {
		text-transform: none;
}


/* Form fields */

.shrinkform {
  width: 50%;
  max-width: 50%;
	box-sizing: content-box;
  font-size: 1em;
	color: black;
	background-color: #e3fbe3;
  outline: none;
  border: solid 1px #b3aca7;
  border-bottom: none;
	outline: none;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
}

input {
  height: 50px;
  padding: 0px 15px 0px 15px;
}

input:hover, input:focus  {
	color: white;
	background-color: #FAFAD2;
}

textarea {
  height: 200px;
	padding: 15px;
	resize: none;
}

textarea:hover, textarea:focus {
	color: white;
	background-color: #FAFAD2;
}

#radios {
  padding: 15px;
	max-height: 200px;
	display: inline-block;
}

#submit:hover, #submit:focus  {
	color: white;
	background-color: #e3fbe3;
}
