/*The below styles are necessary to work with classes etc predefined by Wordpress*/

/*--------------------------------------------------------------
Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

/*--------------------------------------------------------------
Alignments
--------------------------------------------------------------*/
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

/*--------------------------------------------------------------
Captions
--------------------------------------------------------------*/
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
    width: 45%;
    background: #fff;
    padding: 1%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    color: #333;
    font-size: .8em;
    line-height: 1.4;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

/*--------------------------------------------------------------
Galleries
--------------------------------------------------------------*/
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 1%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
Comments
--------------------------------------------------------------*/
#comments {
    padding: 40px 0 0 0;
}

.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.comment-list .children {
    padding-left: 35px;
}

/*--------------------------------------------------------------
Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
    display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
    display: block;
}

/************************************************************************/

/* STYLES NEED SPECIFICALLY TO WORDPRESS RELATED CLASSES */
#b4 {
    border-bottom: 3px solid #005da9;
}

figure {
    margin: 0;
    padding: 0;
}

.navbar .nav>.active>a, .navbar .nav>.active>a:hover, .navbar .nav>.active>a:focus {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.toc.maps li {
    margin-bottom: 60px;
    display: block;
    float: left;
    width: 300px;
    margin-right: 25px;
}

.favicon-list {
    list-style: none;
    margin-left: 0;
}

.favicon-list li {
    padding-left: 18px;
    position: relative;
    background: none;
}

.module-blog-list {
    margin: 0 0 30px 0;
}

/*FORMS*/
textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
    border: 1px solid #bbb;
    width: auto;
}


/*flexslider*/

#slides-home,
.flexslider-sidebar {
    border: none;
    margin: 0;
}

#slides-home .slide-image {
    max-height: 300px;
    display: block;
}

#slides-home .slide-content {
    display: block;
    font-size: .9em;
    position: absolute;
    top: 13%;
    width: 36%;
    height: 60%;
    padding: 2% 3%;
    color: #000;
    background: #fff;
    border-radius: 0 10px 10px 0;
    z-index: 2;
}

#slides-home .flex-direction-nav a {
    position: absolute;
    z-index: 3;
    top: 48%;
    left: 54%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 60px;
    font-weight: 100;
    line-height: 18px;
    color: #222;
    text-align: center;
    background: #fff;
    border: none;
    border-radius: 23px;
    opacity: 0.5;
    filter: alpha(opacity=50);
    cursor: pointer;
}

#slides-home .flex-direction-nav a.flex-next {
    right: 34%;
    left: auto;
}

#slides-home .slide-header {
    border-bottom: none;
}

#slides-home .flex-direction-nav a.flex-next:before {
    content: '›';
}

#slides-home .flex-direction-nav a.flex-prev:before {
    content: '‹';
}

#slides-home .flex-control-paging,
.flexslider-sidebar .flex-control-paging {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    margin: 0;
    list-style: none;
    text-align: left;
    width: auto;
}

.flexslider-sidebar .flex-control-paging {
    top: -20px;
    right: -10px;
}

#slides-home .flex-control-paging li,
.flexslider-sidebar .flex-control-paging li {
    display: block;
    float: left;
    margin: 0 0 0 5px;
    text-indent: -999px;
    cursor: pointer;
}

#slides-home .flex-control-paging li a,
.flexslider-sidebar .flex-control-paging li a {
    background-color: #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 10px;
    height: 10px;
}

#slides-home .flex-control-paging li a:hover,
.flexslider-sidebar .flex-control-paging li a:hover {
    background-color: #ddd;
}

#slides-home .flex-control-paging li a.flex-active,
.flexslider-sidebar .flex-control-paging li a.flex-active {
    background: #f75a32;
}

.flexslider .slides .more {
    padding: 10px 0 0 0;
    position: static;
    float: right;
}

.flexslider .slides .more img {
    width: auto;
    display: inline;
}


@media only screen and (max-width: 767px) {
    .home-main-links-box,
    .flex-direction-nav,
    .home-search {
        display: none;
    }

    #slides-home .slide-content {
        position: static;
        height: auto;
        width: auto;
    }
}

@media only screen and (max-width: 480px) {
    textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
        width: 100%;
    }

    .comment-list {
        padding-left: 0;
        padding-right: 0;
    }
}


/*--------------------------------------------------------------
Suppress side bar on selected pages
--------------------------------------------------------------*/

/* After a page is created, one can located it's "page-id".  On the edit page links this can be found:

  http://berkeleyearth.org/wp-admin/post.php?post=650&action=edit

Where 650 is the page-id for this page.  When looking at a published page, if you look at "view source" in the browser you can find a line like '<body class="page page-id-650 ...', which also shows the page-id.  Using this information, it is possible to suppress the side bar by modifying the following code. */

.page-id-650 .sidebar, 
.page-id-1201 .sidebar, 
.page-id-1672 .sidebar {
    display: none;
}

.page-id-650 .main-content, 
.page-id-1201 .main-content,
.page-id-1672 .main-content {
  width: 100% !important;
}

.page-id-1672 .main-content {
  padding-right: 0px;
}

.page-id-1672 .container { 
  width: 95%;
}

.page-id-650 .toc {
    display: none;
}

.page-id-1201 ul li {
  margin-bottom: 0px;
}