/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html, body {
  color: #f3c8ff;
	font:1em/180% "Noto Sans JP", Arial, sans-serif;
	width:100%;
	height:100%;
	background:fixed linear-gradient(60deg, rgba(34,2,240,1) 0%, rgba(106,11,193,1) 30%, rgba(182,28,145,1) 65%, rgba(244,106,21,1) 100%);
	background-size: cover;
}

body {
	background-color:#9f0faf;
	font:1em/160% "Noto Sans JP", Arial, sans-serif;
	/* transform-style: preserve-3d; */
}

body::before {
	content: '';
	mix-blend-mode: screen;
	opacity: 0.5;
	position: fixed;
	inset:0;
	background-image:url('../img/noise.svg');
	-webkit-transform: translate3D(0px,0px,-1px) rotateX(180deg);
	/* overflow-x: hidden; */
	/* overscroll-behavior-y: none; */
	/* transform: translateZ(-1px); */
	/* --rotate: 0deg; */
  /* --translateX: 0; */
  z-index: auto;
	/* width:100%; */
	/* height:100%; */
	/* object-fit:cover; */
	/* margin:0; */
	/* padding:0; */
}

a:link,a:visited,a:active {
	color:#f335c2;
	background-color: yellow;
	text-decoration:none;
	padding:0 4px;
	font-weight:bold;
}

a:hover {
	color:yellow;
	background-color: #f335c2;
}

a.home:link,a.home:visited,a.home:active {
	background:url(../img/joey_sig_lrg.png);
	display:block;
	text-indent:-9999px;
	width:181px;
	height:221px;
	margin:80px auto 0 auto;
	padding:0;
	color:rgb(255,0,246);
	font:900 64px "Noto Sans JP", Arial, sans-serif;
	text-transform: uppercase;
	z-index:1;
}

a.home:hover {color:rgb(255,0,246);mix-blend-mode: screen;}

a.home_small:link,a.home_small:visited,a.home_small:active {
	background:url(../img/joey_sig_sm.png);
	display: inline-block;
	text-indent:-9999px;
	width:112px;
	height:80px;
	padding:0;
	color:rgb(255,0,246);
	font:900 64px "Noto Sans JP", Arial, sans-serif;
	text-transform: uppercase;
}

a.home_small:hover {color:rgb(255,0,246);mix-blend-mode: screen;}

a.home_small.active {color:rgb(255,0,246);mix-blend-mode: screen;}

h1 {
	color: #f3c8ff;
	font:900 48px "Noto Sans JP", Arial, sans-serif;
	margin:0;
}

h2 {
	color:rgb(247,250,8);
	font:900 40px "Noto Sans JP", Arial, sans-serif;
	margin:0 0 10px 0;
}

h3 {
	color:rgb(255,241,241);
	font:600 1.2em "Barlow Condensed", Arial, sans-serif;
	margin:0;
	text-transform:uppercase;
	width:100%;
}

strong {
	text-emphasis-style: "\25B2";
	/* text-decoration: underline dotted; */
	/* text-decoration-thickness: 3px; */
}

mark {
	background:rgba(86,12,219, .3);
	color:#f3c8ff;
	text-decoration: dotted;
	texts-decoration-thickness:2px;
}

mark:hover {
	/* background:rgba(86,12,219, .8); */
}

.wrapper, nav {
	position:relative;
	width:1202px;
	margin:0 auto;
	padding:0;
}

#home .row {
	display:flex;
	width: 1202px;
	margin:80px 47px 25px 0;
	justify-content:space-between;
}

#about .row {
	display:flex;
	/* width: 1202px; */
	width:100%;
	margin:80px 47px 45px 0;
	justify-content:space-between;
}

.allcaps {text-transform:uppercase;}
.smallcaps {font-variant-caps: small-caps;}
.center {text-align: center;}

header {
	width:100%;
	height:80px;
	position:relative;
	/* fixing nav order */
	display:flex;
	justify-content: space-between;
}

header::before {
	content: '';
	background-color: #560cdb;
	mix-blend-mode:overlay;
	inset:0;
	position:absolute;
	/* transform: translate3d(0,0,0); */
	-webkit-transform: translate3D(0px,0px,-1px) rotateX(180deg);
}

