/*
 Theme Name:   Hard Times 2.0
 Template:     mission-news
 Author: 	   Clayton Hebenik
 Version: 	   1.0
 Author URI:   https://claytonhebenik.com
 Description:  This is a child theme theme built for http://thehardtimes.net using the Mission News WordPress theme - https://www.competethemes.com.
 License: GNU  General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

@import url("../mission-news/style.min.css");

/* =Theme customization starts here
-------------------------------------------------------------- */
.loop-container .post-title {
	font-weight: bold;
}

@media screen and (min-width: 600px) {
	#loop-container .entry.double {
	  border: none;
	}
}

.loop-container h1.post-title {
	margin-top: 0;
}

.sidebar-right {
	display: table-row-group;
}

.sidebar-left {
	display: table-footer-group;
}

/** CTAs **/
.cta-box {
  background-color: #fafafa; 
  border: 1px solid #eee;
  border-top: none;
  padding: 0 16px 16px;
}

.button-outline, .button-solid {
  display: inline-block;
  float: none;
  text-align: center;
  border: 1px solid #3EB565;
  font-family: PT Serif,serif;
  font-size: 16px;
  opacity: 1;
  padding: 2px 8px;
  position: relative;
  z-index: 0;
}
.button-outline, .banner-box .banner-button {
  color: #3EB565;
}
.button-solid {
  border: none;
  color: #fff !important;
  padding: 3px 8px;
}
.button-outline:before, .button-solid:before {
  bottom: 0;
  content: ' ';
  height: 0;
  left: 0;
  position: absolute;
  transition: height 0.1s ease-in-out;
  width: 100%;
  z-index: -1;
}
.button-outline:hover, .button-solid:hover {
  color: #fff !important;
  opacity: 1;
}
.button-outline:before, .banner-box .banner-button:before {
  background-color: #3EB565;
  color: #fff !important;
}
.button-solid:before {
  background-color:#5c23a9;
}
[class*="button-"]:hover:before, .banner-box:hover .banner-button:before {
  height: 100%;
}
.button-solid {
  background: #3EB565;
}

/** Lead Text **/
.lead {
  font-style: italic;
  margin-bottom: 16px;
  margin-top: 0;
}

/* Home page Videos */
#after-first-post {
  clear: both;
  text-align: left;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 1.125em;
}

#after-first-post h2 {
  font-weight: bold;
}

#after-first-post .widget .style-1 ul {
  display: grid;
  grid-column-gap: 15px;
  grid-row-gap: 0;
  grid-template-columns: 23% 23% 23% 23%;
}

#after-first-post .widget .style-1 li {
  background-color: #fafafa;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  padding: 8px;
}

#after-first-post .widget .style-1 li:hover {
  opacity: 0.85;
  transition: opacity 0.1s ease-in-out;
}

#after-first-post .widget .style-1 .title {
  font-size: .875em;
  font-style: normal;
  font-weight: normal;
  line-height: 1.333;
}

/* Shop Button After first post */
#after-first-post .widget_text, #after-post .widget_text {
  width: 100%;
  border-right: none;
}

@media screen and (max-width: 600px) {
  #after-first-post .widget .style-1 ul {
    grid-template-columns: 47% 47%;
  }
  #after-first-post .widget_text, #after-post .widget_text {
    width: 47%;
    border-right: none;
    float: left;
    margin: 0 1.5%; 
  }
}

#loop-container .post-content, .sidebar-right .post-item .excerpt {
  word-wrap: break-word;
}
.sidebar-right .post-item .excerpt {
  max-width: 298px;
}
/* End of Home Page Videos */

/***** Ad blocks *****/
.widget-area-above-main {
  margin-bottom: 0;
}

.widget-area-above-main, .widget-area-below-header {margin-bottom: 0;}
#below-header {
  border-bottom: none;
}
#below-header .widget {
  border: none;
  width: 100%;
}

/***** Navigation *****/
a.page-numbers,
a:link,
a:visited {
  color: #3EB565;
  text-decoration: none;
}

a { text-decoration: none; }
a:hover {
  color: #3EB565 !important;
  opacity: 0.6;
  text-decoration: underline !important;
}

.layout-container .widget-title
.site-header .date,
.menu-primary-items a, .menu-unset ul a,
.menu-secondary .menu-unset>ul a, .menu-secondary-items a,
.more-from-category .top {
  font-family: 'PT Serif', Times New Roman, serif;
}

