/**
 * Integrative Biology @ Berkeley Custom Styles
 */

/* UC Berkeley Font for Title */
@font-face {
  font-family: 'UCBerkeleyOSDemi';
  src: url("/sites/default/themes/ib_bootstrap/fonts/uc_berkeley_os_demi-webfont.eot");
  src: url("/sites/default/themes/ib_bootstrap/fonts/uc_berkeley_os_demi-webfont?#iefix") format("embedded-opentype"), 
       url("/sites/default/themes/ib_bootstrap/fonts/uc_berkeley_os_demi-webfont.woff") format("woff"), 
       url("/sites/default/themes/ib_bootstrap/fonts/uc_berkeley_os_demi-webfont.ttf") format("truetype"), 
       url("/sites/default/themes/ib_bootstrap/fonts/uc_berkeley_os_demi-webfont.svg#UCBerkeleyOSDemi") format("svg");
  font-weight: normal;
  font-style: normal; 
}

body {
    color: #333;
    font-family: "Open Sans",sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.container-fluid {
  margin-right: auto;
  margin-left: auto;
  max-width: 1200px;
}

a {
    color: #003262;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #003262;
    font-family: "Open Sans",sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

.region-content a {
	text-decoration: underline;
}

.navbar-default {
	background-color: #003262;
}

/* UC Berkeley link in top nav bar */
.navbar-default .navbar-brand {
	color: #fff;
	font-size: 16px;
    font-weight: 600;
    display: inline;
}
.navbar-default .navbar-brand a {
    color: #fff;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
	color: #fdb515;
}

.navbar-header:before {
    display: inline;
}

/* Top right navbar links */
.navbar-default .navbar-nav {
    float: right;
}
.navbar-default .navbar-nav > li > a {
	color: #fff;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
	color: #fdb515;
}
.navbar-default .navbar-nav > .active > a {
	background-color: transparent;
	color: #fff;
}
.navbar-default .navbar-nav > .active > a:hover, 
.navbar-default .navbar-nav > .active > a:focus {
	background-color: transparent;
	color: #fdb515;
}



/* Integrative Biology page title */
#page-header p a,
#page-header h1 a,
#page-header p a:active,
#page-header h1 a:active  {
	font-family: "UCBerkeleyOSDemi","Minion Pro","Times New Roman",times,serif;
	color: #003262; 
	font-size: 48px;
	line-height: 1.1em;
	padding-top: 0px;
	text-decoration: none;
}

#page-title{
    margin: 5px 0px;
}

#page-title p,
#page-title h1 {
    display: inline;
}

.submitted {
  color: #595959;
}

/* Main Superfish Menu */

.sf-menu a {
    text-decoration: none;
}


.sf-menu.sf-style-default {
    margin-bottom: 1px;
}

.sf-sub-indicator {
    background: rgba(0, 0, 0, 0) url("../images/arrows-777777.png") no-repeat scroll -10px -100px;
}

.sf-menu.sf-style-default a,
.sf-menu.sf-style-default a:visited,
.sf-menu.sf-style-default span.nolink {
  border-left: none; 
  border-top: none; 
  color: #555;  
  padding: 0.9em 1em; 
  font-size: 1.2em;
  font-weight: 500;
}
.sf-menu.sf-style-default li.first a.sf-depth-1,
.sf-menu.sf-style-default li.first a.sf-depth-1:visited{
  padding-left: 0.2em; 
}
.sf-menu.sf-style-default span.sf-description {
  color: #555;
}
.sf-menu.sf-style-default li,
.sf-menu.sf-style-default.sf-navbar {
  background: #fff;  
}

.sf-menu.sf-style-default li.active-trail {
  border-bottom: 2px solid #ddd;
}

.sf-menu.sf-style-default li li.active-trail {
    border-bottom: none;
  }

.sf-menu.sf-style-default li li {
  background: #fff;  
}

.sf-menu.sf-style-default li li li {
  background: #fff;  
}

.sf-menu.sf-style-default li:hover,
.sf-menu.sf-style-default li.sfHover,
.sf-menu.sf-style-default a:focus,
.sf-menu.sf-style-default a:hover,
.sf-menu.sf-style-default a:active,
.sf-menu.sf-style-default span.nolink:hover {
  background: #fff;  
}

.sf-menu.sf-style-default a:hover,
.sf-menu.sf-style-default a:focus {
    text-decoration: underline;
}

/* End Main Superfish Menu */

/* Grad/Undergrad Superfish Menu */

.sf-menu.sf-style-white li > a {
    padding: 8px 5px 8px 20px;
    text-decoration: none !important;
}

.sf-menu.sf-style-white li > a:hover {
    text-decoration: underline !important;
}

.sf-menu.sf-style-white {
    margin-bottom: 1px;
}

