/*
Theme Name: Up to Four Players
Template: comicpress
Author: Philip M. Hofer (Frumph) (design by Up to Four Players)
Description: Up to Four Players skin of the ComicPress theme.
Tags: two-columns,three-columns,left-sidebar,right-sidebar,custom-background,custom-header,custom-menu,theme-options,threaded-comments,sticky-post,translation-ready,flexible-header,featured-images
Version: 4.841
Updated: 2022-02-07 09:26:00
*/

/*
Changes to other files:
==================
25/12/17: In displaypost.php (under Functions):
Edited comicpress_display_post_calendar() to show year in post title
==================
12/09/2020: In header.php:
- Added the header-social div with social icons and patreon banner
- Added the mobile-menu-button div with the hamburger button for mobile
- Added script for toggling mobile menu
==================
19/09/2020: 
Playing around with Disqus plugin to show comments on homepage:
- The condition that currently stops it from showing comments is in ** Disqus Plugin > public > class-disqus-public.php line 309 **. 
- ^^ I disabled it for now.
But when disabled, it shows comments for the most recent post (https://www.uptofourplayers.com/2019/07/buy-the-crystal-heart-role-playing-game) rather than most recent Comic post.
- I guess where Disqus gets the recent post info is at the end of ** includes > class-disqus.php ** ?
- $post stuff also happens in 
	** rest-api > class-disqus-rest-api.php ** from line 329 and a bunch more from line 634 
	** public > class-disqus-public.php ** throughout
==================
06/12/2020:
Added Amazon Stock page styles
==================
28/3/2021:
Hardcoded "First" to go to the first page of Crystal Heart rather than the old strips:
Plugins > Plugin Editor > Comic Easel
widgets > navigation.php
function display_comic_nav_wrapper
==================
08/12/2021:
- Changed content container width to 1002px
- Added rtr-image class
- Added vertical-align:top to rtr thumbnails
==================
7/2/2022:
- Changed .rpg-page div.buy-crystal-heart-option.pdf div.buy-crystal-heart-buttons to make room for "print on demand" text
*/

/*===================*/
/*      General      */
/*===================*/
body {
	font-family: 'Open Sans', sans-serif;
    color: #1e263a;
	background: #fff url('images/top-grad.jpg') repeat-x 0 0;
    padding: 0;
}
a, #subcontent-wrapper a {
    color: #3f7846;
	text-decoration: none;
}
a, #subcontent-wrapper a:hover {
    text-decoration: underline;
}
hr {
    border-top: 1px solid #ded6cd;
}
h2 {
	font-size: 28px;
}
h2.page-title {
	text-align: center;
	font-size: 40px;
	line-height: 1.2;
	color: #1e263a;
	margin:4px 0 20px 0;
}
.is-mobile h2.page-title {
	margin: 0;
	padding: 0;
}
h3 {
	font-size: 24px;
}
h3.center {
	text-align: center;
}
textarea:focus {
    outline: none;
    -moz-box-shadow: 0 0 0 1px #ded6cd;
    -webkit-box-shadow: 0 0 0 1px #ded6cd;
    -o-box-shadow: 0 0 0 1px #ded6cd;
    box-shadow: 0 0 0 1px #ded6cd;
}
p.small-print {
	text-align: center;
	font-size: 14px;
	max-width: 630px;
    margin: auto;
}
/* Anchor links: list of links at the top of a long page to jump to sections */
div.anchor-links {
	width: 100%;
    text-align: center;
}
div.anchor-links ul {
	margin: 0px;
    padding: 0;
}
div.anchor-links li {
	margin: 10px;
	display: inline-block;
}
.is-mobile div.anchor-links li {
	display: block;
}
ul.big-anchor {
	font-weight: bold;
}
ul.small-anchor {
	display: none;
}
.is-mobile ul.small-anchor {
	display: block;
}
/*===================*/
/*    Page Layout    */
/*===================*/
#page-wrap {
    padding-top: 0;
    padding-bottom: 0;
}
.ut4p #page {
    max-width: none;
    width: 100%;
}
#header {
    height: 110px;
	background
}
.is-mobile #header {
	height: 50px;
}
#content-wrapper {
    border: none;
    clear: both;
}
#subcontent-wrapper {
    padding-top: 24px;
    max-width: 1002px;
    margin: 0 auto;
}
.is-mobile #subcontent-wrapper{
	padding: 7px;
}
#content-column {
    text-align: left;
}

