/* NEW css at bottom of file to override old stuff */
body {
	font: 92%/1.4 Verdana, Arial, Helvetica, sans-serif;
	background-color: #EBCDAF;
	margin: 0;
	padding: 0;
	color: #000;
}
/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
	padding: 0;
	margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
	margin-top: 5px;	 /* removing the top margin gets around an issue where margins can escape from their containing block. The remaining bottom margin will hold it away from any elements that follow. */
	margin-bottom: 5px;
	padding-right: 15px;
	padding-left: 15px; /* adding the padding to the sides of the elements within the blocks, instead of the block elements themselves, gets rid of any box model math. A nested block with side padding can also be used as an alternate method. */
}
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
	border: none;
}
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
	color: #4F2908;
	text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
	color: #4C3011;
	text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
	text-decoration: none;
}
/* ~~ This fixed width container surrounds all other blocks ~~ */
#container {
	margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
/*	max-width: 960px; */
	min-width: 320px;
}
#header {
	text-transform: uppercase;
	text-align: center;
	background-color: rgba(173,185,110,0.35);
	font-size: medium;
	border-radius: 5px;
	border: thin solid #024D1E;
	padding-top: 10px;
	padding-bottom: 0px;
}
#header h1 {
	font-size: x-large;
}
#header h2 {
	font-size: medium;
	font-weight: lighter;
}
#header h3 {
	font-size: x-small;
	font-weight: lighter;
}




/* ~~ This grouped selector gives the lists in the .content area space ~~ */
.content ul, .content ol {
	padding: 0 15px 15px 20px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
}

.navbar {
	text-transform: uppercase;
	text-align: left;
	padding-left: 5px;
	background-color: rgba(173,185,110,0.50);
	padding-right: 5px;

}


/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
nav ul{
	list-style: none; /* this removes the list marker */
	border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
	margin-bottom: 15px; /* this creates the space between the navigation on the content below */
}
nav li {
	border-bottom: 1px solid #666; /* this creates the button separation */
}
nav a, nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
	padding: 2px 2px 2px 5px;
	display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
	/* width: 160px;*/  /*this width makes the entire button clickable for IE6. If you don't need to support IE6, it can be removed. Calculate the proper width by subtracting the padding on this link from the width of your sidebar container. */
	text-decoration: none;
}
nav a:hover, nav a:active, nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
	background-color: rgba(173,185,110,0.80);

}




/*HTML 5 support - Sets new HTML 5 tags to display:block so browsers know how to render the tags properly. */
header, section, footer, aside, article, figure {
	display: block;
}




.flex img {
	border-style: solid;
	border-width: thin;
	display: block;
}
.flex {
	position: static;
	display: block;
/*	padding-right: auto;
	padding-left: auto;
*/
}

body figure {
	position: relative;
	left: auto;
	right: auto;
}

.audiourl {
	height: 27px;
        border-radius: 7px;
        /*background: rgb(173, 185, 110);*/
}

@supports (-webkit-appearance:none) and (R:0) {
     .audiourl { height: 54px; } 
}

.bgwrapper  {
	position: fixed;
	top: 0;
	left: 0;
	/* max-width: 100%; */
	width: 100%;
	height: 100%;
	background-image: url('/images/barkhousebg.png');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	opacity: 0.3;
	filter:opacity(30);
	z-index: -10;
}

#container {
	max-width: 98vw;
	min-width: 320px;
	float: none;
	padding-top: 10px;
	padding-bottom: 10px;
	display: grid;
        grid-template-columns: 25% 25% 25% 25%;
        grid-template-rows: auto auto auto auto;
        grid-row-gap: 0em;
        grid-column-gap: 0em;
}


#header {
	margin-top: 34px;
	padding-top: 3px;
	padding-right: 5px;
	padding-bottom: 2px;
	padding-left: 5px;
	border-radius: 5px 5px 0px 0px;
	border-left: thin solid #024D1E;
	border-top: thin solid #024D1E;
	border-right: thin solid #024D1E;
	border-bottom: none;
	text-transform: uppercase;
	text-align: center;
	background-color: rgba(173,185,110,0.25);
	font-size: medium;
        grid-column-start: 1;
        grid-column-end: 5;
	grid-row: 2 / 3;
