/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
    font: 16px/26px Helvetica, Helvetica Neue, Arial;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}



/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {
    padding: 0;
    margin: 0;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}


/* ===================
    Main Theme
   =================== */

.header-container {
    border-bottom: 20px solid #00733E;
}

.footer-container,
.main aside {
    border-top: 20px solid #00733E;
}

.header-container,
.footer-container {
    background: #DFFFD8;
}

.main aside {
	background: white;
}

.title {
    color: black;
}

.title-wrapper {
	background-image:url('../img/png-logo-240x238-transparent.png');
	background-size:240px 238px;
	background-repeat:no-repeat;
	background-position:center;
}

/* ===============
    IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}


/* ==========================================================================
   Layout and media queries
   ========================================================================== */
.wrapper {
    width: 90%;
    margin: 0 5%;
}


.title-wrapper {
	height:240px;
	width:100%;
}

.main {
    padding: 20px 0;
    text-align:left;
}

.main article {
	padding:5px;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: black;
    padding: 0px 5% 10px;
    padding: 5px;
}

.footer-container footer {
    color: black;
    padding: 20px 0;
}

.container {
	width:100%;
	overflow:hidden;
}

.grid-wrapper {
	display:block;	width:100%;
	margin: 0 auto;
}

ul.grid {
	margin:10px auto;
	padding: 0;
	list-style: none;
	width: 90%;
	overflow:auto;
}

ul.grid li {
  text-align:center;
  padding: 0;
}

ul.grid a {
	text-decoration:none;
	display:block;
	width:100%;
	background-color: #DFFFD8;
	border: 1px solid #00733E;
}


ul.grid span {
	color:black;
	display:inline-block;
	font-weight:bold;
	padding:0.5em 0 0.5em 0;
}

ul.grid img {
	display:none;
}

ul.grid a:hover {
/*	background-color:	#DFFFD8;*/
}

ul.grid a:hover span{
	color: #00733E;
}

ul.link-block {
    margin:10px auto;
    padding: 0;
    list-style: none;
    width: 90%;
    overflow:auto;
}

ul.link-block li {
  text-align:center;
  padding: 0;
}

ul.link-block a {
    color:black;
    text-decoration:none;
    display:block;
    width:100%;
    line-height:2em;
    background-color: #DFFFD8;
    border: 1px solid #00733E;
}

ul.link-block a:visited {
    color:black;
}

ul.link-block a:hover span{
    color: #00733E;
}

#figure-nanocrystals {
	width:800px;
}

.float-right {
	float: left;
}

.float-left {
	float:left;
}

figcaption {
	font-weight:bold;
	font-size:0.9em;
	text-align:center;
}

.figure-right {
	width:100%;

}

.figure-right img {	display:block;
	width:100%;
	min-width:120px;
	max-width:200px;
	margin: 0 auto;
}

.figure-block2 {
	display:block;
	margin: 0 auto;
	width:100%;
}

.figure-block2 div,.figure-block2 img,figure-block2 object {
	display:block;
	width:50%;
	min-width:260px;
	margin:0 auto;
	position:relative;
}


.figure-block3 {
	display:block;
	margin-bottom:20px;
	width:100%;
}

.figure-block3 div,.figure-block3 img,figure-block3 object {
	display:block;
	width:50%;
	min-width:260px;
	margin:0 auto;
	position:relative;
}

.publication-block, .links-block {
	width:100%;
	margin-top:30px;
	overflow:auto;
	font-size:0.9em;
	margin-top: 40px;
	border-top: solid 2px #00733E;
}

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

@media only screen and (min-width: 480px) {
/* ====================
    MEDIUM:
    Landscape iPhone 3+4 and above
   ==================== */
	.main {
		/*text-align:left;*/
	}

	.main article {
		padding:20px;
	}

	.main aside {
		padding:20px;
	}

	.figure-right img {
		min-width:120px;
	}

}

@media only screen and (min-width: 768px) {
/*==================================================
    WIDE:
    Portrait iPad and above
  ==================================================*/
    .wrapper {
        width: 90%;
        margin: 0 5%;
    }

    header {
        width:90%;
        margin: 0 5%;
    }

    .title {
        float: left;
    }

	.main {
		text-align:left;
	}

	.main article {
		width:100%;
	}

    .main article.twocol {
        float: left;
        width: 55%;
    }

    .main aside {
        float: right;
        width: 40%;
        overflow-y: scroll;
        height: 40em;
    }

	.text-left {
		width:65%;
		float:left;
	}

	.figure-right {
		width:25%;
		float:right;
	}

	.figure-right img {
		min-width:120px;
	}

	.figure-block2 {
		overflow:auto;
		text-align:center;
		margin: 0 auto;
		width:90%;
	}

	.figure-block2 div,.figure-block2 img,figure-block2 object {
		float:left;
		display:block;
		width:50%;
		min-width:0px;
		margin:0 auto;
		position:relative;
		padding:0;
	}

	.figure-block3 {
		overflow:auto;
		text-align:center;
		margin: 0 auto;
		width:90%%;
	}

	.figure-block3 div,.figure-block3 img,figure-block3 object {
		float:left;
		display:block;
		width:33%;
		min-width:0px;
		margin:0 auto;
		position:relative;
		padding:0;
	}


	ul.grid li {
		width:25%;
		float:left;
	}

	ul.grid a {
		background-color: white;
		border: none;
	}

	ul.grid span {
		width:90%;
		height:3em;
		margin: 0 auto;
	}

	ul.grid img {
		display:block;
		margin:0 auto;
	}


    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }

}


