/* DEVICE & RESPONSIVE LAYOUT */
.header .nav-open-button {
    display: none; /* removes the nav toggle button for desktop site */
}
#media-query-trigger {
    /* instead of detecting the width of the window in simple/javascript/script.js it detects the visibility of this element (which is set using media queries) 
    instead to trigger the hiding/showing of nav and search in mobile mode */
    display: none;
    visibility: hidden;
}

@media only screen and (max-width: 1024px) {
	
	.tagline {
		position: relative;
		right: auto;
		bottom: auto;
		margin-top: 15px;	
	}
	
	.logo img{
		max-width: 100%;
	}
	
	.typography .intro { 
		font-size: 40px;
		line-height: 35px;
		padding-right: 0;
	}
}

@media only screen and (max-width: 360px) {

	.logo img{
		max-width: 90%;
	}
	
	.typography h2 {
		font-size: 22px;
		line-height: 25px;
	}
	
	.typography p {
		font-size: 17px;
		line-height: 20px;
	}
	
	.typography .intro { 
		font-size: 23px;
		line-height: 25px;
	}
	
	.typography p {
		line-height: 25px;
	}
	
	.tagline {
		font-size: 15px;	
	}
	
}

/* BREAKPOINT 960px */

@media only screen and (max-width: 960px) {
	.content img {
	    max-width: 97%;
	    height: auto;
	}
	.header .primary ul {
	    margin-left: -12px;
	    -webkit-padding-start: 0px; /* removes default webkit padding on ul items */
	}
	
	.header .banner {
		padding-top: 35px !important;
	}
	
	.main {
		padding: 0;
	}
	
	.inner {
		padding: 10px 30px!important;
	}
	
}

/* BREAKPOINT 640px */

/* when changing the breakpoint below, change it ito the same value in the script.js file as well */
@media only screen and (max-width: 640px) { 
	body {
	    max-width: 640px;
	}
	#media-query-trigger {
	    visibility: visible;
	}
	
	.logo {
		margin: 0 auto;
		max-width: 342px;
		display: block;
	}
	
	.tagline {
		text-align: center;
	}
	
	.footer {
		padding-top: 20px;
	}
	
	.footer .copyright {
		display: block;
		float: none;
		text-align: center;
	}
	
	.footer .copyright .footer-logo {
		display: block;
		margin: 0 auto;
		margin-bottom: 15px;
	}
	
	.footer .social {
		float: none;
		margin: 0 auto;
		width: 100px;
	}

	/* Navigation*/
	
	.tablet-nav .header .primary .nav-open-button { /* styling and positioning of the nav toggle button */
		z-index: 100;
		width: 20px;
		height: 20px;
		position: absolute;
		right: 20px;
		top: 35px;
		display: block;
		cursor: pointer;
		font-family: 'WebSymbolsRegular';
		font-size: 20px;
		color: #F00;
	}
	.tablet-nav .header .primary ul {
		z-index: 10;
		position: relative;
		display: none; /* initially hiding the navigation */
		float: left;
		margin: 0;
		padding: 0;
		white-space: normal;
		width: 100%;
	}
		.tablet-nav .header .primary ul li {
			width: 100%;
			margin: 0;
			padding: 0;
			float: none; /* displays list items vertically */
			background: none;
			position: relative;
			text-shadow: 0 1px #fff;
		}
		.tablet-nav .header .primary ul li:after { /* creates the arrow for the primary nav links */
			content: '\003e';
			display: block;
			position: absolute;
			right: 20px;
			top: 0px;
			font-family: 'WebSymbolsRegular';
			font-size: 14px;
			color: #999;
			text-align: center;
			vertical-align: middle;
			line-height: 38px;
		}
		.tablet-nav .header .primary ul li a,
		.tablet-nav .header .primary ul li.current a,
		.tablet-nav .header .primary ul li.section a { /* styling the  top level nav links */
			padding: 10px 0 10px 22px;
			font-weight: bold;
			border-bottom: 1px solid #bbb;
			color: #434343;
			background: #e7e7e7;
		}
		.tablet-nav .header .primary ul li.current a,
		.tablet-nav .header .primary ul li.section a {
			background: #CCCCCC; /* makes background on current top level page slightly darker */
		}
		.tablet-nav .header .primary ul li a:hover {
			color: inherit;
		}
		.tablet-nav .header .primary li.section:after,
		.tablet-nav .header .primary li.current:after {
			display: none; /* hides the link arrow on current top level page */
		}
		.tablet-nav .tablet-nav .header nav.primary ul li {
			padding: 0;
		}
}