/*!
Theme Name: CSSDude
Theme URI: https://cssdude.com/
Author: CSS Dude
Author URI: https://cssdude.com/
Description: CSS Expert & Front End Developer
Version: 0.1.2
Text Domain: cssdude
*/

:root {
	--ff-primary: 'Rokkitt', serif;
    --ff-secondary: 'Roboto', sans-serif;

	--fs-xxxl: 3.8rem;
	--fs-xxl: 3.2rem;
	--fs-xl: 2.8rem;
	--fs-l: 2.4rem;
	--fs-md: 2rem;
	--fs-s: 1.6rem;
	--fs-xs: 1rem;
	--fs-xxs: 0.8rem;

	--color-bg: #fff;
	--color-primary: #DE0E42;
	--color-secondary: #20126F;
	--color-content: #000;
	--color-ascent: #524f4f;
	--color-alt: #f7f8ff;

	--br-val: 8px;

	--wrapper-max-width: 800px;
	--content-max-width: 750px;
}

*,
::after,
::before {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

li,
ol,
ul {
	list-style: none;
}

.noSpace {
	padding: 0!important;
	margin: 0!important
}

body {
	background: var(--color-bg);
	color: var(--color-content);
	font-family: var(--ff-secondary);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
}

iframe{
	margin: 0 auto !important;
	width: 100% !important;
}

.cd__middleContainer.single iframe{
	min-height: 450px;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-content);
	font-family: var(--ff-primary);
	margin: 0 0 0.6em 0;
	padding: 0;
}

h1 {
	font-size: var(--fs-xl);
}

h2 {
	font-size: var(--fs-md);
}

h3 {
	font-size: var(--fs-s);
}

p,
ul,
pre,
iframe {
	margin: 0 0 2em 0;
	padding: 0;
}

.align-center{
	text-align: center;
}

button,
input[type=button],
input[type=reset],
input[type=submit] {
	border: 0 none;
	background: var(--color-primary);
	border-radius: var(--br-val);
	padding: 0.8em 1.5em;
	display: inline-block;
	text-align: center;
	color: var(--color-bg);
	transition: all .4s ease-in-out;
	text-transform: uppercase;
	user-select: none;
	font-size: .9rem;
	cursor: pointer;
	-webkit-appearance: none;
}

button:hover,
input[type=button]:hover,
input[type=reset]:hover,
input[type=submit]:hover {
	border: 0 none;
	-webkit-appearance: none;
}

button:active,
button:focus,
input[type=button]:active,
input[type=button]:focus,
input[type=reset]:active,
input[type=reset]:focus,
input[type=submit]:active,
input[type=submit]:focus {
	border: 0 none;
	-webkit-appearance: none;
}

input[type=color],
input[type=date],
input[type=datetime-local],
input[type=datetime],
input[type=email],
input[type=month],
input[type=number],
input[type=password],
input[type=range],
input[type=search],
input[type=tel],
input[type=text],
input[type=time],
input[type=url],
input[type=week],
textarea {
	font-family: var(--ff-secondary);
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 1em;
	-webkit-appearance: none;
	font-weight: 900;
}

input[type=color]:focus,
input[type=date]:focus,
input[type=datetime-local]:focus,
input[type=datetime]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=range]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
textarea:focus {
	color: #111;
	-webkit-appearance: none;
}

select {
	border: 1px solid #ccc;
}

input[type=email],
input[type=text],
textarea {
	width: 100%
}

.btn {
	font-family: var(--ff-primary);
	background: var(--color-primary);
	border-radius: var(--br-val);
	padding: .8em 1.5em;
	display: inline-block;
	text-align: center;
	color: var(--color-bg);
	transition: all .4s ease-in-out;
	text-transform: uppercase;
	min-width: 140px;
	user-select: none;
	font-size: var(--fs-xs);
}

.btn.focus,
.btn:focus {
	box-shadow: none!important;
}

.btn i{
	color: var(--color-bg) !important;
	transition: all .2s;
}

.btn:hover i {
	margin-left: 10px;
}

#cd__wrapper {
	text-align: center;
	max-width: var(--wrapper-max-width);
	margin: 0 auto;
}

.cd__outer {
	background: var(--color-alt);
	position: relative;
	padding: 2em 0;
	margin: 1em 0 3em;
	text-align: center;
}