/*        grid-row-start: 1;
        grid-row-end: 2;*/
}	


#horizon-nav {
	border: none;
	width: 100vw;
	position: fixed;
	top: 0px;
	left: 0px;
	margin: unset;
	padding: unset;
	background-color: rgba(173,185,110,1.0);
	display: grid;
	grid-template-columns: repeat(8, auto);
	grid-template-rows: auto;
	justify-items: center;
	z-index: 10;	
}

#home {
	grid-row: 1 / 2;
	grid-column: 1 / 2;
}
#lessons {
	grid-row: 1 / 2;
	grid-column: 2 / 3;
}
#stories {
        grid-row: 1 / 2;
        grid-column: 3 / 4;
}
#charts {
	grid-row: 1 / 2;
	grid-column: 4 / 5;
}
#searches {
	grid-row: 1 / 2;
	grid-column: 5 / 6;
}
#games {
	grid-row: 1 / 2;
	grid-column: 6 / 7;
}
#database {
	grid-row: 1 / 2;
	grid-column: 7 / 8;
}
#contact {
	grid-row: 1 / 2;
	grid-column: 8/ 9;
}



#content {
	max-width: 100vw;
	float: left;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	background-color: rgba(173,185,110,0.15);
	border-left: thin solid #024D1E;
	border-right: thin solid #024D1E;
        grid-column-start: 1;
        grid-column-end: 5;
        grid-row-start: 3;
        grid-row-end: 4;
	overflow-x: auto;
	min-height: 70vh;
}

#extra {
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	border-radius: 5px;
	border: thin solid #024D1E;
        grid-column-start: 1;
        grid-column-end: 5;
        grid-row-start: 4;
        grid-row-end: 5;
}


#footer_left {
	padding-top: 2px;
	padding-right: 5px;
	padding-bottom: 2px;
	padding-left: 5px;
	/*border-radius: 5px 0px 0px 5px;*/
	border-radius: 0px 0px 0px 5px;
	/*background-color: rgba(218,224,191,0.50);*/
	background-color: rgba(173,185,110,0.3);
	border-left: thin solid #024D1E;
	/*border-top: thin solid #024D1E;*/
	border-bottom: thin solid #024D1E;
	text-transform: uppercase;
	text-align: center;
	font-size: x-small;
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 5;
        grid-row-end: 6;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#footer_right {
	padding-top: 2px;
	padding-right: 2px;
	padding-bottom: 2px;
	padding-left: 2px;
	/*border-radius: 0px 5px 5px 0px;*/
	border-radius: 0px 0px 5px 0px;
	/*background-color: rgba(218,224,191,0.50);*/
	background-color: rgba(173,185,110,0.3);
	border-right: thin solid #024D1E;
	/*border-top: thin solid #024D1E;*/
	border-bottom: thin solid #024D1E;
	text-transform: uppercase;
	text-align: center;
	font-size: x-small;
        grid-column-start: 3;
        grid-column-end: 5;
        grid-row-start: 5;
        grid-row-end: 6;
}
#footer_right figure{
	align-content: center;
	margin-left: auto;
	margin-right: auto;
}

	 /* Navbar container */
.navbar {
  /* overflow: hidden; ?? why was this set to hidden ?? */
  font-family: Arial;
}

/* Links inside the navbar */
.navbar a {
  float: left;
  font-size: 16px;
  color: black;
  text-align: center;
	padding: 6px 8px;
  text-decoration: none;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  text-transform: uppercase;
  border: none;
  outline: none;
  color: black;
  padding: 6px 8px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: rgba(218,224,191,1);
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(173,185,110,1);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 6px 8px;
  text-decoration: none;
  display: block;
  text-transform: uppercase;
  text-align: left;
}

/* Add background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: rgba(218,224,191,1);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
} 

.button {
        overflow:visible; /* oddball IE7/earlier fix */
/*        cursor:hand; */
        cursor:pointer;
        margin:0;
        border:0;
        background:transparent;
        font-size: 16px;
        color: black;
        float: none;
        color: black;
        padding: 6px 8px;
        text-decoration: none;
        display: block;
        text-align: left;
}
.button:hover {
        background-color: rgba(218,224,191,1);
}

