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

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

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

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

h3 {
	font-size: 1.7rem;
	color: black;
	font-weight: 400;
	padding: 0;
	margin: 30px 0 30px 0;
}

p {
	font-size: 1.4rem;
}

a, a:hover, a:visited {
	color: #0E41FB;
	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: 10px 10px 0 10px;
}

header a, header a:hover, header a:visited {
	color: black;
}

#bse {
	text-align: center;
}

.gradient-text {
	font-family: "Rock Salt", sans-serif;
	/*
	background: linear-gradient(180deg, #111, #111, orange, plum);
	background-size: 300% 300%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: background-position 1s ease;
	cursor: pointer;*/
}

.gradient-text:hover {
	letter-spacing: 0.01em;
	/*background-position: 50% 100%;*/
}

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

#contact_me a {
	margin-right: 35px;
}

#contact_me a#email, #contact_me a#copy_email {
	display: none;
}

#contact_me a#email, #contact_me a#copy_email, #contact_me a#linkedin {
	margin-right: 0;	
}

#contact_me img {
	width: 25px;;
}

#copy_email img {
	width: 20px;
}

















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

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

#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; 	/* so top line aligns with photo */
}

#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 {}

#recent_projects h3 {
	font-size: 1.1rem;
	margin: 2px;
}

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

#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;
}





















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

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

#google_scholar a {
	white-space: nowrap;
}





















/* --- footer --- */

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























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


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


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


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


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


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