.ut4p #sidebar-right {
    width: 224px;
    padding: 0;
}
.is-mobile #sidebar-menubar, .is-mobile #sidebar-right {
	display:none;
}
/*=====================*/
/*       Header        */
/*=====================*/
.header-info {
    max-width: 1000px;
    height: 100%;
    float: none;
    display: block;
    background-color: transparent;
    position: relative;
	background-image: url('images/header-image.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    padding: 0;
    margin: 0 auto;
}
.is-mobile .header-info {
	background-position: center -5px;
    background-size: 132%;
}
.header-info h1 {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
	right: 150px;
    bottom: 0;
    padding: 0;
    margin: 0;
}
.is-mobile .header-info h1 {
	right: 70px;
}
.header-info h1 a {
    font-size: 0;
    height: 100%;
    display: block;
    background-color: transparent;
    background-image: url('images/ut4p-logo-square.png');
    background-repeat: no-repeat;
    background-position: 0 50%;
    padding: 0;
}
.is-mobile .header-info h1 a {
	background-size: auto 86%;
	background-position: 5px 50%;
}
div.header-social {
	float:right;
	position: relative;
	top: 20px;
}
.is-mobile div.header-social {
	display: none;	
}
div.header-social div {
	margin-bottom: 2px;
}
.header-social a {
	display: inline-block;
	margin: 0 2px;
	width: 25px;
	height: 25px;
}
a#social-rss {
	background-image: url('images/header-rss.png');
}
a#social-email {
	background-image: url('images/header-email.png');
}
a#social-twitter {
	background-image: url('images/header-twitter.png');
}
a#social-facebook {
	background-image: url('images/header-facebook.png');
}
a#social-patreon {
	background-image: url('images/header-patreon.gif');
	width: 124px;
	height: 39px;
}
#header .description {
	display: none;
}
/*========================*/
/*        Top Menu        */
/*========================*/
#menubar-wrapper {
	background-color: transparent;
	height: 37px;
	width: 100%;   
    padding: 0;
    margin: 0;
	text-transform: none;
}
.menu-container {
    max-width: 1000px;
    height: 100%;
    float: none;
    display: block;
    position: relative;
	text-align: center;
    padding: 0;
    margin: 0 auto;
}
.menu {
	float: none;
	height: 100%;
}
ul.menu {
	border-top: 1px solid #252a36;
	border-bottom: 1px solid #252a36;
}
.menu ul li {
	float: none;
	display: inline-block;
	margin: 5px 0;
    padding: 0 20px;
	font-size: 22px;
    font-weight: 600;
}
.menu ul li a:link, .menu ul li a:visited {
	color: #1e263a;	
}
.menu ul li a:hover {
	background-color: transparent;
	color: #467844;
}
.menunav {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
}
/*           ACTIVE PAGE            */ 
#menubar-wrapper ul li.current_page_item a {
	color: #467844 !important;
}
/*========================*/
/*    Mobile Top Menu     */
/*========================*/
.is-mobile #menubar-wrapper {
    overflow: hidden;
    height: 0px;
    transition: height 200ms ease-in-out;
    border-top: 1px solid #252a36;
	background: #f6f6f6;
}
.is-mobile #menubar-wrapper.visible {
	height: 289px;
	border-bottom: 1px solid #252a36;
}
.is-mobile .menu ul {
	border: none;
}
.is-mobile .menu ul li {
	display: block;
	margin: auto;
    padding: 16px 20px;
    width: 80%;
}
.is-mobile .menu ul li:not(:first-child) {
    border-top: 1px solid #afafaf;
}
.is-mobile .menu ul li a {
	-webkit-tap-highlight-color: transparent;
}
.is-mobile .mobile-menu-button {
	background: transparent url('images/mobile-menu-button.png') no-repeat center center;
	width: 43px;
	height: 43px;
	float: right;
    position: relative;
    right: 5px;
}
/*==================*/
/*    The Comics    */
/*==================*/
#comic-wrap {
    background-color: #fff;
}
.is-mobile #comic-wrap {
	padding-bottom: 20px;
}
#comic-wrap .comic-table {
    padding-top: 5px;
	margin:auto;
	width: auto;
}
#comic img {
    display: block;
    margin: 0 auto;
	width: 100%;
	max-width: 1030px;
}
div#comic-foot {
	display: none;
}