@media screen and (max-width: 799px ) {
  .site-logo, .custom-logo {
    width: 120px;
  }

}

.search-toggle,
.toggle-navigation,
.site-header .social-media-icons a,
.site-header .social-media-icons a:link,
.site-header .social-media-icons a:visited,
.site-footer .social-media-icons a,
.site-footer .social-media-icons a:link,
.site-footer .social-media-icons a:hover {
	border: none;
	font-size: 18px;
	line-height: 1;
}

/* Secondary Nav */
@media screen and (min-width: 50em) {
  #menu-primary {
    padding: 0;
  }
  .top-nav {
    position: relative;
  }

  .menu li.shop-link a {
    border: 1px solid #3EB565;
    color: #3EB565;
    padding: 2px 8px;
    position: relative;
    z-index: 0;
  }

  .menu li.shop-link a:hover {
    color: #fff !important;
    opacity: 1;
  }

  .menu li.shop-link a:before {
    background-color: #3EB565;
    bottom: 0;
    content: ' ';
    height: 0;
    left: 0;
    position: absolute;
    transition: height 0.1s ease-in-out;
    width: 100%;
    z-index: -1;
  }

  .menu li.shop-link a:hover:before {
    height: 100%;
  }

  /* .site-header .social-media-icons {
    margin-right: 70px;
  } */
}

/* Logo */
.menu-primary-container .custom-logo-link,
.menu-primary-container .site-logo-link {
  float: left;
  padding: 10px;
  width: 10%;
}

.top-nav {
	font-size: 18px;
}

@media screen and (min-width: 50em) {
	.title-container {
		margin-bottom: 0.6em;
	}
}

/***** Post Category Styles *****/

/* Featured Image Border */
.main .post:first-child .featured-image img, 
.single-post .main .featured-image img {
  border-top: 6px solid #3EB565;
}

.category-hardstyle .main .post:first-child .featured-image img, .single-post .main .category-hardstyle .featured-image img {
  border-color: #B93532;
}

.category-harddrive .main .post:first-child img,
.category-video-games .main .post:first-child img,
.category-tabletop-games .main .post:first-child img,
.category-entertainment .main .post:first-child img,
.category-technology .main .post:first-child img,
.category-opinion-harddrive .main .post:first-child img,
.category-video-harddrive .main .post:first-child img,
.category-politics .main .post:first-child img,
.single-post .main .category-harddrive .featured-image img {
  border-color: #5c23a9;
}
/* Network Menu*/
#menu-secondary-sites {
  background: #ffffff;
  position: relative;
  text-align: left;
  font-size: 0.78em;
}
#menu-secondary-sites ul {
  margin: 0;
}

#menu-secondary-sites a {
  background: none;
  color: #666666;
  text-decoration: none;
  -webkit-transition: color 0.15s;
  transition: color 0.15s;
  position: relative;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 0;
}

#menu-secondary-sites a:hover {
  color: #121212;
}
@media screen and (min-width: 800px) {
    #menu-secondary-sites {
        border-bottom: 1px solid #ddd;
    }
  #menu-secondary-sites li {
      border-right: 1px solid #ddd;
      position: relative;
      border-top: 4px solid #f5f5f5;
  }
  #menu-secondary-sites a {
      padding: 6px 16px;
      opacity: 0.6;
  }

  #menu-secondary-sites a:hover {
    color: #fff !important;
    opacity: 1;
  }

  #menu-secondary-sites li.active {
        box-shadow: 0px 2px 0px #fff;
        position: relative;
        z-index: 10;
        border-left: 1px solid #ddd;
    }
    #menu-secondary-sites li.active a {
      opacity: 1;
    }
    #menu-secondary-sites li.active.hardtimes-link {
        border-top-color: #3EB565;
    }
    #menu-secondary-sites li.active.harddrive-link {
        border-top-color: #5c23a9;
    }
    #menu-secondary-sites li.active.money-link {
        border-top-color: #ee2d24;
    }
  
    #menu-secondary-sites a:before {
      background-color: #666;
      bottom: 0;
      content: ' ';
      height: 0;
      left: 0;
      position: absolute;
      transition: height 0.1s ease-in-out;
      width: 100%;
      z-index: -1;
    }
  
    #menu-secondary-sites li a:hover:before {
      height: 100%;

    }
    
    #menu-secondary-sites li.hardtimes-link a:before {
        background-color: #3EB565;
    }
    #menu-secondary-sites li.hardnoise-link a:before, #menu-secondary-sites li.hardoise-link a.active:before {
        background-color: #121212;
    }
    #menu-secondary-sites li.harddrive-link a:before {
        background-color: #5c23a9;
    }
    #menu-secondary-sites li.money-link a:before {
        background-color: #ee2d24;
    }
  
}
@media screen and (max-width: 799px) {
  #menu-secondary-sites {
    display: none;
  }
  #menu-secondary-sites.moved {
    display: block;
      top: -42px;
      text-align: left;
      padding: 8px 5.556% 0;
  }
  #menu-secondary-sites ul {
      top: 0;
  }
  
  #menu-secondary-sites li {
      display: block;
      border-bottom: solid 1px #262626;   
  }
  
  #menu-secondary-sites li:last-child {
      border: none;
  }

  #menu-secondary-sites li a {
      padding: 12px 0;
      display: block;
  }

  #menu-hard-drive-menu {
    margin-top: 42px;
  }
}
@media screen and (min-width: 50em) {
  .category-coil-exclusives .main {
    width: 35%;
    margin-left: 32.5%;
  }
  .single.coil .main {
    width: 40%;
    margin-left: 30%;
  }
}
/***** Sidebars *****/

