/* SHARED STYLES */

/****************************/
/*    CONTENT AREA GENERAL  */
/****************************/

* {
	box-sizing:border-box
}

p {
	line-height:1.2em;
}

a {
    font-weight:bold;
	text-decoration:none;
	color:red;
}

a:visited,
a:link,
a:active,
a:hover {
	color:red;
}

/* Responsive images smaller viewports */
img {
	max-width:100%;
	height:auto;
}


blockquote {
	background-color:#ddd;
	padding:15px;
	color:#555;
	font-size:92%;
	border-left:5px solid #bbb;
}
blockquote p:first-of-type {
	margin-top:0;
}
blockquote p:last-of-type {
	margin-bottom:0;
}


img.blockquote-left {
	display:block;
	float:left;
	max-width:175px;
	margin:-5px 15px 5px 0;
}

img.blockquote-right {
	display:block;
	float:right;
	max-width:175px;
	margin:-5px 0 5px 15px;
}


/* Big quotation mark. Not using anymore.
blockquote:before {
    content:"\201C"; 
    font-size:7rem;
    font-style:italic;
    color:#bbb;
    display:block;
    position:absolute;
    left:-10%;
    top:1.8rem;
} */



/***************************/
/*   FIGURES + MULTIMEDIA  */
/***************************/

#content figure {
	max-width:90%;
	margin:30px auto;
	text-align:center;
	background-color:inherit;
}


#content figure img {
	padding:5px;
	border:1px solid #ccc;
	max-width:100%;
}

#content figure div.video-container {
	/* border:1px solid #ccc; */
	margin-bottom:8px;
}

#content figure figcaption {
	font-size:0.78rem;
	font-weight:bold;
	/* font-family:"Roboto Condensed", arial, sans-serif;
	font-size:0.9rem; */
	color:#999;
	text-align:center;
	/* padding:0 2em; */
	padding:0;
	margin:0 auto;
	line-height:0.95rem;
}

#content figure.fig-full {
	max-width:99%;
}

#content figure.fig-left {
	max-width:40%;
	margin:0;
	margin-right:15px;
	padding-right:16px;
	padding-bottom:16px;
	float:left;
}

#content figure.fig-right {
	max-width:40%;
	margin:0;
	padding-left:16px;
	padding-bottom:16px;
	float:right;
}


/*----- Magnific Popup Custom ------*/

a.image-link:focus {
	outline:none;
}

a.image-link img:hover {
	cursor:zoom-in;
}



/**********************/
/*     NOTELIST       */
/*********************/
a.notecite, a.notecite-numbered {
	font-size:0.7rem;
	vertical-align: baseline;
	position: relative;
	top:-0.4em;
}

	a.notecite:before {
		content:"[+]";
	}

.notetooltip {
	display:inline-block;
	visibility:hidden;
	background-color:transparent;
	position:absolute;
	top:0;
	left:0;
	width:auto;
	-webkit-background-clip: padding-box; /* Hide bleed */
    -moz-background-clip: padding;
    background-clip: padding-box;
    transition:visibility 0s ease 0.3s;
    padding-bottom:15px;
    border-bottom:4px solid transparent;
    /* border-bottom:5px solid transparent; /* Larger hit area */
}

	/* @media screen and (min-width:481px) { */
		.notetooltip.notetooltip-show {
			visibility:visible;
		}		
	/* } */

	/* .notetooltip:hover {
		transition:visibility 0s ease 0.3s;
		visibility:visible;
		cursor:pointer;
	} */

	.notetooltip-inner {
		width:300px;
		height:100%;
		padding:8px;
		background-color:#222;
		color:#bbb;
		font-size:12px;
		border:3px solid #000;
		line-height:1.25em;
		border-radius:3px;
	}

	.notetooltip-inner a {
		color:#fff;
		font-weight:bold;
	}

	.notetooltip-inner a:hover {
		border-bottom:1px solid #777;
	}

	.notetooltip .notetooltip-triangle-lg,
	.notetooltip .notetooltip-triangle-sm {
		width: 0; 
		height: 0;
		border-left: 8px solid transparent;
		border-right: 8px solid transparent;
		position:absolute;
		left:20px;
	}

	.notetooltip .notetooltip-triangle-sm { /* top smaller grey triangle */
		border-top: 12px solid #222;
		bottom:8px;
	} 

	.notetooltip .notetooltip-triangle-lg { /* back bigger black triangle, forming border */
		border-top: 12px solid #000;
		border-bottom:0px solid transparent;
		bottom:3px; /* offset down */
	}

	.notetooltip.notetooltip-bottom {
		padding-bottom:0;
		padding-top:15px;
	}

		.notetooltip.notetooltip-bottom .notetooltip-triangle-sm {
			border-top: none;
			border-bottom:12px solid #333;
			bottom:auto;
			top:8px;
		}


		.notetooltip.notetooltip-bottom .notetooltip-triangle-lg { /* back bigger black triangle, forming border */
			border-top:none;
			border-bottom: 12px solid #000;
			bottom:auto;
			top:3px; /* offset down */
		}