/*===========================*/
/*      Comic Navigation     */
/*===========================*/
.ut4p .comic_navi_wrapper {
	font-size: 0px;
}
.ut4p .comic_navi {
	font-size: 14px;
}
.ut4p .navi {
	margin: 0 25px;
	color: #1e263a;
	text-decoration: none;
}
.ut4p .navi:hover {
	color: #5d74a1;	
}
.is-mobile.ut4p .navi {
	margin: 0 10px;	
}
.ut4p .navi.navi-void, .ut4p .navi.navi-void:hover  {
	color: #c6c8d1;
}
/*      Top Navigation in inner pages     */
#sidebar-over-comic .comic_navi_wrapper {
	margin-bottom: -10px;
}

/*========================*/
/*      Posts / Pages     */
/*========================*/
.uentry {
    margin-bottom: 0;
}
.entry {
    font-size: 16px;
    line-height: 1.6;
    padding: 5px 0;
}
.is-mobile .entry {
	font-size: 18px;
}
.post-extras {
    padding: 0;
}
.post-info {
    font-size: 13px;
    padding: 0;
}
.post-author-gravatar {
    margin-right: 9px;
    border: 2px solid #fff;
    -moz-box-shadow: 0 0 2px 0 rgba(0,0,0,.3);
    -webkit-box-shadow: 0 0 2px 0 rgba(0,0,0,.3);
    -o-box-shadow: 0 0 2px 0 rgba(0,0,0,.3);
    box-shadow: 0 0 2px 0 rgba(0,0,0,.3);
}
.post-calendar-date .calendar-date {
    font-size: 16px;
    padding-top: 3px;
    line-height: 1.2;
    background-position: top;
}
.post-calendar-date .calendar-date span {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 16px;
}

.post-calendar-date .calendar-date span.day {
	color: #000;
	font-weight: bold;
	font-size:14px;
}
blockquote {
    font-size: 13px;
    border: 1px dashed #ded6cd;
    padding-right: 12px;
    padding-left: 12px;
    margin: 0;
	
}
blockquote p:first-letter {
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    float: none;
}
blockquote p:first-line {
    font-variant: none;
}
/* Showing the brown background and top border only for post titles */
.type-comic .post-calendar-date, .type-comic .post-text, .type-post .post-calendar-date, .type-post .post-text {
    background-color: #eeeae6;
    overflow: visible;
    border-top: 1px solid #3e362f;
    padding: 5px;
    margin: 0;
}
.post-title {
    margin-bottom: 6px;
}
.post-title, .post-title a {
    font-size: 30px;
    letter-spacing: -1px;
}
.post-title a {
    padding: 0;
    margin: 0;
}
.post-author-gravatar img {
    display: block;
}
.post-calendar-date .calendar-date span.year {
    margin-top: -4px;
    font-size: 9px;
    color: #000;
}

/* Removing the unnecessary "Sharing" title for sharedaddy plugin */
.ut4p div.sharedaddy {
    margin-top: 10px;
}
.ut4p div.sharedaddy h3.sd-title {
    display: none;
}

#disqus_thread {
    margin-top: 20px;
}
.comment-link {
	font-size: 16px;
}

/*=================*/
/*      Pages      */
/*=================*/
/* NOT showing the brown background and top border in page titles */
.page .post-text {
    height: 0;
}
h3.section-title {
	background-color: #eeeae6;
	font-size: 28px;
	width: 100%;
	text-align: center; 
	padding: 2px;
	margin-top: 25px;
}
/* Gives an extra space before the footer in pages when the sidebar is shorter than the content.*/
body.layout-2cl:not(.is-mobile) #content-column,
body.layout-2cr:not(.is-mobile) #content-column {
    padding-bottom: 50px;
}

