/* This file will hold styles for the mobile version of your website (mobile first). */
/* This also can include ANY global CSS that applies site-wide. Unless overwritten by a more specific style rule, CSS declarations in global.css will apply site-wide. */


body, td, p, li, div {
  font-family: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
}
body {
  font-size: 16px;
  line-height: normal;
/*  background: #060c1c url(../images/back.jpg) repeat-x;*/
  background: #233855; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(#233855, #48689b, #233855); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#233855, #48689b, #233855); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#233855, #48689b, #233855); /* For Firefox 3.6 to 15 */
  background: linear-gradient(#233855, #48689b, #233855); /* Standard syntax */
}
.page {
/* Use a 14px base font size with a 18px line height */
font-size: 0.875em; /* 16px x .875 = 14px */
}
p, td, li {
line-height: 1.286em; /* 14px x 1.286 = 18px */
}
h1, h2, h3, h4, h5, h6 {
  letter-spacing: normal;
  color: #1372b7;
}
h1 {
  background: #d3e5f3;
  padding: 3px 10px;
  font-size: 18px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
h2, h3 {
  font-size: 15px;
}

table {
  border: 0;
}
a:link,
a:visited {
  color: #214d7c;
  text-decoration: none;
}

a:hover,
a:active {
  color: #214d7c;
  text-decoration: underline;
}
#block-system-main a:link,
#block-system-main a:visited {
  text-decoration: underline;
  font-weight: bold;
}
#block-system-main a:hover,
#block-system-main a:active {
  text-decoration: none;
  font-weight: bold;
}

p {
  color: #58595b;
}

table.photo-caption {
  float: right;
  width: 300px;
  margin: 5px 10px;
  border: 0;
}
.content td {
  vertical-align: top;
}
.photo-caption img {
 border: 1px solid #000;
}
.photo-caption td {
  text-align: center;
  font-size: xx-small;
  font-style: italic;
}
.board-photo {
  border: 1px solid #000;
  float: right;
  margin-left: 5px;
  margin-bottom: 10px;
}
.board-directors td {
  text-align: center;
}
hr {
  margin: 5px 0;
  height: 2px;
  background-color: #3284c0;
}
ol {
  margin-left: 15px;
}
ol li {
  margin-bottom: 10px;
}
ol.lower-alpha {
  list-style-type: lower-alpha;
}

/*************** REGIONS ***************/

#zone-content,
#zone-footer,
#zone-postscript {
  background-color: #e7dbcd;
}

/****************** HEADER ***************/
#zone-branding,
#zone-menu {
  background-color: #fff;
}

.logo-img {
  margin: 20px 50px;
}

#block-search-form {
  margin: 120px 50px 0 0;
  float: right;
}

/****************** CONTENT ***************/
#region-content,
#region-sidebar-first,
#region-postscript-first,
#region-postscript-second {
  background-color: #fff;
  margin-top: 7px;
  margin-bottom: 7px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
div.region-inner.region-content-inner {
  margin: 7px 20px;
}

/****************** SIDEBAR ***************/
#region-sidebar-first .block {
  background-color: #b2d2e9;
  margin: 7px;
  padding: 7px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  margin-bottom: 1em;
}
#region-sidebar-first .block-title {
  background-color: #fff;
  margin-bottom: 5px;
  padding: 2px 2px 2px 5px;
  font-size: 14px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
#region-sidebar-first .content {
  padding-left: 6px;
}
#region-sidebar-first p {
  margin: 3px 0;
}

/****************** POSTSCRIPT ***************/
#region-postscript-first .block,
#region-postscript-second .block {
  margin: 7px;
}
#region-postscript-first .block-title,
#region-postscript-second .block-title {
  background: #d3e5f3;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
#region-postscript-first p {
  padding: 7px;
}
/****************** FOOTER ***************/

#region-footer-first {
  background-color: #fff;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
#region-footer-first img {
  margin: 5px 7px;
}
.view-image-gallery-footer .view-content {
  text-align: center;
}
.view-image-gallery-footer .views-row {
  display: inline-block;
}
#block-block-3 {
  margin-top: 7px;
}
.region-footer-second p {
  color: #58595b;
  font-size: 11px;
  text-align: center;
}