nav {
	display:flex;
	justify-content: space-between;
}

nav ul {
	margin:0;
	padding:0;
	list-style-type:none;
}

nav ul li {
	display:inline-flex;
	width:160px;
	height:80px;
	margin:0;
	padding:0;
	gap:0;
}

nav ul li a:link, nav ul li a:visited {
	background-color:transparent;
	color:rgba(247,250,8, 1);
	width:100%;
	height:80px;
	font:400 24px "Noto Sans JP", Arial, sans-serif;
	text-decoration:none;
	text-align:center;
	vertical-align:middle;
	line-height:80px;
}

nav ul li a:hover {background: rgba(86,12,219, .4);color:rgb(255,0,246);}
nav ul li a.active {background: rgba(86,12,219,.4);}

nav input[type='checkbox'], nav label {
    display: none;
}

.home_bio {
	width:750px;
	color:rgb(255,255,255);
	font:900 24px "Noto Sans JP", Arial, sans-serif;
	z-index:1;
}

.summary {
	width:800px;
}

#home .headshot {
	margin-top:-130px;
	z-index:0;
}

#about .headshot {
	max-width:400px;
  height:auto;
	position:relative;
	overflow:hidden;
	border-radius: 24px;
	font-size:1em;
}

#about .headshot img {
	position:relative;
	width:100%;
	height:100%;
}

#about .headshot .skateboard_joey_notes {
	background:url(../img/joey/skateboard_joey_notes.png);
	background-size:100%;
	width:100%;
	height:100%;
	opacity:0;
	position:absolute;
	top:0;
	left:0;
	z-index:10;
	-webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

#about .headshot:hover .skateboard_joey_notes {opacity:1;}

#projects .project_masthead .joey_logo {
	width:181px;
	height:auto;
	position: absolute;
	left:50%;
	margin-left:-98px;
	z-index:10;
	/* margin-top:-80px; */
}

#projects .project_masthead img.bg {
	align-items:start;
}

/* Company Logos */

.companies {
	width:1108px;
	margin:0 auto 40px auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content:center;
	align-content:space-evenly;
	gap:40px;
}

.company_item {
	width:120px;	
	align-self:center;
}

.company_item img {
	width:100%;
	opacity:.8;
}

.reel {
	width:100%;
	display:flex;
	flex-direction: column;
	justify-content:center;
	align-content: center;
	margin:60px auto;
}

.reel video {
	width:100%;
	border-radius: 24px;
	margin-top:25px;
}

.featured {
	width:1108px;
	margin:0 auto 60px auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content:space-between;
	align-content:space-evenly;
	gap:40px 0;
}

a.featured_item {
	background: rgba(162,23,180, 1);
  width: 500px;
  height: 203px;
	position:relative;
	overflow:hidden;
	border-radius: 24px;
	display:flex;
	justify-content:center;
	align-items: center;
}

a.featured_item::before {
	content: '';
	mix-blend-mode: overlay;
	inset:0;
	position:absolute;
	z-index:-1;
}

.featured_item img.bg, .project_masthead img.bg {
	mix-blend-mode:luminosity;
	opacity:.5;
}

.featured_item img.logo, .project_masthead img.logo {
	position: absolute;
	z-index:10;
	width:50%;
}

a.featured_item:hover img.bg {
	mix-blend-mode:luminosity;
	opacity:.8;
}

.project_masthead {
  width: 100%;
  height: 297px;
	margin:80px 0 40px 0;
	position:relative;
	overflow:hidden;
	border-radius: 24px;
	display:flex;
	flex-direction:row;
	align-items:center;
}

.project_masthead::before {
	border-radius: 24px;
	content: '';
	background: rgba(227,226,47, .4);
	mix-blend-mode: overlay;
	inset:0;
	position:absolute;
	z-index:-1;
}

.project_masthead img.bg {
	margin-left:auto;
	-webkit-mask-image: linear-gradient(to right, transparent 5%, black 20%);
}

.project_masthead img.logo {
	width:30%;
	margin-left:40px;
}

