
/* We let W3.css do most of the work.  There's mostly some work-arounds in here. */

/*  For some reason <hr> tags don't create a visible line by default. 
	So, we override the defaul behavior.	*/
hr {
	border-style: solid; 
	border-top: 1px solid;
}

/*  Make bold text in paragraphs blue */
p b {
	color: mediumblue;
}

/*  Make links blue */
a {
  color: mediumblue;
}

/*	Make visited links purple, but not for menus		*/
#content-wrap a:visited { 
	color: purple;
}	
		
/*  Put a border along the right edge to give better definition to the space. */
#page-container {
	border-right-style:solid;
	border-width: 1px;	
}

/* The menu section that displays the 'Hello: <member>' dropdown needs to behave like   */
/* other menu items, but can't be a w3-button because they never word wrap on overflow. */
#member-menu-container div:hover { 
  background-color: LightGray;
}

/*	We wanted the common page footer to appear at the bottom of the page when
	when there's not enough content to fill the page, but also be at the end
	of the content when there's more than enough content to fill the page.
	This requires the careful use of a few style tags in a few places.		  */
#page-container {
	/* The page-container contains both the page contents and the footer. 	  */
	 position:relative;		/* not sure exactly what this does, bit it is necessary */ 
	 min-height:98vh;		/* 98% of the viewport height even if less content		*/
	 						/* 100% sometimes caused an unnecessary scroll bar		*/
}

#content-wrap {
	/* The content-wrap contains all the page contents.					 	  */
	padding-bottom:70px;	/* This is the height of the footer. 			  */
	 						/* The padding prevents the footer from being put */
	 						/* on top of the page contents.					  */
}

#footer {		/* id='footer' not HTML <footer>							  */
	position:absolute;	/* ? 												  */
	bottom:0; 			/* We do want the footer at the bottom				  */
	height:70px;		/* How much room it needs.  Matches the number above. */
	width:100%;			/* Make sure it stays full width.					  */
}

/*  Styling to try to have a responsive layout for videos */
.video-container {
	position: relative;
	overflow: hidden;
	height:0; 
	padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-video-iframe {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;  
	width: 100%;
	height: 100%;
}


/*  The <iframe> html tag is use widely in the code for this website.  Iframes
	can easily create situations where there are two vertical scrolls going on
	at the same time; the iframe scrolls, and the page scrolls. To avoid this
	we use the CSS Flexbox properties to make the iframe fill the available 
	space on the page, but no more than that.  So the iframe should still 
	scroll (if the content is large enough), but the page should not. 		*/

/*	The flex-container (usually a <div>) needs to run the full height of the 
	page, so generally, it's the <body> content other than the menu.		*/
.flex-container {
	display: flex; 
	flex-direction: column; 
	height: 100vh !important;   /* 100% of the Viewport Height */
}

/*	The flex-contents is the thing you want to expand to fill the available
	space on the page.  So, it's usually the <iframe>.						*/
.flex-contents {
	flex: 1; 
}
	
	
/*	The follow section allows us to tailor what's displayed on desktop vs mobile 
	devices. First, set display assuming a desktop. 						*/		
.desktop-pdf {
    display: block;
}
		
.mobile-pdf {
    display: none;
}

@media only screen  and (max-device-width : 1024px) {
/*	Seems it's a mobile device. Set display accordingly. */
  .mobile-pdf {
      display: block;
  }
		
  .desktop-pdf {
      display: none;
  }
}					