/****************** MENU *****************/
#block-superfish-1{
/*  position: absolute;*/
  width: 780px;
/*  bottom: 5px;
  left: 65px;*/
  margin: auto;
  height: 39px;
  padding-top: 2px;
}
#block-superfish-1 .content{
   float:left;
   width:100%;
   position:relative;
}
#block-superfish-1 .content ul {
   clear:left;
   float:left;
   list-style:none;
   margin:0;
   padding:0;
   position:relative;
   left:50%;
   text-align:center;
   height: 43px;
}
#block-superfish-1 .content ul li {
   font-weight: bold;
   display:block;
   float:left;
   list-style:none;
   margin:0;
   padding:0;
   height: 43px;
   position:relative;
   right:50%;
   padding-left: 4px;
   padding-right: 6px;
   background: #23518d url(../images/div.jpg) no-repeat right 15px;
}
#block-superfish-1 .content ul .first{
  padding-left: 15px;
  border-top-left-radius: 10px;
  -moz-border-radius-topleft: 10px;
  -webkit-border-top-left-radius: 10px;
}
#block-superfish-1 .content ul .last{
  padding-right: 15px;
  border-top-right-radius: 10px;
  -moz-border-radius-topright: 10px;
  -webkit-border-top-right-radius: 10px;
  background: #23518d;
}
#block-superfish-1 .content ul li a {
   position: relative;
   display:block;
   padding:0px 7px 6px;
   top: 7px;
   height: 30px;
   color:#fff;
   text-decoration:none;
   line-height:1.9em;
   font-size: 15px;   
   float: left;
   border:0 none;
}
#block-superfish-1 .content ul li a:hover, #block-superfish-1 .content ul li.sfHover a{
   background:#066baf;
   border-top-left-radius: 5px;
   border-top-right-radius: 5px;
   border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
   -moz-border-radius-topleft: 5px;
   -moz-border-radius-topright: 5px;
   -webkit-border-top-left-radius: 5px;
   -webkit-border-top-right-radius: 5px;
}
#block-superfish-1 .content ul ul{
   background: none;
   clear:none;
   float:none;
   list-style:none;
   margin:0;
   position: absolute;
   left: 0;
   text-align:center;
   padding: 0px;
   height: auto;
   width: 100%;
}
#block-superfish-1 .content ul ul ul{
   top: 0px;
   left: 97%;
 }
.sf-menu li:hover ul, .sf-menu li.sfHover ul {
    left: 20px;
    top: 43px;
 }
#block-superfish-1 .content ul ul li {
   font-weight: normal;
   text-align: left;
   display: block;
   float: none;
   list-style:none;
   margin: 0 4px;
   padding: 0;
   position:relative;
   height: auto;
   right: 0;
   height: auto;
   background: #23518d;
   border-top: 2px solid #244473;
   border-right: 2px solid #244473;
   border-left: 2px solid #244473;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   -moz-border-radius-topleft: 0px;
   -moz-border-radius-topright: 0px;
   -webkit-border-top-left-radius: 0px;
   -webkit-border-top-right-radius: 0px;
   width: auto;
}
#block-superfish-1 .content ul ul .first{
  padding-left: 0px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  -moz-border-radius-topleft: 0px;
  -moz-border-radius-topright: 0px;
  -webkit-border-top-left-radius: 0px;
  -webkit-border-top-right-radius: 0px;
}
#block-superfish-1 .content ul ul li.last {
    background: none repeat scroll 0 0 #23518d;
   border-bottom: 2px solid #244473;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    -moz-border-radius-topleft: 0px;
    -moz-border-radius-topright: 0px;
    -webkit-border-top-left-radius: 0px;
    -webkit-border-top-right-radius: 0px;
    border-bottom-left-radius: 5;
    border-bottom-right-radius: 5;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-bottomright: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    display: block;
    float: none;
    font-weight: normal;
    height: auto;
    list-style: none outside none;
    margin: 0 4px;
    padding: 0;
    position: relative;
    right: 0;
    text-align: left;
    width: auto;
}
#block-superfish-1 .content ul ul li a, #block-superfish-1 .content ul li.sfHover ul li a{
   float: none;
   top: 0px;
   background: none;
   display: block;
   margin: 0 4px;
   padding: 0;
   text-decoration:none;
   line-height: 2em;
   color: #ffffff;
   font-size: 12px;
   height: auto;
   width: auto;
}
#block-superfish-1 .content ul ul li a:hover, #block-superfish-1 .content ul li.sfHover ul li a:hover{
   background: #254784;
   display: block;
   margin: 0;
   padding: 0px 4px;
   text-decoration:none;
   line-height: 2em;
   color: #ffffff;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   -moz-border-radius-topleft: 0px;
   -moz-border-radius-topright: 0px;
   -webkit-border-top-left-radius: 0px;
   -webkit-border-top-right-radius: 0px;
}
div.sf-accordion-toggle {
  text-align: center;
}
/************** Sidebar Menu *****************/
#region-sidebar-first #block-menu-block-1 {
  background-color: #066baf;
  color: #FFFFFF;
  padding-bottom: 15px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}
