/*
Comic Title: Base Template
Author: Kiri Yu
Description: Template developed for Comic Control installation on Hiveworks servers.  
Comic Control Version: 4.3
*/

/*TYPOGRAPHY*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rubik:wght@300&display=swap');

:root {
	--site-bg: #21262c;
	--text: #efefef;
	--text-bg: #2B333E;
	--text-other: #000000;
	--link-menu: #96B7E6;
	--link-text: #96B7E6;
	--accent-dark: #2B333E;
	--accent-light: #2BF7FE;
	--font-text: 'Arial', sans-serif;
	--font-fancy: 'Orbitron', sans-serif;
}

h1 {
	font-size: 40px;
	margin: 0;
}

h2 {
	font-size: 32px;
	text-align: center;
	font-family: var(--font-fancy);
}


/* GLOBAL */

html {
	background-image: url(images/tractorbeam.png), url(images/bg.png), url(images/bgbot.png);
	background-repeat: no-repeat, repeat-x, repeat-x;
	background-position: top center, top center, bottom center;
	background-color: var(--site-bg);
}

body {
    font-family: var(--font-text);
    padding:0;
    margin:0;
    box-sizing: border-box;
	font-size: 13px;
}

img {
    max-width:100%;
}

a {
    color: var(--link-menu);
}

a:hover {
	opacity: .75;
}
td { padding: 1em; }
#logo { 
	background: url(images/logo.png) no-repeat center/contain; 
	width: 313px; 
	height: 148px; 
	margin-left: 229px;
}
#logo a { display: block; width:100%; height: 100%; }
#logo-side { 
	background: url(images/menubardrawing.png) no-repeat center/contain; 
	width: 459px; 
	height: 205px; 
}

#wrapper {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1200px;
}

.space {
	background: var(--accent-light);
}

/* HEADER */

#header {
    width: 100%;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
}

.one {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

#logo {

}

.site-title {
	text-align:center;
	font-weight:bold;
	display:block;
}

a.site-title {
	text-decoration:none;
	color:black;
}

/* MENU */

#menu-click,#mob-menu {
	cursor: pointer;
	display: none;
	color: var(--link-menu);
	background: var(--text-bg);
	font-family: var(--font-fancy);
	font-size: 48px;
	text-transform: lowercase;
	width: 100%;
}

#menu {
	font-family: var(--font-fancy);
	font-weight: 900;
	background: var(--text-bg);
	text-align: center;
	padding:0 75px;
	display: block;
}
#menuwrap {
	position: relative;
	padding: 3px;
	background: linear-gradient(to right, red, var(--text-bg));
	margin: 0 auto 10px;
}
#poswrap { position: absolute; height: 0; width: 0; }
#circuit { background: url(images/circuit.png) no-repeat center/contain; width: 77px; height: 73px; z-index: 50; position: absolute; left: -110px; top: -7px; }

#menu div {
	position: relative;
}

#menu a {
	padding: 0.5em 0.75em;
	display: inline-block;
	color: var(--link-menu);
	font-size: 23px;
	letter-spacing: 1.25px;
	cursor: pointer;
	text-decoration: none;
	text-transform: uppercase;
}
#menu a:hover { color: #fff; transition: 0.65s ease-in; opacity: 1; text-shadow: -2px -2px 0 red, 0 -2px 0 red, 2px -2px 0 red, 2px 0 0 red, 2px 2px 0 red, 0 2px 0 red, -2px 2px 0 red, -2px 0 0 red; }

#mob-menu {

}

#newreader { font-family: var(--font-fancy); text-transform: uppercase; background: url(images/ufoicon.png) no-repeat right; font-size: 24px; font-weight: 900; padding-right: 40px; margin: 10px auto;}
#newreader a { 
	text-decoration: none; 
	color: #000; 
	text-shadow: -2px -2px 0 var(--accent-light), 0 -2px 0 var(--accent-light), 2px -2px 0 var(--accent-light), 2px 0 0 var(--accent-light), 2px 2px 0 var(--accent-light), 0 2px 0 var(--accent-light), -2px 2px 0 var(--accent-light), -2px 0 0 var(--accent-light);
}


/* MAIN CONTENT */

main#content {	
}

#main-left {

}

#main-right {

}

/* COMIC AREA */

.comic-row {
	display: flex;
	justify-content: space-around;
	/*flex-direction:row-reverse;
	 unset flex direction if you want ad column on left*/
}

#comic-area {
    text-align:center;
	background: var(--site-bg);
	border: 2px solid var(--accent-light);
	border-radius: 15px;
	padding: 30px 16px 10px;
}

#cc-comicbody a:hover {
	opacity: 1;
}