/* Sidebar Widgets */
@media screen and (max-width: 50em) {
	/* .home .sidebar-right {
		display: table-header-group;
	} */

	.home .main {
		display: table-row-group;
	}
}

.layout-container .widget-title {
  border-bottom: 3px solid #DCDCDC;
  font-family: PT Sans, sans-serif;
  font-style: italic;
  padding-bottom: 8px;
}

.sidebar-right #ct_mission_news_post_list-2 .widget-title,
.sidebar-hard-drive h2.widget-title {
  border-color: #5c23a9;
}

.sidebar-right #ct_mission_news_post_list-3 .widget-title,
.sidebar-blog h2.widget-title {
	border-color: #3EB565;
}

.sidebar .style-1 .title {
	font-size: 1.125em;
  line-height: 1.333;
}

/* Larger first post in category sidebar */
.category-sidebar ul li:first-child.has-image .featured-image {
  display: block;
  height: auto;
  float: none;
  padding: 0;
  width: 100%;
}
.category-sidebar ul li:first-child.has-image img {
  margin-bottom: 6px;
  position: static;
}

.category-sidebar .top-inner .post-byline {
  display: none;
}

.category-sidebar ul li:first-child.has-image .top-inner .post-byline {
  color: #666;
  display: block;
  font-family: "PT Serif",serif;
  font-size: .75em;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.5;
  text-transform: uppercase;
}

.category-sidebar ul li:first-child.has-image .top-inner a {
  color: #000;
  font-size: 1.3125em;
  font-weight: 700;
  font-style: italic;
  line-height: 1.143;
  margin: 6px 0;
}


/* Left sidebar up to 799px */
@media screen and (max-width: 799px) {
  #sidebar-left .widget, #sidebar-right .widget {
    width: 100%;
  }
  .sidebar .widget {
    clear: none;
  }
  .layout-left-sidebar .sidebar-left .widget,
  .layout-left-sidebar-wide .sidebar-left .widget,
  .layout-right-sidebar .sidebar-right .widget,
  .layout-right-sidebar-wide .sidebar-right .widget {
    width: 48%;
  }

	.home .sidebar-right .inner {
		border: none;
		margin: 0;
		padding-top: 0;
	}
}
/* Top Posts */

.widgets-list-layout .widgets-list-layout-blavatar {
  max-width: 55px !important;
}

.widgets-list-layout .bump-view {
  color: #000;
  font-size: .875em;
  line-height: 1.286;
}

.widgets-list-layout .bump-view:hover {
  color: #3eb565!important;
  opacity: 0.6;
  text-decoration: none;
}
/* Hide sidebar content on mobile homepage */
/*@media screen and (max-width: 455px) {
	.home .widget_ct_mission_news_post_list, .home .popular-posts {
		display: none;
	}
}*/

/* Fixed height scrolling sidebar */
@media screen and (min-width: 600px ) {
  /*#ct_mission_news_post_list-3,
	.sidebar-hard-style {
		border: 1px solid #eee;
    height: 500px;
    overflow-y: scroll;
		background-color: #fafafa;
		padding: 16px;
	}*/
}