#block-menu-block-1 .block-title{
  font-size: 17px;
  padding: 5px;
  color: #ffffff;
  font-weight: normal;
  margin-bottom: 10px;
  margin-left: 10px;
}
#block-menu-block-1 .block-title {
  background: url(../images/curl.png) no-repeat 0 50%;
  padding-left:30px;
/*  position: relative;
  left:-13px;*/
}
#block-menu-block-1 .content {
  margin: 0;
  padding: 0;
}
#block-menu-block-1 .content ul.menu {
  text-align: left;
  list-style: none;
  margin: 0px;
  padding: 2px 12px 2px 0;
}
#block-menu-block-1 .content ul.menu li{
  list-style: none;
  list-style-image: none;
  border-top: 2px solid #214d7c;
  padding: 2px 0;
}
#block-menu-block-1 .content ul.menu li li{
  margin-left: 12px;
}
#block-menu-block-1 .content ul.menu a{
  position: relative;
  display: block;
  text-decoration: none;
  padding: 3px 12px 3px 12px;
  left: -12px;
  margin-right: -24px;
  color: #ffffff;
  font-size: 14px;
  border:none;
  outline:0 none;
}
/*#block-menu-block-1 .content ul.menu li ul { display:none; }*/
/*#block-menu-block-1 .content ul.menu li.active ul,
#block-menu-block-1 .content ul.menu li.active-trail ul { display:block !important; }*/
#block-menu-block-1 .content ul.menu ul li {
  margin-left:22px;
}
#block-menu-block-1 .content ul.menu ul li a {
  font-size:0.9em;
}
#block-menu-block-1 .content ul.menu a.active,
#block-menu-block-1 .content ul.menu a:hover {
  background: #214d7c;
}

/**************** DEADLINES BLOCK *****************/
#block-block-1 p {
  margin-top: 20px;
  margin-bottom: 20px;
}

/**************** HOME PAGE *****************/
.front #region-content .region-content-inner {
  margin: 7px;
}
.front h1 {
  display: none;
}
.front #block-system-main {
  background: #153774; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(left, #153774, #6091b9); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(right, #153774, #6091b9); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(right, #153774, #6091b9); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to right, #153774, #6091b9); /* Standard syntax */
}
.front #block-system-main img {
  border: 0;
  vertical-align: middle;
  margin-right: 5px;
}
.front #block-system-main .field-name-body {
  padding-top: 25px;
}
.front #block-system-main .field-name-body p {
  color: #fff;
  font-style:italic;
  font-size: 14px;
  line-height: 25px;
  text-align: center;
  margin: 25px 0;
  padding: 10px 0;
  background: #12254f; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(left, #12254f, #3b628b); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(right, #12254f, #3b628b); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(right, #12254f, #3b628b); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to right, #12254f, #3b628b); /* Standard syntax */
}

