/* ----- BASE STYLES ----- */

html { 
	font-size: 18px;
}

body {
	color: #333e48;
	font-family: 'Nunito', sans-serif;
	font-size: 1em;
}

.container{
	max-width: 1200px;
	width: 100%;
	display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
}

h1,
h2,
h3 {
	color: #5f6151;
	font-weight: 600;
}

h1 {
	font-size: 1.666em;
	margin: 1.2em auto .7em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0 2em;
	line-height: 1.2;
}
h2 {
	font-size: 1.611em;
	line-height: 1.4em;
	margin: 0 auto .5em;
}
h3 {
	font-size: 1.555em;
}

p {
	color: #7f7f7f;
    font-size: 1em;
    line-height: 1.4;
	margin: 20px 0 0 0;
}

p strong {
	font-weight: bold;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.script {
	font-family: 'Dancing Script', cursive;
	color: #5f6151;
	font-weight: 700;
}

a {
	color: #7f7f7f;
	font-size: 1em;
	text-decoration: none;
}

a:hover {
	color: black;
}

a.email-address:hover {
	color: black !important;
}

img {
	box-sizing: border-box;
	max-width: 100%;
}

div > img:first-child {
	margin-top: 0;
}

/* ----- HEADER ----- */

header {
	background: url('../img/ballet-class-for-children-in-pink-leotard-sitting.png');
	background-size: cover;
	background-position: 100% 75%;
	text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    padding-bottom: 500px;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
	width: 100%;
}

header h1 {
	width: 100%;
}

header nav {
	width: 100%;
	background: #e2e5cb;
}

header nav ul {
	margin: 0;
	padding: 0;
}
header nav ul li {
	text-transform: none;
	font-size: 1em;
	padding: 10px 10px;
	list-style: none;
	border-top: 3px solid white;
}

header nav ul li a{
	text-decoration: none;
	color:#5f6151;
	font-size: 1em;
}

header .subhead {
	font-size: 2em;
	line-height: 1.2em;
	margin: 1em auto .5em;
	color: #b2a6a6;
	padding: 0 1em;
}

header .subhead .script {
	color: #b2a6a6;
}

.clear {
	clear: both;
}

/* ----- ABOUT ----- */

#about {
	background-color: #fff;
	display: block;
}

.about-section {

}

#about img#about-img {
	margin: 35px;
	border: 12px solid #fff;
	align-self: center;
}

#about h2 {
    padding: 0 25px;
}

#about p {
	color: #7f7f7f;
    font-size: 1em;
    line-height: 31px;
	margin: 20px 0 0 0;
}

/* ----- MISSION ----- */
#mission {
	background-color: #f4f2f3;
	display: block;
	text-align: center;
	clear: both;
}
#mission h2 {
	font-size: 2.66em;
	margin-bottom: 0;
}

/* ----- CLASSES ----- */

#classes {
	display: block;
	clear: both;
}

.primary-button {
	text-decoration: none;
	color:#5f6151;
	font-size: 1.222em;
	background-size: 100%;
    box-sizing: border-box;
    margin: 25px auto;
    text-align: center;
    width: auto;
    cursor: pointer;
    background: linear-gradient(to bottom,#e2e5cb 4%,#bcc388 96%);
    border-radius: 3px;
    padding: .8em 1.5em;
    border-radius: 3px;
}

#seasonal-classes {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-flow: row wrap;
}

#seasonal-classes ul {
    color: #7f7f7f;
    font-size: 1em;
    line-height: 31px;
    padding: 0 50px;
    margin: 18px 0px 0px 80px;
}

/* ----- SIGN UP ----- */
#signUp {
	background-color: #e9e7e6;
	display: block;
	clear: both;
	text-align: center;
}
#signUp .primary-button {
	display: inline-block;
}

/* ----- CONTACT ----- */

#contact {
	background-color: #f4f2f3;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-flow: row wrap;
}

#contact img#contact-img {
	border: 12px solid #fff;
	margin: 0;
}

#contact .contact-image {
	order: 2;
}

#contact .contact-details {
	order: 1;
	margin: 35px;
	text-align: center;
}

#contact h2 { 
   text-align: center;
   margin: 0px;
}

#contact a {
	color: #5f6151;
	font-size: 1em;
	text-decoration: none;
}

#contact p {
	color: #5f6151;
	font-size: 1em;
	text-decoration: none;
	margin: 10px auto;
}

/* ----- RESPONSIVE ----- */

#about,
#mission,
#classes,
#signUp,
#contact {
	padding: 30px;
}

/* Desktop stysle here */
@media only screen and (min-width: 900px) {

	#about,
	#mission,
	#classes,
	#signUp,
	#contact {
		padding: 50px;
	}
	
	.container {
		max-width: none;
		display: block;
	}

	.content-wrapper {
	    display: flex;
	    justify-content: space-around;
	    align-items: center;
	    flex-basis: 100%;
	}

	header {
	    padding-bottom: 400px;
	    justify-content: flex-start;
	    height: 100px;
	}
	
	header .content-wrapper {
		padding: 0 2em;
	}


	header h1 {
		width: 35%;
		text-align: left;
		font-size: 1.2em;
		margin: 25px auto;
		padding: 0;
	}

	header nav {
		width: 30%;
		background: none;
		margin: 25px auto;
		flex-grow: 1.25;
	}

	header nav ul {
		display: flex;
	    align-items: center;
	    justify-content: flex-end;
		width: auto;
	}

	header nav ul li {
		text-transform: none;
		font-size: 1em;
		padding: 10px 10px;
		list-style: none;
		border-top: none;
		margin-left: 5vw;
	}

	header h2 {
	    font-size: 2em;
	    margin: 50px 105px;
	}
	
	header .subhead {
		font-size: 3em;
		margin: 2.5vw auto;
	}

	span {
		margin-left: 47px;
	}

	#contact {
		justify-content: space-evenly;
	}
	img[style*="float: left"], img[style*="float:left"] {
		margin-right: 50px;
		margin-bottom: 50px;
		max-width: calc(50% - 25px);
	}
	img[style*="float: right"], img[style*="float:right"] {
		margin-left: 50px;
		margin-bottom: 50px;
		max-width: calc(50% - 25px);
	}
}


/* Mobile styles here */
@media only screen and (max-width: 899px) {
	img[style*="float: left"], img[style*="float:left"], img[style*="float: right"], img[style*="float:right"] {
		float: none !important;
		margin: 20px 0 35px;
		display: block;
		width: 100%;
	}
	#about h2 {
		text-align: center;
	}
}