/*
Theme Name: Eddsworld
Author: Christopher Lee
Version: 1.0
*/

@font-face {
	font-family: "Eastwood";
	src: url("assets/Eastwood.ttf") format('truetype');
}

@font-face {
	font-family: "EddsFont";
	src: url("assets/EddsFont.ttf") format('truetype');
}

:root{
	--edd-color-glow: #00f91a40;
	--edd-color: #00f91a;
	--edd-color-dark: #00cf0b;
	--edd-color-dark-trans: #00cf0bc2;
	--edd-color-link: #00e20b;
	--edd-color-link-dark: #00b909;
}

h1, h2{
	text-transform: uppercase;
}

.zoom-instagram-widget__items{
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

li.zoom-instagram-widget__item {
	margin-right: 0 !important;
	margin-bottom: 7px !important;
	max-width: 31%;
	height: 15vh;
	flex: 1 0 auto;
	min-width: 30%;
}

a.zoom-instagram-link {
	width: 100% !important;
	height: 100% !important;
}

p {
	font-size: 1.2rem;
}

html{
	font-size: 16px;
}

html, body {
	height: 100%;
}

body{
	background: url("assets/greenbackground.gif");
	font-family: 'EddsFont', sans-serif;
	margin: 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap;
}

#ComicSelect{
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.permalink-coloring{
	color: var(--edd-color-link);
}

.permalink-coloring:hover{
	color: var(--edd-color-link-dark);
}	

a{
	color: var(--edd-color);
	font-weight: bold;
	text-decoration: none;
}

#NavbarPusher{
	display: none;
}

a:hover{
	color: var(--edd-color-dark);
	text-decoration: underline;
}

.page > *{
	margin-left: auto;
	margin-right: auto;
	display: block;
	margin-top: 10px;
	max-width: 67%;
	min-width: 780px;
}

#navbar, .navigator{
	display: flex;
}

#navbar{
	margin-bottom: 16px;
}

.content{
	max-width: 100%;
	min-width: 100%;
	display: flex;
	padding-left: 3%;
	padding-right: 3%;
	box-sizing: border-box;
}

.content > *{
	margin-left: auto;
	margin-right: auto;
	display: block;
	margin-top: 10px;
	max-width: 70%;
	min-width: 780px;
	order: 2;
}

.navigator{
	justify-content: center;
}

#navbar > a:not(.button) {
	flex: 1 0 auto;
	text-align: center;
	font-family: "EddsFont", sans-serif;
	color: white;
	font-size: 2em;
	text-shadow: black 2px 2px 1px, 
	black -2px 2px 1px, 
	black 2px -2px 1px, 
	black -2px -2px 1px, 
	black -2px 0px 1px, 
	black 0px -2px 1px, 
	black 2px 0px 1px, 
	black 0px 2px 1px;
	-webkit-font-smoothing: antialiased;
	text-transform: lowercase;
}

.comic{
	width: 100%; /* matt says so */
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.comic, #ComicContainer .cloudbox{
	margin-bottom: 5px;
}

.newsbox h3{
	text-transform: uppercase;
}

.newsbox h2{
	text-align: center;
	font-family: "Eastwood";
	font-size: 4em;
	color: #00f91a;
	margin: 0;
	line-height: 1em;
	text-shadow: white 2px 2px 1px, 
		white -2px 2px 1px, 
		white 2px -2px 1px, 
		white -2px -2px 1px, 
		white -2px 0px 1px, 
		white 0px -2px 1px, 
		white 2px 0px 1px, 
		white 0px 2px 1px,
		black 5px 5px 1px, 
		black -5px 5px 1px, 
		black 5px -5px 1px, 
		black -5px -5px 1px, 
		black -5px 0px 1px, 
		black 0px -5px 1px, 
		black 5px 0px 1px, 
		black 0px 5px 1px;
}

h3{
	font-family: "EddsFont";
	font-size: 2em;
	margin-top: 0;
	margin-bottom: 5px;
}


