/*
 Theme Name:     Offshoot PerfectPage
 Theme URI:      http://offshootinc.com
 Description:    A theme based on Twenty Twelve, wrapped and ready with Bootstrap
 Author:         Offshoot, Bootstrap, WordPress Community
 Author URI:     http://offshootinc.com
 Template:       twentytwelve
 Version:        2.0.0;
*/

a:hover {
  text-decoration: none;
}

#copyright {
  padding:15px 0;
}

#footerMenu,
#copyright {
  text-align:center;
}

.site-description {
  /* h2 defaulted a little low with Bootstrap CSS so this is the fix */
  margin-top: -8px;
  margin-bottom: 20px;
  font-size: 1.9em;
}

#branding {
  position: relative;
  padding: 20px 0;
}

#branding h1 {
  margin-top: 0;
}

#masthead .brand img {
  max-width: 100%;
  height: auto;
}

#masthead.navbar-nofix {
  padding-bottom: 20px;
}

#masthead.navbar-nofix.align-with-brand {
  padding-bottom: 0;
}

/* basic footer styles to support one line of text (copyright) based on the default bootstrap 20px for vertical spacing */
#colophon {
  margin-top:20px;
  padding:20px 0;
  border-top:1px solid #E7E7E7;
}

.navbar-inverse .navbar-nav>li>a {
  color:#fff;
  background:rgba(0,0,0,0);
}

.navbar-inverse .navbar-nav>li>a:hover, .navbar-inverse .navbar-nav>li>a:focus {
  color: #BDBDBD;
}

.menu {
  list-style:none;
  padding-left:0;
  margin:0;
}

#masthead .navbar {
  margin-bottom: 0!important;
}

#masthead .nav li {
  position: relative;
}

#menu-header-menu li,
#menu-footer-menu li,
#masthead .menu li {
  display:inline-block;
  margin:0 10px;
}

#headerMenu {
  padding: 10px 0;
  background: transparent;
  text-align: left;
}

#headerMenu .menu li {
  padding: 0;
  margin: 0 10px 0 0;
  display: inline-block;
  vertical-align: middle;
}

.social-nav-item a {
  display: inline-block;
  text-indent: -9999px;
  width: 30px;
  height: 30px;
  border-radius: 100px;
  background-size: 100%;
}

.social-nav-item.fb a {
  background: url(http://wpbuilder.offshootwpn.com/wp-content/uploads/2014/07/facebook_icon1.png) no-repeat left top;
  background-size: 100%;
}

.social-nav-item.tw a {
  background: url(http://wpbuilder.offshootwpn.com/wp-content/uploads/2014/07/twitter_icon1.png) no-repeat left top;
  background-size: 100%;
}

.social-nav-item.yt a {
  background: url(http://wpbuilder.offshootwpn.com/wp-content/uploads/2014/07/youtube_icon.png) no-repeat left top;
  background-size: 100%;
}

.social-nav-item.ig a {
  background: url(http://wpbuilder.offshootwpn.com/wp-content/uploads/2014/07/instagram_icon.png) no-repeat left top;
  background-size: 100%;
}

.alignleft {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
}

.alignright {
  float: right;
  margin-left: 10px;
  margin-bottom: 10px;  
}

.jumbotron {
  margin-bottom: 30px;
  padding-left: 0;
  padding-right: 0;
}

.jumbotron h1 {
  margin: 0;
}
.snippet {
  position: relative;
}

.snippet .edit-snippet {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: none;
}

.snippet:hover .edit-snippet {
  display: block;
}

/*
*
*
*
*
*
*
* Page Components 
*
*
*
*
*
*
*/

.snippet-bundle,
.snippet,
.component-sidebar-widget {
  margin: 30px 0;
}

.snippet-bundle > .snippet:first-child {
  margin-top: 0;
}

.snippet-bundle > .snippet:last-child {
  margin-bottom: 0;
}

.component-title {
  margin: 0 0 20px 0;
}

.column-content h1:first-child,
.column-content h2:first-child,
.column-content h3:first-child,
.column-content h4:first-child,
.column-content h5:first-child {
  margin-top: 0;
}

.column-content p:last-child,
.column-content ol:last-child,
.column-content ul:last-child {
  margin-bottom:0;
}

.table-component .table {
  margin-bottom: 0;
}
.panel-title>a {
  display: block;
}

.content-row-col-title {
  margin-top: 0;
}

.content-row-component .column .btn {
  max-width: 100%;
  white-space: normal;
}

.category-feed-component .panel-group {
  margin-bottom: 0 !important;
 }

 .slider-wrap {
  position: relative;
}

.slider-content {
  position: absolute;
  top: 15px;
  left: 15px;
  max-width: 50%;
}

.slider-content.full-width {
  text-align: center;
  max-width: none;
  right: 15px;
}

.slider-content h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  line-height: 35px;
  margin-bottom: 15px;
}

.slide-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.learn-more-button {
  margin-top: 10px; /* same as Bootstrap p tag */
}

.enable-link-overlay {
  position: relative;
}

.link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.page-list-component .vertical-column .post {
  margin-bottom:30px;
}

/* Post Component */
.post-component {
  padding: 15px 0;
}

.post-component .post-thumbnail {
  text-align: center;
}

/* Content Row Component */
.content-row-title {
  margin: 0;
  padding: 15px 0;
}

.content-row-component .column img {
  max-width: 100%;
  height: auto;  
}

/* Post Category Feed Component */

.category-feed-component > .row {
  margin-bottom: 30px;
}

.category-feed-component h3 {
  margin-top: 0;
}
 

/* Plugins */
.vfb-legend {
  display: none;
}

.vfb-item-instructions label {
  display: none;
}

.vfb-section {
  list-style: none;
  padding: 0;
  margin: 0;
}

.visual-form-builder .form-control,
.visual-form-builder .vfb-item-instructions {
  margin-bottom: 15px;
}

.flexslider {
  margin-bottom: 30px !important;
}

#pageIntroSlider .flexslider {
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  border-radius: none !important;
}

/* footer widget */
#colophon #footerWidgets h4 {
  margin-top:0;
}

/* posts */
.post-thumbnail img {
  max-width: 100%;
  height: auto;
}

.single .entry-header {
  text-align: center;
}

.single .entry-header h1 {
  text-align: left;
  margin-top: 0;
}

.single .entry-header img {
  max-height: 500px;
  width: auto;
  margin-bottom:20px;
}

@media all and (max-width: 767px) {

  #masthead .navbar {
    /* this is a hack to combat the js alignment of the nav to the header image */
    margin-top: 0 !important;
  }

  .content-row-column {
    margin: 30px 0;
  }

  .content-row-component > .component-content > .row > .content-row-column:first-child {
    margin-top: 0;
  }

  .content-row-component > .component-content > .row > .content-row-column:last-child {
    margin-bottom: 0;
  }

}