input[type=checkbox]#flyoutbutton{
	display: none;
}

label#flyoutlabel {
	display: none;
}


/* this CSS from w3schools.com */
/* URL : https://www.w3schools.com/howto/howto_js_navbar_sticky.asp */
/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {
  position: fixed;
  top: 0;
  width: 97.1vw;
  background-color: rgba(173,185,110,1.0);
  padding-right: 10px;
}

/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
  padding-top: 60px;
}
/* end w3schools code */


@media only screen and ( max-width: 900px ) {
	#content {
		min-height: 60vh;
	}

	#footer_left {
		grid-column-start: 1;
		grid-column-end: 5;
		grid-row-start: 5;
		grid-row-end: 6;
		border-bottom: none;
		border-right: thin solid #024D1E;
		border-radius: 0px 0px 0px 0px;
	}

	#footer_right {
		grid-column-start: 1;
		grid-column-end: 5;
		grid-row-start: 6;
		grid-row-end: 7;
		border-top: none;
		border-left: thin solid #024D1E;
		border-radius: 0px 0px 5px 5px;
	}

	#horizon-nav {
		display: grid;
		grid-template-columns: repeat(4, auto);
		grid-template-rows: repeat(2, auto);
	}
	#home {
		grid-row: 1 / 2;
		grid-column: 1 / 2;
	}
	#lessons {
		grid-row: 1 / 2;
		grid-column: 2 / 3;
	}
	#stories {
		grid-row: 1 / 2;
		grid-column: 3 / 4;
	}
	#charts {
		grid-row: 1 / 2;
		grid-column: 4 / 5;
	}
	#searches {
		grid-row: 2 / 3;
		grid-column: 1 / 2;
	}
	#games {
		grid-row: 2 / 3;
		grid-column: 2 / 3;
	}
	#database {
		grid-row: 2 / 3;
		grid-column: 3 / 4;
	}
	#contact {
		grid-row: 2 / 3;
		grid-column: 4 / 5;
	}
}

@media only screen and ( max-width: 550px ) {
	#content {
		min-height: 50vh;
	}

	#header {
		/*border-bottom: thin solid #024D1E;
		border-radius: 5px 5px 5px 5px;*/
		border-bottom: none;
		border-radius: 5px 5px 0px 0px;
		padding-right: 55px;
		padding-left: 2px;
	}
 
	#horizon-nav {
		display: none;
		grid-template-columns: auto ;
		grid-template-rows: repeat(8, auto);
		justify-items: start;
	}
	#home {
		grid-row: 1 / 2;
		grid-column: 1 / 2;
	}
	#lessons {
		grid-row: 2 / 3;
		grid-column: 1 / 2;
	}
	#stories {
		grid-row: 3 / 4;
		grid-column: 1 / 2;
	}
	#charts {
		grid-row: 4 / 5;
		grid-column: 1 / 2;
	}
	#searches {
		grid-row: 5 / 6;
		grid-column: 1 / 2;
	}
	#games {
		grid-row: 6 / 7;
		grid-column: 1 / 2;
	}
	#database {
		grid-row: 7 / 8;
		grid-column: 1 / 2;
	}
	#contact {
		grid-row: 8 / 9;
		grid-column: 1 / 2;
	}

	#flyoutbutton {
		display: block;
		position: fixed;
		right: 15px;
		top: 15px;
		opacity: 0;
		width: 3rem;
		height: 3rem;
		z-index: 100;
	}

	input[type=checkbox]#flyoutbutton {
		display: block;
	}
	input[type=checkbox]:checked#flyoutbutton ~ #horizon-nav {
		display: grid;
	} 

 

	label#flyoutlabel {
		display: block;
		font-size: 4rem;
		color: blue;
		width: 3rem;
		height: 3rem;
	/*	border: 2px blue solid;
		border-radius: 0.5rem; */
		padding: 0;
		text-align: center;
		line-height: 0.75;
		position: fixed;
		right: 15px;
		top: 15px;
		z-index: 99;
	}

}