.cd__header{
	max-width: var(--content-max-width);
	margin: 0 auto;
	display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.cd__logo h1,
.cd__logo p {
	font-family: var(--ff-primary);
	font-size: var(--fs-xl);
	font-weight: 700;
	margin: 0;
}

.cd__logo h1 a,
.cd__logo p a {
	background: url("assets/img/cssdude.png") center center no-repeat;
	text-indent: -99999px;
    display: inline-block;
	width: 75px;
	background-size: cover;
	padding: 0 0 0.6em;
}

.nav-toggle {
	font-size: var(--fs-xs);
	padding: .5em;
	background: 0 0;
	border: 0 none;
	cursor: pointer;
	position: absolute;
	top: 2.2em;
	right: 1em;
	z-index: 1000;
	display: none;
	outline: 0
}

.hamburger {
	display: block;
	position: relative
}

.hamburger,
.hamburger::after,
.hamburger::before {
	background: var(--color-secondary);
	width: 1.4em;
	height: 3px;
	border-radius: 1em;
	transition: transform 250ms ease-in-out
}

.hamburger::after,
.hamburger::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0
}

.hamburger::before {
	top: 8px;
}

.hamburger::after {
	bottom: 8px;
}

.nav-open .cd__navigation {
	transform: translateX(0);
}

.nav-open .hamburger {
	transform: rotate(.625turn);
}

.nav-open .hamburger::before {
	transform: rotate(90deg) translateX(-8px);
}

.nav-open .hamburger::after {
	opacity: 0;
}

.cd__navigation {
	position: relative;
    top: 0.7em;
}

.cd__navigation ul {
	display: flex;
	justify-content: space-between;
	padding: 0;
	margin: 0;
}

.cd__navigation ul li {
	margin: 0 0 0 1.5em;
}

.cd__navigation a {
	font-family: var(--ff-primary);
	color: var(--color-secondary);
	font-size: var(--fs-s);
}

.cd__navigation ul li a i{
	display: none;
}

.cd__middleContainer {
	position: relative;
	min-height: 300px;
}

.cd__middleContainer.page,
.cd__middleContainer.blog,
.cd__middleContainer.single {
	text-align: left;
}

.cd__middleContainer p.subhead{
	margin-bottom: 0.2em;
}
.cd__middleContainer i{
	color: var(--color-secondary);
	margin-right: 0.1em;
}

.cd__intro h2{
	font-size: var(--fs-l);
	margin-bottom: 0;
	line-height: 1.2;
}

.cd__intro .btn{
	margin: 1em 0;
}

.cd__intro h2 i{
	animation: beat .40s infinite alternate;
}

.cd__overview{
	text-align: center;
	margin-bottom: 3em;
}

.cd__overview h2{
	margin-bottom: 0;
}

.cd__overview--content p {
	color: var(--color-ascent);
}

.cd__overview--items h3 {
	font-size: var(--fs-s);
	margin-bottom: 0.5em;
	line-height: 1;
}

.cd__overview--items ul {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	column-gap: 30px;
}

.cd__overview--items li {
	background: var(--color-bg);
	border-radius: var(--br-val);
	padding: 1.5em 0.9em;
	transition: .2s cubic-bezier(0, 0, 0, 1);
	box-shadow: 0 0 20px rgba(0, 0, 0, .1);
	transition: .2s cubic-bezier(0, 0, 0, 1);
}

.cd__overview--items li p{
	margin: 0;
}

.cd__overview--items li>i.fa {
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-bg);
	margin-bottom: 1em;
	padding: .5em;
	font-size: var(--fs-md);
}

.cd__work{
	margin: 0 0 3em 0;
}

.cd__work > h2{
	margin-bottom: 0;
}

.cd__work > h2 + p{
	color: var(--color-ascent);
}

.cd__work--items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin: 3em 0 2em;
	text-align: left;
}

.cd__work--items a.btn{
	display: inline-block;
	text-align: center;
}

.cd__work a.btn i{
	color: var(--color-bg);
}

.cd__work--items article.article {
	background: var(--color-bg);
	border-radius: var(--br-val);
	box-shadow: 0 0 20px rgba(0, 0, 0, .1);
}

.cd__article--content{
	padding: 0.5em 1.5em 1em;
}

.cd__article--content h2 {
	font-size: var(--fs-s);
	margin-bottom 0;
	line-height: 1.2;
}

.cd__article--content h2 a{
	color: var(--color-secondary);
}

.cd__article--content .meta {
	font-size: var(--fs-xxs);
	color: var(--color-ascent);
	margin-bottom: 1em;
}

.cd__content{
	display: grid;
    grid-template-columns: 1fr 1fr;
	grid-gap: 30px;
	margin: 0 auto 3em;
	max-width: var(--content-max-width);
}