#cc-comicbody {
	text-align:center;
}


/* COMIC NAV */

.cc-nav {
	margin: 0 auto;
	padding:1em 5px;
	display:flex;
	flex-wrap: initial;
	justify-content: center;
	font-family: var(--font-fancy);
}

.cc-nav a, .cc-nav div {
	color: var(--link-menu);
	margin:0 10px;
	display:flex; 
	gap: 1em;
	padding:5px 20px 0;
	font-size: 20px;
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
}

.cc-nav a {

}

	.cc-first, .cc-first-dis {
	}

	.cc-prev, .cc-prev-dis {
	}

	.cc-next,.cc-next-dis {
	}

	.cc-last,.cc-last-dis {
	}
	.cc-navaux {
	}

.cc-first-dis, .cc-prev-dis, .cc-next-dis, .cc-last-dis { 
	opacity: .5;
}

.cc-first, .cc-first-dis, .cc-prev, .cc-prev-dis {
	
}


.cc-first img, .cc-first-dis img, .cc-prev img, .cc-prev-dis img {
	
}

.cc-next,.cc-next-dis, .cc-last, .cc-last-dis {
	
}

.cc-next img,.cc-next-dis img, .cc-last img, .cc-last-dis img {
	
}


/* SIDEBAR */

aside.col { 
	display: block;
	flex-shrink: 0;
	margin: 0 1.5em;
	}
aside.col.social { 
	flex-shrink: 0; 
	width: 300px; 
	margin: 0 1.5em;
}

div.bee { 
	width: 100px; 
	height: 100px; 
	background: url(images/hiveworks.svg) no-repeat center/contain; 
	margin: 2em auto; 
}
div.bee a { width: 100%; height: 100%; display: block; }

#top-space { margin: 1em auto; order: 4; width: 100%}

#middle-space {
	width: 160px;
	height: 600px;	
	display: block;
	margin: 0 auto;
}
#middle-space img { width: 160px; height: 600px; }

#social {
	display: flex;
    flex-wrap: wrap;
	justify-content: center;
    width: 104px;
	margin: 0 auto; 
}
#social img { max-width: 75px; max-height: 75px; margin: 0.5em 0; }

/* JUMPBAR */

#hw-jumpbar {
    background: var(--accent-dark);
    margin:20px 0;
}
.hw-jump-discover {
    background: var(--accent-dark);
}
.hw-jump-desc-wrap {
    background: var(--accent-light);
	color: var(--text-bg);
	text-transform: none;
	font-size: 12px;
}
.hw-jump-title {
    background: var(--accent-dark);
}
.hw-jump-down {
    border-top: 20px solid var(--accent-light);
}
.hw-jump-mid {
    background:var(--text);
}
.hw-jump-arrow-left {
	cursor: pointer;
}
.hw-jump-arrow-right {
	cursor: pointer;
}
.hw-jump-arrow-left:hover, .hw-jump-arrow-right:hover {
	opacity: .75;
}


/* BOTTOM AREA */

#bottom {
	background-color: var(--text-bg);
	color: var(--text-dark);
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
	justify-content: space-between;
}
#bottom a { color: var(--text-dark); }
#bottom a:hover { color: var(--accent-light); }

#bottom {
	padding: 3em;
	justify-content: space-between;
}
#bottom-main { width: 750px; }
	
.cc-newsarea {
	margin-right: 1em;
	margin-bottom: 1em;
	border-bottom: 1px solid var(--accent-light);
}

.cc-newsheader, .cc-newsheader a {
	text-decoration: none;
	font-size: 40px;
}

.cc-publishtime, .cc-tagline {
	font-size: 18px;
	opacity: 0.75;
}

.cc-newsbody {
	font-size: 22px;
}

#bottom-side {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 300px;
}

#bottom-space {
	width: 300px;
	min-height: 250px;
	margin: 20px auto;	
}

/* COMMENTS */

.cc-commentlink {
	padding-top: 1em;
	font-size: 1.5em;
}

.cc-commentheader {
	
}

.cc-commentbody {
	
}

#comment-space {
		max-width: 728px;
		overflow: hidden;
	}
#floater-space {}

/* CAST */
table.table td:first-child { min-width: 200px; }

/* FOOTER */

footer#global-footer{
	text-align: center;
	margin: 100px 0 20px;
}
footer #footer-menu a {	
	font-family: var(--font-fancy);
	font-size: 18px;
	color: var(--link-menu);
	text-decoration: none;
	text-transform: uppercase;
	padding: 0 1em;
}

/* TEXT PAGE */

#text-area {
	color: var(--text);
	background: var(--site-bg);
	border: 2px solid var(--accent-light);
	border-radius: 15px;
	padding: 30px 16px 10px;
	width: 626px;
}

