@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&family=League+Spartan:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gochi+Hand&display=swap');

:root{
	--pop_color: #f47d68; 
	--interact_color: #529fb8;
	--interact_highlight_color: #6dcbeb;
	--shadow_color: rgba(0,0,0,0.25);
	--transition_duration: 50ms;
}

html{ scroll-behavior: smooth; }

body{ 	
	display:grid;

	@media screen and (max-width: 800px){
		grid-template-columns: 1rem auto 1rem;
		/*border-top: 5px solid crimson;*/
	}

	@media screen and (min-width: 800px){
		grid-template-columns: auto 750px auto;
		/*border-top: 5px solid goldenrod;*/
	}

	@media screen and (min-width: 1200px){
		grid-template-columns: auto 1000px auto;
		/*border-top: 5px solid turquoise;*/
	}
	
	background: linear-gradient(whitesmoke 0%, white 10rem);
	background-attachment: fixed;
			
	margin: 0;
	overflow-x: hidden;

	font-family: "League Spartan", sans-serif; 
	font-size: 14pt;

	& h1, blockquote { font-family: "Gochi Hand",sans-serif; }
	& ul {list-style-type: circle; list-style-image: url("images/bullet.svg"); }
	& a:not(:has(button)){ 
		color: var(--interact_color);
		text-decoration: none;
		
		&:hover{ 
			background-color: var(--interact_highlight_color);
			color: black;
		}
	}
}

/* Style all buttons as stickers*/
button{
	/* Text buttons get a basic background and border */
	transition: transform var(--transition_duration);

	&:not(:has(img)){
		background-color: coral;
		padding: 0.5rem 1rem;
		border: 4px solid white;
		border-radius: 0.5rem;
		font-size: 1rem;
	}
	
	/* Image buttons use the image as the shape; create a sloppy border with CSS drop shadows */
	&:has(img){
		background-color: transparent;
		border: none;
		img{
			filter:	drop-shadow(white 2px 2px 0px)
					drop-shadow(white -2px -2px 0px)
					drop-shadow(white -2px 2px 0px)
					drop-shadow(white 2px -2px 0px);
		}
	}

	&:not(:hover){
		filter: drop-shadow(var(--shadow_color) 0px 0px 3px);
	}

	&:hover{
		
		cursor: pointer; 
		transform:scale(1.1); 
		filter:
				drop-shadow(var(--shadow_color) 0px 2px 2px)
				drop-shadow(var(--shadow_color) 0px 0px 5px);
	}
}

header{
	grid-column:2 / 3;
	position: sticky;
	top: 0;
	color: black;

	z-index: 2;

	#mainheader{
		display: flex;

		@media screen and (max-width:800px){
			flex-flow: column nowrap;
			align-items: center;
		}

		@media screen and (min-width:800px){
			flex-flow: row wrap;
			align-items: flex-end;
		}

		justify-content: space-between;
		gap: 1rem;
		padding: 1rem;
		position: relative;
	
		background-color: white;
		box-shadow: 0px 0.2rem 0.5rem var(--shadow_color);

		z-index: 1;

		p { margin: 0; }

		#sitelogo{
			height: 3rem;
			content: url("images/headers/signature.png");
			transition: transform var(--transition_duration);

			&:hover{
				background-color: white;
				transform: scale(1.05);
				border: none;
				content: url("images/headers/signature_hover.gif");
			}
		}

		#socialnav{
			display:flex;
			flex-flow: row nowrap;
			gap: 0.5rem;

			& button{
				& img{ height: 2.5rem; }
			}
		}
	}

	#sitenav{
		display: flex;
		position: relative;
		flex-flow: row nowrap;
		gap: 0.25rem; 
		padding: 0 1rem;
		justify-content: flex-end;
		font-size: 1.25rem;

		z-index: -1;

		a{ 
			background-color: lightyellow;
			padding: 1rem 2rem 0.15rem 2rem;
			border-radius: 0 0 0.3rem 0.3rem;
			
			color: black;
			box-shadow: 0px 0.2rem 0.5rem var(--shadow_color);
			transform: translateY(-0.5rem);

			transition: transform var(--transition_duration);

			&:hover{ transform: translateY(0); }
		}
	}
}