/**************** SLIDESHOW *****************/
#block-views-slideshow-block {
  float: right;
  margin: 20px;
  background-color: #333;
}
.view-id-slideshow {
  position: relative;
}
.view-id-slideshow .views-field-field-photo-upload{
/*  margin-top: 24px;*/
  position: relative;
}
/*.view-id-slideshow .views-field-field-link-url{
  position: absolute;
  left: 0px;
  top: 24px;
  width: 334px;
  height: 207px;
}
.view-id-slideshow .views-field-field-link-url .field-content{
  width: 334px;
  height: 207px;
  display: block;
}
.view-id-slideshow .views-field-field-link-url .field-content a{
  width: 334px;
  height: 207px;
  display: block;
  overflow: hidden;
  text-indent: -9999px;
}
.view-id-slideshow .views-field-field-link-url .field-content span.ext{
  display: none;
}*/
/*.view-id-slideshow .views-field-title {
  margin: 0 5px 0 13px;
  color: #FFFFFF;
  font-size: 10px;
  float: left;
  height: 10px;
  top: -4px;
  position: relative;
}
.view-id-slideshow .views-field-title a{
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
}*/
.view-id-slideshow .views-field-body{
  width: 220px;
/*  height: 30px;*/
/*  top: -3px;*/
  position: relative;
  margin-left: 10px;
  overflow: hidden;
}
.view-id-slideshow .views-field-body p{
  margin: 2px 0;
  color: #FFFFFF;
  font-size: 10px;
  line-height: 1.6em;
}
.view-id-slideshow .views-slideshow-pager-fields{
  position: absolute;
  right: 0px;
  top: 214px;
  width: 100px;
  z-index: 99;
}
.view-id-slideshow .views-slideshow-pager-fields .views-content-counter{
  width: 20px;
  height: 20px;
  display: block;
  float: left;
  background: url(../images/slidebtn.jpg) 0 0;
  overflow: hidden;
  text-decoration: none;
  color: #58595b;
  text-align: center;
}
.view-id-slideshow .views-slideshow-pager-fields .active .views-content-counter{
  background-position: 0 20px;
  color: #FFFFFF;
}
.view-id-slideshow .views-slideshow-pager-fields div {
  display: block;
}

/** News and Publications View **/
.view-recent-news-from-our-grantees .views-field-title {
  font-weight: bold;
  margin-bottom: 5px;
}
.view-recent-news-from-our-grantees .views-field-created {
  margin: 1em 0;
  text-align: right;
}
.view-recent-news-from-our-grantees .views-field-body {
  margin: 1em 0;
}
.view-recent-news-from-our-grantees .views-row,
.view-grant-list .views-row {
  border-bottom: 1px solid #ccc;
  margin: 10px 0;
  padding-bottom: 10px;
}

/** Awards Database View **/
.view-grant-list label,
.view-grant-list .views-label {
  font-size: 11px;
  font-style: italic;
}
.view-grant-list .views-exposed-widgets .description {
  display: none;
}
.view-grant-list .views-exposed-widgets {
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
}
.view-grant-list .views-widget-sort-by {
  clear: left;
}
#edit-field-payment-year-value-value-date {
  width: 100px;
}
.views-field-field-payment-year,
.views-field-field-total-approved-amount,
.views-field-field-project-term-years- {
  float: right;
  clear: right;
}
.view-grant-list .views-field-title {
  margin: 0 100px 5px 0;
}
.view-grant-list .views-field-title a:link,
.view-grant-list .views-field-title a:visited,
.view-related-to-grant-id .views-field-title a:link, 
.view-related-to-grant-id .views-field-title a:visited {
  color: #1372B7;
}
.view-grant-list .views-field-field-organization-name {
  margin-right: 100px;
}
.view-grant-list .views-field-field-organization-name .field-content,
.view-grant-list .views-field-field-program .field-content,
.view-grant-list .views-field-field-project-location .field-content,
.view-grant-list .views-field-field-project-location .location,
.view-grant-list .views-field-field-project-location .adr,
.view-grant-list .views-field-field-project-location .country-name {
  display: inline;
}
.view-grant-list .location-hidden {
  display: none;
}
.view-grant-list div {
  line-height: 1.286em;
}
.node-type-institutional-grants-field-resea .field-name-body {
  margin-top: 10px;
}