#MoreNewsButton{
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.headerSVG {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.headerSVG > text > tspan {
	text-shadow: white 2px 2px 1px, 
		white -2px 2px 1px, 
		white 2px -2px 1px, 
		white -2px -2px 1px, 
		white -2px 0px 1px, 
		white 0px -2px 1px, 
		white 2px 0px 1px, 
		white 0px 2px 1px, 
		black 5px 5px 1px, 
		black -5px 5px 1px, 
		black 5px -5px 1px, 
		black -5px -5px 1px, 
		black -5px 0px 1px, 
		black 0px -5px 1px, 
		black 5px 0px 1px, 
		black 0px 5px 1px;
	font-family: "Eastwood";
	text-transform: uppercase;
}

.adhole{
	/*display: block !important;*/
	background: white;
	text-align: center;
	display: none;
}

.adhole.leaderboard{
	width: 728px !important;
	height: 90px !important;
	margin: 35px auto 35px auto;
}

.text-centerify{
	display: block;
	margin-left:auto;
	margin-right: auto;
	text-align: center;
}

.text-black{
	color: black !important;
}

ul{
	margin: 0;
	padding-inline-start: 20px;
}

.navigator > .button, .navigator > button {
	flex: 1 0 auto;
	max-width: 25%;
}

.navigator.main > .button, .navigator.main > button {
	margin: 15px 35px 25px 35px;
	background: none !important;
	font-size: 2.1875em;
}

#navbar img, .navigator img {
	height: 1.4em;
}

.navigator.main img {
	height: 2.25em;
}

button, .button, #searchsubmit{
	background-color: var(--edd-color-dark);
	border-color: var(--edd-color-dark);
	color: #fff;
	font-family: "EddsFont", sans-serif;
	font-size: 1.2em;
	border-radius: 5px;
	border-width: 0px;
	padding: 5px;
	margin: 5px;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	font-weight: normal;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	cursor: pointer;
}

button.disabled, .button.disabled{
	background-color: var(--edd-color-dark-trans);
	border-color: var(--edd-color-dark-trans);
	pointer-events: none;
	cursor: default;
}

button:hover, .button:hover{
	background-color: var(--edd-color);
	border-color: var(--edd-color);
	box-shadow: var(--edd-color-glow) 0 0 5px 1px;
	color: #fff;
	text-decoration: none;
}

.patreon{
	background: #f96854;
}

.patreon:hover{
	background: #d85949;
	box-shadow: #ed8274ba 0 0 5px 1px;
}

#EddFooter{
	background: white;
	padding: 2em 1em 1em 1em;
	margin-top: 4em;
	color: black;
	flex-shrink: 0;
	box-shadow: 0px -20px 90px 55px white;
	font-family: "EddsFont";
	width: 100%;
	box-sizing: border-box;
}

#EddFooter #searchform > div > label{
	display: block;
	text-align: left;
	font-size: larger;
	font-weight: 700;
}

#EddFooter #s{
	width: calc(100% - 95px);
}

#EddFooter #searchsubmit{
	width: 80px;
}

#EddFooter .menu{
	font-size: 1.5em;
}

#EddFooter ul{
	padding-inline-start: 0px;
}

#EddFooter li{
	display: block;
}

#EddFooter a{
	color: black;
	text-decoration: none;
	
}

#EddFooter a:hover{
	color: black;
	text-decoration: underline;
}

#EddFooter > div:nth-child(1){
	display: flex;
	flex-direction: row;
	max-width: 1024px;
	margin-left: auto;
	margin-right: auto;
}

#EddFooter > div:nth-child(1) > div{
	flex: 1 0;
	margin-left: 1em;
	margin-right: 1em;
}

#EddFooter > div:nth-child(1) > div:nth-child(1){
	text-align: left;
}

#EddFooter > div:nth-child(1) > div:nth-child(2){
	text-align: center;
}

#EddFooter > div:nth-child(1) > div:nth-child(3){
	text-align: right;
}


#EddFooter > div:nth-child(2){
	text-align: center;
	font-family: 'EddsFont';
	font-size: large;
	margin-top: 2em;
}

#HeaderLogo{
	margin: 0.75em auto 0.75em auto;
	max-width: 40%;
		min-width: initial;
}

