@charset "utf-8";
/* CSS Document */
@font-face {
	font-family: Aero;
	src: url("fonts/Aero.ttf");
}

@font-face {
	font-family: Froadmile;
	src: url("fonts/FroadmileNoNumbers.ttf");
}

/* Big screens */

@media screen and (min-width: 800px) {
	
	#gallery {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: auto;
	}
	
	.galleryphotocontainer {
		display : flex;
		align-content: center;
		align-items: center;
		border: .5em solid maroon;
		margin: 2em 4em;
		padding: 2em 1em;
	}
	.galleryphoto {
		width: 90%;
		margin: auto;
		border: .2em solid black;
	}
	
	#closebtn, .openbtn {
		display: none;
	}
	
	#page5content {
		display: grid;
		grid-template-columns: auto auto auto;
	}
	
	.biobox h1 {
		text-align: center;
		color: maroon;
		font-size: 2vw;
	}
	
	.biobox p {
		margin: 1em 3em;
		font-size: .75vw;
		text-align: center;
	}
	
	.biobox img {
		display: block;
		margin: auto;
		width: 80%;
		height: 50%;
		border: .3em solid maroon;
		border-radius: .5em;
	}
	
	.episodebox {
		border: .5em solid maroon;
		border-radius: .3em;
		margin: .5em;
		background-color: lightgray;
		display: flex;
		align-content: center;
	}
	
	.episodebox iframe {
		width: 32vw;
		height: 18vw;
		padding: 1em 0;
		margin: auto;
	}
	
	.episodebox h1 {
		color: maroon;
		font-size: 1.2vw;
		padding: 0 .5em;
	}
	
	.episodebox p {
		color: black;
		font-size: .75vw;
	}
	
	.episodebox iframe {
		margin: auto;
		width: 80%;
	}
	
	#episodeboxlist {
		grid-column-start: 2;
	}
	
	#radiohead {
		display: grid;
		width: 100%;
		grid-column-start: 2;
	}
	
	#radiohead img {
		width: 60%;
	}
	
	#radioheadtext {
		grid-row-start: 1;
	}

	#radiohead p, #radiohead h1, #radiohead h2, #radiohead h3 {
		margin: 0;
	}

	#radiohead p {
		margin: .5em 0 1.5em 0;
		font-size: .75vw;
		width: 65%;
	}

	#radiohead h1 {
		color: olivedrab;
		font-weight: lighter;
		font-size: 2vw;
	}

	#radiohead h2 {
		font-size: .85vw;
	}

	#radiohead h3 {
		font-size: .9vw;
	}
	
	#speedwaybox {
		text-align: center;
		display: grid;
		grid-template-rows: auto auto auto;
		grid-template-columns: auto auto;
		width: 60%;
		margin: auto;
	}
	
	#speedwaybox img {
		grid-column: 2 / 2;
		grid-row: 1 / 4;
	}
	
	#speedwaybox a {
		margin: auto;
	}
	
	#page3content p, #page3content a, #page3content h1 {
		text-align: center;
	}
	
	.contentbox {
		display: grid;
		grid-template-columns: 25% 50% 25%;
		grid-auto-rows: 4;
	}
	
	#storyp1, #storyp2, #storyp3 {
		text-align: center;
		font-size: .8vw;
	}
	
	#storyp3 {
		padding: 0px 10em;
	}
	
	.contentrow, .contentbox img, .contentbox p {
		grid-column-start: 2;
		margin: 16px;
	}
	
	#storyrow1 {
		display: grid;
		grid-template-columns: 45% 55%;
	}
	
	#storyrow2 {
		display: grid;
		grid-template-columns: 60% 40%;
	}
	
	#storyimg1, #storyp2 {
		grid-column-start: 1;
		grid-row-start: 1;
	}
	
	#storyimg2, #storyp1 {
		grid-column-start: 2;
	}
	
	
	#navbar a {
		color: black;
		text-decoration: none;
		line-height: 2.5rem;
		padding: 4px 10px;
		font-size: 1vw;
	}
	
	.centertext {
		position: absolute;
		top: 28vw;
		left: 50%;
		transform: translate(-50%, -40%);
		text-align: center;
	}
	
	.centertext p {
		font-size: 1vw;
	}
	
	h3, h4 {
		text-align: left;
	}
	
	h3 {
		font-size: 2.5vw;
		margin: 0px;
	}
	
	h4 {
		font-size: 1vw;
		font-style: italic;
		padding-bottom: 6vw;
	}
	
	.imageholder img {
		transform: translate(50%, 0%);
		width: 50%;
	}
	
	#logo {
		padding: 4px;
	}

}


/* Generic for any screen size */
* {
	font-family: Arial;
}


#page3content {
		display: block;
	}


#speedwaybox h1 {
		margin-bottom: 0;
	}

#speedwaybox h2 {
		font-weight: lighter;
		color: grey;
		font-size: 16px;
		margin-top: 0;
	}

#speedwaybox a {
		background-color: maroon;
		padding: 8px 12px;
		color: white;
		text-decoration: none;
		border-radius: 4px;
	}

.racelink, .noracing {
		color: black;
		font-size: 120%;
		font-weight: bold;
		margin: none;
	}
	
.noracing {
		text-decoration: none;
	}
	
.racedate {
		color: gray;
		font-size: 120%;
		padding-bottom: 40px;
	}


#storyimg1, #storyimg2, #footerimg {
		border: 2px solid black;
	}
	

#footerimg {
		width: 100%;
	}

#MFBanner {
	background-color: maroon;
	display: flex;
	align-content: center;
	padding: 4px;
	margin: 10px 0px;
}

#MFBanner img {
	margin-left: auto;
	margin-right: auto;
}


