@import url('https://fonts.googleapis.com/css?family=Merriweather:300,700');
@import url('https://fonts.googleapis.com/css?family=Proza+Libre:500');
@import url('https://fonts.googleapis.com/css?family=Tenor+Sans');
@import url('https://fonts.googleapis.com/css?family=Stint+Ultra+Condensed');

/* first setting all general properties*/

body    { 
	/* max-width: 1200px;*/
	background-color: whitesmoke ;
	margin: 0 auto;
}


h1	{
	font-family: 'Merriweather', serif;
	color: black;
	font-size: 1.8vw;
	font-weight: 700;
	line-height: 3.5vw;
	margin: 3em 3em 0 3em;
	}
	
h2	{
	font-family: 'Merriweather', serif;
	color: black;
	font-size: 1.8vw;
	font-weight: 700;
	line-height: 3vw;
	margin: 1rem 1rem 1rem 1rem;
	text-align:center;
}
	
h4	{
	font-family: 'Merriweather', serif;
	color: black;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3rem;
	padding-bottom: 1.0em;
	margin: 2em 0.5em 0.5em 1em;
}
	
p	{
	margin: 1em 0.1em	0	0.5em;
	font-family: 'Merriweather', serif;
	font-size: 0.85rem;
	font-weight: 300;
	color: black;
	line-height: 1.2rem;
	margin-bottom: 1rem;
	}
	
a {
	color: black;
	text-decoration: underline;
	outline: none;
	}
	
a:visited	{
	color: black;
	text-decoration: underline;
}

a:hover {
	color: black;
	text-decoration: underline;
}

.underline	{

    width: 50%;
    margin: 0 auto;
    height: 1px;
    border-bottom: 1px solid black;
}
	
/* now setting header properties*/
		
header  {
    height: 18vw;
    /*border: 1px solid black;*/
    margin: 1% 2%;
    background-color: WhiteSmoke;
    /*background-color: AliceBlue;*/
    position: relative;
}

header a.logo	{ 
	background-image: url("../images/wava_logo_300_new.gif"); 
	display: block;
	width: 15vw;
	height: 15vw;
	background-position: 2% 2%;
	background-repeat: no-repeat;
	background-size: contain;
	margin: 2vw 0 0 1vw;
	}
/* see all choices for background size at 
	http://www.w3schools.com/cssref/css3_pr_background-size.asp */
		
header a.logo span	{ display: none; }
		
		
header h1.home_h1	{
	position: absolute;
	top: -5vw;
	left: 20vw;	
	}
	
/* NOW SETTING CSS FOR NAV. NAV IS A SIMPLE SINGLE ROW CONTAINING AN UNSORTED LIST AS A FLEXBOX */
	
nav ul	{
	display: flex;
	background-color: DarkSeaGreen;
	font-size: 1.3vw;
	font-family: 'Merriweather', serif;
	font-weight: 700;
	padding: 1.5vw 0 1.5vw 0;
	border-bottom: 1px solid black;
	border-top: 1px solid black;
	justify-content: space-around;
	margin: 0 auto;
	}
	
nav ul li {
	flex: 1 0 auto;
	text-align: center;
}

nav a	{
	text-decoration: none;
	}

nav a:visited	{
	color: black;
	text-decoration: none;
	}		
	
	
/* NOW SETTING THE THREE COLUMNS IN THE BODY. THESE 3 COLUMNS ARE DIVS, INSIDE A CONTAINER WITH A SECTION TAG. THE SECTION IS
A FLEX CONTAINER SO THE SIZES AND BEHAVIOUR OF THE 3 DIVS (THE 3 COLUMNS) ARE DETERMINED BY THE RULES OF FLEX */	
	
section.home	{
	display: flex;
	justify-content: space-between;
	margin: 3rem auto;
	width: 92%;
}

section > div:nth-child(2)	{
	flex: 1 2 60%;
}