#HeaderLogo img{
	width: 100%;
}

.cloudbox{
	background: white;
	padding: 20px;
	box-sizing: border-box;
	width: auto;
}

.cloudbox.newsbox > img {
	width: 100%;
	margin-left: auto;
	   margin-right: auto;
	image-rendering: pixelated;
	image-rendering: -webkit-optimize-contrast;
}

.newsbox a.imglink{
	float: left;
	display: inline-block;
}

.newsbox a img{
	min-width: 150px;
	max-height: 150px;
	object-fit: contain;
}

.newsbox article > * {
	padding: 10px;
}

.newsbox article > a {
	padding-top: 20px;
}

.newsbox article p{
	margin-block-start: 0em;
	margin-block-end: 0.25em;
}

.newsbox.front-page article:not(:first-of-type){
	border-top: lightgray 2px solid;
}

.newsbox article {
	display: flex;
	flex-direction: row;
	margin-bottom: 10px;
}

.newsbox.archive-twin-col article{
	padding: 5px;
	width: calc(50% - 15px);
	display: inline-block;
}

.archive-twin-col > article > h3 > a{
	color: black;
}

.archive-twin-col > article > h3 > a:hover{
	color: var(--edd-color-link);
}

.alignleft,
img.alignleft {
	display: inline;
	float: left;
margin-right: 1.5em;
}

.alignright,
img.alignright {
	display: inline;
	float: right;
margin-left: 1.5em;
}

.aligncenter,
img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.clear {
	clear: both;
}

.newsbox article .body > h3{
	display: block;
}

.newsbox article .body{
	display: inline;
}

a.ig-b-v-24{
	color: white !important;
	border-color: white !important;
}

#HeaderLogo .hamburger-button{
	display: none;
}

.feature-image{
	max-width: 50vw;
	max-height: 50vh;
	float: left;
}

#wpadminbar {
	background: #23282dbf;
}

.adhole.side {
	min-width: 125px;
	min-height: 768px;
}

.bottom-part{
	display: flex;
	justify-content: space-between;
	margin-bottom: 60px;
}

.display-items{
	display: flex;
	flex-direction: column;
	min-width: 33%;	
}

.display-items .item{
	height: 100%;
	background-position: bottom;
	background-size: cover;
	display: block;
	font-family: "EddsFont";
	font-size: 1.5em;
	font-weight: bold;
	text-decoration: none;
	color: white;
	text-shadow: -1px 1px 2px #000, 1px 1px 2px #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

.display-items .item .title{
	padding: 10px;
}

.card {
	width: 180px;
	height: 225px;
	position: relative;
	display: inline-block;
}

.card .img-top {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
}

.card:hover .img-top, .card:active .img-top {
	display: inline;
}

@media screen and (min-width: 783px){
	li.zoom-instagram-widget__item{
		max-height: 85px;
	}
}

@media screen and (max-width: 1600px) and (min-width: 783px){
	#navbar{
		font-size: 14px;
	}
}

@media screen and (max-width: 1200px) and (min-width: 783px){
	html{
		font-size: 14px;
	}

	.adhole.side {
		display: none !important;
	}

	.inner-content{
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 782px){
	html #wpadminbar {
		bottom: 0;
		top: initial;
		background: #23282dc2;
		position: fixed;
	}

	.adhole.side {
		display: none !important;
	}

	.alignleft,
img.alignleft {
	display: inline;
	float: left;
margin-right: 1.5em;
}

.alignright,
img.alignright {
	display: inline;
	float: right;
margin-left: 1.5em;
}

img.aligncenter,
img.alignright,
img.alignleft {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	float: none;
}

:root {
	--mobile-nav-height: 60px;
}

.content > *, .page > *, #HeaderLogo{
	max-width: 100%;
	min-width: initial;
	margin-top: 0;
}

.navigator.main{
	font-size: 0.5rem;
}

