/* shirt-ediss.me Style Sheet. © Ben Shirt-Ediss, 2025 */

/* --- general --- */
body {
	font-family: "Nunito", sans-serif;
	font-size: 1.1rem;
	margin: 0;
	padding: 0;
	background: white;
}

h1 {
	font-size: 2.3rem;
	margin: 0;
	padding: 0;
  	letter-spacing: 0.03em;
  	color: #333;
}


h2 {
	font-size: 1.9rem;
	text-align: center;
	color: black;
	font-weight: 300;
	margin: 2px;
	padding: 35px 0 35px 0;
}


h3 {
	font-size: 1rem;
	color: black;
	font-weight: bold;
	margin: 2px;
}


a {
	color: black;
	text-decoration: none;
}


.centralise {
	width: 1100px;
	margin-left: auto;
	margin-right: auto;	
}


.flex {				/* FLEX PARENT */
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}















/* --- header --- */

header {
	padding: 20px 20px 0 20px;
}

header a {
	white-space: nowrap;
}

#scribbled_box {
	text-align: center;
	font-family: "Rock Salt", sans-serif;
	padding: 5px;
	border-bottom: 3px solid black;
	filter: url(#scribble);
}

#contact_me {
	text-align: center;
	padding: 10px;
}

#contact_me a, #contact_me a:hover, #contact_me a:visited {
	padding: 10px;
	margin-left: 20px;
}


#contact_me a#copy_email, #contact_me a#copy_email:hover, #contact_me a#copy_email:visited {
	padding: 0;
	margin-left: 5px;	
}


#copy_email img {
	width: 20px;
}

















/* --- about me --- */

#about_me {
	padding: 0 20px 0 20px;
}

#photo {
	flex: 1 1 170px;
	min-width: 170px;
	display: flex;				/* flex parent to the photo image */
	justify-content: center;
	align-items: flex-start;
}

#photo img {
	width: 170px;
}

#hello {
	flex: 5 1 400px;
	min-width: 200px;
}

#hello p {
	margin: 0 0 20px 0;
}

#hello span {
	font-weight: 600;
	background: linear-gradient(to bottom, red, plum);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	/* For non-WebKit browsers (optional, less consistent support) */
	background-clip: text;
	color: transparent;	
}
















/* --- recent projects --- */


#recent_projects {}

#grid {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
}

.project {
	display: flex;
	flex-direction: column;
	width: 320px;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.category span {
	font-size: 0.9rem;
	color: whitesmoke;
	padding: 5px;
	border-radius: 5px;
	border: 1px solid black;
	background-color: #666;
}

.details {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 12px;
	gap: 8px;
}

.infinidesk .details {
	background-image: url('../images/project_infinidesk.png');
	background-size: cover;
	background-repeat: no-repeat;
}

.araudia .details {
	background-image: url('../images/project_araudia.png');
	background-size: 120% auto;
	background-repeat: no-repeat;
	background-position: top center;
}

.scaffoldselector .details {
	background-image: url('../images/project_scaffoldselector.png');
	background-size: 110% auto;
	background-repeat: no-repeat;
	background-position: top center;
}

.pcrsimulator .details {
	background-image: url('../images/project_pcrsimulator.png');
	background-size: 120% auto;
	background-repeat: no-repeat;
}

.revnano .details {
	background-image: url('../images/project_revnano.png');
	background-size: 70% auto;
	background-repeat: no-repeat;
	background-position: top center;
}


.dnastack .details {
	background-image: url('../images/project_dnastack.png');
	background-size: 85% auto;
	background-repeat: no-repeat;
	background-position: top center;
}

.image {
	flex: 1; /* Take up all available vertical space */
	background-image: url('https://via.placeholder.com/300');
	background-size: cover;
	background-position: center;
	border-radius: 8px;
}

.text {
	display: flex;
	flex-direction: column;
	background-color: rgba(255, 255, 255, 0.7); /* semi-transparent white */
	backdrop-filter: blur(10px);               /* apply blur to background */
	-webkit-backdrop-filter: blur(10px);       /* Safari support */
	border: 1px solid #666;
	border-radius: 12px;
	padding: 10px;
}

#recent_projects p {
	font-size: 0.9rem;
	color: #666;
	margin: 2px;
}






















/* --- google scholar --- */

#google_scholar {
	text-align: center;
	padding: 30px;
}

#google_scholar a {
	white-space: nowrap;
}

#google_scholar a, #google_scholar a:hover, #google_scholar a:visited {
	text-decoration: underline;
}
























/* --- footer --- */

footer {
	text-align: center;
	font-size: 0.8rem;
	color: #666;
	padding: 20px;
	margin: 0;
}

#scribbled_box_footer {
	border-top: 3px solid black;
	filter: url(#scribble);
	margin-bottom: 5px;
}



















/* --- site width re-sizing --- */


@media (min-width: 320px) {
	h1 {
		font-size: 1.3rem;
	}
	.project {
		width: 320px;
	}	
	.centralise {
		width: 100%;
		margin: 0;
	}
}


@media (min-width: 400px) {
	h1 {
		font-size: 1.8rem;
	}
	.project {
		width: 350px;
	}	
	.centralise {
		width: 100%;
		margin: 0;
	}
}


@media (min-width: 500px) {
	h1 {
		font-size: 2.3rem;
	}
	.project {
		width: 320px;
	}
	.centralise {
		width: 100%;
		margin: 0;
	}
}


@media (min-width: 900px) {
	h1 {
		font-size: 2.3rem;
	}
	.project {
		width: 350px;
	}	
	.centralise {
		width: 900px;
		margin-left: auto;
		margin-right: auto;	
	}
}


@media (min-width: 1100px) {
	h1 {
		font-size: 2.3rem;
	}	
	.project {
		width: 320px;
	}
	.centralise {
		width: 1100px;
		margin-left: auto;
		margin-right: auto;	
	}
}