.sf-menu.sf-style-white a,
.sf-menu.sf-style-white a:visited,
.sf-menu.sf-style-white span.nolink {
  border-left: none; 
  border-top: none; 
  color: #003262;  
  padding: 0.5em; 
  font-size: 15px;
  font-weight: 500;
}

.sf-menu.sf-style-white li.first a.sf-depth-1,
.sf-menu.sf-style-white li.first a.sf-depth-1:visited {
  padding-left: 0.2em; 
}
.sf-menu.sf-style-white span.sf-description {
  color: #003262;
}
.sf-menu.sf-style-white li,
.sf-menu.sf-style-white li li,
.sf-menu.sf-style-white li li li {
  background: #f5f5f5;  
}

.sf-menu.sf-style-white li.active-trail {
  border-bottom: none;
}

.sf-vertical, .sf-vertical li {
    width: 100%;
}

.sf-vertical li:hover > ul, 
.sf-vertical li.sfHover > ul {
    left: 95%;
}

.sf-menu.sf-style-white li::before {
    background: #fdb515 none repeat scroll 0 0;
    border-radius: 30px;
    color: #fff;
    content: ' » ';
    font-size: 16px;
    height: 15px;
    left: 0;
    line-height: 12px;
    position: absolute;
    text-align: center;
    top: 8px;
    width: 15px;
}

.sf-menu.sf-style-white li li::before {
    background: none;
    content: '';
}

.sf-menu.sf-style-white li.active-trail::before {
    background: #003262 none repeat scroll 0 0;
}

.sf-menu.sf-style-white ul.sf-has-clone-parent li::before {
    background: none;
    content: none;
}

/* End Grad/Undergrad Superfish Menu */

h2.block-title {
    font-size: 24px;
    margin-top: 10px;
}

.page-frontpage h2 {
    font-size: 30px;
    margin-top: 20px;
}

#page-header hr {
	margin-top: 0px;
	margin-bottom: 5px;
}

.breadcrumb {
    background-color: transparent;
    border-radius: none;
    margin-bottom: 20px;
    margin-top: 0px;
    padding: 8px 15px 8px 2px;
}

.breadcrumb > .active {
  color: #595959;
}

.btn-info {
  color: #fff;
  background-color: #003262;
  border-color: #003262;
}

/* Frontpage Jumbotron */
.container .jumbotron, .container-fluid .jumbotron {
    padding-left: 0px;
    padding-right: 0px;
}
.container .jumbotron, .container-fluid .jumbotron {
    padding-left: 0px;
    padding-right: 0px;
}
.jumbotron {
    padding-bottom: 0px;
    padding-top: 0px;
}
.jumbotron {
    background-color: #fff;
    color: inherit;
    margin-bottom: 3px;
    padding-bottom: 0px;
    padding-top: 0px;
}

.view-frontpage-slideshow img {
	border: 5px solid #eaeaea;
	border-radius: 6px;
}

/* Frontpage News */
.view-frontpage .views-field-title {
    font-size: 1.1em;
    padding: 10px 0 0 0;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 5px;
}

.view-frontpage .views-field-title a {
    text-decoration: none;
}

.view-frontpage .views-field-title a:focus,
.view-frontpage .views-field-title a:hover {
    text-decoration: underline;
    color: #003262;
}

.view-community-news .views-field-body a {
    text-decoration: underline;
}

/* Frontpage Events */
ul.upcoming_seminars {
    font-size: 1em;
    line-height: 1.2em;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.upcoming_seminars li {
    display: inline-block;
    padding: 8px 0;
    width: 100%;
}
p.eventdate, p.eventspeaker, p.eventtitle {
    margin: 0;
    padding-bottom: 4px;
}
p.eventtitle {
    font-style: italic;
}
p.eventspeaker {
    font-weight: bold;
}
p.eventdate a {
	text-decoration:underline;
}

/* Image Content Type */
.node-image img {
	margin-bottom: 20px;
	border: 5px solid #eaeaea;
}

.node-image .field-name-body {
	width: 820px;
	display: block;
}

.node-image .field-name-field-image-credit {
	margin-top: 20px;
	font-style: italic;
}

/* Breadcrumb separator */
.breadcrumb > li + li::before {
    padding: 0 5px;
    color: #ccc;
    content: " » ";
}

/* Search Box and Title*/

#search form {
    margin-left: 140px;
}

#search {
    height: 65px;
    width: 390px;
    float: right;
    padding-top: 7px;
    padding-right: 10px;
    margin-top: 0px;
    /*background: #fff url(images/ib_emblem_grey.png) no-repeat left top;*/
}

#search-icon {
    height: 23px;
    width: 23px;
    vertical-align:bottom;
    margin-bottom: 3px;
}

/* frontpage Events block*/
#upcoming_seminars
{
  margin: 0;
  padding: 0;
  list-style-type: none;
}

