/*
	Theme Name: Ruby Press
	Theme URI: https://ruby-press.com
	Version: 1.0.0
	Author: Modem Studio (@modem_studio)
	Author URI: https://modem.studio
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
:root {
  --purple: #7C3EFF;
  --green: #2ab971;
  --red: #ff0700;
  --background: whitesmoke;
  --text: black;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
	background-color: var(--background);
	color: var(--text);
}
body {
	font-weight: 400;
	font-size: 20px;
	font-family: 'Inter', sans-serif;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
	clear: both;
}
img {
	max-width:100%;
	max-height: 100%;
	height: auto;
	vertical-align: middle;
}
video:focus { 
	outline:none; 
}
a {
	text-decoration: none;
	color: var(--red);
}
a:hover {
	text-decoration: none;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
}
.clear{
	clear: both;
}
h1, h2, h3{
	font-weight: normal;
	margin-top: 0;
}
h1{
	font-size: 2em;
	margin: 0;
}
h2 a, 
a h2{
	text-decoration: none;
}
h3{
	color: var(--purple);
}
.mono{
	font-family: monospace;
}
figcaption,
.small-type{
	font-size: 0.6em;
	font-family: monospace;
}
.medium-type{
	font-size: 16px;
}
.mono{
	font-family: 'Space Mono', monospace;
}
.padding-20{
	padding: 20px;
}
.black-text,
a.black-text,
.black-text a{
	color: var(--text);
}
.red-text,
.red-text a{
	color: var(--red) !important;
}
/*------------------------------------*\
    COOKIE CONSET
\*------------------------------------*/
.tpp__cook_msg{
	display:block;
	color:black;
	position:fixed;
	bottom:20px;
	left: 20px;
	padding: 10px;
	z-index:9999999;
	border: 1px solid var(--green);
	background-color: var(--background);
	border-radius: 20px;
	max-width: calc(100% - 40px);
}
.tpp__cook_msg #acceptCookie{
	background-color: var(--green);
	border-radius: 50px;
	padding:5px 10px;
	font-size:14px;
	border: none;
	color: var(--background);
}
.tpp__cook_msg #acceptCookie:hover{
	opacity: 0.5;
}
/*------------------------------------*\
	ANIMATIONS
\*------------------------------------*/
/* WIGGLE */
@-webkit-keyframes wiggle {
	0% { -webkit-keyframes-transform: rotate(10deg); }
   50% { -webkit-keyframes-transform: rotate(-10deg); }
  100% { -webkit-keyframes-transform: rotate(10deg); }
}
@-moz-keyframes wiggle {
	0% { -moz-keyframes-transform: rotate(10deg); }
   50% { -moz-keyframes-transform: rotate(-10deg); }
  100% { -moz-keyframes-transform: rotate(10deg); }
}
@keyframes wiggle {
	0% { transform: rotate(10deg); }
   50% { transform: rotate(-10deg); }
   100% { transform: rotate(10deg); }
}