/*	.notetooltip.notetooltip-mobile {
		display:block;
		position:fixed;
		width:100%;
		left:auto;
		right:auto;
		bottom:-19px;
		top:auto;
		transition:visibility 0s ease 0.0s;
	}

	.notetooltip.notetooltip-mobile .notetooltip-inner {
		width:auto;
	}

	.notetooltip.notetooltip-mobile .notetooltip-triangle-sm,
	.notetooltip.notetooltip-mobile .notetooltip-triangle-lg {
		visibility:hidden;
	} */



.notelist {
	font-size:80%;
	padding:15px 0px;
}

	.notelist:before {
		display:block;
		content:"Notes & References";
		font-family:"Roboto Condensed";
		font-size:1.3rem;
		font-weight:bold;
		padding:10px 0 0;
		border-top:1px solid #888;
	}

	.notelist ol {
		padding-left:0px;
		margin:10px 5% 0 3%;
		list-style-position:inside;
	}

		.notelist ol li {
			padding:4px;
			margin:1px 0;
			line-height:1.3em;
			/* Offset target for fixed header */
			border-top:100px solid transparent;
			margin-top:-100px;
		    -webkit-background-clip: padding-box;
		    -moz-background-clip: padding;
		    background-clip: padding-box;
		}

		.notelist ol li:target {
			transition:background-color 1.2s ease 0.6s;
			background-color:#F7D7D7;
		}

		.notelist ol li a {
			color:red;
			font-weight:normal;
		}


#noscript {
	background-color:#ff0000;
	color:#fff;
	font-weight:bold;
	padding:5px;
	width:100%;
	text-align:center;
	position:fixed;
	z-index:1;
}




/**************************/
/*         FOOTER         */
/**************************/

footer {
	min-height:120px;
	background-color:#222;
	margin-top:60px;
	color:#777;
	font-family:"Roboto Condensed", Arial, sans-serif;
}

footer p {
	margin:0 0 10px;
}

footer .footer-main {
	max-width:800px;
	padding:20px 0;
	margin:0 auto;
}

footer .footer-middle {
	text-align:center;
}

footer .footer-middle ul {
	margin:0 auto 10px;
	padding:0;
}

footer .footer-middle ul > li {
	padding:0 10px;
	display:inline-block;
	border-right:1px solid #777;
	line-height:15px;
}

footer .footer-middle ul > li:last-of-type {
	padding:0 10px;
	display:inline-block;
	border-right:0px solid #000;
}

footer .footer-middle ul > li a {
	color:#777;
	font-weight:normal;
	transition:color 0.5s;
}
footer .footer-middle ul > li a:link,
footer .footer-middle ul > li a:visited {
	color:#777;
}

footer .footer-middle ul > li a:hover,
footer .footer-middle ul > li a:active {
	color:#aaa;
}