#about .project_masthead {height:600px;width:100%;}
#about .project_masthead img.bg {
	width:800px;
	-webkit-mask-image: linear-gradient(to right, transparent 5%, black 20%);
}

.project_summary h1 {
	
}

.project_summary {
	width:1100px;
	margin:0 auto 45px auto;
	font-size:1.6em;
}

.about_summary {
	width:700px;
	font-size:1.4em;
}

.summary, .about_summary, .project_summary {
	line-height:150%;
}

.gallery {
	width:90%;
	margin:0 auto 60px auto;
	display: flex;
	flex-wrap: wrap;
	justify-content:space-between;
	gap:40px 0;
	align-items: stretch;
}

a.gallery_item:link,a.gallery_item:visited,a.gallery_item:active {
	background:transparent;
	border-radius: 24px;
	width:49%;
	height:100%;
	overflow:hidden;
	margin:0;
	padding:0;
	display: flex;
	justify-content: center;
	align-items: center;
}

a.gallery_wide:link,a.gallery_wide:visited,a.gallery_wide:active {
	border-radius: 24px;
	width:100%;
	height:100%;
	overflow:hidden;
	margin:0;
	padding:0;
	display: flex;
	justify-content: center;
	align-items: center;
}

a.gallery_item img, a.gallery_wide img {
	width:100%;
	height:auto;
	object-fit: cover;
}

footer {
	width:100%;
	display:flex;
	justify-content:space-between;
	color:rgba(243,53,194, 1);
	text-transform:uppercase;
	font:400 1.2em "Barlow Condensed", Arial, sans-serif;
	padding-bottom:100px;
}
.footer_item {max-width:200px;}

.footer_item a.social {
	text-indent:-9999px;
	display:block;
	min-width:100px;
	min-height:40px;
	height:auto;
	mix-blend-mode:overlay;
	opacity:.5;
}

a.bsky {
	background: url(../img/bluesky_logo.png) 0 0 / 32px auto no-repeat;
}

a.youtube {
	background: url(../img/yt_logo_mono_dark.png) 0 0 / 100px auto no-repeat;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
	background:url(../img/hr.png) no-repeat 0 0;
  display: block;
  height: 44px;
	width:507px;
  border: 0;
  padding: 0;
	margin:0 0 20px 0;
	clear:both;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 100%;
  max-width: 800px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

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

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

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

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

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */


/* @media only screen and (max-width: 507px) */
/* @media only screen and (min-width: 432px) and (max-width: 932px) and (orientation: portrait) */

@media only screen and (max-width: 432px) {
  /* Style adjustments for viewports that meet the condition */
	
	body::before {
		background-image:none;
	}
	
	body, html{
		overflow: hidden;
		overflow-y: auto;
	}
	                                         
	#home .row, #about .row, .wrapper, .companies, .featured, .summary, .home_bio, hr, .project_summary, .gallery, a.gallery_wide, a.gallery_item {
		width: 400px;
	}
	
	nav {
		flex-direction: row;
		flex-wrap: wrap;
		margin-left: 0;
		margin-right: 0;
	}
	
	/* Because we are in mobile mode, we want to display it as a vertical list */
	nav ul {
			display: block;
	}
	
	/* We have two lists: the first one are the always visibile items in the menu bar. The second one is the one that will be hidden */
	nav ul:last-child {
		width: 100%;
		flex-basis: 100%;
		position:absolute;
		top:80px;
		z-index:40;
	}
	
	nav ul li {
		margin:0;
		padding:0;
		width: 100%;
		text-align: right;
	}
	
	nav ul li a:link {
		background:purple;
	}
		
	input[type='checkbox']:not(:checked)+ul {
		display: none;
	}
	
	/* Stlying the menu icon, the checkbox stays hidden */
	nav label {
		text-align: right;
		display: block;
		vertical-align:middle;
		height:80px;
		line-height:80px;
	}

	nav label img {
		width:40px;
	}
	
	a.gallery_item  {
		width: 100%;
	}	

	a.gallery_wide {
		width:100%;
		height:auto;
	}
	
	.project_masthead img.logo {
		width:100%;
		margin-left:0;
	}

	/* project_masthead { */
		/* width: 100%; */
		/* margin:0; */
		/* padding:0; */
	/* } */
	
	.project_masthead img.bg {display:none;}
	
	.headshot {display:none;}
	
	.modal-content {
		width: 100%;
  }
	
}

