:root {
	--portrait_bg_color: rgb(20,22,58);
	--portrait_container_height: 51vw;
	--portrait_container_height_max: 50vh;
	--portrait_image_height: 60vw;
	--portrait_image_height_max: 80vh;
	--portrait_image_top_offset: 1vw;
	--portrait_shadow_top_offset: 2vw;
	--aces_rotation: 45deg;
	--maintitle_opacity: 1;
	--subtitle_opacity: 1;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0px;
	font-family: 'Noto Sans', sans-serif;
	font-size: 1em;								/* mediaquery */
	font-weight: 400;
	font-stretch: 100%;
	position: relative;
}
a {
	color: black;
	font-weight: bold;
}
a:hover {
	color: white;
	background-color: black;
}



#heading_container {
	position: fixed;
	z-index: 1;
	top: 0;
	width: 100%;
	color: white;
	padding-left: 1vw;
	padding-right: 1vw;
}
#heading_container {
	transition-delay: 0s;
	transition-duration: 0s;
	transition-property: all;
	transition-timing-function: ease;
}
#heading_title_backfill, #heading_title, #heading_subtitle, #heading_container h1, #heading_container h2 {
	transition-delay: inherit;
	transition-duration: inherit;
	transition-property: inherit;
	transition-timing-function: inherit;
}
#heading_title_heightmarker, #heading_title_backfill, #heading_title, #heading_subtitle {
	position: absolute;
	right: 0%;								/* see SPECIAL BEHAVIOUR below */
	background-color: rgba(0,0,0,0);
}
#heading_title_backfill {
	left: 100%;								/* see SPECIAL BEHAVIOUR below */
}
#heading_title, #heading_subtitle {
	transform: translate(0%, 0);			/* see SPECIAL BEHAVIOUR below */
	padding-left: 1vw;
	padding-right: 1vw;
	white-space: nowrap;
	opacity: 1;
}
#heading_title {
	opacity: var(--maintitle_opacity);
}
#heading_subtitle {
	opacity: var(--subtitle_opacity);
}
#heading_container h1, #heading_container h2 {
	margin: 0px;
	padding: 0px;
	/* text-shadow:	2px 0px 2px #000, -2px 0px 2px #000, 0px 2px 2px #000, 0px -2px 2px #000, */
					/* 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; */
	text-shadow:	.06em 0px .06em #000, -.06em 0px .06em #000, 0px .06em .06em #000, 0px -.06em .06em #000,
					.03em .03em #000, -.03em -.03em #000, .03em -.03em #000, -.03em .03em #000;
}
#heading_container h1, #heading_title_backfill, #heading_title_heightmarker, #icon_container  {
    font-family: 'Noto Sans Display', sans-serif;
	font-weight: 700;
	font-stretch: 100%;
	font-size: 8.5vw;						/* see SPECIAL BEHAVIOUR below */
}
#heading_container h2 {
	font-family: 'Caladea', serif;
	font-size: 3.5vw;						/* see SPECIAL BEHAVIOUR below */
}
.headingtitlekern {
	letter-spacing: -0.03em;
}



#portrait_container_spacetaker, #portrait_container, #icon_container_wrapper {
	height: 51vw;
	height: var(--portrait_container_height);
	max-height: 50vh;
	max-height: var(--portrait_container_height_max);
}
#portrait_container_spacetaker, #portrait_container {
	width: 100%;
	overflow: hidden;
}
#portrait_container_spacetaker {
	position: relative;
	z-index: 1;											/* important layer relationship */
}
#portrait_container {
	position: fixed;
	z-index: -1;
	background-color: #224;
	background-color: var(--portrait_bg_color);
	background-image: url('img/site/background_bluetintwithspot_4000x2341q50.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	font-size: 0;	/* prevent ~4 pixels space, see below */
}
#portrait_container img {
    pointer-events: none;			/* prevent touch events from triggering "save image" */
}
#portrait_image_container {
	display: block;
	position: absolute;
	top: 3vw;
	top: var(--portrait_image_top_offset);
	left: 3vw;
}
#portrait_image_container img {
	position: relative;
	height: 50vw;
	height: var(--portrait_image_height);
	max-height: 70vw;
	max-height: var(--portrait_image_height_max);
}
#portrait_shadow_container {
	display: block;
	position: absolute;
	top: 5vw;
	top: var(--portrait_shadow_top_offset);
	left: -8vw;
}
#portrait_shadow_container img {
	position: relative;
	height: 50vw;
	height: var(--portrait_image_height);
	max-height: 70vw;
	max-height: var(--portrait_image_height_max);
	opacity: 0.4;
}
#portrait_lensflare_container {
	display: block;
	position: absolute;
	top: -89vw;
	left: -50vw;
}
#portrait_lensflare_container img {
	width: 250vw;
	opacity: 0.8;
	mix-blend-mode: lighten;
	/* 1050x 540y of 1600, 1600 =  0.65625x 0.3375y */
	transform-origin: 65.625% 33.75%;
	/* animation-duration: 7s; */
	/* animation-name: lensflare-animation; */
	/* animation-iteration-count: infinite; */
	/* animation-direction: alternate; */
	/* animation-timin-function: ease-in-out; */
}
@keyframes lensflare-animation {
	from {
		transform: rotate(15deg);
	}
	to {
		transform: rotate(20deg);
	}
}
.portrait_video_container {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}
#portrait_video_back, #portrait_video_front {
	mix-blend-mode: screen;
	width: 100%;
}
#portrait_video_back {
	opacity: 1.0;
}
#portrait_video_front {
	opacity: 1.0;
}



