body,section,.sectxt,.secpic {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: liberation-sans, "helvetica neue", arial, sans-serif;
	color: black;
}

header {
	display: flex;
	justify-content: space-around;
	width: auto;
	height: 15rem;
	background-image: url(../images/rear-disc-brake.webp.html);
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-color: #888;
}

header h1 {
	display:flex;
	flex-direction: column;
	justify-content: space-around;
	align-self: center;
	margin: 1.25rem auto;
	min-height: 160px;
	padding-left: 100px;
	font-size: 2rem;
	color: white;
	background-color: transparent;
	background-image: url(../images/l3c-logo-white.svg);
	background-repeat: no-repeat;
	background-position: -65px center;
	background-size: 230px 106px;
	filter: drop-shadow(-0.25rem -0.25rem 0.25rem rgba(0,0,0,0.4)) 
	        drop-shadow(0.25rem 0.25rem 0.25rem rgba(0,0,0,0.4))
            drop-shadow(0.25rem -0.25rem 0.25rem rgba(0,0,0,0.4)) 
            drop-shadow(-0.25rem 0.25rem 0.25rem rgba(0,0,0,0.4));
}

header h1 span {
	margin-right: 1rem;
}

nav ul, nav li { list-style: none; margin: 0; padding: 0; }

nav>ul {
	display: flex;
}

nav>ul>li {
	flex-basis: 16.6666%;
}

#home nav>ul>li {
	flex-basis: 20%;
}


nav a {
	display: block;
	padding: 1.25rem 0;
	text-align: center;
	text-decoration: none;
	background-color: #373;
	font-size: 1.3rem;
}

nav a[aria-current="page"] {
	font-weight: bold;
	background-color: #fff;
}

nav a:link {
	color: #fff;
}
nav a:visited {
	color: #eee;
}
nav a:active {
	color: #B44;
}

nav a[aria-current="page"]:link {
	color: #373;
}
nav a[aria-current="page"]:visited {
	color: #077;
}
nav a[aria-current="page"]:active {
	color: #B44;
}

hr {
	margin-top: -0.625rem;
	position: absolute;
	width: 100%;
	max-width: 1440px;
	height: 1.25rem;
	background-image: url(../images/joinable-link.webp.html); 
	background-repeat: repeat-x;
	background-size: contain;
	color: transparent;
	background-color: transparent;
	border-color: transparent;
	outline-color: transparent;
}

section {
	padding: 0 1rem 1.25rem 1rem;
}

#home section {
	display: flex;
	flex-direction: column;
	padding: 0;
}

.sectxt {
	order: 2;
	padding: 0 1rem;
	margin-bottom: 1.25rem;
}

.secpic {
	order: 1;
	min-height: 10rem;	
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

#home .intro {
	flex-direction: row;
	margin-top: 1.25rem;
}

.intro .sectxt {
	flex-basis: 50%;
}

.intro .secpic {
	flex-basis: 50%;
	order: 2;
	align-self: center;	
	background-image: url(../images/love-cycling.svg);
	background-size: contain;	
}

.intro li {
	list-style: none;
}

.fixie .secpic {
	background-image: url(../images/fixie-bike-girl.webp.html);
	background-position: center 18%;
	background-size: cover;
}

.spanner .secpic {	
	background-image: url(../images/bicycle-hub-nut-spanner.webp.html);
}

.brake .secpic {	
	background-image: url(../images/yellow-bike-tyre-red-wheel-rim.webp.html);
}


a:link {
	color: #373;
}
a:visited {
	color: #077;
}
a:active {
	color: #B44;
}

em {
	font-style: normal;
	font-weight: bold;
}

figure {
	padding: 1.25rem 1rem;
	outline: solid 1px black;
}

dt {
	margin-top: 1.25rem;
	font-weight: bold;
}

@media (min-width: 641px) {
	body {
		max-width: 1440px;
	    margin: 0 auto;		
	}

	#home section {
		flex-direction: row-reverse;
	}

	section :first-child {
		padding-top: 0.625rem;
	}

	.sectxt, .secpic{
		flex-basis: 50%;
		align-self: stretch;
	}

    .intro .secpic {
    	margin-top: 2.5rem;
    }
}