/* CAST */

.cast { 
    display: flex;
    justify-content: space-around;
	margin: 1.5em 0;
}
.individual {
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    margin: 1em;
    justify-content: center;
}
.individual.dead { background: url('http://www.introducingemy.com/img/cast/REDbgfade.jpg') no-repeat top right -20px;  }
.cast.three .individual {
    width: 30%;
}
.cast.two { display: grid; grid-template-columns: 1fr 1fr; }
.cast.two .individual { flex-wrap: nowrap; }
.cast.two .individual div:first-child { min-width: 70px; padding: 0 1em; box-sizing: content-box; }

.cast.majestic div { padding: 1em; }
.cast.majestic #m1 { order: 1;  min-width: 110px; }
.cast.majestic #m2 { order: 2; }
.cast.majestic #m3 { order: 3; min-width: 110px;}

/* ARCHIVE PAGE */

.cc-storyline-pagetitles { column-count: 6; }

/* MEDIA QUERIES */


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

	.comic-row { flex-wrap: wrap; justify-content: space-evenly; }
	aside.col { width: 160px; margin: 0; }
	aside.col.social { width: 700px; text-align: center; margin-top: 3em; }
	footer#global-footer { margin-top: 50px; }
}

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

	#menu a { font-size: 20px; }
	#logo { margin-left: 150px; }
}

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

	#logo-side { order: 1; }
	#menu-click { order: 2; }
	#menuwrap, #menu { order: 3; width: 100%; margin: 0; }
	#logo { order: 4; }
	#newreader { order: 5; }	
	
	#menu { padding: 0; } #circuit { display: none; }
	#menu a { padding:10px; font-size: 23px; }
	
	main#content { margin-top: 32px;}
	
	.comic-row { order: 1; }
	aside.col { order: 2; width: 100%; max-width: 320px; min-height: 0; margin-top: 1em; }
	#middle-space { height: auto; width: auto; margin-top: 1em; }
	aside.col.social { order: 3; display: block; background: none; width: 100%; max-width: 320px; min-height: 0; margin: 1em 0 0 0; text-align: center; }
	#social { width: 100%; margin: 0 0 1em; justify-content: space-evenly; }
	aside.col, div.page aside.col.social, div.page aside.col { background: none;}
	
	.cc-nav a, .cc-nav div { font-size: 12px; align-items: center; justify-content: center; }
	
	#comic-area, #text-area { width: 100%; min-width: 0; } 
	#comment-spot { width: 728px; height: 90px;}
	#bottom-side{ width: 100%; justify-content: space-between; padding: 1em; }

	#header { margin-bottom: 1em; }
	#logo, #logo-side {
		width: 100%;
		height: 160px;
	}
	#logo { margin: 0; }
	
	#newreader { max-width: 300px; box-sizing: border-box; }
	
	.cc-nav div {
		margin:0;
	}
	
	#bottom, #bottom-main { width: 100%; padding: 1em; }
	#comment-spot { width: auto; height: auto;}
	footer #footer-menu a { padding: 5px; display: inline-block; }

}

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

	#menu { display: none; }
	#menu-click,#mob-menu {	display: block; }
	#menu a { display: block; }

	html {
	background-image: url(images/bg.png), url(images/bgbot.png);
	background-repeat: repeat-x, repeat-x;
	background-position: top center, bottom center;
	}

	.one { flex-direction: column-reverse; }

	#text-area {			
		width: 100%;
		padding: 0 1em 1em;
	}
	#middle-space {
		display: block;
		margin: 1em auto 0;
	}
	#middle-space img { width: auto; height: auto; }
	div.bee { display: block; text-align: center; }

	#comic-area { width: 100%; }
	#social img { max-height: 50px; max-width: 50px; }
	#bottom-side { justify-content: center; }
	
	table.table tr { display: flex; flex-wrap: wrap; }
	table.table tr td { display: block; }
	table.table tr td:first-child { width: 100%; text-align: center; }

}
@media screen and (max-width: 660px){	
	.cc-storyline-pagetitles { column-count: 3;}

.cast.three, .cast.four { flex-wrap: wrap;}
	
.individual {
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    margin: 1em;
    justify-content: center;
}

.cast.three .individual, .cast.four .individual {   width: 100%; }
.individual b { width: 100%; text-align: center; }
.cast.two { display: grid; grid-template-columns: 1fr; }
.cast.two .individual div:nth-child(2) { max-width: 200px; }
.cast.majestic { flex-wrap: wrap; }
.cast.majestic #m1 { order: 2; }
.cast.majestic #m2 { order: 1;}

}
	