/* @media only screen and (max-width: 932px) and (orientation: landscape) { */
	@media only screen and (max-width: 1366px) and (orientation: landscape) {
	
	html {
		padding: env(safe-area-inset);
	}
	
	body::before {
		background-image:none;
	}
	
	body, html{
		/* overflow: hidden; */
		/* overflow-y: auto; */
	}
	
	.wrapper {
		width:100%;
	}
	
	#home .row, #about .row, .featured, .wrapper, .companies, hr, .project_summary, .gallery, a.gallery_wide, a.gallery_item {
		width:90%;
	}
	
	.featured {
		flex-wrap: wrap;
		justify-content: space-between;
	}
	
	a.featured_item {
		width: 90%;
		min-height:400px;
	}
	
	a.featured_item img.bg {
		width:100%;
		height:100%;
		object-fit:cover;
	}
	
	#about .project_masthead {
		width:90%;
		margin:80px auto 0 auto;
		overflow:hidden;
		border-radius: 24px;
	}
	
	#about .project_masthead img.bg {
		/* width:70%; */
		-webkit-mask-image: linear-gradient(to right, transparent 5%, black 20%);
		margin:0 auto;
	}
	
	.project_masthead {
		width:90%;
		margin:80px auto 0 auto;
		/* width: 1108px; */
		/* height: 297px; */
		/* margin:80px 47px 40px 47px; */
		/* position:relative; */
		overflow:hidden;
		border-radius: 24px;
		/* display:flex; */
		/* flex-direction:row; */
		/* align-items:center; */
	}

	.project_masthead::before {
		/* background:transparent; */
	}
	
	/* #home .row, #about .row, .companies { */
		/* margin:0 40px; */
	/* } */
	
	nav {
		flex-direction: row;
		flex-wrap: wrap;
		margin-left: 0;
		margin-right: 0;
	}
	
	/* Because we are in mobile mode, we want to display it as a vertical list */
	nav ul {
			display: block;
	}
	
	/* We have two lists: the first one are the always visibile items in the menu bar. The second one is the one that will be hidden */
	nav ul:last-child {
		width: 100%;
		flex-basis: 100%;
		position:absolute;
		top:80px;
		z-index:40;
	}
	
	nav ul li {
		margin:0;
		padding:0;
		width: 100%;
		text-align: right;
	}
	
	nav ul li a:link {
		background:purple;
	}
		
	input[type='checkbox']:not(:checked)+ul {
		display: none;
	}
	
	/* Stlying the menu icon, the checkbox stays hidden */
	nav label {
		text-align: right;
		display: block;
		vertical-align:middle;
		height:80px;
		line-height:80px;
	}

	nav label img {
		width:40px;
	}
	
	a.gallery_item  {
		width: 100%;
	}	

	a.gallery_wide {
		width:100%;
		height:auto;
	}
	
	/* .project_masthead img.logo { */
		/* width:30%; */
		/* margin-left:0; */
	/* } */

	/* .project_masthead { */
		/* width: 100%; */
		/* margin:0; */
		/* padding:0; */
	/* } */
	
	/* .project_masthead img.bg {display:none;} */

	/* .project_masthead img.logo { */
		/* width:30%; */
		/* margin-left:40px; */
	/* } */
	
	.home_bio, .about_summary {
		width:50%;
		margin-left:40px;
	}
	
	.summary {
		width:100%;
	}
	
	.headshot {
		
	}
	
	/* a.featured_item { */
		/* width:90%; */
		/* height:auto; */
	/* } */
	
	/* a.featured_item img.bg { */
		/* width:100%; */
		/* height:auto; */
	/* } */
	
	.modal-content {
		width: 100%;
  }
}

/* iPad 12.9" */
@media screen and (min-width: 1366px) and (max-width: 1366px) {
	
	body::before {
		background-image:none;
	}
	
  a.featured_item {
		width: 500px;
		height: 203px;
	}
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    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) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

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

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

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