/* Sponsored Post */
.s-post-image, .s-post-title {
  display: block;
}

.s-post-image img {
	width: 100%;
}

.s-post a.s-post-title {
  color: #000;
  font-size: 1.3125em;
  font-weight: 700;
  font-style: italic;
  line-height: 1.143;
  margin: 6px 0;
}

.s-meta {
  color: #666;
  font-size: .75em;
  letter-spacing: .03em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media only screen and (max-width: 799px) {
	.mobile-widget {
		background: #fafafa;
		border: 1px solid #eee;
		padding: 10px;
		width: 100%;
	}
	.s-post .sponsor {
		display: flex;
	}
	.s-post a.s-post-image {
		margin-right: 12px;
		min-width: 50px;
    max-width: 100px;
	}
	.s-post  a.s-post-title {
		font-size: 0.95em;
		margin: 0 0 6px;
  }
  .s-block {
    display: flex;
    align-items: center;
  }
  .s-post-image {
    overflow: hidden;
  }
  .s-post-image img {
    width: 150%;
    max-width: 200%;
    margin-left: -15%;
  }
}

/***** Post Styles *****/

/* Home Page first post */
@media screen and (min-width: 50em) {

	.home .loop-container .post:first-child {
		padding-bottom: 1.125em;
		border-bottom: solid 1px #dcdcdc;
		text-align: center;
	}
	.home .loop-container .post:first-child .post-title {
		font-size: 1.85em;
	}

	.home .loop-container .post:first-child .post-content {
		font-size: 1.15em;
		font-style: italic;
	}

}

/* End of Home Page first post */

/* Reduce size of Post Loop Images */

.layout-double .double .featured-image, 
.layout-rows .rows .featured-image, 
.layout-rows-excerpt .rows-excerpt .featured-image, 
.more-from-category .featured-image, 
.widget_ct_mission_news_post_list .style-2 .featured-image {
  padding-bottom: 55%;
}

/* Post Content */
.post-byline {
	font-size: 12px;
}

@media screen and (min-width: 600px) {
  .single .post-content {
    width: 80%;
  }
}

.single .post-content, .single .post-header {
  font-size: 1.2em;
  line-height: 1.6em;
  margin: 2em auto;
}

@media screen and (max-width: 799px) {

  .single .post-content, .single .post-header {
    margin: 0.5em auto ;
  }

	.single .post-content {
		font-size: 1em;
	}

	.single .post-header h1 {
		font-size: 1.3em;
	}

}

.single .post-content > p:first-child:first-letter, 
.single .post-content a:first-child + p:first-letter,
.single .post-content > .code-block:first-child + p:first-letter,
.single .post-content > p.intro:first-letter,
#hindsight-unique-para-1:first-letter {
  float: left;
  font-size: 4em;
  line-height: 0.9em;
  padding-top: 2px;
  padding-right: 8px;
}

/* Social Share */
.social-sharing-wrapper {
    text-align: center;
    width: 100%;
		line-height: 40px;
    margin-bottom: 20px;
    font-size: 17px;
}

.social-sharing-wrapper::after, .social-sharing-wrapper:after {
	content: ' ';
	clear: left;
  display: block;
}

.social-share-title {
  background-color: #f8f8f8;
  color: #999;
  font-size: 18px;
  font-style: italic;
  margin: 0;
  padding: 8px;
  text-align: center;
}

.social-sharing-wrapper a {
	color: white;
	display: block;
	float: left;
	height: 40px;
	width: 33.333%;
  word-wrap: normal;
  margin-top: 16px;
}

.social-sharing-wrapper a:hover {
	color: white !important;
}

.social-sharing-wrapper a i {
    margin-right: 8px;
}

.social-sharing-wrapper div {
    display: inline-block;
}

#jg-facebook-share {
    background-color: #3b5998;
}

#jg-twitter-share {
    background-color: #00aced;
}

#jg-reddit-share {
  background-color: orangered;
}

#jg-social-share-count {
  color: #008000;
  padding: 10px;
  font-weight: bold;
  font-size: 35px;
  margin-top: -5px;
  text-align: center;
  vertical-align: middle;
}

#jg-social-share-count span {
  display: block;
  font-size: 12px;
  font-weight: normal;
  line-height: 5px;
}