section > div:nth-child(1), section > div:nth-child(3)		{
	flex: 0 2 20%;
	min-width: 11rem;
	}
	
section div.aside	{
	/*width: 15em;*/
	border: 1px solid black;
	border-radius: 3px;
	/* max-width: 15em; */
}

div.section		{
	border: 1px solid black;
	border-radius: 3px;
	margin: 0 3px 0 3px;
	flex-wrap: wrap;
	/* max-width: 65% */
	}



div.aside h3	{
	background-color: DarkSlateGray;
	color: whitesmoke;
	font-family: 'Merriweather', serif;
	font-size: 1.0rem;
	font-weight: 700;
	text-align: left;
	line-height: 1.3rem;
	padding: 0.2rem 0 0.2rem 0.8rem;
}

div.aside p		{
		font-size: .75rem;
		line-height: 1.0rem;
		margin-right: 0.5rem;
}


/* FOOTER */

footer div		{
	border-top: 1px solid black;
	}

footer div p	{
	font-size: 0.7rem;
	padding: 0.5rem 2rem 1rem 10%;
	background-color: DarkSeaGreen;
	border-top, : 1px solid black;
	margin: 0;
	}
	
.footer-bottom-border	{
	padding-bottom: 1rem;
	padding-top: 0;
	border-bottom: 1px solid black;
	margin-bottom: 2rem;
	}


@media screen and (max-width: 60em)	{
h1	{
	font-size: 1.2rem;
	margin: 0;
	}
	
header h1.home_h1	{
	position: absolute;
	top: 1vw;
	left: 17vw;	
	}
	
header a.logo	{ 
	width: 13vw;
	height: 13vw;
	margin: 2vw 0 0 1vw;
}

nav ul	{
	font-size: 1rem;
	}

div.aside h3	{
	font-size: 0.9rem;
	line-height: 1.3rem;
	padding: 0.2rem 0 0.2rem 0.4rem;
	}
}

@media screen and (max-width: 50em)	{

h1	{
	font-size: 1.1rem;
	}

h2	{
	font-size: 1.1rem;
	}
	
h1 .hide		{
	display: none;
	}
	
section.home	{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 3rem auto;
	width: 92%;
}

section > div:nth-child(1)	{
	width: 92%;
	order: 2;
	border-radius: 0;
	border-top, border bottom: none;
	}
	
section > div:nth-child(2)	{
	width: 92%;
	order: 1;
	border-radius: 3px 3px 0 0;
	border-bottom: none;
	}
	
section > div:nth-child(3)	{
	width: 92%;
	order: 3;
	border-radius: 0 0 3px 3px;
	border-top: none;
	}

section div.section, section div.aside		{
	width: 92%;
	padding: 0;
	margin: 0 auto;
	flex: 1 1 99%;
	}
}

@media screen and (max-width: 40em)	{

header a.logo	{ 
	background-image: none; 
	}

header h1.home_h1	{
	position: absolute;
	top: 1vw;
	left: 6vw;	
	}

h1	{
	font-size: 1.0rem;
	}

h2	{
	font-size: 1.2rem;
	}
section.home	{
	border: 0;
	width: 100%;
	margin: 2rem 0;
	}

section div.section, section div.aside		{
	width: 98%;
	padding: 0;
	margin: 0;
	flex: 1 1 100%;
	border: none;
	}

footer div p	{
	padding: 0.5rem 2rem 1rem 5%;
	}



}


@media screen and (max-width: 30em)	{

h1	{
	font-size: 0.7rem;
	line-height: 0.9rem;
	}

h2	{
	line-height: 1.5rem;
	}
	
header	{
	height: 5rem;
	}
	
header h1.home_h1	{
	top: 1vw;
	left: 5vw;	
	}

nav ul	{
	font-size: 0.8rem;
	}

footer div p	{
	padding: 0.5rem 2rem 1rem 5%;
	}

}