.cd__middleContainer.page .cd__content,
.cd__middleContainer.single .cd__content{
	display: block;
}

.cd__middleContainer.single .image-post,
.cd__middleContainer.blog .image-post,
.cd__work .image-post{
	min-height: 250px;
    margin: 0 0 0.2em;
    background-size: cover;
	background-repeat: no-repeat;
	background-position: 0 0;
}
.cd__middleContainer.single .image-post{
	border-radius: var(--br-val);
}
.cd__middleContainer.single .img-caption {
	font-size: var(--fs-xs);
    font-style: italic;
    color: var(--color-ascent);
    margin: -0.5em 0 2em 0;
    display: inline-block;
}
.cd__work .image-post,
.cd__content .article .image-post{
	min-height: 200px;
	border-top-left-radius: var(--br-val);
	border-top-right-radius: var(--br-val);
	margin-bottom: 0.8em;
}
.cd__content.notFound{
	display: block;
}

.blog .article {
	border-radius: var(--br-val);
	background: var(--color-bg);
	box-shadow: 0 0 20px rgba(0, 0, 0, .1);
}

.blog .article h2 {
	font-size: var(--fs-s);
	margin-bottom: .5em;
	line-height: 1.2;
}

.blog .article h2 a {
	color: var(--color-secondary);
}

.blog .article .image-thumb {
	border-top-left-radius: var(--br-val);
	border-top-right-radius: var(--br-val);
}

.blog .article img {
	border-top-left-radius: var(--br-val);
	border-top-right-radius: var(--br-val);
	width: 100%;
	height: auto;
}

.blog .meta {
	font-size: var(--fs-xxs);
	color: var(--color-ascent);
	margin-bottom: 1em;
}

.blog .article .content p{
	margin: 0;
}

.cd__work .readMore,
.blog .article .readMore{
	display: block !important;
	max-width: 180px;
	margin: 1em 0 0 0;
}

.cd__work .readMore i,
.blog .article .readMore i{
	color: var(--color-bg);
}

.single .cd__content .image-thumb {
	margin-bottom: 1.5em
}

.cd__middleContainer .cd__content blockquote{
	padding: 2em;
    border-left: 5px solid var(--color-secondary);
    margin: 0 0 3em 0;
    color: var(--color-content);
    background: var(--color-alt);
}
.cd__middleContainer .cd__content blockquote cite{
	color: var(--color-ascent);
	font-style: italic;
}

.cd__middleContainer.single .cd__content{
	letter-spacing: 0.015em;
	line-height: 1.6;
}

.cd__middleContainer.single .cd__content ul{
	list-style: disc;
	margin: 2em;
}

.cd__middleContainer.single .cd__content li{
	list-style: disc;
	margin: 0 0.3em 1em 0;
}

.cd__tags{
	color: var(--color-secondary);
    font-family: var(--ff-primary);
    margin: 1em 0 .6em;
	padding: 0;
	font-weight: 400;
}
.cd__tags span{
	display: inline-block;
    background: var(--color-secondary);
    color: var(--color-bg);
    padding: 0.2em 0.8em;
	margin: 0.3em 0.2em;
	font-size: var(--fs-xs);
}

#nextPrev{
	text-align: center;
	margin: 3em 0;
	background: var(--color-alt);
    padding: 1em;
    border: 1px solid var(--color-alt);
}
#nextPrev ul{
	margin: 0;
	padding: 0;
	list-style: none;
}
#nextPrev ul li{
	margin: 0;	
	padding: 0;
	list-style: none;
	font-family: var(--ff-primary);
	font-size: var(--fs-s);
}

#nextPrev ul li:first-child{
	padding: 0 0 0.5em 0;
}

#nextPrev ul li:last-child{
	border-top: 1px solid var(--color-bg);
    padding: 0.5em 0 0 0;
}

.leaveAComment{
	margin-top: 3em;
}

.comments-wrapper{
	max-width: var(--content-max-width);
	box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    padding: 2em;
    border-radius: var(--br-val);
}

.comments-wrapper iframe{
	width: 100% !important;
}

.cd__heading {
	margin: 0 auto;
	max-width: var(--content-max-width);
}

.cd__heading h1,
.cd__heading.blog h1,
.cd__heading.page h1,
.cd__heading.blog h1,
.cd__heading.page h1 {
	text-transform: none;
	line-height: 1;
	margin: 0.2em;
}

.cd__heading .meta,
.cd__heading p {
	color: var(--color-ascent);
	font-size: var(--fs-xs);
}

.cd__heading p{
	margin: 0;
}

.cd__heading a {
	color: var(--color-primary)
}