#icon_container_wrapper {
	position: absolute;
	top: 0vw;
	right: 0vw;
	width: 1vw;
}
#icon_container {
	position: absolute;									/* see SPECIAL BEHAVIOUR below */
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	z-index: 1;											/* important layer relationship */
	bottom: 0.1em;
	right: 1vw;
}
#icon_container {
	transition-delay: 0s;
	transition-duration: 0s;
	transition-property: all;
	transition-timing-function: ease;
}
#icon_container div {
	line-height: 0.9em;
	margin: 0vw 1vw;
	/* filter: drop-shadow(2px 2px 1px #224) */
			/* drop-shadow(-2px -2px 1px #224); */
	/* filter: drop-shadow(2px 2px 1px var(--portrait_bg_color)) */
			/* drop-shadow(-2px -2px 1px var(--portrait_bg_color)); */
	filter: drop-shadow(.03em .03em .01em #224)
			drop-shadow(-.03em -.03em .01em #224);
	filter: drop-shadow(.03em .03em .01em var(--portrait_bg_color))
			drop-shadow(-.03em -.03em .01em var(--portrait_bg_color));
}
#icon_container a {
	display: inline-block;
}
#icon_container a:hover {
	background-color: rgba(0,0,0,0);
}
#icon_container img {
	height: 0.9em;
	vertical-align: top;
}
#icon_container img:hover {
	filter:	brightness(0.5) sepia(1) saturate(10000%) /* convert white to red */
			drop-shadow(-0.5vw 0.5vw 0.5vw blue);
	filter:	drop-shadow(0 0 1vw #f00);
}
#icon_container div:first-child {
	margin-left: 0vw;
}
#icon_container div:last-child {
	margin-right: 0vw;
}



.ace_container {
	display: none;
	position: relative;
}
.ace {
	display: none;
	position: absolute;
	z-index: -1;
	opacity: 0.3;
	top: 0em;
	width: 14vw;
	width: calc(14vw + 1.4em);
	height: 20vw;
	height: calc(20vw + 2em);
	background-image: url('img/site/GuitarAceOfPicks_500x713t.webp');
	background-size: contain;
	background-repeat: no-repeat;
	transform-origin: 50% 50%;
}
.ace:nth-child(odd) {
	left: 1vw;
	transform: rotate(45deg);
	transform: rotate(calc(-1 * var(--aces_rotation)));
}
.ace:nth-child(even) {
	right: 1vw;
	transform: rotate(45deg);
	transform: rotate(var(--aces_rotation));
}



#content_container {
	z-index: 0;
	position: relative;
	background-color: white;
	padding-top: 2em;
	padding-bottom: 4em;
	scroll-snap-type: y proximity;
	overflow: hidden;
}
#content_container_anchor {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 10px;
	height: 100px;
}
#content_inner_container {
	position: relative;
	padding-left: 10vw;					/* mediaquery */
	padding-right: 10vw;				/* mediaquery */
}
#content_inner_container p {
	text-align: justify;
	font-size: inherit;							/* mediaquery */
}
#content_inner_container p:first-child {
	margin-top: 0em;
}
#content_inner_container .p_first:first-letter {
	font-size: 1.7em;
	color: white;
	-background-color: rgba(0,0,0,0.1);
	background-image: url('img/site/PapezPickNoText_86x100t.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	float: left;
	margin-top: -0.2em;
	padding: 0.4em 0.3em 0.6em 0.3em;
	-initial-letter: 2;
}
#content_inner_container p:last-child {
	margin-bottom: 0em;
}
p {
	scroll-snap-alignment: start;
}



