@import url('https://fonts.googleapis.com/css?family=Mr+De+Haviland');

/*Instead of changing styles when the width gets smaller than 768px, we should change the design when the width gets larger than 768px. This will make our design Mobile First: 
However, older browsers that don't recognize the @media element will read the style first presented so the width larger than 768px should be placed at the top of the style sheet.*/

body {
  padding: 0;
  font-family: Futura, Arial, sans-serif;
  line-height: 1.25;
  background-image: url('Images/stars.jpg');
  background-size: 100%;
  background-position: top center;
  background-attachment: fixed;
  color: #ff9600; font-size: 1em;
  text-align: center;
}

/* First ensure that all HTML elements have the box-sizing property set to border-box.
This makes sure that the padding and border are included in the total width and height of the elements. This causes audio element border to cut into the audio element.
* {
	box-sizing: border-box;
}
*/
.row::after {
	content: "";
	clear: both;
	display: table;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dir, menu, div, 
dt, dd, address, blockquote, pre, br, hr, form, dl { 
	display: block
}

header, section, footer, nav, main, article, figure, audio {
  display: block;
}


canvas {
	border: 1px solid black;
}

li { display: list-item }

ad { display: none }

article {
	width: 100%;
}

aside {
	float: none;
	width: 100%;
}

.aside {
	float: none;
	width: 100%;
}

audio {
	margin: auto;
	padding: 10px;
	border: 1px solid;
}

figure {
	margin: 9px auto;
}

figcaption {
	line-height: 1.5;
}

footer {
	height: 100px; /* Height of the footer */
	position: relative;
	bottom: 0;
	margin-top: 10px;
	width: 100%;
}

header {
	text-align: center;
}

h1, h2, h3, h5, h6 { text-align: center }

h1, h2, h4, h6 {
	margin: .05em .1em;
}

h3 { margin: .05em 0 .1em }

h5 { font-style: italic }

@font-face {
	font-family: "Montepetrum";
	src: url("fonts/Montepetrum bold.ttf") format("truetype");
}

/*This code works with Safari 4.0, but not Firefox 3.6. font-family also doesn't validate as CSS 2.1.*/
@font-face {
	font-family: "Algerian";
	src: url("https://www.cbl-productions.com/fonts/ALGER.TTF") format("truetype");
}

@font-face {
	font-family: Tusj;
	src: url("fonts/FFF_Tusj.ttf") format("opentype");
}

/* class to hide nested objects in IE */
/* hides the second object from all versions of IE */
* html object.hiddenObjectForIE { display: none; }

/* display the second object only for IE5 Mac */
/* IE Mac \*//*/
* html object.hiddenObjectForIE { display: inline; }
/**/


h1 { font-family: "Mr De Haviland", Futura, sans-serif;
	font-size: 3em; /* 48px/12=4em */
	color: #ff9600
}

h2 {
	font-family: "Montepetrum", Futura, sans-serif;
	font-size: 2.5em; /* 36px/12=3em */
}
h3 {
	font-family: "Montepetrum", Futura, sans-serif;
	font-size: 2em; /* 24px/12=2em */
}
h4 { font-size: 1.5em; /* 18px/12=1.5em */ }
h5 { font-size: 1em; margin-bottom: 5px }
h6 { font-size: .75em }

main {
	padding: .25em 0;
	text-align: center;
}

section {
	margin: .05em auto;
	width: 100%;
	text-align: center;
}

.heading {
	margin: .05em auto;
	width: 100%;
	text-align: center;
}

stage {
	display: inline-block;
	width: 100%;
}

.stage {
	display: inline-block;
	width: 100%;
}

.video-max {
	max-width: 854px;
	margin: 0 auto;
}
.video {
	position: relative;
	padding-bottom: 56.206%;
}
.video iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	border: none;
}

video {
	width: 280px;
	height: auto;
}


#menu {
	text-align: left;
	padding: 2px
}

.swirl {
	background-image: url('Images/CBLlogoGlossyTV44x38.png');
	background-repeat: no-repeat;
	background-size: 15%;
	background-origin: border-box;
	background-position: left;
	padding: 3px;
}

table    { display: table }
tr       { display: table-row }
thead    { display: table-header-group }
tbody    { display: table-row-group }
tfoot    { display: table-footer-group }
col      { display: table-column }
colgroup { display: table-column-group }
td, th   { display: table-cell }
caption  { display: table-caption }