#upcoming_seminars li
{
  padding: 7px 0;
}

#upcoming_seminars li a
{
  font-weight: bold;
}

/* Left Content Region */

.region-content-left {
    margin-top: 0px;
}

.region-content-left h2 {
    font-size: 20px;
    margin-top: 0px;
}

.region-content-left section {
    margin-bottom: 20px;
}

/* Frontpage Community Spotlight */

.view-community-news .views-field-title {
    margin-top: 20px;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: bold;
}

.view-community-news .more-link {
    margin-top: 20px;
    font-weight: bold;
    text-decoration: underline;
}

/* Blocks */

.block-block p a {
    text-decoration: underline;
}

#block-views-grad-news-block img, .view-id-community_news img {
    max-width: 230px;
}

.view-grad-news .views-field-body a,
.view-news .views-field-body a {
    text-decoration: underline;
}

/* Footer */

footer.footer {
    background-color: #003262;
    color: white;
    padding-top: 5px;
}

img.footer-logo {
    padding-top: 20px;
}

footer.footer h2 {
    color: white;
    font-size: 1.2em;
    font-weight: 500;
}

footer.footer a {
    color: white;
    text-decoration: underline;
}

footer.container-fluid {
    max-width: none;
}

/* Slideshow gallery view */
.slideshow-gallery tr.odd, tr:nth-child(2n+1) {
    background-color: transparent;
}

.slideshow-gallery table, 
.slideshow-gallery td, 
.slideshow-gallery th {
    vertical-align: top;
    border: 0;
    padding: 0 7px 10px 7px;
}

.slideshow-gallery tr {
    border-bottom: 1px solid #ccc;
}

/*Directory*/

table.directory_detail {
	padding: 0;
	border: 0;
  width: 70%;
}

table.directory_detail tbody {
	border: 0;
}

/* Directory Lists */

table.directory-list {
    width: "90%";
}

.directory-list th {
    background-color: #999;
    color: white;
    border-bottom: 1px solid #ccc;
}

.directory-list tr.odd {
    background-color: #dedede;
}

.directory-list td, th{
    padding: 3px;
}

/* Image captions */
.caption {
	border:1px solid #ECEAE4;
	margin: 0.6em;
	padding: 0.6em;
	background-color:#F0EEE8;
}

.caption img {
	vertical-align:middle;
	margin-bottom:2px;
}

.right { 
	margin: 0.5em 0pt 0.5em 0.8em; 
	float:right;
}

.left { 
	margin: 0.5em 0.8em 0.5em 0; 
	float:left; 
}

.caption p {
  text-align: left;
  font-size: 80%;
  font-family: Helvetica, Arial, Verdana, san-serif;
  color:#999;
}

.clear{
  clear:both;
}

.views-row {
    clear:both;
}

/* Grad News block */
.news-block .views-field-title a {
    font-size: 1.1em;
    font-weight: 600;
}

.news-block .views-row {
    margin-bottom: 10px;
}

/*Faculty Research Pages*/
.node-faculty-research-page .field-name-field-image {
    float: right;
    padding: 0 10px 10px 20px;
}
  
.node-faculty-research-page h2.field-label {
    font-size: 1.2em;
    margin-bottom: 5px;
}

/*Faculty research page index view */
.view-faculty-research-index span.views-field-title {
    font-weight: bold;
  }
  
.view-faculty-research-index div.views-row {
    margin-top: 8px;
}

/* Tables with cell borders */

table.cell-borders td,
table.row-borders tr {
    border: 1px solid #ccc;
}