/* SPIN */
@keyframes spin {
	from{ transform: rotateY(0deg);}
	to{ transform: rotateY(360deg);}
}
@-moz-keyframes spin {
	from{ -moz-transform: rotateY(0deg);}
	to{ -moz-transform: rotateY(360deg);} 
}
@-webkit-keyframes spin {
	from{-webkit-transform: rotateY(0deg);}
	to{ -webkit-transform: rotateY(360deg);}
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper: padding-top for menu height */
.wrapper {
	width:100%;
	margin:0 auto;
	position:relative;
	overflow: hidden;
	padding-top: 44px;
}
.header{
	position: fixed;
	top: 0;
	left: 0;
	background-color: var(--green);
	width: 100%;
	display: flex;
	z-index: 999;
}


/* NAVIGATION */
.nav {
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  height: 300px;
  margin-top: -300px;
  padding: 10px 20px;
  width: 100%;
  flex: 1;
  background-color: var(--green);
}
.nav a {
  text-decoration: none;
  color: var(--text);
}
.nav ul {
  margin: 0;
  padding: 0;
  padding-top: 50px;
}
.nav ul li {
  list-style: none;
  margin-right: 30px;
  margin-bottom: 20px;
}
.current-menu-item a{
	color: white;
}
.home-link{
	flex: 1;
	padding: 10px 20px;
	text-align: right;
}
.home-link img{
	height: 22px;
}
/* BURGER BUTTON */
.burger-button{
	position: fixed;
	top: 12px;
	left: 20px;
	width: 50%;
	z-index: 9999;
	cursor: pointer;
	display: block;
}
.burger-button .burger-bars{
	width: 30px;
	height: 30px;
	position: relative;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: .5s ease-in-out;
}
.burger-button .burger-bars span{
	display: block;
	position: absolute;
	height: 2px;
	width: 100%;
	background: var(--text);
	border-radius: 0px;
	opacity: 1;
	left: 0;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .25s ease-in-out;
	-moz-transition: .25s ease-in-out;
	-o-transition: .25s ease-in-out;
	transition: .25s ease-in-out;
}
.burger-button .burger-bars span:nth-child(1) {
	top: 0px;
}
.burger-button .burger-bars span:nth-child(2),
.burger-bars span:nth-child(3) {
	top: 10px;
}
.burger-button .burger-bars span:nth-child(4) {
	top: 20px;
}
.burger-button .burger-bars.open span:nth-child(1) {
	top: 20px;
	width: 0%;
	left: 50%;
}
.burger-button .burger-bars.open span:nth-child(2) {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}
.burger-button .burger-bars.open span:nth-child(3) {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.burger-button .burger-bars.open span:nth-child(4) {
	top: 20px;
	width: 0%;
	left: 50%;
}

/* FOOTER */
.footer{
	border-top: 1px solid lightgray;
}
.footer .columns{
	gap: 20px;
}
.footer .columns .single-column{
	margin-bottom: 20px;
}
.footer-menu ul{
	margin: 0;
	padding: 0;
}
.footer-menu ul li{
	list-style: none;
}
/* POST ARCHIVES */
.pagination a{
	text-decoration: none;
}
.pagination .current{
	color: var(--red);
}
.post-list{
	max-width: 1200px;
	margin: auto;
	padding: 0;
}
.post-item{
	margin-bottom: 50px;
	list-style: none;
}
/* SINGLE POST */
.single-post-nav{
	display: flex;
	border-top: 1px solid lightgray;
	border-bottom: 1px solid lightgray;
}
.single-post-nav-prev,
.single-post-nav-next{
	flex: 1;
}
.single-post-nav-next{
	text-align: right;
}
.single-post-nav a{
	text-decoration: none;
}

/* PROJECT ARCHIVES */
.project-cat-menu ul{
	padding-left: 20px;
}
.project-cat-menu ul li{
	list-style: none;
	display: inline-block;
	margin-right: 20px;
}
.project-list{
	margin: 0;
	padding: 0;
	margin-right: -20px;
}
.project-item{
	display: inline-block;
	list-style: none;
	padding-right: 20px;
	vertical-align: top;
	margin-bottom: 50px;	
}
.project-cat{
	margin-bottom: 10px;
}
.project-cat a{
	text-decoration: none;
	text-transform: uppercase;
}
.project-thumb{
	margin-bottom: 10px;
	overflow: hidden;
}
.project-thumb img{
	transition: transform .5s ease;
}
.project-thumb:hover{
	-webkit-filter: blur(3px);
	filter: blur(3px);
}
/* SINGLE PROJECT */
.project-images{
	background-color: #1D1E20;
	color: white;
	padding-top: 20px;
}
.project-images a{
	color: white;
}
.project-images ul{
	margin: 0;
	padding: 0;
}
.project-images ul li{
	list-style: none;
}

/* PAGES */
.single-page{
	max-width: 800px;
	margin: auto;
}
.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ABOUT */


/* CART PAGE */
.cart-page-table{
	border-top: 1px solid lightgray;
}
/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

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

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

}
@media only screen and (min-width:768px) {
	h1{
		font-size: 3em;
	}
	.burger-button{
		display: none;
	}
	.nav{
		position: relative;
		z-index: 999;
		height: auto;
		margin-top: 0 !important;
	}
	.nav ul{
		padding-top: 0;
		display: inline-block;
	}
	.nav ul li{
		display: inline-block;
		margin-right: 30px;
		margin-bottom: 0;
	}
	.project-cat-menu ul li{
		display: inline-block;
		margin-right: 30px;
	}
	.columns{
		display: flex;
	}
	.columns-gap{
		gap: 20px;
	}
	.single-column{
		flex: 1;
	}
	.double-column{
		flex: 2;
	}
	.footer .columns .single-column{
		margin-bottom: 0;
	}
	.project-item{
		width: 50%;
	}
	.post-thumb{
		padding-right: 20px;
	}
	
}
@media only screen and (min-width:1024px) {
	.project-item{
		width: 33.33%;
	}
}
@media only screen and (min-width:1140px) {

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

}
@media only screen and (min-width:1480px) {
	.project-item{
		width: 25%;
	}
}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background: var(--green);
	color:white;
	text-shadow:none;
}
::-webkit-selection {
	background: var(--green);
	color:var(--background);
	text-shadow:none;
}
::-moz-selection {
	background: var(--green);
	color:var(--background);
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		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) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]: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;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}