/** Related to Grant ID View **/
.view-related-to-grant-id .views-row {
  border-top: 1px solid #ccc;
  margin-top: 20px;
}
.view-related-to-grant-id .views-field-title {
  font-size: 16px;
  margin: 1em 0;
}

/** Node Types **/
.node-institutional-grants-field-resea .field-label {
  font-size: 13px;
  color: #58595B;
  font-style: italic;
  font-weight: normal;
}
.node-institutional-grants-field-resea .field-name-field-organization-name .field-item {
  font-size: 16px;
}
.node-institutional-grants-field-resea .field-name-field-country {
  margin-bottom: 1em;
}
.node-institutional-grants-field-resea .field-name-field-project-goals .field-label {
  margin: 1em 0;
}
.node-institutional-grants-field-resea .field-name-field-total-approved-amount,
.node-institutional-grants-field-resea .field-name-field-project-term-years- {
  float: left;
  margin-right: 5px;
}
.node-institutional-grants-field-resea .field-name-field-payment-year .date-display-single {
  padding-left: 10px;
  margin-left: 10px;
  border-left: 3px double #000;
}
.node-institutional-grants-field-resea .field-name-field-project-director {
  text-align: right;
}
.node-institutional-grants-field-resea .field-name-field-phone-number,
.node-institutional-grants-field-resea .field-name-field-email-address {
  float: right;
}
.node-institutional-grants-field-resea .field-name-field-phone-number {
  padding-right: 10px;
  margin-right: 10px;
  border-right: 3px double #000;
}
.node-institutional-grants-field-resea .field-name-field-project-location {
  margin-top: 3px;
}
.node-institutional-grants-field-resea .location-hidden {
  display: none;
}


/*************** RESPONSIVE ******************/
.not-front #region-content img {
  max-width: 100%;
  height: auto;
}
@media screen and (min-width:980px) { /* @media screen and (min-width:980px) { */
  .wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 962px;
    background: #cccccc url(../images/wrapper-wide.jpg) no-repeat top;
    padding: 18px;
    margin-top: 18px;
    margin-bottom: 50px;
  }
}
@media screen and (min-width:740px) and (max-width:979px) { /* @media screen and (min-width:740px) and (max-width:979px) { */
  .wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 722px;
    background: #cccccc url(../images/wrapper-narrow.jpg) no-repeat top;
    padding: 18px;
    margin-top: 18px;
    margin-bottom: 50px;
  }
  #block-views-image-gallery-footer-block .views-row-5,
  #block-views-image-gallery-footer-block .views-row-6 {
    display: none;
  }
}
@media screen and (max-width:739px) {
  #zone-content,
  #zone-footer,
  #zone-postscript {
    background-color: #fff;
  }
  #region-content,
  #region-sidebar-first,
  #region-postscript-first,
  #region-postscript-second,
  .front #region-content .region-content-inner,
  #region-sidebar-first .block,
  #region-postscript-first .block,
  #region-postscript-second .block,
  #block-block-3 {
    margin-top: 0;
  }
  div.region-inner.region-content-inner {
    margin: 0;
  }
  #block-views-slideshow-block,
  #region-sidebar-first,
  #region-header-second,
  #region-footer-first {
    display: none;
  }
  #block-superfish-1 .content ul {
    height: auto;
  }
  #block-superfish-1 {
    width: auto;
  }
  ul.sf-menu.sf-accordion.sf-expanded, 
  ul.sf-menu.sf-accordion li.sf-expanded > ul,
  #block-superfish-1 .content ul,
  #block-superfish-1 .content ul li {
    left: initial !important;
    right: initial !important;
    background-image: none;
  }
  .logo-img {
    float: none;
    text-align: center;
    padding-top: 20px;
  }
}