/* Article images */
.node-article .field-name-field-image img,
.node-content .field-name-field-image img {
    float: left;
    padding: 3px;
    margin: 0;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.node-content figure {
    display: inline;
}

.node-content .field-name-field-image div {
    display: inline;
}

div.field-name-field-image {
    display: inline;
}

.frontpage-news .views-field-field-image img {
    float: left;
    padding: 0;
    margin: 0;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
}

.directory_image {
    float: right;
    width: 150px;
    border: 1px solid #aaaaaa;
    padding: 3px;
    background-color: #eaeaea;
}

/*Google Search Results page*/
.gsc-control-cse table,
.gsc-control-cse tbody,
.gsc-control-cse tr,
.gsc-control-cse td {
  border: none;
}

.gsc-control-cse {
  padding-top: 0;
}

.gsc-webResult {
  margin-bottom: 0;
}

.gsc-webResult table {
  margin: 0;
}

/*Tablesorter on courses page */
.tablesorter-default .header,
.tablesorter-default .tablesorter-header {
  background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
  background-position: center right;
  background-repeat: no-repeat;
  cursor: pointer;
  white-space: normal;
  padding: 4px 20px 4px 4px;
}
.tablesorter-default thead .headerSortUp,
.tablesorter-default thead .tablesorter-headerSortUp,
.tablesorter-default thead .tablesorter-headerAsc {
  background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
}
.tablesorter-default thead .headerSortDown,
.tablesorter-default thead .tablesorter-headerSortDown,
.tablesorter-default thead .tablesorter-headerDesc {
  background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
}
.tablesorter-default thead .sorter-false {
  background-image: none;
  cursor: default;
  padding: 4px;
}

.tablesorter .filtered {
  display: none;
}

/* filter row */
.tablesorter-filter-row td {
  background: #eee;
  line-height: normal;
  text-align: center; /* center the input */
  -webkit-transition: line-height 0.1s ease;
  -moz-transition: line-height 0.1s ease;
  -o-transition: line-height 0.1s ease;
  transition: line-height 0.1s ease;
}
/* optional disabled input styling */
.tablesorter-filter-row .disabled {
  opacity: 0.0;
  filter: alpha(opacity=0);
  cursor: not-allowed;
}

/* filters */
.tablesorter-filter {
  width: 95%;
  height: inherit;
  margin: 3px;
  padding: 3px;
  background-color: #fff;
  border: 1px solid #bbb;
  color: #333;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: height 0.1s ease;
  -moz-transition: height 0.1s ease;
  -o-transition: height 0.1s ease;
  transition: height 0.1s ease;
}

/* collapsed arrows for tablesorter child rows */
tr.tablesorter-hasChildRow td .collapsed i {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #555;
  border-right: 0;
  margin-right: 10px;
}

tr.tablesorter-hasChildRow td i {
  width: 0;
  height: 0;
  display: inline-block;
  border-top: 6px solid #555;
  border-bottom: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  margin-right: 5px;
  user-select: none;
  -moz-user-select: none;
}

.hidden {
  display: none;
}

tr.tablesorter-childRow {
  background-color: #efefef;
}

.nowrap {
  white-space: nowrap;
}

/*newsletter*/
table.twocolumn {
	padding: 0;
	border: 0;
  width: 100%;
}

table.twocolumn tbody,
table.twocolumn tbody tr {
	border: 0;
}

table.twocolumn td {
	border: 0;
  width: 50%;
}

/* Grad Alumni Profile Index Page */
.view-grad-alumni-profiles table, 
.view-grad-alumni-profiles tbody, 
.view-grad-alumni-profiles tr,
.view-grad-alumni-profiles td {
	border-color:#fff;
}

.view-grad-alumni-profiles img {
    margin-left: auto;
    margin-right: auto;
}
  
.view-grad-alumni-profiles td {
  text-align: center;
  width: 20%;
  vertical-align: top;
}

.view-grad-alumni-profiles .views-field-field-lab-affiliation {
	margin-bottom: 20px;
}

.view-grad-alumni-profiles tr:nth-child(2n+2) {
	background-color: #ffffff;
}

.view-grad-alumni-profiles .views-field-title {
	font-size: 1.2em;
	font-weight: bold;
}

.page-grad-people-alumni-profiles .view-grad-alumni-profiles h1 {
  text-align: left;
}

.node-grad-alumni-profile .field-items {
  padding-bottom: 10px;
}

@media only screen and (max-width:580px) {
.view-grad-alumni-profiles td {
        padding: 3px 5px;
    }
    
    .view-grad-alumni-profiles img {
        transform: scale(0.7);
    }

    .view-grad-alumni-profiles .views-field {
        font-size: 0.8em;
    }

    .view-grad-alumni-profiles .views-field-title {
        font-size: 1.0em;
    }

    .twocolumn-responsive td, 
	.twocolumn-responsive tr { 
		display: block; 
	}

	.twocolumn-responsive td { 
        width: 100% !important;
        margin-bottom: 20px;
        clear: both;
	}
}

/* Code for smaller screens */
@media only screen and (min-width:768px) and (max-width:880px) {
    .sf-menu.sf-style-default a,
    .sf-menu.sf-style-default a:visited,
    .sf-menu.sf-style-default span.nolink {
        font-size: 14px;
    }
}

@media only screen and (min-width:768px) and (max-width:820px) {
    #search {
        width: 250px;
        background: none;
    }

    #search form {
        margin-left: 0px;
    }
}

@media only screen and (max-width:767px) {
	#header {
	  display: none;
    }
    
    #page-title h1 {
        display: block;
    }

    #search form {
        margin-left: 0px;
    }
    
    #search {
        height: 65px;
        width: 390px;
        float: left;
        padding-top: 7px;
        padding-right: 10px;
        margin-top: 0px;
        background: none;
    }

    .navbar-default .navbar-brand {
      font-size: 13px;
      font-stretch: semi-condensed;
    }

     .table-responsive {
      border: 0;
     }
}
