/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
	color: #ccc;
	background: #000;
	font-size: 1em;
	line-height: 1.4;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
	vertical-align: middle;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

textarea {
	resize: vertical;
}

.browserupgrade {
	margin: 0.2em 0;
	background: #ccc;
	color: #000;
	padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Global element styles */
body {
	background: #222;
	color: #ccc;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	max-width: 1280px;
	margin: 0 auto;
}

a {
	color: #c00;
	text-decoration: none;
}

.date {
	font-size: 80%;
	font-style: oblique;
}

.block-center {
	display: block;
	margin: 0 auto;
	text-align: center;
}

/* Layouts */
.primary.generic .content,
.secondary .content {
	margin: 0 10px;
}

.primary.generic .sidebar,
.secondary .sidebar {
	margin: 0 10px;
}

.site-footer {
	text-align: center;
	background: #000;
	font-size: 80%;
	padding: 20px 0;
}

/* Header */
.site-header {
	background: #000;
}

.site-header {
	overflow: hidden;
}

.site-header .logo img {
	display: block;
	width: auto;
	height: 100px;
}

/* Navigation */
.nav ul {
    background: #000;
    list-style: none;
	padding: 0;
	margin: 0;
    font-weight: bold;
    display: flex;
    justify-content: center;
}

.nav ul li {
    flex-shrink: 1;
    margin: 0 10px;
    padding: 5px 0;
}

.site-nav input.mobile-menu-toggle {
	display: none;
}

.site-nav label.mobile-menu-toggle {
	color: #c00;
	cursor: pointer;
	display: block;
	padding: 15px;
	text-align: right;
	font-weight: bold;
}

.site-nav ul {
	display: none;
}

.site-nav input.mobile-menu-toggle:checked + label + ul {
	display: block;
}

.site-nav input.mobile-menu-toggle:checked + label + ul li {
	text-align: right;
	padding: 15px;
}

.site-nav input.mobile-menu-toggle:checked + label + ul li a {
	display: block;
}

.comic-nav ul li a,
.comic-nav ul li span {
	font-size: 140%;
	padding: 15px;
	font-weight: bold;
}

/* Comic */
.comic-image {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

.comic-meta {
	background: #444;
	width: 90%;
	margin: 20px auto;
	padding: 10px;
}

.comment-link {
	margin: 10px 0;
}

/* Announcements */
.announcements h2 {
	margin: 5px 0;
}

.announcement {
	border-bottom: 1px solid #777;
}

.announcement:last-child {
	border-bottom: none;
}

/* Comments */
.comments {
	font-size: 90%;
}

#CommentForm input,
#CommentForm textarea,
#CommentForm button {
	background: #aaa;
	border: 1px solid #222;
	color: #222;
}

#CommentForm label {
	font-size: 90%;
}

#CommentForm button {
	padding: 5px 10px;
}

#CommentForm .success {
	color: green;
}

#CommentForm .error {
	color: red;
}

.CommentListNormal .CommentListItem {
	border-bottom: 1px solid #666;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 640px) {

	/* Layouts */
	.primary.generic,
	.secondary {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
	}
	.primary.generic .content,
	.secondary .content {
		flex: 1;
		margin: 0 10px;
	}

	.primary.generic .sidebar,
	.secondary .sidebar {
		flex: 0 0 160px;
		margin: 0 10px;
	}

	.site-header .logo img {
		height: 150px;
	}

	/* Comic */
	.comic-meta {
	background: #444;
		width: 75%;
	}

	/* Navigation */
	.site-nav input.mobile-menu-toggle,
	.site-nav label.mobile-menu-toggle {
		display: none;
	}

	.site-nav ul li.current a,
	.site-nav ul li:hover a {
		border-bottom: 2px solid #c00;
	}

	.site-nav ul {
		display: flex;
	}

	.site-nav input.mobile-menu-toggle:checked + label + ul {
		display: flex;
	}

	.site-nav input.mobile-menu-toggle:checked + label + ul li {
		text-align: left;
		padding: 5px 0;
	}

	.site-nav input.mobile-menu-toggle:checked + label + ul li a {
		display: inline;
	}

	.comic-nav ul li a,
	.comic-nav ul li span {
		font-size: 120%;
		padding: 15px;
	}

}

@media print,
	   (-o-min-device-pixel-ratio: 5/4),
	   (-webkit-min-device-pixel-ratio: 1.25),
	   (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
	display: none !important;
	visibility: hidden;
}

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}

.invisible {
	visibility: hidden;
}

.clearfix:before,
.clearfix:after {
	content: " ";
	display: table;
}

.clearfix:after {
	clear: both;
}

.clearfix {
	*zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
	*,
	*:before,
	*:after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]:after {
		content: " (" attr(href) ")";
	}

	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	a[href^="#"]:after,
	a[href^="javascript:"]:after {
		content: "";
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}
}