/*==============================*/
/*    Comics Page (archives)    */
/*==============================*/
div.archive-thumbnail-container {
	width: 100%;
	text-align: center;
	margin-top: 12px;
}
div.archive-thumbnail {
	text-align:	center;
	display: inline-block;
	margin: 5px 25px;
}
div.archive-thumbnail a {
	font-size: 20px;
	line-height: 1.2;
} 
div.archive-thumbnail.crystalheart{
	margin: 8px 4px;
	width: 260px;
}
div.archive-thumbnail.readytoroll{
	margin: 8px 4px;
	width: 320px;
    vertical-align: top;

}
.is-mobile div.archive-thumbnail, 
.is-mobile div.archive-thumbnail.readytoroll, 
.is-mobile div.archive-thumbnail.crystalheart  {
	margin-bottom:25px;
}
/* "By" line for both Comics page and individual Ready to Roll pages */
p.rtr-byline {
	font-size: 14px;
	padding: 0px;
	text-align: center;
	position: relative;
    top: -20px;
}
.archive-thumbnail-container p.rtr-byline, .is-mobile p.rtr-byline {
	top: 0px;
}
div.archive-thumbnail p {
	line-height: 1.3;
}
div.archive-thumbnail p a {
	font-size: 16px;
} 

/* Make Ready to Roll page images be their true 1030px width on desktop */
img.rtr-image {
	max-width: none;
	margin-left: -15px;
}
.is-mobile img.rtr-image {
	max-width: 100%;
	margin-left: 0px;
}