.contentrow {
	display: flex;
	align-items: center;
	align-content: center;
}

.contentrow p {
	font-size: .75vw;
}

.contentrow img {
	width: 80%;
	height: auto;
}
.centertext p {
		background-color: rgba(255,255,255,0.50);
	}


header {
	display: grid;
	grid-template-columns: 20% 15% 55% 10%;
}

#logo {
	display: inline-grid;
	grid-template-columns: 45% 55%;
	grid-template-rows: 60% 40%;
	grid-column: 2 / 3;
	margin: 0;
}

#logo h1 {
	font-family: Aero;
	color: maroon;
	font-size: 1.2vw;
	margin: 0;
	padding: 0;
}

#logo h2 {
	font-family: Arial;
	color: silver;
	font-size: 12px;
	grid-column-start:  2;
	margin: 0;
	display: inline;
	font-style: italic;
}

#logo img {
	width: 100%;
	height: auto;
	grid-row-start: 1;
	grid-row-end: 3;
	margin: 0;
	padding: 0;
}

.closebtn {
	display: none;
}


#navbar a:hover {
	color: maroon;
}

#footer {
	display: grid;
	grid-template-rows: 90% 10%;
	justify-content: center;
}

#sponsors {
	display: grid;
}

.sponsorRow {
	display: inline-grid;
	grid-template-columns: auto;
}

#sponsors img, #sponsors a {
	margin-left: auto;
	margin-right: auto;
}

#midrowContainer img {
	display: inline;
}

#midSponsorRow {
	justify-content: center;
}

#midSponsorRow img {
	display: inline;
}

#facebookcontainer {
	height: 100%;
	display: inline-flex;
}

#crbanner {
	display: grid;
	background-color: black;
	justify-content: center;
}

#crbanner p {
	color: white;
    display: inline-block;
	font-size: 16px;
	padding: 0px 10px;
}

#crimagecontainer {
	height: 100%;
	display: inline-flex;
	align-items: center;
}
/*End Generic CSS*/



/*Begin Mobile CSS*/

@media (max-width: 799px) {

/*Content*/
	
	.galleryphoto {
		width: 80%;
		margin: auto;
		border: .2em solid black;
	}
	
	.galleryphotocontainer {
		display : flex;
		align-content: center;
		align-items: center;
		border: .5em solid maroon;
		margin: 2em 4em;
		padding: 2em 1em;
	}
	
	.biobox {
		border: .5em solid maroon;
		margin: 1em 2em;
	}
	
	.biobox img {
		margin: auto;
		display: block;
		border: .2em solid black;
		border-radius: 2em;
		width: 70%;
	}
	
	.biobox p {
		margin: 1em 2em;
	}
	
	#radiohead, #radioheadtext {
		display: inline;
		text-align: left;
	}
	
	#radiohead p, #radiohead h1, #radiohead h2, #radiohead h3 {
		margin: 0;
		text-align: inherit;
	}
	
	#radiohead h1 {
		font-size: 7.5vw;
		color: olivedrab;
	}
	
	#radiohead h2 {
		font-size: 5vw;
	}
	
	#radiohead p {
		font-size: 3.1vw;
	}
	
	#radiohead h3 {
		font-size: 3.3vw;
	}
	
	#radiohead img {
		display: block;
		margin: auto;
		width: 50%;
	}
	
	.episodebox p, #episodeboxlist p {
		font-size: 3vw;
	}
	
	.episodebox iframe {
		margin: auto;
		width: 96vw;
		height: 44vw;
	}
	
	#speedwaybox {
		width: 100%;
		display: block;
		margin: auto;
		text-align: center;
	}
	
	#page2content {
		display: grid;
	}
	
	
	.imageholder {
		position: relative;
		text-align: center;
		padding-bottom: 200px;
	}
	
	.contentbox p, .contentbox h1 {
		text-align: center;	
	}
	
	.contentrow {
		display: grid;
	}
	
	.contentrow img {
		margin-left: auto;
		margin-right: auto;
	}
	
	.contentbox p {
		font-size: 3vw;
	}
	
	.imageholder img {
		width: 100%;
		margin-bottom: 10em;
	}
	
	.centertext {
		position: absolute;
		top: 55%;
		left: 5%;
		transform: translate(-5%, -60%);
	}
	
	#homebody p {
		font-size: 3vw;
	}
	
	h3 {
		font-size: 7vw;
		padding-bottom: 0px;
		margin-bottom: 0px;
	}
	
	h3, h4 {
		text-align: left;
	}
	

/* Header/Footer */
	header {
		display: block;
	}
	
	.openbtn {
		display: block;
		font-size: 48px;
		overflow-x: hidden;
		z-index: 1;
		top: 10vw;
		padding: 0 2vw;
		position: fixed;
		border-radius: 2em;
		
		background-color: maroon;
	}
	
	#navbar {
		overflow-x: hidden;
		z-index: 1;
		top: 0;
		position: fixed;
		width: 60%;
		background-color: black;
		height: 100%;
		border: .5em solid maroon;
		display: none; /* This changes via javascript */
	}
	
	#navbar a, #closebtn {
		font-family: Aero;
		text-decoration: none;
		display: block;
		text-align: left;
		color: maroon;
		width: 100%;
		border: solid 2px black;
		border-radius: 0px 6px 6px 0px;
		padding: 20px 8px;
	}
	
	#closebtn {
		background-color: grey;
	}
	
	#navbar a:hover, #closebtn:hover {
		color: silver;
	}
	
	#logo {
		width: 100%;
		grid-template-columns: 40% 60%;
	}
	
	#logo h1 {
		font-size: 6vw;
		text-align: right;
	}
	
	#logo h2  {
		font-size: 4vw;
		text-align: right;
	}
	

}