.navigator.main > .button, .navigator.main > button{
	margin: 5px;
}

	#EddFooter input[type="text" i] {
		flex: 1;
	}

	#navbar {
		z-index: 10;
		position: fixed;
		background-color: transparent;
		margin: 0;
		right: 0;
		bottom: 0;
		top: var(--mobile-nav-height);
		left: 0;
		display: block;
		transform: translate(100%, 0);
		transition: background-color 0.25s, transform 0.25s;
	}

	#navbar.active {
		pointer-events: none;
		display: block;
		transform: translate(0, 0);
	}
	
	#navbar.active > * {
		pointer-events: all;
	}
	
	#navbar > a:not(.button) {
		flex: 1;
		margin-left: auto;
		background-color: var(--edd-color-dark);
		border-bottom: 0.2em white solid;
		height: 20px;
		display: block;
		position: relative;
		max-width: 380px;
		padding: 20px 0;
		border-left: 0.2em white solid;
		line-height: 0.5;
	}

	#navbar > a.button {
		flex: 1;
	}

	button, .button{
		margin: 3px;
		padding: 3px;
	}

	.adhole.leaderboard{
		width: 100% !important;
		height: 120px !important;
	}

	
	.newsbox article {
		flex-direction: column;
		display: flex;
		height: initial;
	} 

	.newsbox h3 {
		order: 0;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.newsbox a img {
		max-width: 80%;
		max-height: 50vh;
		object-fit: contain;
		margin-left: auto;
		   margin-right: auto;
		order: 1;
	}

	.newsbox .body {
		order: 2;
	}

	html{
		width: 100%;
		font-size: 14px;
	}

	#EddFooter > div:nth-child(1) {
		max-width: 80%;
		   flex-direction: column-reverse;
	}

	#EddFooter > div:nth-child(1) > div {
		min-width: 100%;
		margin: 0 0 1em 0;
	}

	#EddFooter ul{
		padding-inline-start: 0px;
	}

	#EddFooter > div:nth-child(1) > div:nth-child(1), #EddFooter > div:nth-child(1) > div:nth-child(3) {
		text-align: center;
	}

	.navigator{
		font-size: 0.75rem;
	}

	.navigator > button, .navigator > .button {
		max-width: 50%;
	}

	#EddFooter li{
		display: inline;
	}

	#EddFooter form{
		margin-top: 10px;
	}

	#EddFooter > div:nth-child(2) {
		margin-top: 0;
	}

	#HeaderLogo{
		background: white;
		width: 100%;
		margin: 0;
		height: var(--mobile-nav-height);
		padding: 1em;
		position: fixed;
		box-sizing: border-box;
		z-index: 10;
		box-shadow: 0px 1px 7px 0px #00000021;
	}

	#HeaderLogo img{
		max-height: 100%;
		object-fit: contain;
		width: initial;
	}

	#HeaderLogo .hamburger-button{
		right: 20px;
		position: absolute;
		width: 40px;
		height: calc(var(--mobile-nav-height) - 2em);
		top: 1em;
		margin: 0;
		padding: 0;
		display: inline-block;
	}
	
	#NavbarPusher{
		height: calc(var(--mobile-nav-height) + 10px);
		display: block;
	}

	#navbar img {
		height: 30px;
	}

	#navbar > a.button {
		margin-top: 5px;
		margin-right: 15px;
		width: 30px;
		height: 30px;
		float: right;
	}

	.hamburger-button:hover{
		background: none !important;
		border-color: none !important;
	}
	
	.hamburger-inner, .hamburger-inner:after, .hamburger-inner:before{
		width: 40px;
	}

	.newsbox.archive-twin-col article{
		display: inline-flex;
	}
	
	.bottom-part{
		flex-direction: column-reverse;
	}

	.bottom-part .cloudbox.newsbox{
		max-width: none;
		margin-bottom: 10px;
	}

	.page{
		min-width: 100%;
		max-width: 100%;
	}

	.display-items .item{
		margin-bottom: 10px;
		height: 125px;
	}

	.newsbox a.imglink{
		justify-content: center;
		display: flex;
	}

	.bottom-part{
		margin-bottom: 0px;
	}

	#EddFooter{
		z-index: -1;
	}

	h3{
		font-size: 1.5em;
	}

	.inner-content{
		margin-left: 0;
		margin-right: 0;
	}
}