#jg-share-count { display: none; }
@media screen and (max-width: 600px) {
  /* .social-sharing-wrapper #jg-share-count {
    display: block;
    margin-bottom: 10px;
  } */
  .social-sharing-wrapper {
    font-size: 14px;
  }
  /* #jg-reddit-share {
  } */
}

/* Post Watermark */
.single-post #main .featured-image::after {
	content: 'Full story: thehardtimes.net';
	display: block;
	color: white;
	bottom: 12px;
	position: absolute;
	left: 10px;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
	font-size: 12px;
}
.single-post #main .category-harddrive .featured-image::after {
  content: 'Full story: hard-drive.net';
}

.single-post #main .category-hardstyle .featured-image::after {
  content: 'Full story: thehardtimes.net/hardstyle/';
}


/* Post In-Content Ad */
/* .post-content .code-block > div:before, .post-content .code-block > div::before {
	
} */

.post-content .code-block {
	margin: 8px -10%;
	width: 100%;
}
.post-content p.intro + .code-block > div:before,
.post-content .code-block-11 > div:before {
  content: 'Advertisement';
  display: block;
}
.post-content p.intro + .code-block > div,
.post-content .code-block-11 > div {
	color: #DCDCDC;
	display: block;
	font-size: 14px;
	font-style: italic;
	background: #fafafa;
	border: 1px solid #eee;
	padding-bottom: 18px;
	text-align: center;
	width: 100%;
}

@media screen and (min-width: 50em) {
	.post-content .code-block {
		margin: 8px auto;
		width: 100%;
	}
}

/* After Post Content */
.post-meta {
  border-bottom: none;
}

.widget-area:not(.active-1).widget-area-after-post {
  margin: 0;
  padding: 16px 0;
}

.support-hardtimes {
  border: 1px solid #ddd;
	color: #999;
	margin: 2.5em 0;
	text-align: center;
}

.support-hardtimes p {
  background-color: #fafafa;
	font-size: 14px;
	font-style: italic;
  margin: 0;
  padding: 8px;
}

.featured-product {
  text-align: center;
  width: 100%;
}

.featured-product div {
  margin: 0 auto 10px;
}

.featured-product div iframe {
  min-height: 356px !important;
}

.featured-product a {
  display: block;
}

.featured-product img {
  max-width: 200px;
}

.post .shopify-buy__product__variant-img {
	width: 50px;
}

@media screen and (max-width: 799px) {
  .support-hardtimes {
    margin-bottom: 0;
  }
}
@media screen and (max-width: 799px) {
	.hide-mobile {
		display: none;
	}
}

/*** Notification Bar ***/
.notif-bar a {
  background-color: #3EB565;
  border-bottom: 2px solid #40a862;
  color: white !important;
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 4px 0;
  text-align: center;
  transition: opacity .25s;
}

.notif-bar a:hover {
  color: white;
  opacity: 0.8;
}

@media screen and (max-width: 699px) {
  .notif-bar a {
    font-size: 12px;
  }
}

#jp-relatedposts {
  display: none !important;
}

/***********************
*** Hard Times Fest ***
***********************/

.fest .footer-title-container {
  display: none;
}

/*
* Pagination tweak to look more like Hard Drive's. by: Danek, 2023-07-10
*/
.post-pagination {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin: 42px auto;
}
p.singular-pagination {
    text-align: center;
    font-weight: bold;
    visibility: hidden;
    display: inline;
}

.singular-pagination * {
    text-align: center;
    font-weight: bold;
    color: #000;
    display: block;
    visibility: visible;
}

.singular-pagination .post-page-numbers {
    border: 1px solid gray;
    color: #000;
    display: inline-block;
    padding: 9px 17px;
    margin-bottom: 4px;
}

.singular-pagination .post-page-numbers.current {
    opacity: 1;
    border: 0px;
    color: #3eb565;
}

.singular-pagination .post-page-numbers.current:before, .post-pagination h4 {
    /* content: 'Continue Reading: '; */
    color: black;
    display: inline;
    font-weight: bold;
    margin: 24px 0;
}

.pagination a.page-numbers:hover,
.singular-pagination a.post-page-numbers:hover {
    opacity: 1;
    transition: all 250ms ease-in-out;
    border: 1px solid #3eb565;
}
/*
* End Danek's Pagination tweak
* */