/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

@font-face {
    font-family: 'LeagueGothicRegular';
    src: url('league_gothic-webfont.eot');
    src: url('league_gothic-webfont.eot?#iefix') format('embedded-opentype'),
         url('league_gothic-webfont.woff') format('woff'),
         url('league_gothic-webfont.ttf') format('truetype'),
         url('league_gothic-webfont.svg#LeagueGothicRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}

/* =============================================================================
   HTML5 element display
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio[controls], canvas, video { display: inline-block; *display: inline; *zoom: 1; }


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 *    http://clagnut.com/blog/348/#c790
 * 2. Force vertical scrollbar in non-IE
 * 3. Remove Android and iOS tap highlight color to prevent entire container being highlighted
 *    www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
 * 4. Prevent iOS text size adjust on device orientation change, without disabling user zoom
 *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
 */

html { font-size: 100%; overflow-y: scroll; -webkit-overflow-scrolling: touch; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body { margin: 0; font-size: 14px; line-height: 18px; }

body, button, input, select, textarea { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #222; }

/* 
 * These selection declarations have to be separate
 * No text-shadow: twitter.com/miketaylr/status/12228805301
 * Also: hot pink!
 */

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }


/* =============================================================================
   Links
   ========================================================================== */

a { color: #00e; }
/*a:visited { color: #551a8b; }*/
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: en.wikipedia.org/wiki/User:Davidgothberg/Test59 */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: gist.github.com/413930 */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * Improve image quality when scaled in IE7
 * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
 */

img { border: 0; -ms-interpolation-mode: bicubic; }

/*
 * Correct overflow displayed oddly in IE9 
 */

svg:not(:root) {
    overflow: hidden;
}


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }

/* 
 * Remove inner padding and border in FF3/4
 * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ 
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/* Remove default vertical scrollbar in IE6/7/8/9 */
textarea { overflow: auto; vertical-align: top; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }


/* =============================================================================
   Primary styles
   Author: 
   ========================================================================== */
   
/* TYPES */
h1 {
	font-size: 24px;
	line-height: 24px;
	font-weight: bold;
	padding: 0;
	margin: 0 0 12px 0;
}
h2 {
	font-size: 20px;
	line-height: 21px;
	font-weight: bold;
	padding: 12px 0 0 0;
	margin: 0 0 12px 0;
}
h3 {
	font-size: 18px;
	line-height: 18px;
	font-weight: bold;
	padding: 12px 0 0 0;
	margin: 0 0 12px 0;
}
h4 {
	font-size: 16px;
	line-height: 18px;
	font-weight: bold;
	padding: 12px 0 0 0;
	margin: 0 0 12px 0;
}
h5 {
	font-size: 14px;
	line-height: 18px;
	font-weight: bold;
	padding: 12px 0 0 0;
	margin: 0 0 12px 0;
}
h6 {
	font-size: 12px;
	line-height: 15px;
	font-weight: bold;
	text-transform: uppercase;
	padding: 12px 0 0 0;
	margin: 0 0 12px 0;
}
p {
	font-size: 14px;
	line-height: 18px;
	margin: 0 0 12px 0;
	
}
li {
	font-size: 14px;
	line-height: 18px;
	margin: 0 0 3px 0;
	
}
a:link 	{
		color: #a41984;
		text-decoration: none
}
a:active 	{
		color: #d876c1;
		text-decoration: none
}
a:visited 	{
		color: #9e1e80;
		text-decoration: none
}

/* STRUCTURE */
body, html {
	background: rgb(69,4,31);
	background: rgb(230,230,220);
	background: rgb(245, 244, 235);
	background: rgb(225,225,216);
}
img, embed, object, video {
	max-width: 100%;
}

#container {
	/* max-width: 960px; */
	width: 960px;
	margin: 0 auto 24px auto;
}

/* SITE HEADER */
#site-header {
	height: 58px;
}
#site-header h1 {
	width: 254px; /* 258/960 */
	height: 42px;
	float: left;
	padding: 0;
	margin: 7px 0 0 0;
	background: transparent url(../images/bio-sci-bw-logo.png) no-repeat top left;
}
#site-header h1 a {
	display: block;
	width: 100%;
	height: 42px;

}
#site-header h2 {
	width: 112px; /* 258/960 */
	height: 42px;
	padding: 0;
	float: left;
	margin: 7px 0 0 30px;
	background: transparent url(../images/ucsd-alumni.png) no-repeat top left;
}
#site-header h2 a {
	display: block;
	width: 100%;
	height: 42px;
}
#site-header h3 {
	width: 165px;
	height: 27px;
	float: right;
	background: transparent url(../images/ucsd-logo.png) no-repeat top left;
	margin: 17px 0 0 0;
}
#site-header h3 a {
	display: block;
	width: 100%;
	height: 28px;
}