@media all and (min-width: 768px) {

  #masthead.navbar-nofix.align-with-brand .brand {
    float:left;
  }

  #masthead.navbar-nofix.align-with-brand #primaryMenu {
    float:right;
  }  

  #masthead .navbar-nav.navbar-center {
    float: none;  
    text-align: center;
    font-size: 0;
  }

  #masthead .navbar-nav.navbar-center>li {
    float: none;
    display: inline-block;
    font-size: 16px;
  }

  .navbar-nav.navbar-right:last-child {
    margin: 0 !important;
  }  

  #masthead .navbar .sub-menu {
    display: none;
    position: absolute;
    z-index: 999;
    white-space: nowrap;
    top:100%;
    left: 0;
  }

  #masthead .navbar-right .sub-menu,
  #masthead.align-with-brand .navbar .sub-menu {
    left: auto;
    right: 0;
  }

  #masthead .navbar-nav > li .sub-menu {
    padding: 0;
    margin: 0;
    text-align: left;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  #masthead .navbar-nav>li .sub-menu li a {
    padding: 2px 15px;
  }  
  
  #masthead .navbar-nav > li .sub-menu .sub-menu {
    padding-top: 12px;
  } 

  #masthead .navbar .sub-menu .sub-menu {
    display: none;
    left: 100%;
    top: -12px;
  }

  #masthead .navbar-right .sub-menu .sub-menu,
  #masthead.align-with-brand .navbar .sub-menu .sub-menu {
    left: auto;
    right: 100%;
  }

  #masthead .navbar .menu-item-has-children:hover > .sub-menu,
  #masthead .navbar .menu-item-has-children:hover .sub-menu .menu-item-has-children {
    display:block;
  }  

  #masthead .navbar-nav > li .sub-menu li {
    display: block;
    list-style: none;
  }

  /*
  *
  *
  *
  *
  *
  *
  * Page Components 
  *
  *
  *
  *
  *
  *
  */

  .snippet-bundle,
  .snippet,
  .component-sidebar-widget {
    margin: 30px 0;
  }

  .snippet-bundle > .snippet:first-child {
    margin-top: 0;
  }

  .snippet-bundle > .snippet:last-child {
    margin-bottom: 0;
  }  

  .slider-wrap {
    position: relative;
  }

  .slider-content {
    top: 35px;
    left: 45px;
  }

  .slider-content.full-width {
    right: 45px;
  }  

  .slider-content h1 {
    font-size: 80px;
    font-weight: 900;
    line-height: 70px;
  }

  .page-list-component .nav.vertical>li a span {
    display: inline;
  }
  
  .page-list-component .nav.vertical>li a img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  .page-list-component .nav.vertical>li .page-list-excerpt {
    padding-left: 0;
  }

}