/*Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective! a:active MUST come after a:hover in the CSS definition in order to be effective */
a:link { color: green }          /* unvisited link */
a:visited { color: #d53d45 }        /* visited links */

.element {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.nav {
	display: block;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #000;
}

.nav ul {
	display: inline;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.nav ul li {
	display: block;
	list-style-type: none;
	float: left;
	width: 7.14%;
	text-align: left;
}

.flex-container {
	margin: .25em auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

.flex-container > div {
	margin: .25em;
	background-color: #000;
	width: 100%;
	text-align: center;
	line-height: 1;
}

.flex-container > div a {
	text-decoration: none;
}

.flex-container > div a:hover {
	background-color: #de7e9f;
}

prevnext {
	margin: .25em auto;
	width: 95%;
	height: 1.5em;
	display: block;
}

prevnext prev {
	float: left;
}

prevnext next {
	float: right;
}

prev a, next a {
	text-decoration: none;
}

.imageleft {
	float: left;
}

@media only screen and (max-width: 480px) {
	.nav ul li {	width: 100%;
	}
}

.nav ul li a {
	display: block;
	color: white;
	text-align: center;
	text-decoration: none;
	padding: 10px 0;
}

.nav ul li a:hover:not(.active) {
	background-color: #de7e9f;
}

.active {
	background-color: #4caf50;
}
p.justify { text-align: justify }

p.right { text-align: right; margin: 6px }

p.center { text-align: center;}

p.dropcap {
	font-family: Futura, Arial, sans-serif;
	font-size: 1em;
	color: #fff;
	text-align: justify;
	line-height: 1.2;
	margin: .5em 0;
}

p.dropcap:first-letter {
	font-family: Tusj;
	font-size: 2.75em;
	background-color: #7dacf0;
	color: #000;
	float: left;
	border: solid 1px blue;
	padding: .1em;
	margin: 0 .2em .2em 0 }

button.accordion {
	background-color: #7624dd;
	color: #42b50a;
	cursor: pointer;
	padding: .25em;
	width: 100%;
	border: none;
	text-align: center;
	outline: none;
	font-size: 1em;
	transition: 0.4s;
}

button.accordion.active, button.accordion:hover {
	background-color: #de7e9f;
	color: #fff;
}

div.panel {
	padding: .25em;
	text-align: left;
	display: none;
	background-color: #000;
}

div.panel li {
	line-height: 1.5;
}

#myAlternativeContent {
	display: block;
	text-align: center;
	margin: 0 auto 0;
}

#emailform {
	text-align: center;
	width: 312px;
	margin: 0 auto 0;
}

iframe {
	display: block;
	text-align: center;
	margin: 0 auto 0;
}

.blue {
	color: #0000ff;
}

.red {
	color: #ff0000;
}

img {
	max-width: 100%;
	height: auto;
}

label {
	margin-top: 2px;
}

.thumbnail:hover {
	position: relative;
	top: -25px;
	left: -35px;
	width: 100%;
	height: auto;
	display: block;
	z-index: 999;
}

@media only screen and (min-width: 768px) {
    /* For desktop: */
	ad { display: inline-block }

	article {
		width: 50%;
		margin: 20px auto;
	}
	
	aside {
		text-align: center;
		float: right;
		width: 25%;
	}
	
	.aside {
		text-align: center;
		float: right;
		width: 25%;
	}

	audio {
		margin: auto;
		padding: 14px;
		border: 1px solid;
	}
	
	body {
		padding: 6px;
		background-size: auto;
		line-height: 1;
		font-size: .85em;
		
	}
	h1 {
		font-size: 4em;
	}
	h2 {
		font-size: 3.5em;
	}
	h3 {
		font-size: 2.5em;
	}
	p.dropcap {
		font-family: Futura, Arial, sans-serif;
		font-size: 1em;
		color: #fff;
		text-align: justify;
		line-height: 1.2;
		margin: 3em 0;
	}

	p.dropcap:first-letter {
		font-family: Tusj;
		font-size: 3.1em;
		background-color: #7dacf0;
		color: #000;
		float: left;
		border: solid 1px blue;
		padding: .1em;
		margin: 0 .1em .05em 0 /* Top Right Bottom Left */
	}

	button.accordion {
		width: 50%;
	}

	div.panel {
		width: 50%;
		margin: 0 auto 0;
	}

	section {
		margin: 2em auto;
		width: 80%;
		height: auto;
	}
	
	.heading {
		margin: 2em auto;
		width: 80%;
		height: auto;
	}
	
	stage {
		width: 75%;
		max-width: 854px;
	}
	
	.stage {
		width: 75%;
		max-width: 854px;
	}
	
	.flex-container > div {
		width: 25%;
		line-height: 1.25;
	}

	.swirl {
		margin: auto;
		width: 65%;
		background-image: url('Images/CBLlogoGlossyTV88x76.png');
		background-repeat: no-repeat;
		background-size: auto;
		background-origin: border-box;
		background-position: left;
		padding: 12px;
		height: 100px;
	}
	
	video {
		min-width: 480px;
		max-width: 854px;
		height: auto;
	}

}
