/*
   Theme Name: MDN Theme
   Description: This is a custom child theme for MDN Site
   Author: Josiah Goff
   Template: basepress
   Version: 1.0.0
*/

html {
  background-color: #fff;
}

/* Override font size */
.post-item .entry-content {
  font-size: 18px;
}

/* Fix Calendar font size */
.post-1160 .entry-content li {
  font-size: 15px;
}
.post-1160 .entry-content ul {
  margin-left: 0;
}

/* Fix Header */
.site-header {
  padding-top: 30px;
  background-color: #fff;
}

/*Logo*/
.logo img {
  width: auto;
  max-width: 100%;
}

/*Header search box*/
.main-header .container .search-form {
  float: right;
  margin-bottom: 20px;
}

/*Header logo*/
.main-header .container .site-branding {
  margin-top: 0;
}

/*Header Navigation*/
.main-header .main-navigation {
  margin-bottom: 0;
  margin-top: 0;
}
.main-navigation ul a {
  padding: 1.2em 15px;
}
.main-navigation ul a:last-child {
  margin-right: -15px;
}

/*Below Header Navigation*/
.main-header .category-menu {
  border-bottom: 1px solid #e0e0e0;
}

#wpstats {
  display: none;
}
/*After header widget area*/
.after_header_widget_area {
  width: 65.2173913043%;
  float: left;
  margin-right: 4.347826087%;
  height: 110px;
  margin-bottom: 0;
}

.sidebar.widget-area {
  margin-top: -110px;
}

/*Adjust content space for negative ad margin*/
.site-content .content-area {
  margin-top: 0;
}

/*Hide category and pipe on post meata for home page*/
.blog .meta-category, .blog .entry-meta .meta-date::after {
  display: none;
}

/* Fix share buttons */
.sharedaddy ul li::before {
  content: none;
}

/* Fix commodity price widgets */
.oilpricenettable2 {
  margin-bottom: 0;
}
.oilpricenettable2 td {
  border: none;
  margin-bottom: 0;
}
.oilpricenettable2 + br {
  display: none;
}

/* Fix mobile menu */
.mobile-menu-wrapper {
  background-color: #f5f5f5;
}
.mobile-menu-wrapper ul li {
  border-color: #ddd;
}

/* Fix mailchimp form */
#mc_embed_signup form#mc-embedded-subscribe-form {
  padding-left: 0;
}
#mc_embed_signup form#mc-embedded-subscribe-form input {
  width: 100%;
}

/* Comments */
.eMember_comment_section_protected_msg {
  text-align: left;
  margin-bottom: 2em;
}

@media (min-width: 970px) {
  .main-header .site-branding {
    width: 470px;
  }
  .main-navigation {
    width: 400px;
    clear: right;
  }
}

@media screen and (max-width: 970px) {
  /* Fix logo */
  .main-header .site-branding .logo {
    width: auto;
  }
  .main-header .site-branding {
    width: 100%;
  }

  /* Fix search form */
  .main-header .container .search-form {
      float: none;
      margin-bottom: 20px;
      display: block;
  }
}

@media screen and (max-width: 880px) {
  /* Fix join us pricing table */
  .page-id-8136 .entry-content table {
    margin: 1em auto;
    text-align: center;
    display: table;
  }
  .page-id-8136 .entry-content table td {
    display: block;
    width: 100%;
    text-align: center;
  }
  .page-id-8136 .entry-content table img {
    margin: 1em auto;
    display: block;
    float: none;
  }

  /*After header widget area*/
  .after_header_widget_area {
    width: 100%;
    float: none;
    height: auto;
    margin-bottom: 30px;
  }
  .sidebar.widget-area {
    margin-top: 0;
  }

  /*Adjust content space for negative ad margin*/
  .site-content .content-area {
    margin-top: 0;
  }
}
@media (max-width: 568px) {
  .alignleft {
    display: block;
    float: none;
    margin: 0 0 1em;
    text-align: center;
  }
  #footer {
    padding: 1em 20px 2em;
  }
  /* Fix join us image */
  .page-id-8136 .entry-content img {
    display: block !important;
    float: none !important;
    margin-bottom: 1em !important;
  }
  /* Fix join us pricing table */
  .page-id-8136 .entry-content table {
    display: table;
  }
}