.navigation.pagination {
	text-align: center;
	margin: 0 0 3em 0;
}

.navigation.pagination h2 {
	display: none
}

.navigation.pagination .nav-links {
	display: flex;
	justify-content: center
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
	border-radius: var(--br-val);
	display: inline-block;
	background: var(--color-primary);
	padding: .5em 1em;
	color: var(--color-bg);
	margin: 0 .2em;
	font-size: .9rem
}

.navigation.pagination .nav-links span {
	background: var(--color-secondary);
}

.social--connect{
	margin: 0 0 0 -0.2em;
	text-align: center;
}

.social--connect li{
	display: inline-block;
	font-size: var(--fs-l);
	margin: 0 0 0 0.2em;
}

.cd__footer {
	color: var(--color-ascent);
	text-align: center;
	margin: 4em 0 0 0;
}

.cd__footer a {
	color: var(--color-primary);
}

.cd__footer--social ul {
	margin: 0;
}

.cd__footer--social {
	display: flex;
	justify-content: center;
	padding: .5em 0;
	font-size: var(--fs-md);
	margin: 0;
}

.cd__footer--social a{
	color: var(--color-ascent);
}

.cd__footer--social i {
	padding: 0 .2em;
}

.cd__footer--copyright {
	padding: 0 0 2em;
	font-size: var(--fs-xs);
	color: var(--color-ascent);
}

.cd__disclaimer{
	font-size: var(--fs-xs);
}

.cd__disclaimer .fa-heart{
	color: var(--color-primary);
	animation: beat .40s infinite alternate;
	margin: 0 0.2em;
}
  
@keyframes beat {
	to { transform: scale(1.4); }
}

@media (max-width:850px) {
	:root {
		--fs-xxxl: 2.4rem;
		--fs-xxl: 2.2rem;
		--fs-xl: 2rem;
		--fs-l: 1.8rem;
		--fs-md: 1.6rem;
		--fs-s: 1.4rem;
		--fs-xs: 1.2rem;
		--fs-xxs: 1rem;
	}
	body {
		font-size: 16px;
	}
	#cd__wrapper,
	.cd__header{
		padding: 0 1.5em;
	}
	.nav-toggle {
		display: block
	}
	.cd__navigation {
		position: fixed;
		background: var(--color-alt);
		color: var(--clr-secondary);
		top: 0;
		bottom: 0;
		right: 0;
		z-index: 100;
		width: 100%;
		height: 100%;
		padding: 2em 0 0 2em;
		transform: translateX(100%);
		transition: transform 250ms cubic-bezier(.5, 0, .5, 1)
	}
	.cd__navigation ul li a>i {
		min-width: 1em;
		display: inline-block
	}
	.cd__navigation ul {
		padding: .5em 2em 0 0;
		max-width: 100%;
		margin: 4em auto 0;
		display: block
	}
	.cd__navigation ul li {
		padding: 0 0 .5em 1em;
		margin-bottom: 1em;
		border-bottom: 1px solid var(--color-secondary);
	}
	.cd__navigation a {
		font-family: var(--ff-primary);
		color: var(--color-secondary);
		font-size: var(--fs-md);
    }
	.cd__logo h1 a,
	.cd__logo p a{
		padding: 0 0 1.5em;
	}
	.cd__overview h2,
	.cd__work > h2{
		margin: 0;
		line-height: 1.2;
	}
	.cd__middleContainer.single .cd__content ul{
		margin: 1.2em;
	}
	.cd__intro,
	.cd__heading{
		padding: 0 1.5em;
	}
	.cd__middleContainer.single .img-caption{
		font-size: var(--fs-xxs);
	}
	.cd__heading .meta,
	.cd__heading p{
		font-size: var(--fs-xxs);
	}
}
@media (max-width:768px) {
	.cd__overview--items ul,
	.cd__work--items,
	.blog .cd__content {
		display: block;
	}
	.cd__overview--items li,
	.cd__work--items .article,
	.blog .article{
		margin: 0 0 2em 0;
	}
	.cd__tags span,
	.cd__disclaimer,
	.cd__footer--copyright {
		font-size: var(--fs-xxs);
	}
	.cd__footer--social {
		font-size: var(--fs-s);
	}
	.btn{
		font-size: var(--fs-xxs);
		font-weight: 600;
	}
}

@media (max-width:450px) {
	.cd__heading h1,
	.cd__heading.blog h1,
	.cd__heading.page h1,
	.cd__heading.blog h1,
	.cd__heading.page h1{
		font-size: var(--fs-md);
	}
}