.container {
	text-align: center;
}

.enlarge {
	font-size: 2rem;
	margin: 2rem auto;
}

h2 {
	margin-bottom: 4rem;
}

ul {
	list-style-position: outside;
	list-style-type: none;
}

nav {
	background-color: #222222;
	color: #FFFFFF;
	overflow-x: auto;
	overflow-y: hidden;
}

.navigation {
	list-style-type: none;
	margin: 0;
	height: 6rem;
	white-space: nowrap
}

.navigation li {
	height: 6rem;
	line-height: 6rem;
	vertical-align: middle;
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {
	.navigation li {
		margin: 0 30px 0 0;
	}
}

.navigation li a  {
	height: 6rem;
	line-height: 6rem;
	vertical-align: middle;
	color: #CACACA;
	text-decoration: none;
	-webkit-transition: color 0.2s ease;
	-o-transition: color 0.2s ease;
	transition: color 0.2s ease;
}

.navigation li a:hover {
	color: #0FA0CE;	
}

.navigation li a > img {
	width: 4rem;
	height: 6rem;
}

body.docked-nav nav {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 10;
}

.MD_logo {
	height: 90px;
}

.navigation li {
	display: inline-block;
	position: relative;
	margin: 0 12px 0 0;
}

#location {
	padding: 0;
}

#resources a:hover {
	color: #c4e1ea;
}


.fullsize {
	width: 100%;
	padding-top: 2rem;
	padding-bottom: 2rem;
	background-position: center center;
	background-repeat: no-repeat;
	
	background-size: cover;
	-moz-background-size: cover;
	-webkit-background-size: cover;
}

/* Larger than tablet */
@media (min-width: 1025px) {
	.fullsize {
		background-attachment: fixed;
	} 
}

#intro {
	background-image: url('../images/intro.jpg');
	padding: 16rem 0 2rem;
	background-color: #222222;
	color: #FFFFFF;
}

.intro_title {
	font-weight: 400;
}

.gallery {
	background-color: #222222;
}

.gallery img {
	width: 100%;
}

#facts {
	color: rgb(129, 214, 240);
	background: url('../images/outlets.png') repeat;
}

.counter-item {
	margin-bottom: 6rem;
}

.counter-icon > svg {
	max-width: 15rem;
}

#facts .counter-icon > svg > g {
	fill: rgb(129, 214, 240);
}

.counter {
	font-size: 3.5rem;
}

/* Larger than mobile */
@media (min-width: 400px) {
	.counter {
		font-size: 2rem;
	}
}


@media (min-width: 1000px) {
	.counter-item {
		margin-bottom: 2rem;
	}
	
	.counter {
		font-size: 3.5rem;
	}
}

.counter-icon {
	display: block;
	
}

#community {
	background-image: url('../images/MD_map.jpg');
	color: #FFFFFF;
}

#history {
	background-color: #F2F4F4;
}

#contact {
	background-image: url('../images/pharmacist-shelves1.jpg');
	color: #EAEAEA;
}

#resources {
	border-top: 4px solid #0FA0CE;
	background-color: #1C1C1C;
	color: #888888;
}

/* Larger than mobile */
@media (min-width: 400px) {	
	.fullsize {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
	
	#intro {
		padding: 8rem 0 2rem;
	}
}

/* Larger than tablet */
@media (min-width: 750px) {	
	.fullsize {
		padding-top: 8rem;
		padding-bottom: 8rem;
	}
	
	#intro {
		padding: 25rem 0 6rem;
	}
}

.overlay {
	position: relative;
	z-index: 1;
}

.overlay:before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.6);
}

/****************/
/* TIMELINE */
/***************/
.timeline {
	list-style: none;
	position: relative;
}

.timeline:before {
    background-color: #e1e1e1;
    bottom: 0;
    content: " ";
    left: 50%;
    margin-left: -1px;
    position: absolute;
    top: 0;
    width: 2px;
}

.timeline > li {
	position: relative;
	margin-bottom: 2rem;
}


.timeline-start span {
	background-color: #444444;
	color: #FFFFFF;
	display: inline-block;
	padding: 10px;
	
	border-radius: 6px;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
}

.timeline > li > .timeline-badge {
	display: none;
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {
	.timeline > li > .timeline-badge {
		width: 10px;
		height: 10px;
		margin: 16px 0 0 -5px;
		display: inline-block;
		top: 0;
		background-color: #444444;
		position: absolute;
		z-index: 1;
		text-align: center;

		border-radius: 50%;
		-moz-border-radius: 50%;
		-webkit-border-radius: 50%;
	}
	
	.timeline > li.right-side > .timeline-badge {
		background-color: #0fa0ce;
	}
}

.timeline > li > .timeline-event {
	text-align: left;
	
	
	border-radius: 6px;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	
	box-shadow: 0 0 3px 0 rgba(0,0, 0, 0.3);
	-webkit-box-shadow: 0 0 3px 0 rgba(0,0, 0, 0.3);
	-moz-box-shadow: 0 0 3px 0 rgba(0,0, 0, 0.3);
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {
	.timeline > li > .timeline-event {
		width: 45%; 
	}
	
	.timeline > li.right-side > .timeline-event {
		margin-left: 55%;
	}
}

.timeline-event-heading {
	padding: 1rem;
	background-color: #444444;
	color: #FFFFFF;
	position: relative;
	
	border-radius: 6px 6px 0 0;
	-moz-border-radius: 6px 6px 0 0;
	-webkit-border-radius: 6px 6px 0 0;
}

.timeline > li.right-side .timeline-event-heading {
	background-color: #0fa0ce;
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {
	.timeline-event-heading:before {
		content: '';
		left: 100%;
		top: 50%;
		height: 0;
		width: 0;
		border: solid transparent;
		position: absolute;
		border-color: rgba(15, 160, 206, 0);
		border-left-color: #444444;
		border-width: 10px;
		margin-top: -10px;
	}


	.timeline > li.right-side .timeline-event-heading:before {
		left: auto;
		right: 100%;
		border-left: none;
		border-right-color: #0fa0ce;
	}
}

.timeline-event-body {
	padding: 1rem;
	background-color: #FFFFFF;
	
	border-radius: 0 0 6px 6px;
	-moz-border-radius: 0 0 6px 6px;
	-webkit-border-radius: 0 0 6px 6px;
}

.timeline-event-heading > img {
	max-width: 5rem;
	margin: 0 1rem 0 0;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

.timeline-event-heading > * {
	vertical-align: middle;
}