/*=======================*/
/*      Store Page       */
/*=======================*/
div.buy-crystal-heart-container, div.read-more-crystal-heart, div.buy-merchandise, div.fantasy-grounds {
	width: 100%;
	text-align: center;
	margin: 20px 0;
}
div.buy-crystal-heart-option {
	width: 420px;
	display: inline-block;
	vertical-align: top;
}
div.buy-crystal-heart-option h4 {
	font-size: 20px;
	margin: 5px 0 10px;
}
div.buy-crystal-heart-option.physical {
	border-right: 1px solid #a19f9d;
}
div.buy-crystal-heart-image {
	float: left;
	width: 50%;
}
.entry .buy-crystal-heart-image img {
	max-width: none;
}
div.buy-crystal-heart-buttons div {
	margin-bottom: 14px;
}
div.buy-crystal-heart-option.pdf div.buy-crystal-heart-buttons  {
	margin-top: 85px;
}
#subcontent-wrapper a.buy-button {
	background-color: #3c8200;
	color: #fff;
	border: 1px solid #000;
	font-size: 15px;
	font-weight: bold;
	text-decoration: none;
	padding: 10px 20px;
	display: inline-block;
}
#subcontent-wrapper a.buy-button:hover {
	background-color: #70a55c;
	text-decoration: none;
}
#subcontent-wrapper .buy-crystal-heart-option a.buy-button {
	width: 100px;
}
div.read-more-crystal-heart img {
	width: 100%;
	max-width: 780px;
}
div.buy-comics-container {
	width: 100%;
	text-align: center;
	margin-top: 12px;
}
 div.buy-comics-thumbnail {
	text-align:	center;
	display: inline-block;
	margin: 5px 25px 20px 25px;
}
div.buy-merchandise img {
	width: 95%;
	max-width: 794px;
	margin-bottom: 12px;	
}
/*================================*/
/*     Crystal Heart RPG Page     */
/*================================*/
div.rpg-section-container {
	width: 100%;
}
div.rpg-section-image.right {
	float: right;
	margin: 5px 0 0 20px;
}
div.rpg-section-image.left {
	float: left;
	margin: 5px 20px 0 0;
}
.is-mobile div.rpg-section-image {
	margin: 5px 0 0 0;
	width: 100%;
	text-align: center;
}
div.rpg-section-text-container {
	padding-top: 10px;
	width: 100%;
}
.is-mobile div.rpg-section-text-container {
	padding: 0;
}
div.rpg-section-button {
	text-align: center;
}
div.rpg-section-text-container h3 {
	clear: none;
	margin-top: 0;
}
div.buy-crystal-heart-container.rpg-page {
	margin: 0px;
}
.rpg-page div.buy-crystal-heart-buttons div {
	display: inline-block;
	margin: 0 5px;
}
.rpg-page div.buy-crystal-heart-option.pdf div.buy-crystal-heart-buttons {
	margin-top: 17px;
}
.rpg-page div.buy-crystal-heart-option.pdf {
	width: 285px;
}
.is-mobile .rpg-page div.buy-crystal-heart-option.physical {
	border: none;
}
.is-mobile .rpg-page div.buy-crystal-heart-option {
	width: auto;
}
.is-mobile .rpg-page div.buy-crystal-heart-option.pdf div.buy-crystal-heart-buttons {
	margin-top: 12px;
}
.rpg-enhance div.archive-thumbnail {
	width: 280px;
	margin: 5px 20px;
	vertical-align: top;
}
.rpg-enhance div.archive-thumbnail p {
	line-height: 1.4;	
}
#subcontent-wrapper .rpg-enhance div.archive-thumbnail p a {
	text-decoration: underline;
	font-size: 18px;
}
#subcontent-wrapper .rpg-enhance div.archive-thumbnail p a:hover {
	text-decoration: none;
}
/* Nudging some text to align with images */
#setting-book-section-1 .rpg-section-text, #starter-set-section .rpg-section-text  {
	padding-top: 20px;
}
.is-mobile #setting-book-section-1 .rpg-section-text, .is-mobile #starter-set-section .rpg-section-text  {
	padding-top: 0px;
}
#starter-set-section .rpg-section-button {
	padding-top: 10px;
}
.is-mobile #starter-set-section .rpg-section-button {
	padding-top: 0px;
}
/*===========================*/
/*      Sidebar widgets      */
/*===========================*/
#sidebar-right .sidebar, #sidebar-left .sidebar {
    font-size: 14px;
    line-height: 1.3;
}
.is-mobile #sidebar-menubar, .is-mobile #sidebar-right {
	display:none;
}
.sidebar .widget {
    margin-bottom: 12px;
}
.widget-content {
    background-color: #eeeae6;
    -moz-border-radius: 0 0 3px 3px;
    -webkit-border-radius: 0 0 3px 3px;
    -o-border-radius: 0 0 3px 3px;
    border-radius: 0 0 3px 3px;
    padding: 0 12px 12px;
}
h2.widget-title {
    color: #3e362f;
    font-weight: bold;
    background-color: #ded6cd;
    letter-spacing: 0;
    -moz-border-radius: 3px 3px 0 0;
    -webkit-border-radius: 3px 3px 0 0;
    -o-border-radius: 3px 3px 0 0;
    border-radius: 3px 3px 0 0;
    padding: 6px 12px;
    margin: 0 -12px 12px;
}
/*     Support Us widget     */
div.support-widget-item div {
	display: inline-block;
	vertical-align: middle;
}
div.support-widget-item div img {
	margin-right: 3px;
}
/* text-11 is the sidebar widget with the Savage Worlds logo  */
div#text-11 .widget-content {
    padding-top: 10px;
}
/*Follow Us: Lightweight social buttons (#lsi_widget-3) + Text (#text-18) widgets under blog - for mobile */
#sidebar-under-blog {
	display: none;
	text-align: center;
	font-size: 18px;
	border-top: 1px solid #ded6cd;
	padding-top: 10px;
}
.is-mobile #sidebar-under-blog {
	display: block;
}
#sidebar-under-blog .widget-content {
	background-color: transparent;
}
#sidebar-under-blog h2.widget-title {
	background-color: transparent;
	font-size: 22px;
}

/*========================*/
/*        Footer          */
/*========================*/

.copyright-info {
    font-size: 13px;
    padding: 18px;
    margin: 0;
	color: #c2bbb1;
    background-color: #383c48;
}
.copyright-info a {
    color: #fff;
}
.copyright-info a:hover {
    text-decoration: underline;
}

/* ==============================
 * Archive pages (Chapter) design
 * ============================== */