@media only screen and (min-width: 1140px) {


}

/*==================================================
    Mugshots
  ==================================================*/
.mugshot-group {
    display:block;
    margin: 0 auto;
    width: 80%;
    overflow:hidden;

}

.mugshot {
    display:block;
    margin-bottom:1em;
    text-align:center;
    min-width: 12em;
    font-size: 0.9em;
    line-height:1.2em;
}

.mugshot-group p {
    margin:0;
    width:100%;
      word-wrap: break-word;
}

.mugshot img {
    display:block;    margin: 0 auto;
    max-height:180px;
}

@media only screen and (min-width: 30em) {
    .mugshot-group {
        width: 90%;
    }

    .mugshot {
        float:left;
        width: 33%;
    }

    .mugshot img {
        display:block;
        margin: 0 auto;
        max-height:180px;
    }
}

@media only screen and (min-width: 70em) {
    .mugshot-group {
        width: 80%;
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
	height: 40px;
	width: 100%;
	background: #455868;
	background: #444;
	background: #283744;
	font-size: 0.9em;
	font-family: 'PT Sans', Arial, sans-serif;
	font-weight: bold;
	position: relative;
	border-bottom: 2px solid #283744;
}
nav ul {
	padding: 0;
	margin: 0 auto;
	width: 600px;
	width: 100%;
	height: 40px;
}
nav li {
	display: inline;
	float: left;
	width:16.66%;
}
nav a {
	background: #283744;
	color: #fff;
	display: inline-block;
	width: 100%;
	text-align: center;
	text-decoration: none;
	line-height: 3em;
	text-shadow: 1px 1px 0px #283744;
}
nav li a {
	border-right: 1px solid #576979;
	border-right: 1px solid #fff;
}
nav li:last-child a {
	border-right: 0;
}
nav li ul {
	width:100%;
    position: absolute;
    left: -9999px;
    z-index: 100;
}
nav li li {
	width:100%;
}
nav li li a {
    display: block;
    position: relative;
    z-index:100;
    border-top: 1px solid #fff;
}
.no-touch nav a:hover, nav a:active {
	background-color: #8c99a4;
}
/* dropdown */
nav li {
    position: relative;
}
.no-touch nav li.hover > ul {
    left: 0;
}

.nav li:hover {
	visibility: inherit; /* fixes IE7 'sticky bug' */
}

nav a#pull {
	display: none;
}

@media screen and (max-width:768px) {

}

/*Styles for screen 667px (width of links / 0.9) and lower*/
@media screen and (max-width: 667px) {
  	nav ul li li {
  		display:none;
  	}
	nav {
  		height: auto;
  	}
  	nav ul {
  		width: 100%;
  		display: block;
  		height: auto;
  	}
  	nav li {
  		width: 50%;
  		float: left;
  		position: relative;
  	}
  	nav li a {
		border-bottom: 1px solid #576979;
		border-right: 1px solid #576979;
	}
  	nav a {
	  	text-align: left;
	  	width: 100%;
	  	text-indent: 25px;
  	}

  	nav a { /* Fix IE 7 bug */
    	*zoom: 1;
	}
}

/*Styles for screen 515px and lower*/
@media only screen and (max-width : 480px) {
	nav {
		border-bottom: 0;
	}
	nav ul {
		display: none;
		height: auto;
	}
	nav a#pull {
		display: block;
		background-color: #283744;
		width: 100%;
		position: relative;
	}
	nav a#pull:after {
		content:"";
		background: url('../img/nav-icon.png') no-repeat;
		width: 30px;
		height: 30px;
		display: inline-block;
		position: absolute;
		right: 15px;
		top: 10px;
	}
}

/*Smartphone*/
@media only screen and (max-width : 320px) {
	nav li {
		display: block;
		float: none;
		width: 100%;
	}
	nav li a {
		border-bottom: 1px solid #576979;
	}
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

	img {
  		max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