/* MAIN DIV */
#main {
	max-width: 960px;
	background: rgb(245, 244, 235);
	border-radius: 6px;
	-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.6); -moz-box-shadow: 0 0 2px rgba(0,0,0,0.6); box-shadow: 0 0 2px rgba(0,0,0,0.6);
}
.oldie #main {
	border: solid 1px rgb(216, 215, 207);
} 

/* HDV HEADER */
#hdv-head {
	height: 240px;
	background: url(../images/hdv-header-bg.jpg) repeat;
	border-top-right-radius: 6px; border-top-left-radius: 6px;
	background-position: -200px 0px;
}

#hdv-head h2 {
	width: 360px;
	float: right;
	margin: 10px 20px 0 0;
	font-size: 21px;
	line-height: 24px;
	font-family: "Georgia", Georgia, Times, serif;
	font-weight: normal;
	font-style: italic;
	color: rgb(124, 0, 65);
}

/* NAV */
nav {
	height: 36px;
	width: auto;
	border: solid rgb(216, 215, 207); border-width: 1px 0;
	padding: 0 0 0 70px;
	background: rgb(125 ,123,67);
}
nav li {
	height: 28px;
	float: left;
	margin: 0 40px 0 0;
	padding: 8px 0 0 0;
}
nav li a {
	color: rgb(255,255,255) !important;
	font-size: 18px !important;
	text-decoration: none !important;
	letter-spacing: 1px !important;
	font-family: "Georgia", Georgia, Times, serif !important;
	text-shadow: 0 -1px 1px rgba(0,0,0,0.3) !important;
}
nav li a:hover {
	color: #ccc61a  !important;
}
a:visited {
}

/* FOOTER */
footer {
	height: 60px;
	width: 100%;
}
footer p {
	text-align: center;
	font-size: 14px;
	font-family: "Georgia", Georgia, Times, serif;
	color: rgb(97, 97, 97);
}
footer p a {
	color: rgb(37, 84, 142);
	text-decoration: none;
	font-weight: bold;
}


/*
 HOMEPAGE
*/

/* MIDDLE SECTION */
#hdv-info {
	border-bottom: 1px solid rgb(216, 215, 207);
	padding: 0 0 0 0;
	background: url(../images/hdv-texture.png) no-repeat 0 0;
}
#hdv-info-left {
	width: 380px;
	float: left;
	margin: 30px 0 0 70px;
	padding: 0 0 48px 0;
}
#hdv-info-left p {
	font-size: 14px;
	line-height: 18px;
	font-family: "Georgia", Georgia, Times, serif;
	color: rgb(80,80,80);
}
#hdv-info-left p.lede {
	color: rgb(124, 0, 65);
	font-style: italic;
	font-size: 18px;
	line-height: 21px;
	margin-bottom: 6px;
}
#hdv-info-right {
	width: 410px;
	float: right;
	margin: 0 40px 64px 0;
	padding: 24px 30px 0 30px;
	/* background: url(../images/side-bg.png); */
}
#makeitadate {
	height: 67px;
	margin: 0;
	padding: 0;
	background: url(../images/makeitadate.png) no-repeat center 0px;
}
#hdv-info-right p {
	margin: 0 0 9px 0;
	font-size: 16px;
	line-height: 21px;
	font-family: "Georgia", Georgia, Times, serif;
	font-style: italic;
	color: rgb(117, 116, 108);
	text-align: center;
}
#hdv-info-right h1 {
	margin: 0px;
	font-size: 42px;
	line-height: 44px;
	font-weight: normal;
	font-family: "LeagueGothicRegular";
	color: rgb(157, 31, 117);
	text-transform: uppercase;
	text-align: center;
}
#hdv-info-right h2 {
	padding: 0;
	margin: 0 0 9px 0;
	font-size: 30px;
	line-height: 32px;
	font-weight: normal;
	font-family: "LeagueGothicRegular";
	color: rgb(130, 130, 0);
	text-transform: uppercase;
	text-align: center;
}

#ef-scroller {
	position: relative;
	top: -40px;
	z-index: 1000;
	width: 640px;
	height: 100px;
	margin: 0 auto;
	border-radius: 6px;
}
.eco-facts {
	background: url(../images/side-bg.png) repeat;
	width: 840px;
	padding: 12px 20px;
	border: 1px solid rgb(202, 201, 194);
	border-radius: 6px;
}
.eco-facts p {
	color: rgb(109, 0, 52) !important;
	margin: 0 !important;
	text-align: left !important;
}
.eco-facts span {
	color: rgb(120, 121, 19);
	font-style: normal;
}