.archiveresults {
	text-align: center;
}
.archivecomicthumbdate {
	display: none;
}
.archivecomicthumbwrap {
	height: auto;
	margin: 10px;
}
.is-mobile .archivecomicthumbwrap {
	margin: 5px;
	height: 154px;
}
.archivecomicframe img {
	height: auto;
	width: auto;
}

/* =============================
 * Hide Sidebar in Archive pages
 * ============================= */
.archive #content-column {
	width:100%;
}
.archive #sidebar-right {
	display:none;
}

/*===========================================================*/
/*     Pagination - exists only on Early strips archive?     */
/*===========================================================*/
#paginav {
    padding: 20px;
    float: none;
}
#paginav ul {
    text-align: center;
}
#paginav li {
    float: none;
    display: inline-block;
}
.pagejumper-wrap {
    display: none;
}
.blognav {
    padding-right: 0;
    padding-bottom: 20px;
    padding-left: 0;
    width: 100%;
}

/*===========================*/
/*     Amazon stock page     */
/*===========================*/
div#amazon-intro {
	width: 100%;	
	position: relative;
}

div#amazon-intro p {
	padding-right: 230px;
}

.is-mobile div#amazon-intro p {
	padding-right: 0px;
}

.amazon-stock-note {
	padding: 7px;
	padding-right: 230px;
	background-color: #dfe8f9;	
	color: #183a91;
	font-size: 14px;
}

.is-mobile .amazon-stock-note {

	padding-right: 7px;
}

#amazon-noelani {
	position: absolute;
    right: 5px;
    bottom: 0px;
}

.is-mobile #amazon-noelani {
	display: none;
}

div.archive-thumbnail.amazon-product {
	width: 329px;
	margin: 15px 0px;
	vertical-align: top;
}

div.archive-thumbnail.amazon-product p {
	padding: 5px 10px;
}
div.archive-thumbnail.amazon-product .buy-button {
	width: 60px;
}

h3.section-title.amazon-stock {
	font-size: 25px;
	font-weight: 600;
}

h3.section-title.amazon-stock a {
	font-size: 25px;
}

/*========================*/

/*     Odds and Ends      */

/*========================*/

/*==================================*/
/*     What forms are these?..      */
/*==================================*/
#submit:hover, .searchform button:hover, #comic button:hover, .comicpress_control_panel_widget .button-primary:hover {
    color: #fff;
    background-image: -moz-linear-gradient(top, #5e564f, #3e362f);
    background-image: -webkit-linear-gradient(top, #5e564f, #3e362f);
    background-image: -o-linear-gradient(top, #5e564f, #3e362f);
    background-image: -ms-linear-gradient(top, #5e564f, #3e362f);
    background-image: linear-gradient(to bottom, #5e564f, #3e362f);
}
#submit:active, .searchform button:active, #comic button:active, .comicpress_control_panel_widget .button-primary:active {
    background-image: -moz-linear-gradient(top, #3e362f, #1e160f);
    background-image: -webkit-linear-gradient(top, #3e362f, #1e160f);
    background-image: -o-linear-gradient(top, #3e362f, #1e160f);
    background-image: -ms-linear-gradient(top, #3e362f, #1e160f);
    background-image: linear-gradient(to bottom, #3e362f, #1e160f);
}
#submit:focus, .searchform button:focus, #comic button:focus, .comicpress_control_panel_widget .button-primary:focus {
    outline: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
}
#submit, .searchform button, #comic button, .comicpress_control_panel_widget .button-primary {
    color: #fff;
    border: none;
    font-weight: normal;
    cursor: pointer;
    background-image: -moz-linear-gradient(top, #4e463f, #2e261f);
    background-image: -webkit-linear-gradient(top, #4e463f, #2e261f);
    background-image: -o-linear-gradient(top, #4e463f, #2e261f);
    background-image: -ms-linear-gradient(top, #4e463f, #2e261f);
    background-image: linear-gradient(to bottom, #4e463f, #2e261f);
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    padding: 7px 12px;
}

/*=========================*/
/* Not sure what these are */

#post-1999 #category-posts-2 {
    display: inline;
}
#post-1999 #category-posts-2 ul {
    font-size: 13px;
    padding: 0 10px;
    margin: 0;
}
#post-1999 #category-posts-2 ul a {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0;
}
/*=========================*/