/********************************/
/*   RESPONSIVE VIDEO CONTAINER */
/********************************/

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    /* overflow: hidden;  Seems to be cutting off bottom */
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*******************************/
/*        HELPER CLASSES       */
/*******************************/

.cf:before,.cf:after { content: " "; display: table; }
.cf:after {  clear: both; }
.cf { *zoom: 1; }

.clearfix:before,.clearfix:after { content: " "; display: table; }
.clearfix:after {  clear: both; }
.clearfix { *zoom: 1; }

.indent {
	margin-left:30px;
}

.left {
	float:left;
	margin-right:20px;
}

.right {
	float:right;
	margin-left:20px;
}


/***********************/
/*     ZOOM PLUGIN     */
/***********************/

/* these styles are for the demo, but are not required for the plugin */
.image-zoom {
	display:inline-block;
	position: relative;
}

.image-zoom-wrapper {
	display:inline-block;
	position:relative;
	max-width:100%;
}

.image-zoom-wrapper .zoomImg {
	border:1px solid #ccc;
}

/* magnifying glass icon */
/* .image-zoom-wrapper:before { */
.image-zoom-wrapper p.instructions {
	display:inline-block; 
	position:absolute; 
	top:7px;
	right:33px;
	padding:7px 5px;
	color:rgba(255,255,255,0.85);
	background-color:rgba(0,0,0,0.5);
	font: bold 0.7rem arial, sans-serif;
	margin:0;
}

.image-zoom-wrapper:after {
	content:'';
	display:block; 
	width:33px; 
	height:33px; 
	position:absolute; 
	top:0;
	right:0;
	background:url('icon.png');
}

.image-zoom-wrapper img {
	display: block;
}

.image-zoom-wrapper img::selection { background-color: transparent; }

.image-zoom-wrapper img:hover { cursor: url('grab.cur'), default; }
.image-zoom-wrapper img:active { cursor: url('grabbed.cur'), default; }


/***********************/
/*  MAGNIFIC POPUP     */
/***********************/
.image-link, .image-link-zoom {
	cursor:zoom-in;
}


/************************/
/*        SLIDER        */
/************************/

.slider {
	border:1px solid white;
	position:relative;
	background-color:black;
	overflow:hidden;
}
.slider img {
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	margin:auto;
	max-width:100%;
	max-height:100%;
	opacity:0;
}



/********************************
/*        MEDIA QUERIES        */
/*******************************/

@media screen and (max-width:540px) {

    body:after { 
        content: 'mobile';
        display: none;
    }


	.mobile-hide {
		display:none;
	}

	footer .footer-middle ul.footer-menu {
		display:none;
	}

	footer {
		margin-top:10px;
		min-height:0;
	}

	blockquote {
		padding: 10px;
		margin-left:10px;
		margin-right:5px;
		border-left:3px solid #bbb;
	}

	img.blockquote-right,
	img.blockquote-left {
		max-width:140px;
	}
	img.blockquote-left {
		margin:-3px 8px 3px 0px;	
	}
	img.blockquote-right {
		margin:-3px 0 3px 8px;	
	}

	.left, .right {
		float:none;
		max-width:100%;
		margin:15px 0;
	}

	#content figure.fig-left,
	#content figure.fig-right {
		float:none;
		padding-left:0;
		padding-right:0;
		padding-bottom:4px;
		max-width:99%;
	}

	#content figure {
		max-width:99%;
	}


	.notetooltip {
		display:block;
		position:fixed;
		width:100%;
		left:auto;
		right:auto;
		bottom:-19px;
		top:auto;
		transition:visibility 0s ease 0.0s;
	}

	.notetooltip .notetooltip-inner {
		width:auto;
		font-size:14px;
		border-radius:0px;
	}

	.notetooltip .notetooltip-triangle-sm,
	.notetooltip .notetooltip-triangle-lg {
		visibility:hidden;
	}

}