/* MORE INFO SECTION */
#hdv-moreinfo {
	position: relative;
	top: -40px;
	z-index: 1000;
	width: 640px;
	height: 80px;
	margin: 0 auto;
	border: 1px solid rgb(202, 201, 194);
	border-radius: 6px;
	background: white;
}
#hdv-mi-inner {
	width: 634px;
	height: 74px;
	margin: 3px;
	border-radius: 3px;
	background: rgb(245, 244, 235);
}
#hdv-mi-wantmore {
	width: 160px;
	height: 47px;
	float: left;
	padding: 27px 0 0 0;
	background: rgb(79, 12, 39);
	border-top-left-radius: 3px; border-bottom-left-radius: 3px;
	color: white;
	font-family: "LeagueGothicRegular";
	font-size: 24px;
	text-transform: uppercase;
	text-align: center;
}
#email-form {
	position: relative;
	width: 460px;
	float: right;
	margin: 3px 0 0 0;
	text-align: left;
}
#email-form p {
	clear: both;
	margin: 0;
	font-size: 13px;
	font-family: "Georgia", Georgia, Times, serif;
	font-style: italic;
	color: rgb(79, 12, 39);
}
.input-div {
	width: 100px;
	float: left;
	margin: 0 20px 6px 0;
}
.input-div label {
	font-size: 13px;
	font-family: "Georgia", Georgia, Times, serif;
	font-style: italic;
	color: rgb(79, 12, 39);
	display: block;
	margin: 0 0 3px 0;
}
.input-div input {
	width: 100px;
}
#email-form input[type="submit"] {
	font-size: 14px;
	position: absolute;
	text-align: center;
	bottom: 26px;
	right: 15px;
	width: 80px;
}

.home footer {
	margin-top: -10px;
}


/*
 TEMPLATE PAGE
*/

#content {
	margin-bottom: 36px;
	padding: 30px 0 18px;
	background: url(../images/hdv-texture.png) repeat-y 0 0;
	border-bottom: 1px solid rgb(216, 215, 207);
}
.col-left {
	width: 370px;
	float: left;
	margin: 0 0 0 70px;
}
.col-right {
	width: 370px;
	float: right;
	margin: 0 70px 0 0;
}
#content p, #content li {
	font-size: 14px;
	line-height: 18px;
	font-family: "Georgia", Georgia, Times, serif;
	color: rgb(80,80,80);
}
#content p.lede {
	color: rgb(124, 0, 65);
	font-style: italic;
	font-size: 18px;
	line-height: 21px;
	margin-bottom: 6px;
}
#content h3 {
	padding: 0;
	margin: 0;
	font-size: 42px;
	line-height: 44px;
	font-weight: normal;
	font-family: "LeagueGothicRegular";
	color: #9D1F75;
	text-transform: uppercase;
}
#content h4 {
	padding: 0;
	margin: 0;
	font-size: 30px;
	line-height: 32px;
	font-weight: normal;
	font-family: "LeagueGothicRegular";
	color: #828200;
	text-transform: uppercase;
}


/*
 BIO PAGE
*/

.bio-pic {
	width: 200px;
	float: left;
	margin: 0 0 12px 110px;
}
.bio-text {
	width: 550px;
	float: right;
	margin: 0 70px 12px 0;
}

/*
 CONTEST PAGE
*/

.cont-pic {
	width: 400px;
	height: 400px;
	float: left;
	margin: 0 0 12px 70px;
}
.cont-text {
	width: 400px;
	float: right;
	margin: 0 60px 12px 0;
}


/*
 IMAGE GRID PAGE
*/

.image-grid {
	padding-left: 70px !important;
	padding-right: 70px !important;
}
.image-grid img {
	float: left;
	margin: 0 20px 12px 0;
	border: 1px solid rgb(216, 215, 207);
}

/*
 IMAGE GRID 2 PAGE
*/

.image-grid2 {
	padding-left: 70px !important;
	padding-right: 70px !important;
}
.image-grid2 img {
	margin: 0 20px 12px 0;
	border: 1px solid rgb(216, 215, 207);
}


/* =============================================================================
   Non-semantic helper classes
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide for both screenreaders and browsers:
   css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: by Jon Neal.
  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }

.expand {
}
.expand:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }



/* =============================================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 480px) {
  /* Style adjustments for viewports 480px and over go here */

}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports 768px and over go here */

}


/* =============================================================================
   Print styles.
   Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
  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; }
}