/* Main */ 
main{ 	
	grid-column: 2 / 3; grid-row: 3 / 4;

	margin: 	0;
	padding:	0;
	overflow: visible;
}

article{ 
	margin: 3rem 0;
	padding: 2rem;
	position: relative;

	border-image-source: url("images/cornersv2.png");
	border-image-slice: 30;
	border-image-width: 20px;
	border-image-outset: 5px;

	&.project{
		display: grid;
		grid-template-columns: 33% auto;

		hgroup{ grid-column: 1 / 2; grid-row: 1 / 2;;}
		ul{ grid-column: 1 / 2; grid-row: 2 / 3;}
		.headline{ grid-column: 2 / 3; grid-row: 1 / 3; width:100%;}
		.stamp{ position: absolute; right: -0.5rem; bottom: -0.5rem; max-width: 7rem; max-height: 7rem; mix-blend-mode: multiply;}
	}
}

figure{ margin:2rem 0; padding: 2rem 0rem;}

#panel_display{ 

	width: 100%;
	aspect-ratio: 3 / 2;

	padding-top: 1rem;
	margin-top: 0;

	display:grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
	gap: 1rem;

	div{
		position: relative;
		img{ 
			position: absolute; 
			max-width: 100%; 
			max-height: 100%;

			transition: transform var(--transition_duration);

			&:hover{ transform: scale(1.025); z-index: 1; filter:drop-shadow(0 0.25rem 0.5rem var(--shadow_color));}
		}
	}
}

ul.tags{ 
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	list-style: "✶ ";
	gap: 1rem;

	& li{
		color: var(--pop_color);
		font-weight:bold;
		font-size: 2rem;

		&:nth-of-type(odd){transform: translate(0, -1.5rem);}
		&:nth-of-type(even){transform: translate(0, 1.5rem);}

	}
}

.basic-carousel{ 
	height: 35rem;
	width: 100%;
	border-left: 1px solid black;
	border-right: 1px solid black;

	& .carousel-cell{ height:100%; margin:0 2rem; }

	& .flickity-button{
		border-radius:0.5rem; 
		height: 7rem; 
		margin: 0;

		background-color: var(--interact_color);
		border: 2px solid rgba(0,0,0,0);

		&:hover{ background-color: var(--interact_highlight_color); border-color: black; }
	}
}

blockquote { font-size:2.5em; font-style:italic; margin:0; color:var(--pop_color); }
figcaption { text-align:right; }

#bio{
	display: grid;
	grid-template-columns: auto auto;
	text-align: left;
	gap:2rem;

	& #portrait{ width:150px; }
}

.project-headline{ 
	width: 100%;
	margin: none;
	padding: 1rem;
	height: 25rem;
	background: linear-gradient(#e66465, #9198e5);

	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-end;

	& h1, h3{ display:inline; }
	& h3{

		margin-left: 1rem;
		&:before{ content:"|"; margin-right: 1rem; }
	}
}

.flex_gallery{
	display:flex;
	flex-flow: row wrap;

	justify-content: center;
	gap: 1rem;

	& > div{ 
		border: 1px solid red;
		img{ max-height: 15rem;}
	}
}

.sidebar_bg_container{
	background-image: url("images/sidebar-bg-larger-transparent.png");
	mix-blend-mode: multiply;
	&:nth-of-type(1){ grid-column: 1 / 2; grid-row: 1 / 5; background-position: top right;}
	&:nth-of-type(2){ grid-column: 3 / 4; grid-row: 1 / 5; background-position:top left;}
}

footer {
	grid-column: 2 / 3; grid-row: 4 / 5;
	padding: 1rem;

	text-align:center;
	background-color:whitesmoke;
	box-shadow: 0px 0.2rem 0.5rem var(--shadow_color);
}