#stream_container {
	width: 100%;
	margin-top: 2em;
	margin-bottom: 2em;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: flex-start;
	align-content: center;
	gap: 2em 1em;
}
.stream_item_youtubevideo, .stream_item_img {
	display: inline-block;
}
.stream_item_youtubevideo iframe {
	vertical-align: top;
	width: 560px;
	width: 78vw;
	height: 315px;
	height: 44vw;
	max-width: 560px;
	max-height: 315px;
}
.stream_item_img img {
	vertical-align: top;
	width: 560px;
	width: 78vw;
	max-width: 560px;
}
.stream_item_description {
	font-size: 1rem;
	text-align: center;
	vertical-align: top;
	width: 560px;
	width: 78vw;
	max-width: 560px;
	padding: 0em 1em 0.2em 1em;
	color: white;
	background-color: rgba(0,0,0,1);
}
#stream_container a {
	color: white;
	font-weight: bold;
}
#stream_container a:hover {
	color: black;
	background-color: white;
}



#brucewest {
	width: 100%;
	position: relative;
	height: 35vw;
}
#brucewest img:first-child {
	position: absolute;
	height: 100%;
}
#brucewest img:last-child {
	position: absolute;
	height: 60%;
	right: 0px;
	top: 10%;
}




#footer_container {
	border-top: 0.1em solid rgba(0,0,0,1);
}
#footer_image {
	height: 20vh;
	background-color: white;
	background-image: url('img/site/DSC_4195-croprotateFX_2000x772q90.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}
#footer_attribution {
	text-align: center;
	padding: 0.5em 1em 0.5em 1em;
	color: white;
	background-color: rgb(20,22,58);
	background-color: var(--portrait_bg_color);
}
#footer_attribution a {
	color: white;
	font-weight: bold;
}




/* SPECIAL BEHAVIOUR when page is scrolled down - controlled from javascript */
body.user_scrolled_tosubtitle #heading_subtitle {
	-opacity: 0.0;
}
body.user_scrolled_down #heading_container h1,
body.user_scrolled_down #heading_title_backfill,
body.user_scrolled_down #icon_container {
	font-size: 5vw;
}
body.user_scrolled_down #heading_container h2 {
	font-size: 0vw;
}
body.user_scrolled_down #heading_title {
	right: 100%;
	opacity: 1;
	transform: translate(100%, 0);
	-background-color: rgb(20,22,58);
}
body.user_scrolled_down #heading_title_backfill {
	left: 0%;
	background-color: #224;
	background-color: var(--portrait_bg_color);
	background-image: url('img/site/background_bluetintwithspot_4000x2341q50.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	box-shadow:
		0px 0.04em 0 rgba(255,255,255,1),
		0px 0.11em 0 rgba(0,0,0,1),
		0px 0.20em 6px rgba(0,0,0,0.5);
}
body.user_scrolled_down .portrait_video_container {
	display: none !important;					/* turn off videos when scrolled down */
}
body.user_scrolled_down #icon_container {
	position: fixed;
	bottom: initial;
	top: 0.25em;
}
body.user_scrolled_down #icon_container div {
	margin: 0vw 1vw;
}
body.user_scrolled_down #icon_container div:first-child {
	margin-left: 0vw;
}
body.user_scrolled_down #icon_container div:last-child {
	margin-right: 0vw;
}




@media only screen and (max-width: 1100px) {
	body.user_scrolled_down #heading_container h1,
	body.user_scrolled_down #heading_title_backfill,
	body.user_scrolled_down #icon_container {
		font-size: 8vw;
		font-size: calc(5vw + (16px));
	}
	#content_inner_container {
		padding-left: 10vw;
		padding-right: 10vw;
	}
}
@media only screen and (min-width: 1100px) {
	#heading_container h1,
	#heading_title_backfill,
	#heading_title_heightmarker,
	#icon_container {
		font-size: 93px;
	}
	#heading_container h2 {
		font-size: 39px;
	}
	#content_inner_container {
		font-size: 1.5vw;
	}
}
@media only screen and (min-width: 1600px) {
	#content_inner_container {
		font-size: 25px;
	}
	body.user_scrolled_down #heading_container h1,
	body.user_scrolled_down #heading_title_backfill,
	body.user_scrolled_down #icon_container {
		font-size: 85px;
	}
}








/*
	To prevent ~4 pixels space at bottom for text descenders:
	https://stackoverflow.com/questions/19212352/div-height-based-on-child-image-height-adds-few-extra-pixels-at-the-bottom
	- add font-size:0; to the containing div
	- add vertical-align:top to the image
	- add display:block; to the image
*/

